/* ==========================================================================
   Gut Health Guide — independent digestive-health magazine
   Magazine front · clean medical blue · grotesk headlines + serif body
   Built from scratch — masthead with category nav, lead split, front grid +
   sidebar rail, data-sheet app profiles. No listicle-landing clichés.
   ========================================================================== */

:root {
  --paper:   #ffffff;
  --bg:      #f2f4f8;
  --soft:    #f7f9fc;
  --ink:     #121726;
  --ink-2:   #49506333;  /* placeholder, overridden below */
  --ink-2:   #4a5163;
  --ink-3:   #868da0;
  --line:    #e5e8f0;
  --line-2:  #d4d9e6;

  --blue:      #1b56d6;
  --blue-2:    #103fab;
  --blue-tint: #e8eefc;
  --navy:      #0d1530;
  --navy-2:    #18224a;

  --ok:   #1f9d57;
  --warn: #c08a2e;

  --shadow-sm: 0 1px 2px rgba(18,23,38,.05);
  --shadow:    0 10px 34px -20px rgba(18,23,38,.34);

  --rad:    12px;
  --rad-sm: 8px;
  --maxw:   1180px;
  --reads:  720px;

  --sans:    "Libre Franklin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; line-height: 1.1; letter-spacing: -.018em; color: var(--ink); margin: 0; }

.wrap  { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.reads { max-width: var(--reads); }

/* tiny uppercase kicker */
.kick { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.kick.alt { color: var(--ink-3); }

/* ====== ribbon (thin utility bar) ======================================== */
.ribbon { background: var(--navy); color: #aab3cf; font-size: 12.5px; }
.ribbon .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.ribbon a { color: #cdd4e8; margin-left: 18px; font-weight: 600; }
.ribbon a:hover { color: #fff; text-decoration: none; }
@media (max-width: 620px) { .ribbon .r-left { display: none; } .ribbon .wrap { justify-content: flex-end; } }

/* ====== masthead ========================================================= */
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.lmark { width: 40px; height: 40px; border-radius: 9px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 26px; flex-shrink: 0; }
.lname { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.ltag { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) { .ltag { display: none; } .lname { font-size: 23px; } }

/* ====== category nav ===================================================== */
.catnav { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.catnav .wrap { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 13px 15px; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; }
.catnav a:hover { color: var(--ink); text-decoration: none; }
.catnav a.on { color: var(--blue); border-bottom-color: var(--blue); }
.catnav .cn-cta { margin-left: auto; color: var(--blue); }
.catnav .cn-cta:hover { color: var(--blue-2); }

/* ====== buttons ========================================================== */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 14.5px; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  transition: background .16s, border-color .16s, color .16s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(2px); }

/* ====== LEAD (front split) =============================================== */
.lead { display: grid; grid-template-columns: 1.65fr 1fr; gap: 36px; padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.lead-main .lead-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--rad); border: 1px solid var(--line); }
.lead-main h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 18px 0 0; max-width: 17ch; }
.lead-main .dek { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 16px 0 0; max-width: 56ch; }
.lead-main .by { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.lead-main .by b { color: var(--ink-2); }
.lead-main .lead-cta { margin-top: 22px; }

.lead-side { border-left: 1px solid var(--line); padding-left: 32px; }
.lead-side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 800; margin: 4px 0 4px; }
.lead-sec { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.lead-sec:first-of-type { border-top: 0; }
.lead-sec img { width: 84px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.lead-sec .lk { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lead-sec h3 { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.24; margin: 4px 0 0; }
.lead-sec a:hover h3 { color: var(--blue-2); }
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; gap: 24px; }
  .lead-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

/* ====== trust line ======================================================= */
.trustline { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 14px 0; font-size: 13px; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.trustline .ti { display: inline-flex; align-items: center; gap: 7px; }
.trustline .ti::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ====== front grid (main + aside) ======================================== */
.front { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 34px 0 10px; }
.front-main .sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.front-main .sec-h h2 { font-size: 21px; }
.front-main .sec-h a { font-size: 13px; font-weight: 700; }

.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.mcard { display: flex; flex-direction: column; }
.mcard .ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.mcard .k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 14px 0 7px; }
.mcard h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.mcard:hover h3 { color: var(--blue-2); }
.mcard p { font-size: 15px; color: var(--ink-2); margin: 9px 0 0; line-height: 1.5; }
.mcard .by { margin-top: 11px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
@media (max-width: 1040px) { .front { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mgrid { grid-template-columns: 1fr; } }

/* ====== sidebar rail ===================================================== */
.front-aside { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1041px) { .front-aside { position: sticky; top: 72px; align-self: start; } }
.rail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow-sm); }
.rail .rail-h { padding: 14px 18px; background: var(--ink); color: #fff; }
.rail .rail-h .e { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9fb0e6; }
.rail .rail-h h4 { color: #fff; font-size: 17px; margin-top: 3px; }

.toplist { list-style: none; margin: 0; padding: 4px 0; }
.toplist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: 0; }
.toplist .rk { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink-3); text-align: center; }
.toplist li.lead-row { background: var(--blue-tint); }
.toplist li.lead-row .rk { color: var(--blue); }
.toplist .nm { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.toplist .nm small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.toplist .sc { font-weight: 800; font-size: 13px; color: var(--ink); background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.toplist li.lead-row .sc { background: var(--blue); color: #fff; border-color: var(--blue); }
.rail .rail-f { padding: 12px 18px; }
.rail .rail-f a { font-size: 13px; font-weight: 700; }

/* editor pick mini card */
.pick { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; align-items: center; }
.pick img { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line); }
.pick .e { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pick h4 { font-size: 16px; margin: 3px 0 2px; }
.pick p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.pick .btn { grid-column: 1 / 3; justify-content: center; margin-top: 4px; }

.howbox { padding: 18px; }
.howbox h4 { font-size: 15px; margin-bottom: 8px; }
.howbox p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.howbox a { font-weight: 700; }

/* ====== article / post =================================================== */
.post { padding: 30px 0 10px; }
.post .backlink { display: inline-flex; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 18px; }
.post .backlink:hover { color: var(--blue-2); text-decoration: none; }
.post .pmeta { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 14px; }
.post .pmeta .c { color: var(--blue); }
.post h1 { font-size: clamp(30px, 5vw, 48px); max-width: 21ch; }
.post .standfirst { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2); margin: 18px 0 0; }
.reviewed { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 13px 16px; background: var(--soft);
  border: 1px solid var(--line); border-radius: var(--rad-sm); font-size: 13px; color: var(--ink-2); }
.reviewed .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.reviewed b { color: var(--ink); }

.article-hero { margin: 26px 0 0; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--rad); border: 1px solid var(--line); }
.article-cap { font-size: 12.5px; color: var(--ink-3); margin: 10px 2px 0; }

/* serif long-form body */
.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--sans); font-size: clamp(22px,3vw,28px); margin-top: 42px; letter-spacing: -.015em; }
.prose h3 { font-family: var(--sans); font-size: 20px; margin-top: 30px; }
.prose p { color: #29303f; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--blue-2); }
.prose ul, .prose ol { padding-left: 2px; list-style: none; }
.prose ul li, .prose ol li { padding-left: 28px; position: relative; margin: 10px 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 3px; font-family: var(--sans);
  font-size: 12px; font-weight: 800; color: #fff; background: var(--blue); width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; }
.prose blockquote { margin: 26px 0; padding: 14px 22px; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0;
  font-size: 18px; line-height: 1.55; color: var(--navy-2); }
.prose figure { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.prose table th, .prose table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table th { background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.prose table tr:nth-child(even) td { background: var(--soft); }
.tablewrap { border: 1px solid var(--line); border-radius: var(--rad-sm); overflow: hidden; }

/* article side furniture (restyled, shared class names) */
.keyfacts { font-family: var(--sans); background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--rad-sm); padding: 20px 22px; }
.keyfacts .eyebrow, .keyfacts .kick { margin-bottom: 12px; }
.keyfacts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; }
.keyfacts dt { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.keyfacts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 14.5px; }

.apprec { font-family: var(--sans); display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--rad); padding: 20px 22px; margin: 30px 0; }
.apprec img { width: 60px; height: 60px; border-radius: 14px; }
.apprec .t { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9fb0e6; font-weight: 800; }
.apprec h4 { color: #fff; font-size: 19px; margin: 4px 0 5px; }
.apprec p { margin: 0; font-size: 14px; color: #c4ccdf; }
.apprec p a { color: #fff; text-decoration: underline; }
.apprec .btn-primary { background: var(--blue); }
.apprec .btn-primary:hover { background: #2f66e6; }
@media (max-width: 620px) { .apprec { grid-template-columns: 52px 1fr; } .apprec img { width: 52px; height: 52px; } .apprec .btn { grid-column: 1/3; justify-content: center; } }

.checklist { font-family: var(--sans); background: var(--soft); border: 1px solid var(--line); border-radius: var(--rad); padding: 6px 22px; }
.checklist .ci { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.checklist .ci:last-child { border-bottom: 0; }
.checklist .ci .box { flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--blue); border-radius: 5px; position: relative; top: 3px; }
.checklist .ci b { color: var(--ink); }
.checklist .ci span { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { font-family: var(--sans); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 2px; font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: .2s; }
.faq details[open] summary .ic { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq details p { font-family: var(--serif); color: #29303f; margin: 0 2px 18px; font-size: 16.5px; }

/* read next */
.readnext { font-family: var(--sans); margin: 44px 0 8px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); }
.readnext .eyebrow, .readnext .kick { margin: 0 0 6px; }
.readnext ul { list-style: none; margin: 0; padding: 0; }
.readnext li { border-top: 1px solid var(--line); }
.readnext li:first-of-type { border-top: 0; }
.readnext a { display: block; padding: 12px 0; color: var(--ink); font-weight: 700; font-size: 16px; }
.readnext a:hover { color: var(--blue-2); text-decoration: none; }
.readnext li.all a { color: var(--blue-2); font-size: 14px; }

.disclosure { font-family: var(--sans); background: var(--soft); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 16px 20px; font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-top: 28px; }
.disclosure b { color: var(--ink-2); }
.standfirst + .reviewed { margin-top: 18px; }

/* ====== ranking page: winners + app profiles ============================= */
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 6px; }
.vcard { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--rad-sm); padding: 16px 16px 18px; }
.vcard .vt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.vcard .vn { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 6px 0 4px; color: var(--ink); }
.vcard a { font-size: 12.5px; font-weight: 700; }
@media (max-width: 820px) { .verdicts { grid-template-columns: 1fr 1fr; } }

.apps { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.appx { background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px 24px; position: relative; scroll-margin-top: 78px; }
.appx.win { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.appx-top { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; }
.appx .rank { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink-3); width: 30px; text-align: center; }
.appx.win .rank { color: var(--blue); }
.appx .ic { width: 48px; height: 48px; border-radius: 11px; border: 1px solid var(--line); }
.appx .ic.mono { display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.appx .nm h3 { font-size: 20px; display: inline; }
.appx .nm .cat { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.appx .score { text-align: center; background: var(--soft); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 12px; }
.appx.win .score { background: var(--blue); border-color: var(--blue); }
.appx .score .v { font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1; }
.appx.win .score .v { color: #fff; }
.appx .score .l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 2px; }
.appx.win .score .l { color: #cdd9fb; }

.appx .desc { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: #29303f; margin: 16px 0 0; }
.specrow { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--rad-sm); overflow: hidden; }
.specrow .sp { flex: 1 1 auto; min-width: 120px; padding: 9px 14px; border-right: 1px solid var(--line); }
.specrow .sp:last-child { border-right: 0; }
.specrow .sp .k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.specrow .sp .v { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.gw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; margin-top: 16px; font-size: 14px; }
.gw ul { list-style: none; margin: 0; padding: 0; }
.gw .h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.gw .good .h { color: var(--ok); }
.gw .watch .h { color: var(--ink-3); }
.gw li { position: relative; padding-left: 19px; margin: 5px 0; color: var(--ink-2); line-height: 1.4; }
.gw .good li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.gw .watch li::before { content: "•"; position: absolute; left: 2px; color: var(--ink-3); font-weight: 800; }
.appx .pickrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.appx .bestfor { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.appx .bestfor b { color: var(--ink-2); }
@media (max-width: 620px) {
  .appx-top { grid-template-columns: 30px 44px 1fr; }
  .appx .ic { width: 44px; height: 44px; }
  .appx .score { grid-column: 2/4; justify-self: start; display: inline-flex; align-items: baseline; gap: 8px; margin-top: 4px; padding: 5px 10px; }
  .appx .score .l { margin-top: 0; }
  .gw { grid-template-columns: 1fr; }
}

/* ====== footer =========================================================== */
.foot { background: var(--navy); color: #aab3cf; margin-top: 60px; }
.foot .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 36px; border-bottom: 1px solid rgba(255,255,255,.09); }
.foot .lname { color: #fff; }
.foot .lmark { background: var(--blue); }
.foot .blurb { font-size: 14px; max-width: 34ch; margin: 14px 0 0; color: #99a3c1; }
.foot h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #6f7aa0; margin: 0 0 12px; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; font-size: 14px; }
.foot a { color: #cdd4e8; }
.foot a:hover { color: #fff; }
.foot .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 18px 0 28px; font-size: 12.5px; color: #6f7aa0; }
@media (max-width: 760px) { .foot .top { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* ====== 404 ============================================================== */
.err { text-align: center; padding: 80px 22px 70px; }
.err .kick { color: var(--blue); }
.err h1 { font-size: clamp(36px,7vw,64px); }
.err p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 16px auto 26px; }
.err .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* generic section spacing on home */
.band { padding: 30px 0; }
.band + .band { border-top: 1px solid var(--line); }

/* ====== compatibility: legacy article/guide-body classes ================= */
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.article { padding: 30px 0 10px; }
.article > .backlink { display: inline-flex; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 18px; }
.article > .backlink:hover { color: var(--blue-2); text-decoration: none; }
.article .meta { display: flex; flex-wrap: wrap; gap: 7px 12px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 14px; }
.article .meta .c { color: var(--blue); }
.article h1 { font-size: clamp(30px, 5vw, 48px); max-width: 21ch; letter-spacing: -.018em; }
.standfirst { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2); margin: 18px 0 0; }
.byline-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); font-weight: 600; }
.byline-row b { color: var(--ink-2); }

/* legacy home/guides/about helpers */
.section-head { margin: 36px 0 18px; }
.section-head h2 { font-size: clamp(23px,3.2vw,30px); letter-spacing: -.015em; }
.section-head p { font-family: var(--serif); color: var(--ink-2); max-width: 62ch; margin: 10px 0 0; }
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(32px,5vw,50px); max-width: 20ch; letter-spacing: -.02em; }
.hero .dek { font-family: var(--serif); font-size: 19px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; line-height: 1.5; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2,1fr); }
a.gcard { display: flex; flex-direction: column; color: inherit; }
.gcard .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.gcard .gbody { padding: 14px 0 0; display: flex; flex-direction: column; flex: 1; }
.gcard .ct { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.gcard h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; }
a.gcard:hover h3 { color: var(--blue-2); }
.gcard p { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }
.gcard .more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; color: var(--blue-2); }
.gcard .more .arr { display: inline-block; transition: transform .15s; }
a.gcard:hover .more .arr { transform: translateX(3px); }
@media (max-width: 880px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.callout { background: var(--navy); color: #c4ccdf; border-radius: var(--rad); padding: 30px 32px; }
.callout .eyebrow, .callout .kick { color: #9fb0e6; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #c4ccdf; }
.callout .steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 22px; }
.callout .steps .st { border-top: 2px solid rgba(255,255,255,.16); padding-top: 12px; }
.callout .steps .st .k { font-size: 12px; color: var(--blue); font-weight: 800; }
.callout .steps .st b { display: block; color: #fff; font-size: 15px; margin: 4px 0 3px; }
.callout .steps .st span { font-size: 13.5px; color: #aab3cf; line-height: 1.45; }
@media (max-width: 720px) { .callout .steps { grid-template-columns: 1fr 1fr; } }
