/* ═══════════════════════════════════════════════════════════
   GLOBAL DESIGN SYSTEM — asset_injector CSS override
   Applies design from HTML mockups over thex base theme
   ═══════════════════════════════════════════════════════════ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --blue: #1B6BAD;
  --blue-dark: #0D3F68;
  --blue-mid: #1A5490;
  --ink: #0A0F1E;
  --off: #F5F4F0;
  --muted: #6B7280;
  --accent: #4B9FE1;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'SFMono-Regular', 'Fira Code', 'Consolas', monospace;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans) !important;
  background: var(--off) !important;
  color: var(--ink) !important;
  overflow-x: hidden;
  margin: 0; padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
   Actual thex DOM structure:
   header.header
     div.container
       div.header-container
         div.site-brand
           div.block-region.region-header
             div#block-thex-branding.block
               div.block-content
                 div.site-branding
                   div.site-name-slogan
                     div.site-name > a
         div.header-right
           div.mobile-menu (hamburger)
           div.primary-menu-wrapper
             div.menu-wrap
               div.close-mobile-menu
               div.block-region.region-primary-menu
                 nav#block-thex-main-menu.block
                   h2.visually-hidden
                   ul.menu > li > a
   ═══════════════════════════════════════════════════════════ */

/* ─── Header shell ─── */
header.header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  background: var(--blue-dark) !important;
  height: 56px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) !important;
  border: none !important;
}

/* ─── Inner container — full width, no height set here ─── */
header.header > .container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 2.5rem !important;
  box-sizing: border-box !important;
}

/* ─── Main flex row — only place that sets height ─── */
header.header .header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 40px !important;
  width: 100% !important;
}

/* ══════════════════════════
   LEFT SIDE — Site branding
   ══════════════════════════ */
header.header .site-brand {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  height: 100% !important;
}

/* Collapse every intermediate wrapper inside site-brand — NO height set */
header.header .site-brand .block-region,
header.header .site-brand .block,
header.header .site-brand .block-content,
header.header .site-brand .site-branding,
header.header .site-brand .site-name-slogan,
header.header .site-brand .site-name {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Logo image (if present) */
header.header .site-brand .site-logo {
  display: flex !important;
  align-items: center !important;
  margin-right: 0.5rem !important;
}
header.header .site-brand .site-logo img {
  height: 24px !important;
  width: auto !important;
  opacity: 0.85 !important;
}

/* Site name link */
header.header .site-brand .site-name a {
  font-family: var(--serif) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: color 0.2s !important;
}
header.header .site-brand .site-name a:hover { color: var(--accent) !important; }

/* ══════════════════════════
   RIGHT SIDE — Nav menu
   ══════════════════════════ */
header.header .header-right {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
}

/* Hamburger — desktop hidden */
header.header .mobile-menu { display: none !important; }

/* Collapse the entire right-side wrapper chain — NO height set on any of them */
header.header .primary-menu-wrapper,
header.header .menu-wrap,
header.header .block-region.region-primary-menu,
header.header nav#block-thex-main-menu {
  display: flex !important;
  align-items: stretch !important;
  position: static !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  overflow: visible !important;
}

header.header .close-mobile-menu { display: none !important; }

header.header nav#block-thex-main-menu h2,
header.header nav#block-thex-main-menu .block__title,
header.header nav#block-thex-main-menu .visually-hidden { display: none !important; }

/* Menu list — stretch to fill parent height */
header.header nav#block-thex-main-menu ul.menu {
  list-style: none !important;
  display: flex !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

header.header nav#block-thex-main-menu ul.menu li {
  display: flex !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Menu links — stretch full height, padding for click area */
header.header nav#block-thex-main-menu ul.menu li a,
header.header nav#block-thex-main-menu ul.menu li a:visited {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
  padding: 0 1rem !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.72) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  transition: color 0.2s !important;
  letter-spacing: 0.01em !important;
}
header.header nav#block-thex-main-menu ul.menu li a:hover {
  color: #fff !important;
  background: none !important;
}
header.header nav#block-thex-main-menu ul.menu li a.is-active {
  color: #fff !important;
  font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
main#main.main-content {
  padding-top: 56px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: calc(100vh - 56px - 80px);
}

/* Remove default thex layout spacing */
.layout-container { padding-top: 0 !important; }
#page, #page-wrapper { padding-top: 0 !important; margin-top: 0 !important; }

/* Homepage: hero handles its own top spacing — no extra main padding or side gutters */
body.homepage main#main.main-content {
  padding: 0 !important;
}
/* Hide Drupal's default page title block on homepage */
body.homepage .block-page-title-block,
body.homepage .page-title,
body.homepage h1.page-header {
  display: none !important;
}

/* Content blocks default — constrain on non-homepage pages */
body:not(.homepage) #block-thex-content > .block-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ─── HOMEPAGE: main-wrapper container full-width ─── */
body.homepage .main-wrapper .container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Strip ALL inner Drupal wrapper constraints so sections can be full-width */
body.homepage main#main.main-content > .node-content,
body.homepage main#main.main-content > .node-content > .block-region,
body.homepage main#main.main-content > .node-content > .block-region.region-content,
body.homepage #block-thex-content,
body.homepage #block-thex-content .block-content,
body.homepage #block-thex-content .block-content article,
body.homepage #block-thex-content .block-content .node-content,
body.homepage #block-thex-content .block-content .field--name-body,
body.homepage #block-thex-content .block-content .field-item {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

/* ─── Non-hero sections: full-width background, centered inner content ─── */
/* Section elements stretch full viewport width (backgrounds fill edge-to-edge) */
body.homepage .field--name-body section {
  max-width: 100% !important;
  width: 100% !important;
}

/* .container inside each section: centered at 1080px */
body.homepage .field--name-body section .container {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Highlighted section — minimal height, aligned with header */
.highlighted.block-section {
  margin-top: 56px !important;
}
.highlighted.block-section > aside.container {
  padding: 0 !important;
  max-width: 100% !important;
}
body.homepage .highlighted.block-section {
  margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   PAGE-NODE-2 (About Drupal)
   ═══════════════════════════════════════════════════════════ */

/* Hide page title block & highlighted bar */
body.page-node-3 .block-page-title-block,
body.page-node-3 h1.page-title,
body.page-node-3 .page-header,
body.page-node-3 .highlighted.block-section {
  display: none !important;
}

/* Remove main-content top padding — main-wrapper handles offset instead */
body.page-node-3 main#main.main-content {
  padding-top: 0 !important;
}

/* Push main-wrapper down by header height */
body.page-node-3 .main-wrapper {
  padding-top: 56px !important;
}

/* Strip max-width on main-wrapper container and block-content */
body.page-node-3 .main-wrapper .container,
body.page-node-3 #block-thex-content .block-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* page-hero top padding — no extra offset needed, main-wrapper handles it */
body.page-node-3 .page-hero {
  padding-top: 3rem !important;
}

/* .main content area — centered at 1100px */
body.page-node-3 .main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

/* Compare table fills 100% of .main container */
body.page-node-3 .compare-table {
  width: 100%;
}

/* ─── Responsive compare-table ─── */
@media (max-width: 900px) {
  body.page-node-3 .main {
    padding: 0 1.25rem 4rem;
  }
  body.page-node-3 .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.page-node-3 .compare-table th,
  body.page-node-3 .compare-table td {
    white-space: normal;
    min-width: 130px;
  }
  body.page-node-3 .compare-table td:first-child {
    min-width: 160px;
  }
}

@media (max-width: 600px) {
  body.page-node-3 .compare-table th,
  body.page-node-3 .compare-table td {
    font-size: 12px;
    padding: 0.6rem 0.75rem;
    min-width: 110px;
  }
  body.page-node-3 .compare-table td:first-child {
    min-width: 130px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE-NODE-4 (Capabilities)
   ═══════════════════════════════════════════════════════════ */

/* Hide page title block & highlighted bar */
body.page-node-4 .block-page-title-block,
body.page-node-4 h1.page-title,
body.page-node-4 .page-header,
body.page-node-4 .highlighted.block-section {
  display: none !important;
}

/* Remove main-content top padding — main-wrapper handles offset */
body.page-node-4 main#main.main-content {
  padding-top: 0 !important;
}

/* Push main-wrapper down by header height */
body.page-node-4 .main-wrapper {
  padding-top: 56px !important;
}

/* Strip max-width on main-wrapper container and block-content */
body.page-node-4 .main-wrapper .container,
body.page-node-4 #block-thex-content .block-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* page-hero — full-width, centered, dark hero */
body.page-node-4 .page-hero {
  padding: 110px 2.5rem 5rem !important;
  text-align: center !important;
}

/* Center radial gradient (override the left-side About gradient) */
body.page-node-4 .page-hero::after {
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(27,107,173,0.5), transparent 70%) !important;
}

/* Single-column centered hero inner */
body.page-node-4 .page-hero-inner {
  display: block !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Larger h1 for capabilities */
body.page-node-4 .page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
}

/* Centered paragraph with max-width */
body.page-node-4 .page-hero p {
  max-width: 520px !important;
  margin: 0 auto !important;
  font-size: 17px !important;
}

/* .cap-nav sticky sub-nav — sits just below the fixed header */
body.page-node-4 .cap-nav {
  position: sticky !important;
  top: 56px !important;
  z-index: 50 !important;
}

/* .main content area — centered at 1100px */
body.page-node-4 .main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  body.page-node-4 .page-hero { padding: 90px 1.25rem 3.5rem !important; text-align: center !important; }
  body.page-node-4 .main { padding: 0 1.25rem 4rem; }
  body.page-node-4 .cap-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  body.page-node-4 .cap-section:nth-child(even) .cap-inner { direction: ltr; }
  body.page-node-4 .cap-section { padding: 3.5rem 0; }
  body.page-node-4 .bottom-cta { padding: 2.5rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer.footer-blocks.footer {
  background: var(--ink) !important;
  padding: 0 !important;
}
footer.footer-bottom.footer {
  background: var(--ink) !important;
  padding: 1.5rem 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
footer.footer-bottom.footer * {
  font-family: var(--serif) !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none !important;
}
footer.footer-bottom.footer a:hover {
  color: rgba(255,255,255,0.75) !important;
}
#block-thex-powered { color: rgba(255,255,255,0.4); }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY & HEADINGS
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

/* Page/node title */
.page-title, .node__title, h1.title {
  font-family: var(--serif) !important;
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  color: var(--white) !important;
}

/* Node article body text — scoped to article-prose card */
body.page-node-type-article .article-prose p,
.article-body p {
  font-size: 17px;
  line-height: 1.9;
  color: #2C3340;
  margin-bottom: 1.75rem;
}
body.page-node-type-article .article-prose h2,
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 2.5rem 0 1rem; line-height: 1.2;
}
body.page-node-type-article .article-prose h3,
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin: 2rem 0 0.75rem;
}
body.page-node-type-article .article-prose a,
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.page-node-type-article .article-prose strong,
.article-body strong { font-weight: 500; color: var(--ink); }
body.page-node-type-article .article-prose ul,
body.page-node-type-article .article-prose ol,
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
body.page-node-type-article .article-prose li,
.article-body li {
  font-size: 16px; line-height: 1.8;
  color: #2C3340; margin-bottom: 0.3rem;
}

/* Image field */
.image-field { margin: 0; }

/* Inline code */
code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(0,0,0,0.06);
  color: #C0392B;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
   ═══════════════════════════════════════════════════════════ */
section { padding: 6rem 2rem; }
/* .container utility — but NOT the header's .container (handled separately above) */
.container { max-width: 1100px; margin: 0 auto; }
header.header .container { max-width: 100% !important; padding: 0 2.5rem !important; }
.eyebrow-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 1.25rem; display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  max-width: 700px;
}
.section-body { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 560px; margin-top: 1rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay, .reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reading progress bar */
.ai-progress-bar {
  position: fixed; top: 56px; left: 0; z-index: 99;
  height: 2px; background: var(--accent);
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO (index.html)
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--blue-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(27,107,173,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 2rem; position: relative;
}
.hero-eyebrow span {
  display: inline-block; width: 6px; height: 6px;
  background: #4ddb9e; border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.0; letter-spacing: -0.03em;
  max-width: 900px; margin-bottom: 1rem; position: relative;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.65); max-width: 540px;
  line-height: 1.7; margin-bottom: 2.5rem; position: relative;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--blue-dark) !important;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 28px; border-radius: 100px; text-decoration: none !important;
  border: 2px solid var(--white); transition: all 0.25s; position: relative;
}
.hero-cta:hover { background: transparent; color: var(--white) !important; }
.hero-trusted {
  margin-top: 4rem; position: relative;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
  width: 100%; max-width: 700px;
}
.hero-trusted p { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-logos span { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 500; letter-spacing: 0.03em; }

/* ─── ABOUT SECTION ─── */
.about { background: var(--off); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
/* SVG illustration — always responsive */
.about-inner svg { max-width: 100%; height: auto; display: block; }
.stat-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.stat-box { background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; padding: 1.25rem 1.5rem; }
.stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.about-text p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-top: 1rem; }
.section-title { max-width: 700px; width: 100%; }

/* ─── CAPABILITIES GRID (homepage) ─── */
.capabilities { background: var(--ink); }
.capabilities .section-title { color: var(--white); max-width: 760px; }
.capabilities .section-body { color: rgba(255,255,255,0.5); }
.capabilities .eyebrow-label { color: var(--accent); }
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; margin-top: 4rem;
  background: rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden;
}
.cap-card { background: var(--ink); padding: 2rem; position: relative; }
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 2rem; right: 2rem; height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 100%);
}
.cap-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(27,107,173,0.15); border: 1px solid rgba(27,107,173,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 1.25rem; color: var(--accent);
}
.cap-card h3 { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 0.5rem; }
.cap-card p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ─── ADOPTION GRID ─── */
.adoption { background: var(--white); }
.adoption-inner { text-align: center; }
.adoption .section-title { margin: 0 auto 3.5rem; }
.adopt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.adopt-card {
  border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 1.75rem 1.25rem;
  text-align: left; transition: box-shadow 0.2s, transform 0.2s;
}
.adopt-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.adopt-sector {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgba(27,107,173,0.08); padding: 3px 10px;
  border-radius: 100px; margin-bottom: 1rem; font-weight: 500;
}
.adopt-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; }
.adopt-card ul { list-style: none; padding: 0; }
.adopt-card li { font-size: 13px; color: var(--muted); padding: 3px 0; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--blue-dark); text-align: center;
  padding: 7rem 2rem; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(75,159,225,0.2), transparent 70%);
}
.cta-section h2 {
  font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--white); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 1.25rem; position: relative;
}
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 2.5rem; position: relative; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--blue-dark) !important;
  font-size: 14px; font-weight: 500; padding: 13px 30px;
  border-radius: 100px; text-decoration: none !important; transition: all 0.25s; position: relative;
}
.cta-btn:hover { background: var(--accent); color: var(--white) !important; }
.cta-note { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 1.25rem; position: relative; }

/* ─── LATEST ARTICLES ─── */
.latest { background: var(--off); }
.latest-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.latest-list { display: flex; flex-direction: column; gap: 0; }
.latest-item {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.08);
  text-decoration: none !important; color: var(--ink) !important; transition: color 0.2s;
}
.latest-item:hover { color: var(--blue) !important; }
.latest-num { font-family: var(--serif); font-size: 13px; color: rgba(0,0,0,0.25); min-width: 26px; padding-top: 2px; }
.latest-title { font-size: 14px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (about.html / capabilities.html)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--blue-dark);
  padding: 110px 2.5rem 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 60%, rgba(27,107,173,0.45), transparent 65%);
}
.page-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.page-hero.centered .page-hero-inner {
  grid-template-columns: 1fr;
  text-align: center; max-width: 700px;
}
.page-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.25rem; display: block;
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700; color: var(--white); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75; }

/* Hero stats cluster */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden;
}
.hero-stat { background: rgba(255,255,255,0.04); padding: 1.75rem; }
.hero-stat-num {
  font-family: var(--serif); font-size: 2.75rem;
  font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -0.03em;
}
.hero-stat-num span { font-size: 1.5rem; color: var(--accent); }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 6px; line-height: 1.4; }

/* ─── MAIN CONTENT WRAPPER (about / capabilities) ─── */
.main { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem 6rem; }

/* Sections inside .main */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 0.75rem; display: block;
}

/* ─── ORIGIN STORY / TIMELINE ─── */
.origin-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1.25rem; padding-bottom: 2rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-dark); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; z-index: 1;
}
.timeline-line { width: 2px; flex: 1; background: var(--border); margin-top: 4px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-top: 4px; }
.timeline-year { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.timeline-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── WHO USES DRUPAL ─── */
.usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.usage-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s;
}
.usage-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }
.usage-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.usage-sector { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 0.5rem; }
.usage-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; }
.usage-card ul { list-style: none; padding: 0; }
.usage-card li { font-size: 12px; color: var(--muted); padding: 3px 0; border-bottom: 1px solid var(--border); }
.usage-card li:last-child { border-bottom: none; }

/* ─── COMPARE TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 14px; }
.compare-table th {
  background: var(--ink); color: var(--white);
  padding: 0.875rem 1.25rem; text-align: left; font-weight: 500; font-size: 13px;
}
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child { border-radius: 0 10px 0 0; }
.compare-table td {
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--white); vertical-align: top; color: var(--muted);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.check { color: #3B6D11; font-weight: 500; }
.partial { color: #BA7517; }
.cross { color: #A32D2D; }

/* ─── PHILOSOPHY ─── */
.philosophy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.pillar-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.pillar { display: flex; gap: 1.25rem; align-items: flex-start; }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(27,107,173,0.08); border: 1px solid rgba(27,107,173,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.pillar-body h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.pillar-body p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.quote-block {
  background: var(--blue-dark); border-radius: 16px;
  padding: 2.5rem; position: relative; overflow: hidden;
}
.quote-block::before {
  content: '"'; position: absolute; top: -0.5rem; left: 1.5rem;
  font-family: var(--serif); font-size: 8rem; color: rgba(255,255,255,0.06);
  line-height: 1; pointer-events: none;
}
.quote-text {
  font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  color: var(--white); line-height: 1.65; margin-bottom: 1.5rem; position: relative;
}
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.quote-name { font-size: 13px; font-weight: 500; color: var(--white); }
.quote-role { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-top: 3rem;
}
.cta-strip-text h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.cta-strip-text p { font-size: 14px; color: var(--muted); }
.cta-strip-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white) !important;
  font-size: 13px; font-weight: 500; padding: 10px 22px;
  border-radius: 100px; text-decoration: none !important; transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--blue) !important;
  font-size: 13px; font-weight: 500; padding: 10px 22px;
  border-radius: 100px; text-decoration: none !important;
  border: 1px solid rgba(27,107,173,0.25); transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(27,107,173,0.07); }

/* ═══════════════════════════════════════════════════════════
   CAPABILITIES PAGE (capabilities.html)
   ═══════════════════════════════════════════════════════════ */
.cap-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 56px; z-index: 50;
}
.cap-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none; padding: 0 2rem;
}
.cap-nav-inner::-webkit-scrollbar { display: none; }
.cap-nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 0 1.25rem; height: 48px; white-space: nowrap;
  font-size: 13px; color: var(--muted); text-decoration: none !important;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.cap-nav-link:hover { color: var(--blue); }
.cap-nav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.cap-nav-link span { font-size: 16px; }

.cap-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.cap-section:last-child { border-bottom: none; }
.cap-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.cap-section:nth-child(even) .cap-inner { direction: rtl; }
.cap-section:nth-child(even) .cap-inner > * { direction: ltr; }
.cap-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 0.75rem; display: block; }
.cap-inner h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 1.25rem; }
.cap-inner p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.cap-inner p:last-of-type { margin-bottom: 0; }
.cap-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.cap-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 14px; border-radius: 100px;
  background: rgba(27,107,173,0.08); color: var(--blue); border: 1px solid rgba(27,107,173,0.15);
}
.cap-pill::before { content: '✓'; font-size: 11px; }

/* Mock visual panels */
.cap-visual {
  background: var(--ink); border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative;
}
.cap-visual-icon { font-size: 5rem; opacity: 0.15; position: absolute; }
.cap-visual-content { position: relative; z-index: 1; padding: 2rem; width: 100%; }
.mock-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-stat { background: rgba(255,255,255,0.07); border-radius: 10px; padding: 1rem; border: 1px solid rgba(255,255,255,0.08); }
.mock-stat-num { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--white); line-height: 1; }
.mock-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.mock-bar-list { display: flex; flex-direction: column; gap: 10px; }
.mock-bar-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 5px; display: flex; justify-content: space-between; }
.mock-bar-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 100px; background: var(--accent); }
.mock-lang-list { display: flex; flex-direction: column; gap: 8px; }
.mock-lang-item { display: flex; align-items: center; gap: 10px; }
.mock-lang-flag { font-size: 20px; line-height: 1; }
.mock-lang-name { font-size: 13px; color: rgba(255,255,255,0.7); }
.mock-lang-badge { margin-left: auto; font-size: 10px; padding: 2px 8px; border-radius: 100px; background: rgba(75,159,225,0.2); color: var(--accent); border: 1px solid rgba(75,159,225,0.2); }
.mock-api-block { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 1rem; }
.mock-api-line { font-family: monospace; font-size: 12px; margin-bottom: 6px; }
.mock-api-line:last-child { margin-bottom: 0; }
.mock-key { color: #79C0FF; }
.mock-val { color: #A5D6FF; }
.mock-method { display: inline-block; font-size: 10px; font-family: monospace; padding: 2px 8px; border-radius: 4px; background: rgba(75,159,225,0.2); color: var(--accent); margin-bottom: 8px; letter-spacing: 0.05em; }
.mock-shield { text-align: center; }
.mock-shield-icon { font-size: 4rem; margin-bottom: 0.5rem; }
.mock-shield-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.mock-shield-badges { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; flex-wrap: wrap; }
.mock-badge { font-size: 11px; padding: 4px 12px; border-radius: 100px; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.1); }
.mock-module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-module { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 0.75rem; border: 1px solid rgba(255,255,255,0.08); }
.mock-module-name { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; margin-bottom: 2px; }
.mock-module-desc { font-size: 10px; color: rgba(255,255,255,0.35); line-height: 1.4; }

/* Bottom CTA box */
.bottom-cta {
  background: var(--blue-dark); border-radius: 20px;
  padding: 4rem; text-align: center; margin: 4rem 0 0;
  position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(75,159,225,0.2), transparent 70%);
}
.bottom-cta h2 {
  font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; color: var(--white); letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 1rem; position: relative;
}
.bottom-cta p { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 440px; margin: 0 auto 2rem; position: relative; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGE (body.page-node-type-article)
   section.page-header → dark hero
   field--name-field-image → moved to hero via JS (original hidden)
   node-header (date/author) → hidden, meta bar injected by JS
   field--name-body → centered prose card
   node-taxonomy-container → styled as tags footer
   ═══════════════════════════════════════════════════════════ */

/* ─ page-header → dark article hero ─ */
body.page-node-type-article section.page-header {
  background: var(--blue-dark) !important;
  padding: 90px 2.5rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
}
body.page-node-type-article section.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
body.page-node-type-article section.page-header .container {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative; z-index: 1;
}
body.page-node-type-article .page-header-container {
  padding: 2.5rem 0 0 !important;
}

/* Hide breadcrumbs (back link injected by JS) */
body.page-node-type-article #block-thex-breadcrumbs { display: none !important; }

/* h1 article title */
body.page-node-type-article h1.page-title {
  font-family: var(--serif) !important;
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 1.5rem !important;
}

/* Cover image wrapper created by JS inside page-header */
body.page-node-type-article section.page-header .article-cover-wrap {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 0 2.5rem;
}
body.page-node-type-article section.page-header .article-cover-wrap img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  display: block !important;
}

/* ─ Elements to hide ─ */
body.page-node-type-article .highlighted.block-section { display: none !important; }
body.page-node-type-article .node-header { display: none !important; }
body.page-node-type-article .field--name-field-image { display: none !important; }
body.page-node-type-article .node-links-container { display: none !important; }
body.page-node-type-article section#comments { display: none !important; }

/* ─ main-wrapper: no gap after page-header ─ */
body.page-node-type-article .main-wrapper { padding: 0 !important; }
body.page-node-type-article .main-container { padding-top: 0 !important; }
body.page-node-type-article main#main.main-content { padding-top: 0 !important; }
body.page-node-type-article article.node { padding: 0 !important; margin: 0 !important; }
body.page-node-type-article .node-content { padding: 0 !important; margin: 0 !important; }

/* Full-width content wrappers */
body.page-node-type-article .main-wrapper .container,
body.page-node-type-article #block-thex-content .block-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ─ Body field → centered ─ */
body.page-node-type-article .field--name-body {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 2.5rem 0 !important;
}

/* article-prose = white card (border-top:none connects to cover image above) */
body.page-node-type-article .article-prose {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 2.5rem 3rem 3rem;
}

/* ─ Taxonomy container → tags footer ─ */
body.page-node-type-article .node-taxonomy-container {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 1.5rem 2.5rem 5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.page-node-type-article .node-taxonomy-container .term-title {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
body.page-node-type-article .node-taxonomy-container .taxonomy-terms {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.page-node-type-article .node-taxonomy-container .taxonomy-term { margin: 0 !important; }
body.page-node-type-article .node-taxonomy-container .taxonomy-term a {
  font-size: 12px !important;
  padding: 4px 14px !important;
  border-radius: 100px !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  background: var(--off) !important;
  display: inline-block !important;
  transition: all 0.15s !important;
}
body.page-node-type-article .node-taxonomy-container .taxonomy-term a:hover {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}

/* ─ Responsive ─ */
@media (max-width: 900px) {
  body.page-node-type-article section.page-header { padding: 80px 1.25rem 0 !important; }
  body.page-node-type-article section.page-header .article-cover-wrap { padding: 0 1.25rem; }
  body.page-node-type-article section.page-header .article-cover-wrap img { height: 220px !important; }
  body.page-node-type-article .field--name-body { padding: 0 1.25rem 0 !important; }
  body.page-node-type-article .article-prose { padding: 1.75rem 1.5rem 2.5rem; }
  body.page-node-type-article .node-taxonomy-container { padding: 1.5rem 1.25rem 4rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGES (article-prose.html / article-example-code.html)
   ═══════════════════════════════════════════════════════════ */

/* Article hero */
.article-hero {
  background: var(--blue-dark);
  padding: 90px 2.5rem 0;
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.article-hero-inner { max-width: 860px; margin: 0 auto; padding: 2.5rem 0 0; position: relative; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none !important;
  margin-bottom: 1.75rem; transition: color 0.2s;
}
.article-back:hover { color: rgba(255,255,255,0.8) !important; }
.article-back svg { width: 14px; height: 14px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.article-tag {
  font-size: 11px; padding: 3px 12px; border-radius: 100px;
  background: rgba(75,159,225,0.15); color: var(--accent) !important;
  border: 1px solid rgba(75,159,225,0.25); text-decoration: none !important;
  letter-spacing: 0.03em; transition: all 0.15s;
}
.article-tag:hover { background: var(--accent); color: var(--blue-dark) !important; }
.article-hero-inner h1 {
  font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; color: var(--white); line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 1.5rem;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
}
.meta-author { display: flex; align-items: center; gap: 8px; }
.meta-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--white);
}
.meta-author-name { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.meta-item { font-size: 12px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 5px; }
.meta-item svg { width: 13px; height: 13px; opacity: 0.6; }
.article-cover-wrap { max-width: 860px; margin: 2rem auto 0; }
.article-cover-wrap img { width: 100%; height: 400px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }

/* Article main layout */
.article-main { max-width: 860px; margin: 0 auto; padding: 0 2.5rem 5rem; }
.article-body {
  background: var(--white);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 2.5rem 3rem 3rem;
}
.article-body p { font-size: 17px; line-height: 1.9; color: #2C3340; margin-bottom: 1.75rem; }
.article-body p:last-of-type { margin-bottom: 0; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); margin: 2.5rem 0 1rem; line-height: 1.2;
}
.article-body h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin: 2rem 0 0.75rem; line-height: 1.3;
}
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { font-size: 16px; line-height: 1.8; color: #2C3340; margin-bottom: 0.3rem; }
.article-body code { font-family: var(--mono); font-size: 13.5px; background: rgba(0,0,0,0.06); color: #C0392B; padding: 2px 6px; border-radius: 4px; }

/* Callout / note blocks */
.callout {
  background: rgba(27,107,173,0.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem; margin: 1.75rem 0;
}
.callout p { font-size: 15px; color: #1A3D5C; margin: 0; line-height: 1.7; }
.callout-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 4px; }
.callout.warning { background: rgba(186,117,23,0.07); border-left-color: #BA7517; }
.callout.warning .callout-label { color: #BA7517; }
.callout.warning p { color: #5C3A06; }

/* Code blocks */
.code-block { background: #0D1117; border-radius: 10px; margin: 1.5rem 0; overflow: hidden; }
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-lang { font-size: 11px; color: rgba(255,255,255,0.3); font-family: var(--mono); letter-spacing: 0.05em; }
.code-copy {
  font-size: 11px; color: rgba(255,255,255,0.3); background: none; border: none;
  cursor: pointer; font-family: var(--sans); display: flex; align-items: center;
  gap: 4px; padding: 2px 8px; border-radius: 4px; transition: all 0.15s;
}
.code-copy:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.code-block pre {
  padding: 1.25rem 1.5rem; overflow-x: auto; margin: 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #C9D1D9;
}
.code-block pre .c { color: #8B949E; }
.code-block pre .k { color: #FF7B72; }
.code-block pre .s { color: #A5D6FF; }
.code-block pre .n { color: #79C0FF; }
.code-block pre .p { color: #F0883E; }

/* Step counter */
.step { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step-body { flex: 1; }
.step-body h3 { margin-top: 0; }

/* Article divider & tags */
.article-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-tags-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2rem; }
.article-tags-footer span { font-size: 12px; color: var(--muted); }
.article-tag-pill {
  font-size: 12px; padding: 4px 14px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none !important;
  background: var(--off); transition: all 0.15s;
}
.article-tag-pill:hover { background: var(--blue); color: #fff !important; border-color: var(--blue); }

/* Related articles */
.related { margin-top: 3rem; }
.related h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  text-decoration: none !important; color: var(--ink) !important;
  background: var(--white); transition: box-shadow 0.2s, transform 0.2s; display: block;
}
.related-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.related-card-body { padding: 1rem; }
.related-card-tag { font-size: 11px; color: var(--blue); font-weight: 500; margin-bottom: 4px; }
.related-card-title { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Header container padding reduced */
  header.header > .container { padding: 0 1.25rem !important; }

  /* Show hamburger on mobile, hide nav links */
  header.header .mobile-menu {
    display: flex !important; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; cursor: pointer; width: 36px; height: 36px;
    flex-shrink: 0;
  }
  header.header .mobile-menu span {
    display: block !important; width: 22px; height: 2px;
    background: rgba(255,255,255,0.85); border-radius: 2px;
  }
  header.header nav#block-thex-main-menu ul.menu { display: none !important; }
  header.header .primary-menu-wrapper { display: none !important; }

  /* Reduce section vertical padding on tablet/mobile */
  section { padding: 4rem 1.5rem; }
  .hero { padding: 90px 1.5rem 4rem; }

  /* About section */
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-inner > div:last-child { display: flex; justify-content: center; }
  .about-inner svg { max-width: 260px; height: auto; }
  .stat-cluster { gap: 1rem; }
  .stat-num { font-size: 2rem; }
  .stat-box { padding: 1rem 1.25rem; }

  /* Latest, philosophy, origin */
  .latest-inner, .origin-inner, .philosophy-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Capabilities page */
  .cap-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cap-section:nth-child(even) .cap-inner { direction: ltr; }
  .cap-section { padding: 3.5rem 0; }

  /* Page hero */
  .page-hero { padding: 90px 1.25rem 3.5rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  /* Main content wrapper */
  .main { padding: 0 1.25rem 4rem; }
  .section { padding: 3.5rem 0; }
  .bottom-cta { padding: 2.5rem 1.5rem; }

  /* Article */
  .article-main { padding: 0 1.25rem 4rem; }
  .article-body { padding: 1.75rem 1.5rem 2.5rem; }
  .article-hero { padding: 80px 1.25rem 0; }
  .article-body p { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }

  /* Grids */
  .usage-grid { grid-template-columns: 1fr 1fr; }
  .adopt-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 0.75rem 1rem; }

  /* Section title full-width on mobile */
  .section-title { max-width: 100%; }
}

@media (max-width: 600px) {
  /* CTA strip buttons — stack vertically */
  .cta-strip-btns {
    flex-direction: column;
    width: 100%;
  }
  .cta-strip-btns .btn-primary,
  .cta-strip-btns .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Further reduce padding on small phones */
  section { padding: 3rem 1.25rem; }
  .hero { padding: 80px 1.25rem 3rem; }

  /* About: hide SVG on very small screens, keep stats */
  .about-inner > div:last-child { display: none; }
  .stat-cluster { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-num { font-size: 1.75rem; }
  .stat-box { padding: 0.875rem 1rem; border-radius: 10px; }
  .stat-lbl { font-size: 11px; }

  /* Capability grid */
  .cap-grid { grid-template-columns: 1fr; }
  .adopt-grid { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }

  /* Latest articles list */
  .latest-num { display: none; }
  .latest-title { font-size: 13px; }

  /* Trust logos */
  .trust-logos { gap: 1.25rem; }
  .trust-logos span { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   /NODE — ARTICLE LISTING PAGE
   body class: site-page no-sidebar
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HEADER — dark hero ─── */
body.node-list section.page-header {
  background: var(--blue-dark) !important;
  padding: 100px 2.5rem 3rem !important;
  position: relative !important;
  overflow: hidden !important;
}
body.node-list section.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
body.node-list section.page-header .container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}
body.node-list .page-header-container {
  padding: 0 !important;
}

/* ─── PAGE HEADER EYEBROW ─── */
body.node-list .page-title-wrap::before {
  content: 'All Articles';
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

body.node-list h1.page-title {
  font-family: var(--serif) !important;
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

/* ─── HIDE HIGHLIGHTED REGION ─── */
body.node-list .highlighted { display: none !important; }

/* ─── MAIN CONTENT AREA ─── */
body.node-list .main-wrapper {
  padding: 0 !important;
}

body.node-list .main-wrapper .container {
  max-width: 1100px !important;
  padding: 0 2.5rem 5rem !important;
}

body.node-list #main {
  padding-top: 0 !important;
}

body.node-list .node-content { background: transparent !important; }

/* ─── HIDE RSS FEED LINK ─── */
body.node-list .feed-icon { display: none !important; }

/* ─── VIEW ROWS ─── */
body.node-list .views-row {
  border-bottom: 1px solid var(--border);
}
body.node-list .views-row:first-child .node-list-wrap {
  padding-top: 0;
}

/* ─── ARTICLE CARD ─── */
body.node-list .node-list-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
body.node-list .node-list-wrap:hover { opacity: 0.92; }

/* ─── IMAGE COLUMN ─── */
body.node-list .node-list-feature { flex-shrink: 0; }

body.node-list .node-list-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
body.node-list .node-list-image a { display: block; }
body.node-list .node-list-image img {
  width: 100% !important;
  height: 130px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.4s ease;
}
body.node-list .node-list-wrap:hover .node-list-image img {
  transform: scale(1.03);
}

/* ─── DETAIL COLUMN ─── */
body.node-list .node-list-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* Title */
body.node-list .node-list-title { margin: 0; }
body.node-list .node-list-title h3 {
  margin: 0; padding: 0;
  font-size: 17px; font-weight: 700;
}
body.node-list .node-list-title h3 a {
  font-family: var(--serif) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
body.node-list .node-list-title h3 a:hover { color: var(--blue) !important; }

/* Summary */
body.node-list .node-list-summary .article-prose {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.node-list .node-list-summary .article-prose p {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta (author + date) */
body.node-list .node-list-meta-data {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
body.node-list .node-list-author {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}
body.node-list .node-list-post-date time {
  font-size: 12px;
  color: rgba(0,0,0,0.35);
}

/* Tags — font-size:0 hides Views-generated commas between <a> tags */
body.node-list .node-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  font-size: 0;
}
body.node-list .node-list-tags a {
  display: inline-block !important;
  font-size: 11px !important;
  padding: 2px 10px !important;
  border-radius: 100px !important;
  background: rgba(27,107,173,0.08) !important;
  color: var(--blue) !important;
  text-decoration: none !important;
  border: 1px solid rgba(27,107,173,0.15) !important;
  transition: all 0.15s;
  font-weight: 400 !important;
}
body.node-list .node-list-tags a:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}

/* ─── PAGER ─── */
body.node-list nav.pager {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 2.5rem 0 0 !important;
  list-style: none !important;
}
body.node-list .pager__items {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
body.node-list .pager__item a,
body.node-list .pager__item.is-active span {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.15s;
}
body.node-list .pager__item a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
body.node-list .pager__item.is-active span {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  body.node-list .main-wrapper .container {
    padding: 2rem 1.25rem 4rem !important;
  }
  body.node-list .node-list-wrap {
    grid-template-columns: 160px 1fr;
    gap: 1rem;
  }
}
@media (max-width: 560px) {
  body.node-list .node-list-wrap {
    grid-template-columns: 1fr;
  }
  body.node-list .node-list-image img {
    height: 180px !important;
  }
}
