/* =====================================================
   Lexsense Custom Pages 1.2.0
   Light blue · Orange · White — research & AI community
   Architecture aligned with Hulako (plugin templates, BuddyX-safe)
===================================================== */
:root {
  --lx-bg: #eef6fc;
  --lx-bg-soft: #f5f9fd;
  --lx-white: #ffffff;
  --lx-orange: #f97316;
  --lx-orange-soft: #fff7ed;
  --lx-orange-deep: #ea580c;
  --lx-blue: #3b82f6;
  --lx-blue-mid: #2563eb;
  --lx-blue-soft: #dbeafe;
  --lx-blue-deep: #1d4ed8;
  --lx-text: #0f172a;
  --lx-muted: #64748b;
  --lx-line: #cfe3f5;
  --lx-dark: #1e293b;
  --lx-radius: 14px;
  --lx-radius-lg: 20px;
  --lx-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --lx-shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.1);
  --lx-shell: 1120px;
  --lx-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Full-width content only (header/footer safe) ---------- */
body.lexsense-custom-page .site-content,
body.lexsense-custom-page .content-area,
body.lexsense-custom-page .site-main,
body.lexsense-custom-page .content-wrapper,
body.lexsense-custom-page .site-content-grid,
body.lexsense-custom-page .bb-grid,
body.lexsense-custom-page .bp-wrap,
body.lexsense-custom-page main#primary,
body.lexsense-custom-page #primary,
body.lexsense-custom-page .entry-content,
body.lexsense-custom-page article.page,
body.lexsense-custom-page .site-content > .container,
body.lexsense-custom-page .site-content > .bb-grid,
body.lexsense-custom-page .site-main > .container,
body.lexsense-custom-page #content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.lexsense-custom-page .widget-area,
body.lexsense-custom-page #secondary,
body.lexsense-custom-page .sidebar,
body.lexsense-custom-page aside.widget-area {
  display: none !important;
}

body.lexsense-custom-page .entry-header,
body.lexsense-custom-page .page-header,
body.lexsense-custom-page .entry-title {
  display: none !important;
}

/* Protect header/footer containers */
body.lexsense-custom-page .site-header .container,
body.lexsense-custom-page .site-header .bb-container,
body.lexsense-custom-page .site-header .wrapper,
body.lexsense-custom-page .site-footer .container,
body.lexsense-custom-page .site-footer .bb-container,
body.lexsense-custom-page .site-footer .wrapper,
body.lexsense-custom-page #colophon .container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

div.lexsense-custom-page {
  width: 100%;
  min-height: 50vh;
  overflow-x: hidden;
  font-family: var(--lx-font);
  color: var(--lx-text);
  background: var(--lx-bg);
}
div.lexsense-custom-page *,
div.lexsense-custom-page *::before,
div.lexsense-custom-page *::after {
  box-sizing: border-box;
}
div.lexsense-custom-page a {
  text-decoration: none;
}

.lx-shell {
  width: min(var(--lx-shell), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.lx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 56px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.88) 0%, rgba(37, 99, 235, 0.78) 48%, rgba(249, 115, 22, 0.72) 100%),
    url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=2000&q=85") center/cover no-repeat;
}
.lx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 100px;
  background: linear-gradient(transparent, var(--lx-bg));
}
.lx-hero-inner {
  position: relative;
  width: min(var(--lx-shell), calc(100% - 40px));
  margin: auto;
}
.lx-hero .lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffedd5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lx-hero .lx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lx-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}
.lx-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 800;
}
.lx-hero p.lead {
  max-width: 640px;
  margin: 0 0 26px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: #e0f2fe;
}
.lx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}
.lx-btn-primary {
  background: var(--lx-orange);
  color: #ffffff !important;
  text-shadow: none;
}
.lx-btn-primary:hover {
  background: var(--lx-orange-deep);
  color: #fff !important;
  transform: translateY(-1px);
}
.lx-btn-blue {
  background: var(--lx-blue-mid, #2563eb);
  color: #ffffff !important;
}
.lx-btn-blue:hover {
  background: var(--lx-blue-deep);
  color: #fff !important;
  transform: translateY(-1px);
}
.lx-btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.lx-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}
.lx-btn-dark {
  background: var(--lx-dark);
  color: #fff !important;
}
.lx-btn-dark:hover {
  background: #0f172a;
  color: #fff !important;
  transform: translateY(-1px);
}
.lx-btn-light {
  background: #fff;
  color: var(--lx-dark) !important;
  border: 1px solid var(--lx-line);
}
.lx-btn-light:hover {
  border-color: var(--lx-orange);
  color: var(--lx-orange-deep) !important;
}

/* ---------- Sections ---------- */
.lx-section {
  width: min(var(--lx-shell), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}
.lx-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.lx-section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--lx-text);
}
.lx-section-header p {
  max-width: 560px;
  margin: 0;
  color: var(--lx-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lx-rich-heading {
  margin-bottom: 22px;
}
.lx-rich-heading small {
  display: block;
  margin-bottom: 8px;
  color: var(--lx-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lx-rich-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  color: var(--lx-text);
}
.lx-rich-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.6;
}

/* ---------- Grids & cards ---------- */
.lx-grid {
  display: grid;
  gap: 18px;
}
.lx-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lx-card {
  overflow: hidden;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lx-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lx-shadow-hover);
  border-color: #fdba74;
}
.lx-card-img {
  position: relative;
  height: 170px;
  background-position: center;
  background-size: cover;
  background-color: var(--lx-blue-soft);
}
.lx-card-body {
  padding: 18px;
}
.lx-card-body h3 {
  margin: 0 0 8px;
  color: var(--lx-text);
  font-size: 18px;
  line-height: 1.3;
}
.lx-card-body h3 a {
  color: inherit;
}
.lx-card-body p {
  margin: 0 0 12px;
  color: var(--lx-muted);
  font-size: 14px;
  line-height: 1.6;
}
.lx-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.lx-card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--lx-blue-mid, var(--lx-blue)) !important;
  font-weight: 800;
  font-size: 14px;
}

/* ---------- Badges & chips ---------- */
.lx-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--lx-orange-soft) !important;
  color: var(--lx-orange-deep) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lx-badge-blue {
  background: var(--lx-blue-soft) !important;
  color: var(--lx-blue-deep) !important;
}
.lx-badge-slate {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.lx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lx-chip {
  padding: 8px 13px;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  background: #fff;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 700;
}
.lx-chip:hover {
  border-color: var(--lx-orange);
  background: var(--lx-orange-soft);
  color: var(--lx-orange-deep) !important;
}

/* ---------- Features ---------- */
.lx-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lx-feature {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
  text-align: left;
}
.lx-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--lx-orange-soft);
  font-size: 22px;
}
.lx-feature h3 {
  margin: 0 0 8px;
  color: var(--lx-text);
  font-size: 18px;
}
.lx-feature p {
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.55;
  font-size: 14px;
}

/* ---------- Topic cards ---------- */
.lx-topic-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0;
}
.lx-topic-card .lx-feature-icon {
  margin: 18px 0 0 18px;
}
.lx-topic-card .lx-card-body {
  padding: 18px 18px 18px 12px;
}

/* ---------- Idea / number grids ---------- */
.lx-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lx-idea-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
}
.lx-idea-card .lx-idea-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--lx-blue-soft);
  font-size: 20px;
}
.lx-idea-card h3 {
  margin: 0 0 8px;
  color: var(--lx-text);
  font-size: 18px;
}
.lx-idea-card p {
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.55;
  font-size: 14px;
}

.lx-number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.lx-number-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
}
.lx-number-card b {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--lx-dark);
  color: var(--lx-orange);
  font-size: 13px;
}
.lx-number-card h3 {
  margin: 0 0 6px;
  color: var(--lx-text);
  font-size: 16px;
}
.lx-number-card p {
  margin: 0;
  color: var(--lx-muted);
  line-height: 1.5;
  font-size: 13px;
}

/* ---------- CTA band ---------- */
.lx-cta-band {
  width: min(var(--lx-shell), calc(100% - 40px));
  margin: 12px auto 56px;
  padding: 40px;
  border-radius: var(--lx-radius-lg);
  background: linear-gradient(125deg, #1e3a5f 0%, #2563eb 50%, #f97316 100%);
  color: #fff;
  text-align: left;
}
.lx-cta-band h2 {
  max-width: 720px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
}
.lx-cta-band p {
  max-width: 600px;
  margin: 0 0 20px;
  color: #e0f2fe;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Auth ---------- */
.lx-auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.2), transparent 30%),
    linear-gradient(160deg, #0f172a, #1e293b 50%, #1e3a5f);
}
.lx-auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(12px);
}
.lx-auth-card .lx-logo {
  color: var(--lx-orange);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}
.lx-auth-card h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
}
.lx-auth-card .sub {
  color: #94a3b8;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.lx-form-group {
  margin-bottom: 14px;
}
.lx-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #e0f2fe;
  font-weight: 700;
  font-size: 13px;
}
.lx-form-group input,
.lx-auth-card .input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.lx-auth-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--lx-orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.lx-auth-submit:hover {
  background: var(--lx-orange-deep);
}
.lx-auth-divider,
.lx-auth-footer {
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.lx-auth-card a {
  color: var(--lx-orange) !important;
}
.lx-auth-card a:hover {
  color: #fdba74 !important;
}
.lx-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: #cbd5e1;
}

/* ---------- Single article: left sidebar + aligned content ---------- */
body.lexsense-single,
body.single-post.lexsense-single {
  background: var(--lx-bg) !important;
  color: var(--lx-text);
}

body.single-post .site-content,
body.single-post #primary,
body.lexsense-single .site-content {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Two-column article layout */
body.single-post .site-content-grid,
body.single-post .bb-grid.site-content-grid,
body.lexsense-single .content-area {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 32px 20px 56px !important;
}

body.single-post #secondary,
body.single-post .widget-area,
body.lexsense-single #secondary {
  display: block !important;
  width: 100% !important;
  max-width: 260px !important;
  position: sticky;
  top: 88px;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  padding: 18px;
  box-shadow: var(--lx-shadow);
}

body.single-post #primary,
body.single-post .site-main,
body.lexsense-single #primary {
  max-width: none !important;
  width: 100% !important;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  padding: 28px 32px;
  box-shadow: var(--lx-shadow);
}

body.single-post .entry-title,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  color: var(--lx-text) !important;
}
body.single-post .entry-content p,
body.single-post .entry-content li {
  color: #334155 !important;
  line-height: 1.75;
}
body.single-post .entry-content a {
  color: var(--lx-blue-mid, var(--lx-blue)) !important;
}
body.single-post .entry-content a:hover {
  color: var(--lx-orange) !important;
}
body.single-post .entry-meta,
body.single-post .entry-meta a {
  color: var(--lx-muted) !important;
}
body.single-post .entry-content blockquote {
  border-left: 4px solid var(--lx-orange);
  background: var(--lx-orange-soft);
  color: var(--lx-text) !important;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}

/* Footer centred on single + home */
body.single-post .site-footer,
body.single-post #colophon,
body.lexsense-home .site-footer,
body.lexsense-home #colophon,
body.home .site-footer,
body.front-page .site-footer {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* ---------- Home page colour consistency ---------- */
body.lexsense-home,
body.home,
body.front-page {
  background-color: var(--lx-bg) !important;
  color: var(--lx-text);
}
body.lexsense-home h1,
body.lexsense-home h2,
body.lexsense-home h3,
body.home h1,
body.home h2,
body.home h3 {
  color: var(--lx-text) !important;
}
body.lexsense-home p,
body.home p {
  color: #334155 !important;
}
/* Link colour only on light surfaces — never force blue onto hero / CTA */
body.lexsense-home .lx-section a,
body.lexsense-home .lx-card a,
body.lexsense-home .lx-feature a,
body.lexsense-home .lx-idea-card a,
body.lexsense-home .lx-number-card a,
body.lexsense-home .lx-card-link,
body.home .lx-section a,
body.home .lx-card a {
  color: var(--lx-blue-mid, var(--lx-blue)) !important;
}
body.lexsense-home .lx-section a:hover,
body.lexsense-home .lx-card a:hover,
body.lexsense-home .lx-card-link:hover,
body.home .lx-section a:hover {
  color: var(--lx-orange) !important;
}
body.lexsense-home .wp-block-button__link,
body.home .wp-block-button__link,
body.home .button {
  background-color: var(--lx-orange) !important;
  color: #fff !important;
  border-color: var(--lx-orange) !important;
}

/* ---------- Section nav ---------- */
.lx-section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px max(20px, calc((100% - var(--lx-shell)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--lx-line);
  backdrop-filter: blur(12px);
}
.lx-section-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lx-muted) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.lx-section-nav a:hover {
  background: var(--lx-orange-soft);
  color: var(--lx-orange-deep) !important;
}

.lx-empty-state {
  padding: 28px;
  border: 1px dashed var(--lx-line);
  border-radius: 14px;
  background: #fff;
  color: var(--lx-muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lx-grid-4,
  .lx-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lx-features,
  .lx-idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lx-number-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.single-post .site-content-grid,
  body.single-post .bb-grid.site-content-grid,
  body.lexsense-single .content-area {
    grid-template-columns: 1fr !important;
  }
  body.single-post #secondary,
  body.single-post .widget-area {
    position: static;
    max-width: none !important;
    order: 2;
  }
}

@media (max-width: 760px) {
  .lx-shell,
  .lx-section,
  .lx-hero-inner,
  .lx-cta-band {
    width: min(100% - 24px, var(--lx-shell));
  }
  .lx-hero {
    padding: 48px 0 36px;
  }
  .lx-hero h1 {
    font-size: 36px;
  }
  .lx-section {
    padding: 40px 0;
  }
  .lx-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .lx-grid-2,
  .lx-grid-3,
  .lx-grid-4,
  .lx-features,
  .lx-idea-grid,
  .lx-number-grid {
    grid-template-columns: 1fr;
  }
  .lx-cta-band {
    padding: 28px;
  }
  .lx-hero-actions .lx-btn {
    width: 100%;
  }
}


/* CTA / hero — force readable text on blue/orange gradients */
.lx-hero h1,
.lx-hero .lx-eyebrow,
.lx-cta-band h2 {
  color: #ffffff !important;
}
.lx-hero p.lead,
.lx-cta-band p {
  color: #e0f2fe !important;
}
.lx-hero a.lx-btn,
.lx-cta-band a.lx-btn,
.lx-hero .lx-btn,
.lx-cta-band .lx-btn {
  color: #ffffff !important;
  text-decoration: none !important;
}
.lx-hero .lx-btn-primary,
.lx-cta-band .lx-btn-primary {
  background: var(--lx-orange) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.lx-hero .lx-btn-primary:hover,
.lx-cta-band .lx-btn-primary:hover {
  background: var(--lx-orange-deep) !important;
  color: #ffffff !important;
}
.lx-hero .lx-btn-outline,
.lx-cta-band .lx-btn-outline {
  border-color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.lx-hero .lx-btn-outline:hover,
.lx-cta-band .lx-btn-outline:hover {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}
.lx-hero a:not(.lx-btn),
.lx-cta-band a:not(.lx-btn) {
  color: #ffedd5 !important;
}
.lx-hero a:not(.lx-btn):hover,
.lx-cta-band a:not(.lx-btn):hover {
  color: #ffffff !important;
}

.lx-btn-light {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid var(--lx-line);
}
.lx-btn-light:hover {
  border-color: var(--lx-orange);
  color: var(--lx-orange-deep) !important;
  background: #fff;
}

/* ---------- 404 — NLP-themed ---------- */
.lx-404 {
  text-align: center;
  padding: 56px 0 72px;
}
.lx-404 .lx-404-code {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lx-orange-soft);
  color: var(--lx-orange-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lx-404 h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--lx-text) !important;
}
.lx-404 .lx-404-lead {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--lx-muted);
  font-size: 16px;
  line-height: 1.65;
}
.lx-404 .lx-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.lx-404 .lx-404-hint {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  color: var(--lx-muted);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--lx-shadow);
  text-align: left;
}
.lx-404 .lx-404-hint strong {
  color: var(--lx-text);
}
.lx-404 .lx-404-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.lx-404 .lx-404-tokens span {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--lx-blue-soft);
  color: var(--lx-blue-deep);
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- Multimodal terminology ---------- */
.lx-modality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.lx-modality-card {
  padding: 22px;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
  text-align: left;
}
.lx-modality-card .lx-modality-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--lx-blue-soft);
  font-size: 22px;
}
.lx-modality-card .lx-badge {
  margin-bottom: 10px;
}
.lx-modality-card h3 {
  margin: 0 0 8px;
  color: var(--lx-text);
  font-size: 18px;
}
.lx-modality-card p {
  margin: 0;
  color: var(--lx-muted);
  font-size: 14px;
  line-height: 1.55;
}

.lx-term-day {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius-lg);
  box-shadow: var(--lx-shadow);
}
.lx-term-day-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  background: linear-gradient(160deg, #1e3a5f, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}
.lx-term-day-body {
  padding: 22px 24px;
}
.lx-term-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.lx-term-day-head strong {
  font-size: 22px;
  color: var(--lx-text);
  letter-spacing: -0.02em;
}
.lx-term-day-gloss {
  margin: 0 0 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}
.lx-term-day-example {
  margin: 0;
  color: var(--lx-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Lexsense site footer strip ---------- */
.lx-site-footer {
  margin-top: 24px;
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}
.lx-site-footer a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
}
.lx-site-footer a:hover {
  color: #fdba74 !important;
}
.lx-site-footer-inner {
  width: min(var(--lx-shell), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 32px;
}
.lx-site-footer-brand {
  margin-bottom: 28px;
  max-width: 420px;
}
.lx-site-footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.lx-site-footer-brand p {
  margin: 0;
  color: #94a3b8 !important;
  font-size: 14px;
  line-height: 1.55;
}
.lx-site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.lx-site-footer-col h4 {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lx-site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lx-site-footer-col li {
  margin-bottom: 8px;
}
.lx-site-footer-col a {
  font-size: 14px;
}
.lx-site-footer-partners {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}
.lx-site-footer-partners-label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lx-site-footer-partners-note {
  margin: 0;
  max-width: 640px;
  color: #64748b !important;
  font-size: 13px;
  line-height: 1.55;
}
.lx-site-footer-bar {
  border-top: 1px solid #1e293b;
  background: #020617;
}
.lx-site-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 !important;
  font-size: 13px;
  color: #64748b;
}
.lx-site-footer-bar a {
  color: #94a3b8 !important;
}

@media (max-width: 900px) {
  .lx-modality-grid {
    grid-template-columns: 1fr;
  }
  .lx-site-footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .lx-term-day {
    grid-template-columns: 1fr;
  }
  .lx-term-day-label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 10px 16px;
  }
  .lx-site-footer-nav {
    grid-template-columns: 1fr;
  }
  .lx-site-footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Dataset sheets (excel-style) ---------- */
.lx-sheet {
  margin-bottom: 28px;
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow);
  overflow: hidden;
}
.lx-sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--lx-line);
  background: var(--lx-bg-soft);
}
.lx-sheet-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lx-orange-soft);
  font-size: 18px;
  flex-shrink: 0;
}
.lx-sheet-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--lx-text);
}
.lx-sheet-head p {
  margin: 0;
  font-size: 13px;
  color: var(--lx-muted);
}
.lx-sheet-table-wrap {
  overflow-x: auto;
}
.lx-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lx-sheet-table th,
.lx-sheet-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--lx-line);
  white-space: nowrap;
}
.lx-sheet-table th {
  background: #f1f5f9;
  color: var(--lx-text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.lx-sheet-table tbody tr:hover {
  background: var(--lx-orange-soft);
}
.lx-sheet-table td {
  color: #334155;
}

/* ---------- Footer logo + 4 columns ---------- */
.lx-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lx-footer-logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #f97316);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.lx-footer-logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lx-site-footer-nav-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 900px) {
  .lx-site-footer-nav-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  .lx-site-footer-nav-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Footer widgets (Appearance → Widgets) */
.lx-site-footer .lx-footer-widget {
  margin: 0;
}
.lx-site-footer .lx-footer-widget-title,
.lx-site-footer .lx-site-footer-col h4,
.lx-site-footer .widget-title {
  margin: 0 0 12px !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lx-site-footer .lx-footer-widget ul,
.lx-site-footer .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lx-site-footer .lx-footer-widget li,
.lx-site-footer .widget li {
  margin-bottom: 8px;
}
.lx-site-footer .lx-footer-widget a,
.lx-site-footer .widget a {
  font-size: 14px;
  color: #cbd5e1 !important;
}
.lx-site-footer .lx-footer-widget a:hover,
.lx-site-footer .widget a:hover {
  color: #fdba74 !important;
}
