/* =========================================================
   portal.css — "Clinical Journal"
   Loaded LAST on portal pages. Turns the site's landing-page
   look into an editorial/medical-journal one: paper-white
   surfaces, a single green accent, hairline rules, generous
   measure, card grids. Does not touch legacy landing markup
   except through the shared header/footer.
   ========================================================= */

/* Tokens + page atmosphere live on <body class="portal">, so the shared
   header, breadcrumbs and footer can use them. Every *component* rule below
   is scoped to .pbody — the wrapper around portal-generated content — so the
   legacy Force X landing embedded in /products/force-x/ keeps its own
   .section / .container styling untouched. */
.portal, .pbody,
.portal-header, .portal-footer, .portal-explore, .breadcrumbs {
  --paper:        #ffffff;
  --paper-2:      #f7f9f7;
  --paper-3:      #eef3ef;
  --ink:          #16211b;
  --ink-2:        #3d4c44;
  --ink-3:        #6b7a71;
  --rule:         #dde5df;
  --rule-soft:    #e9efea;
  --accent:       #12503a;
  --accent-2:     #1c7a56;
  --accent-pale:  #e4f1e9;
  --gold:         #a8862f;
  --danger:       #a33a24;

  --measure: 42rem;
  --shell:  1220px;

  --font-ui:      'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-read:    'Fraunces', Georgia, 'Times New Roman', serif;

  color: var(--ink);
  font-family: var(--font-ui);
}
.portal {
  background: var(--paper) !important;
  background-image: none !important;
}
.portal::before, .portal::after { content: none !important; }

.pbody .container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
.pbody .container-narrow { max-width: 46rem; }

.pbody a { color: var(--accent); text-underline-offset: 2px; }
.pbody a:hover { color: var(--accent-2); }

/* main.js tags every section with .reveal-up (opacity:0 until observed).
   On an editorial site that is a needless LCP and no-JS risk — the portal
   opts out and renders its content immediately. */
.portal .reveal-up { opacity: 1 !important; transform: none !important; }

.pbody h1, .pbody h2, .pbody h3, .pbody h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.015em; line-height: 1.15; }

.pbody .eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .75rem;
}

.pbody .btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem;
  border-radius: 8px; font-weight: 650; font-size: .96rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pbody .btn-primary { background: var(--accent); color: #fff; }
.pbody .btn-primary:hover { background: var(--accent-2); color: #fff; }
.pbody .btn-ghost { background: transparent; color: var(--accent); border-color: var(--rule); }
.pbody .btn-ghost:hover { background: var(--paper-2); border-color: var(--accent-2); }

/* ---------------------------------------------------------
   1. Header
   --------------------------------------------------------- */
.portal-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}
.portal-header .header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.portal-header .brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.portal-header .brand-logo { border-radius: 8px; }
.portal-header .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.portal-header .brand-text strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em; }
.portal-header .brand-tag { font-size: .7rem; color: var(--ink-3); letter-spacing: .04em; }

.portal-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.portal-nav .nav-link {
  display: inline-block; padding: .5rem .7rem; border-radius: 7px;
  font-size: .93rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.portal-nav .nav-link:hover { background: var(--paper-2); color: var(--accent); }
.portal-nav .nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-pale); }

.portal-nav .nav-item { position: relative; }
.portal-nav .mega-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 460px;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20,40,30,.13); padding: .9rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.portal-nav .mega-panel-narrow { min-width: 340px; }
.portal-nav .nav-item:hover .mega-panel,
.portal-nav .nav-item:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.portal-nav .mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.portal-nav .mega-grid-2 { grid-template-columns: 1fr 1fr; }
.portal-nav .mega-link {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem;
  border-radius: 9px; text-decoration: none; color: var(--ink);
}
.portal-nav .mega-link:hover { background: var(--paper-2); }
.portal-nav .mega-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; color: var(--accent-2); }
.portal-nav .mega-link strong { display: block; font-size: .9rem; font-weight: 650; }
.portal-nav .mega-link em { display: block; font-size: .76rem; color: var(--ink-3); font-style: normal; }
.portal-nav .mega-link-plain { font-size: .89rem; font-weight: 550; }
.portal-nav .mega-all { display: block; margin-top: .5rem; padding: .5rem .6rem; font-size: .85rem; font-weight: 650; }

.portal-header .burger-btn { display: none; }

/* ---------------------------------------------------------
   2. Breadcrumbs
   --------------------------------------------------------- */
.breadcrumbs { border-bottom: 1px solid var(--rule-soft); background: var(--paper-2); }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: .6rem 0; display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .82rem; color: var(--ink-3);
}
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .crumb-current span { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------
   3. Section rhythm
   --------------------------------------------------------- */
.pbody .section { padding: clamp(2.75rem, 5vw, 4.5rem) 0; background: transparent; }
.pbody .section-alt { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
.pbody .section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.pbody .section-title { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 .5rem; }
.pbody .section-title a { text-decoration: none; }
.pbody .section-sub { color: var(--ink-2); font-size: 1.02rem; margin: 0; }
.pbody .section-more { margin-top: 1.75rem; font-weight: 650; font-size: .95rem; }

/* ---------------------------------------------------------
   4. Home hero
   --------------------------------------------------------- */
.pbody .hub-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule-soft); }
.pbody .hub-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.pbody .hub-h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); margin: 0 0 1rem; }
.pbody .hub-lede { font-size: clamp(1.02rem, 1.2vw, 1.16rem); color: var(--ink-2); line-height: 1.65; max-width: 36rem; margin: 0 0 1.75rem; }
.pbody .hub-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.pbody .hub-stats { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem; justify-content: start; }
.pbody .hub-stats li { display: flex; flex-direction: column; }
.pbody .hub-stats strong { font-family: var(--font-display); font-size: 1.55rem; color: var(--accent); line-height: 1; }
.pbody .hub-stats span { font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }
.pbody .hub-hero-media img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--rule); display: block; }

/* ---------------------------------------------------------
   5. Category cards
   --------------------------------------------------------- */
.pbody .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.pbody .cat-card {
  display: flex; align-items: flex-start; gap: .85rem; padding: 1.2rem 1.15rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pbody .cat-card:hover { border-color: var(--accent-2); box-shadow: 0 10px 26px rgba(20,60,42,.09); transform: translateY(-2px); }
.pbody .cat-icon {
  flex: 0 0 auto; width: 2.6rem; height: 2.6rem; padding: .55rem;
  border-radius: 11px; background: var(--accent-pale); border: 1px solid #cbe4d5;
  color: var(--accent); stroke-width: 1.7;
}
.pbody .cat-body { display: flex; flex-direction: column; gap: .3rem; }
.pbody .cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.pbody .cat-desc { font-size: .875rem; color: var(--ink-3); line-height: 1.5; }
.pbody .cat-arrow { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------
   6. Article cards
   --------------------------------------------------------- */
.pbody .art-grid { display: grid; gap: 1.5rem; }
.pbody .art-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pbody .art-grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.pbody .art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pbody .art-card:hover { border-color: var(--accent-2); box-shadow: 0 12px 30px rgba(20,60,42,.09); }
.pbody .art-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-3); }
.pbody .art-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbody .art-card-body { padding: 1.1rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.pbody .art-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.pbody .art-card-title { font-size: 1.12rem; margin: 0; line-height: 1.25; }
.pbody .art-card-title a { text-decoration: none; color: var(--ink); }
.pbody .art-card-title a:hover { color: var(--accent); }
.pbody .art-card-lede { font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------
   7. Ingredient cards
   --------------------------------------------------------- */
.pbody .ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.pbody .ing-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pbody .ing-card:hover { border-color: var(--accent-2); box-shadow: 0 10px 26px rgba(20,60,42,.09); transform: translateY(-2px); }
.pbody .ing-card-media { display: block; aspect-ratio: 1/1; background: var(--paper-3); }
.pbody .ing-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbody .ing-card-body { padding: .8rem .85rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.pbody .ing-card-name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink); }
.pbody .ing-card-latin { font-size: .76rem; color: var(--ink-3); font-style: italic; margin-bottom: .35rem; }

/* Evidence badges */
.pbody .evidence-badge {
  display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 5px; border: 1px solid;
}
.pbody .evidence-strong    { color: #15603f; background: #e2f2e8; border-color: #b9dcc8; }
.pbody .evidence-moderate  { color: #6b5310; background: #f7f0dc; border-color: #e2d3a6; }
.pbody .evidence-limited   { color: #4d5560; background: #eef1f4; border-color: #d5dbe2; }
.pbody .evidence-contested { color: #8a3520; background: #f8e9e4; border-color: #e8cabe; }

/* ---------------------------------------------------------
   8. Product cards
   --------------------------------------------------------- */
.pbody .prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; }
.pbody .prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pbody .prod-card:hover { border-color: var(--accent-2); box-shadow: 0 12px 30px rgba(20,60,42,.09); }
/* Fixed media height, not aspect-ratio: product shots arrive in wildly
   different proportions (square boxes, tall bottles) and an aspect-ratio box
   lets the tall ones push their card out of alignment with the row. */
.pbody .prod-card-media { display: flex; align-items: center; justify-content: center; height: 210px; background: var(--paper-2); padding: .85rem; overflow: hidden; }
.pbody .prod-card-media picture { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.pbody .prod-card-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pbody .prod-card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pbody .prod-cat { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }
.pbody .prod-card-title { font-size: 1.08rem; margin: 0; }
.pbody .prod-card-title a { text-decoration: none; color: var(--ink); }
.pbody .prod-card-title a:hover { color: var(--accent); }
.pbody .prod-card-tagline { font-size: .875rem; color: var(--ink-2); line-height: 1.5; margin: 0; }
.pbody .prod-card-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; font-size: .78rem; color: var(--ink-3); }
.pbody .prod-price { font-weight: 700; color: var(--gold); font-size: .92rem; }
.pbody .prod-ings { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 0; padding: 0; }
.pbody .prod-ings li a {
  display: inline-block; font-size: .74rem; padding: .18rem .45rem; border-radius: 5px;
  background: var(--accent-pale); color: var(--accent); text-decoration: none;
}
.pbody .prod-ings li a:hover { background: var(--accent); color: #fff; }
.pbody .prod-card-link { margin-top: auto; padding-top: .6rem; font-size: .88rem; font-weight: 650; text-decoration: none; }

/* ---------------------------------------------------------
   9. Comparison table
   --------------------------------------------------------- */
.pbody .table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.pbody .compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.pbody .compare-table th, .pbody .compare-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.pbody .compare-table thead th { background: var(--paper-2); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pbody .compare-table tbody th { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.pbody .compare-table tbody tr:last-child th, .pbody .compare-table tbody tr:last-child td { border-bottom: 0; }
.pbody .compare-table tbody tr:hover { background: var(--paper-2); }

/* ---------------------------------------------------------
   10. Category / article / ingredient / product heroes
   --------------------------------------------------------- */
.pbody .cat-hero, .pbody .art-hero, .pbody .ing-hero, .pbody .prod-hero {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule-soft);
}
.pbody .cat-hero h1, .pbody .art-hero h1 { font-size: clamp(1.9rem, 4vw, 2.95rem); margin: 0 0 .85rem; max-width: 26ch; }
.pbody .cat-lede, .pbody .art-lede { font-size: clamp(1.02rem, 1.15vw, 1.15rem); color: var(--ink-2); line-height: 1.65; max-width: 46rem; margin: 0; }
.pbody .art-meta { margin-top: 1rem; font-size: .82rem; color: var(--ink-3); }
.pbody .art-hero-media { margin-top: 1.75rem; }
.pbody .art-hero-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 16px; border: 1px solid var(--rule); display: block; }

.pbody .ing-hero-inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.pbody .ing-hero-img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; border: 1px solid var(--rule); display: block; }
.pbody .ing-hero-text h1 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin: 0 0 .35rem; }
.pbody .ing-latin { font-size: 1rem; color: var(--ink-3); margin: 0 0 .9rem; }
.pbody .ing-summary { font-size: 1.05rem; color: var(--ink-2); line-height: 1.65; margin: 1rem 0 .9rem; }
.pbody .ing-cats { font-size: .88rem; color: var(--ink-3); margin: 0; }

.pbody .prod-hero-inner { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.pbody .prod-hero-img { width: 100%; height: auto; object-fit: contain; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem; display: block; }
.pbody .prod-hero-text h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .85rem; }
.pbody .prod-hero-lede { font-size: 1.05rem; color: var(--ink-2); line-height: 1.65; margin: 0 0 1.25rem; }
.pbody .prod-hero-facts { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.pbody .prod-hero-facts li { display: grid; grid-template-columns: 150px 1fr; gap: .75rem; font-size: .9rem; }
.pbody .prod-hero-facts strong { color: var(--ink-3); font-weight: 650; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding-top: .1rem; }
.pbody .prod-hero-facts span { color: var(--ink-2); }
.pbody .prod-hero-note { font-size: .85rem; color: var(--ink-3); border-left: 3px solid var(--accent-pale); padding-left: .85rem; margin: 0; }

/* ---------------------------------------------------------
   11. Long-form prose
   --------------------------------------------------------- */
.pbody .prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.pbody .prose p { margin: 0 0 1.1rem; }
.pbody .prose-lede { font-size: 1.14rem; line-height: 1.7; color: var(--ink); }
.pbody .prose-section { margin-bottom: 2.4rem; scroll-margin-top: 90px; }
.pbody .prose-section h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 .9rem; padding-top: .5rem;
  color: var(--ink);
}
.pbody .prose-section h2::after { content: ""; display: block; width: 42px; height: 2px; background: var(--accent); margin-top: .65rem; }
.pbody .prose strong { color: var(--ink); font-weight: 700; }
.pbody .prose em { font-style: italic; }
.pbody .prose a { text-decoration: underline; }

.pbody .toc {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.15rem 1.35rem; margin: 0 0 2.5rem;
}
.pbody .toc-title { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .65rem; font-family: var(--font-ui); font-weight: 700; }
.pbody .toc-list { margin: 0; padding-left: 1.15rem; display: grid; gap: .4rem; font-size: .93rem; }
.pbody .toc-list a { text-decoration: none; }
.pbody .toc-list a:hover { text-decoration: underline; }

/* At-a-glance fact box */
.pbody .factbox { background: var(--accent-pale); border: 1px solid #cbe4d5; border-radius: 14px; padding: 1.35rem 1.5rem; }
.pbody .factbox-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; font-family: var(--font-ui); font-weight: 700; }
.pbody .factbox-list { margin: 0; display: grid; gap: .55rem; }
.pbody .factbox-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; font-size: .92rem; }
.pbody .factbox-list dt { color: var(--ink-3); font-weight: 600; }
.pbody .factbox-list dd { margin: 0; color: var(--ink); font-weight: 600; }

/* Editorial note */
.pbody .editorial-note { border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 12px 12px 0; padding: 1.35rem 1.5rem; }
.pbody .editorial-note h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.pbody .editorial-note p { font-size: .95rem; color: var(--ink-2); line-height: 1.65; margin: 0 0 .65rem; }
.pbody .editorial-note-links { font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------
   12. FAQ
   --------------------------------------------------------- */
.pbody .faq-section { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
.pbody .faq-list { display: grid; gap: .6rem; }
.pbody .faq-item { background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.pbody .faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; padding: .95rem 1.15rem; font-weight: 650; font-size: 1rem;
  color: var(--ink); list-style: none;
}
.pbody .faq-item summary::-webkit-details-marker { display: none; }
.pbody .faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--accent); line-height: 1; flex: 0 0 auto; }
.pbody .faq-item[open] summary::after { content: "–"; }
.pbody .faq-item[open] summary { border-bottom: 1px solid var(--rule-soft); }
.pbody .faq-answer { padding: .95rem 1.15rem 1.15rem; }
.pbody .faq-answer p { margin: 0; font-size: .96rem; line-height: 1.7; color: var(--ink-2); }

/* ---------------------------------------------------------
   13. Related rail
   --------------------------------------------------------- */
.pbody .related-section { border-top: 1px solid var(--rule); padding-block: clamp(2rem, 4vw, 3rem); }
.pbody .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.pbody .related-heading { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8rem; font-family: var(--font-ui); font-weight: 700; }
.pbody .related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pbody .related-links a { font-size: .93rem; text-decoration: none; color: var(--ink-2); line-height: 1.4; display: block; }
.pbody .related-links a:hover { color: var(--accent); text-decoration: underline; }

/* Injected into legacy pages by patch-nav.js */
.portal-explore { border-top: 1px solid var(--rule, #dde5df); background: #f7f9f7; padding: 2.5rem 0; font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.portal-explore .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
.portal-explore .related-heading { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7a71; margin: 0 0 .8rem; font-weight: 700; }
.portal-explore .related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.portal-explore .related-links a { font-size: .93rem; text-decoration: none; color: #3d4c44; }
.portal-explore .related-links a:hover { color: #12503a; text-decoration: underline; }

/* ---------------------------------------------------------
   14. Legacy landing embedded on /products/force-x/
   --------------------------------------------------------- */
.pbody .legacy-landing { margin-top: 0; }
.pbody .legacy-landing .container { max-width: var(--shell); }

/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */
.portal-footer { background: #10231a; color: #c8d6cd; border-top: 0; margin-top: 0; }
.portal-footer .footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(6, minmax(0, 1fr));
  gap: 2rem; padding: clamp(2.5rem, 5vw, 3.75rem) 20px;
  max-width: 1220px; margin-inline: auto;
}
.portal-footer .footer-brand img { border-radius: 10px; margin-bottom: .9rem; }
.portal-footer .footer-tagline { font-size: .88rem; line-height: 1.6; color: #a9bcb1; margin: 0 0 .6rem; }
.portal-footer .footer-tagline strong { color: #fff; }
.portal-footer .footer-note { font-size: .78rem; color: #7d9488; margin: 0; }
.portal-footer .footer-heading { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: #6e8a7a; margin: 0 0 .8rem; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; }
.portal-footer .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.portal-footer .footer-links a { font-size: .86rem; color: #c8d6cd; text-decoration: none; line-height: 1.35; }
.portal-footer .footer-links a:hover { color: #fff; text-decoration: underline; }
.portal-footer .footer-links-compact { grid-template-columns: 1fr 1fr; gap: .4rem .75rem; }
.portal-footer .footer-disclaimer-bar { border-top: 1px solid rgba(255,255,255,.09); background: #0c1b14; }
.portal-footer .footer-disclaimer-bar p { max-width: 1220px; margin-inline: auto; padding: 1.15rem 20px; font-size: .78rem; line-height: 1.6; color: #86a08f; }
.portal-footer .footer-disclaimer-bar strong { color: #b9cec1; }
.portal-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.09); }
.portal-footer .footer-bottom p { max-width: 1220px; margin-inline: auto; padding: 1rem 20px; font-size: .8rem; color: #7d9488; }

/* ---------------------------------------------------------
   16. Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .portal-footer .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .portal-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .pbody .hub-hero-inner { grid-template-columns: 1fr; }
  .pbody .hub-hero-media { order: -1; }
  .pbody .ing-hero-inner, .pbody .prod-hero-inner { grid-template-columns: 1fr; }
  .pbody .ing-hero-media { max-width: 260px; }
  .pbody .prod-hero-media { max-width: 280px; }
}

/* The nav switches at 1024px, matching the breakpoint main.css/mobile.css
   already use for the burger — the two systems must agree or the menu ends
   up hidden with no way to open it. Scoped to .portal-header so the legacy
   pages, which get the same header markup from patch-nav.js, behave alike. */
@media (max-width: 1024px) {
  .portal-header .burger-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; margin-left: auto; padding: 0 9px;
    background: transparent; border: 1px solid var(--rule); border-radius: 9px; cursor: pointer;
  }
  .portal-header .burger-btn span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .portal-header .burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .portal-header .burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .portal-header .burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Selectors are deliberately two/three classes deep: mobile.css already
     styles `.nav-menu.is-open` as a full-screen white panel, and a one-class
     `.portal-nav` rule loses to it even though portal.css loads later. */
  .portal-header .portal-nav {
    display: none;
    position: fixed; inset: 60px 0 0 0; flex-direction: column; align-items: stretch;
    gap: 0; z-index: 998;
    /* !important: redesign.css paints .nav-menu.is-open with an !important
       mint gradient, which nothing but !important can displace. */
    background: #fff !important;
    padding: 1rem 20px 3rem; overflow-y: auto;
    box-shadow: 0 20px 40px rgba(20,40,30,.12);
  }
  .portal-header .portal-nav.is-open { display: flex; }
  .portal-header .portal-nav .nav-link {
    padding: .85rem .25rem; margin: 0; min-height: 0;
    border: 0; border-bottom: 1px solid var(--rule-soft); border-radius: 0;
    font-size: 1.05rem; font-weight: 700; background: transparent; color: var(--ink) !important;
  }
  .portal-header .portal-nav .nav-link:hover,
  .portal-header .portal-nav .nav-link.is-active { background: transparent; }
  .portal-header .portal-nav .nav-item { display: block; }
  /* On mobile the panels are always expanded — every destination stays one
     tap away instead of hiding behind a hover interaction that has no
     touch equivalent. */
  .portal-header .portal-nav .mega-panel {
    position: static; opacity: 1; visibility: visible; transform: none; display: block;
    min-width: 0; border: 0; box-shadow: none; padding: .5rem 0 1rem; background: transparent;
  }
  .portal-header .portal-nav .mega-grid { grid-template-columns: 1fr 1fr; gap: .1rem .5rem; }
  .portal-header .portal-nav .mega-link { padding: .55rem .25rem; }
  /* The "<topic> guide" second line only repeats the label on a narrow panel. */
  .portal-header .portal-nav .mega-link em { display: none; }
  .portal-header .portal-nav .mega-all { padding: .55rem .25rem; }
}

@media (max-width: 640px) {
  .pbody .hub-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pbody .factbox-list > div, .pbody .prod-hero-facts li { grid-template-columns: 1fr; gap: .1rem; }
  .pbody .ing-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .pbody .prod-grid { grid-template-columns: 1fr; }
  .pbody .art-grid-2, .pbody .art-grid-3 { grid-template-columns: 1fr; }
  .portal-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .portal-nav .mega-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pbody *, .pbody *::before, .pbody *::after { transition: none !important; animation: none !important; }
}
