/* FitBroResearch: shared styles for every page.
   Editorial layout inspired by product-review sites: heavy sans headlines,
   serif body, off-white page, white cards, black buttons. Teal is the brand accent. */
:root {
  --mist: #F7F7F5;      /* page background */
  --paper: #FFFFFF;     /* cards, header */
  --ink: #121212;       /* headlines, buttons */
  --slate: #333333;     /* body text */
  --muted: #666666;
  --rule: #DCDCDC;
  --fee-free: #0F766E;  /* brand teal; also "no fee" */
  --fee-paid: #B45309;
  --device: #2B2B2B;
  --opt: #7C8B98;
  --serif: "Literata", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--slate); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.65; }
a { color: var(--ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--fee-free); outline-offset: 3px; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 43rem; margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: .6rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.logo-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.logo-fit { color: var(--ink); }
.logo-res { color: var(--fee-free); }
.util-nav { display: flex; gap: 1.25rem; font-family: var(--sans); font-size: .9rem; }
.util-nav a { text-decoration: none; }
.util-nav a:hover { text-decoration: underline; }
.cat-nav .wide { display: flex; justify-content: center; gap: 2rem; padding-top: .35rem; padding-bottom: .85rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cat-nav a { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding-bottom: .2rem; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.disclosure-bar { font-family: var(--sans); font-size: .85rem; text-align: center; padding: .8rem 1.25rem; margin: 0; color: var(--slate); }
.disclosure-bar a { font-weight: 700; text-decoration: none; }
.disclosure-bar a:hover { text-decoration: underline; }

/* ---------- Article header ---------- */
.intro { padding-top: 1.75rem; padding-bottom: 1.5rem; }
.kicker { font-family: var(--sans); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.kicker + h1 { border-top: 6px solid var(--ink); padding-top: .75rem; }
h1 { font-family: var(--sans); color: var(--ink); font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-family: var(--sans); color: var(--ink); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .75rem; }
h3 { font-family: var(--sans); color: var(--ink); font-weight: 800; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.dek { font-size: 1.25rem; line-height: 1.55; margin: 0 0 1.1rem; }
.checked { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: 0; }
.meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-family: var(--sans); font-size: .95rem; margin: 0 0 1.25rem; }
.pill { display: inline-block; background: #CDEFE6; color: #0B4F49; font-weight: 700; font-size: .78rem; padding: .15rem .55rem; border-radius: 4px; }
.byline { display: flex; gap: .8rem; align-items: flex-start; font-family: var(--sans); font-size: .88rem; line-height: 1.45; margin: 0; }
.byline svg { width: 2.6rem; height: 2.6rem; flex: none; }
.byline p { margin: 0; }
.byline strong { color: var(--ink); }
.hero { max-width: 64rem; margin: 0 auto 1rem; padding: 0 1.25rem; }
.hero img { display: block; width: 100%; height: auto; }
.hero figcaption { font-family: var(--sans); font-size: .8rem; color: var(--muted); text-align: right; margin-top: .35rem; }
section { padding: 2.25rem 0; }

/* ---------- Shared components ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; background: var(--ink); color: #fff; text-decoration: none; padding: .9rem 1.6rem; border-radius: 4px; text-align: center; }
.btn:hover { background: #3A3A3A; }
.btn-note { display: block; font-family: var(--sans); font-size: .85rem; margin-top: .55rem; }
details { background: var(--paper); border: 1px solid var(--rule); margin-bottom: .6rem; }
summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--sans); font-weight: 700; color: var(--ink); }
details p { margin: 0; padding: 0 1.2rem 1.1rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose h2 { margin-top: 2.25rem; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--ink); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.panel p { margin: 0; }
.email { font-family: var(--sans); font-weight: 800; font-size: 1.2rem; word-break: break-all; }

/* Disclosure + sources at the end of an article */
.end-notes { font-family: var(--sans); font-size: .9rem; line-height: 1.6; border-top: 1px solid var(--rule); }
.end-notes h2 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.end-notes ul { padding-left: 1.1rem; margin: 0; }

/* ---------- Homepage ---------- */
.home-lead { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding: 2rem 0 1rem; }
.story { display: block; text-decoration: none; color: var(--slate); }
.story img { display: block; width: 100%; height: auto; margin-bottom: .9rem; }
.story .kicker { margin-bottom: .4rem; }
.story h2, .story h3 { margin-bottom: .5rem; }
.story:hover h2, .story:hover h3 { text-decoration: underline; }
.story p { margin: 0 0 .5rem; }
.story .go { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .95rem; }
.side-stack { display: grid; gap: 1.5rem; align-content: start; }
.side-box { border-top: 1px solid var(--ink); padding-top: .9rem; font-family: var(--sans); font-size: .95rem; line-height: 1.5; }
.side-box h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.side-box p { margin: 0 0 .6rem; }
.section-title { font-family: var(--sans); font-weight: 800; font-size: 1.5rem; color: var(--ink); border-top: 6px solid var(--ink); padding-top: .6rem; margin: 0 0 1.25rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.principles div { background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem; }
.principles h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.principles p { margin: 0; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--paper); border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2rem 0 2.5rem; font-family: var(--sans); font-size: .9rem; line-height: 1.6; }
.foot-grid { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; align-items: flex-start; }
.foot-grid .logo { font-size: 1.25rem; }
.foot-grid .logo-mark { width: 1.7rem; height: 1.7rem; }
.foot-tag { margin: .6rem 0 0; max-width: 22rem; }
.foot-nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.foot-nav a { font-weight: 600; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { color: var(--muted); font-size: .82rem; margin-top: 1.5rem; }
.foot-legal p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .logo { font-size: 1.3rem; }
  .logo-mark { width: 1.8rem; height: 1.8rem; }
  .cat-nav .wide { justify-content: flex-start; gap: 1.5rem; }
  .cat-nav a { font-size: .98rem; }
  .hero { padding: 0; }
  .home-lead, .principles { grid-template-columns: 1fr; }
}
