/* FishDog redesign — global chrome stylesheet (soft brutalism)
   ------------------------------------------------------------------
   Styles the new-design header + footer rendered by SharedHeader /
   SharedFooter on every legacy (c.render) page.

   SCOPING: everything is scoped under `.fd-chrome`. This is deliberate —
   the legacy ditto.css defines --red/--black/--white/--gray globally
   (hundreds of times), so the new tokens are declared ON .fd-chrome, not
   :root, and every selector is prefixed with `.fd-chrome `. That guarantees
   the new chrome cannot recolour or restyle legacy page bodies.

   When ditto.css is finally retired, the `.fd-chrome ` prefix and the
   scoped token block can be lifted to :root and this becomes the base. */

/* ---- Global refinements (legacy ditto bodies) -------------------------------
   ditto already shares --red (#e23b0b) and --black (#0A0A0A) with the new design
   and already loads Anybody + Work Sans, so this is a light touch, not a reskin:
   warm the surface token to cream and neutralise the token-driven hard-offset
   shadow that the refined direction drops. (28 *literal* per-component shadows
   remain — flatten those deliberately, with eyes on, not blind.) */
:root{
  --white:#fffdf9;        /* warm cream replaces #FFFFFF site-wide */
  --shadow:0 0 0;         /* neutralise token-driven hard-offset shadows */
  --gray-light:#f6f3ec;   /* warm paper replaces the cool #F3F4F6 section gray */
}
body{ background:#fffdf9; }

/* Flatten the brutalist hard-offset drop shadows on legacy content components.
   !important is intentional: ditto applies these via page-prefixed selectors
   ( .research-study-detail-page .article-related-card ) that out-specify a bare
   class override. The refined direction drops the hard shadow entirely. */
.card, .news-card, .benchmark-card, .article-related-card, .product-release-card,
.product-release-empty, .product-release-breaking-callout, .product-release-intro,
.consumer-chart-card, .michigan-chart-card, .card-label, .method-number,
.author-avatar, .terminal-block,
.case-study-media img, .article-featured-image img, .article-content img,
.seeds-article-content img, .product-release-detail-media img{
  box-shadow:none !important;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover,
.author-social-link:hover, .article-cta .btn-primary:hover{
  box-shadow:none !important;
  transform:none !important;
}

.fd-chrome{
  --red:#e23b0b; --black:#0a0a0a; --white:#fffdf9; --gray:#57544e; --rule:#d8d4cc;
  --petrol:#0e2329; --teal:#2e7d77; --teal-soft:#9cc4c0;  /* V3 cool tokens */
  font-family:'Work Sans',sans-serif;
  -webkit-font-smoothing:antialiased;
}
.fd-chrome *{box-sizing:border-box}
.fd-chrome a{color:inherit}
.fd-chrome .wrap{max-width:1280px;margin:0 auto;padding:0 32px}

/* Nav */
.fd-chrome nav{border-bottom:2px solid var(--black);position:sticky;top:0;background:var(--white);z-index:50}
.fd-chrome .nav-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.fd-chrome .brand{display:flex;align-items:center;gap:10px;font-family:'Anybody',sans-serif;font-weight:800;font-size:22px;text-decoration:none;color:var(--red);letter-spacing:-0.01em}
.fd-chrome .brand-mark{height:34px;width:auto;display:block}
.fd-chrome .nav-links{display:flex;gap:28px;align-items:center;font-size:15px;font-weight:600}
.fd-chrome .nav-links a{text-decoration:none;color:var(--black)}
.fd-chrome .nav-links a:hover{color:var(--red)}
.fd-chrome .nav-cta{background:var(--red);color:var(--white)!important;padding:10px 22px}
.fd-chrome .nav-cta:hover{background:var(--black)}
@media(max-width:820px){.fd-chrome .nav-links a:not(.nav-cta){display:none}}
.fd-chrome .nav-dd{position:relative;align-self:stretch;display:flex;align-items:center}
.fd-chrome .nav-dd-trigger{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--black)}
.fd-chrome .nav-dd-trigger .caret{font-size:9px;color:var(--gray);transition:transform .15s,color .15s}
.fd-chrome .nav-dd:hover .nav-dd-trigger{color:var(--red)}
.fd-chrome .nav-dd:hover .nav-dd-trigger .caret{transform:rotate(180deg);color:var(--red)}
.fd-chrome .nav-dd-menu{position:absolute;top:100%;left:0;background:var(--white);border:2px solid var(--black);border-top:none;min-width:210px;display:none;flex-direction:column;padding:6px 0;z-index:60}
.fd-chrome .nav-dd:hover .nav-dd-menu{display:flex}
.fd-chrome .nav-dd-menu a{padding:10px 20px;text-decoration:none;font-size:15px;font-weight:500;color:var(--black);white-space:nowrap}
.fd-chrome .nav-dd-menu a:hover{color:var(--red)}
@media(max-width:820px){.fd-chrome .nav-dd{display:none}}

/* Newsletter — V3: top of the petrol footer block */
.fd-chrome .news{padding:84px 0 56px;border-top:2px solid var(--black);background:var(--petrol)}
.fd-chrome .news-inner{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.fd-chrome .news h2{font-family:'Anybody',sans-serif;font-weight:800;font-size:clamp(30px,3.6vw,46px);line-height:1.05;letter-spacing:-0.01em;color:var(--white);margin:0}
.fd-chrome .news h2 .accent{color:var(--red)}
.fd-chrome .news p{font-size:18px;color:var(--teal-soft);margin-top:14px;max-width:42ch}
.fd-chrome .news-form iframe{width:100%;max-width:560px}
@media(max-width:820px){.fd-chrome .news-inner{grid-template-columns:1fr;gap:32px}}

/* Footer — V3 petrol */
.fd-chrome footer{background:var(--petrol);color:var(--white);padding:74px 0 28px}
.fd-chrome .foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1.1fr 0.8fr;gap:48px;padding-bottom:52px;border-bottom:1px solid rgba(255,253,249,0.18)}
.fd-chrome .foot-col h3{font-family:'Space Mono',monospace;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:var(--teal);margin:0 0 18px}
.fd-chrome .foot-col ul{list-style:none;padding:0;margin:0}
.fd-chrome .foot-col li{margin-bottom:11px}
.fd-chrome .foot-col a{color:var(--white);text-decoration:none;font-size:15px;opacity:.82}
.fd-chrome .foot-col a:hover{opacity:1;color:var(--red)}
.fd-chrome .foot-addr{font-size:14px;line-height:1.55;color:rgba(255,253,249,0.7);margin:0 0 16px}
.fd-chrome .foot-addr strong{color:var(--white)}
.fd-chrome .foot-social{width:42px;height:42px;border:2px solid var(--white);display:flex;align-items:center;justify-content:center;color:var(--white)}
.fd-chrome .foot-social:hover{background:var(--red);border-color:var(--red)}
.fd-chrome .foot-bottom{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding-top:26px;font-family:'Space Mono',monospace;font-size:12px;color:rgba(255,253,249,0.6)}
.fd-chrome .foot-bottom p{margin:0}
.fd-chrome .foot-legal{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:0}
.fd-chrome .foot-legal a{color:rgba(255,253,249,0.6);text-decoration:none}
.fd-chrome .foot-legal a:hover{color:var(--red)}
@media(max-width:820px){.fd-chrome .foot-grid{grid-template-columns:1fr 1fr;gap:36px}}
@media(max-width:520px){.fd-chrome .foot-grid{grid-template-columns:1fr}}
