/* TestPrepGo "Field Manual" design (Direction A).
   Loaded after styles.css on redesigned pages; every rule is scoped to .fm-* classes
   or to body.fm so it never changes pages that don't opt in. */

:root {
  --fm-paper: #F3EFE6;
  --fm-card: #FFFDF8;
  --fm-ink: #1B2A21;
  --fm-ink-2: #3C4A40;
  --fm-muted: #5B665E;
  --fm-rule: #D8D0BE;
  --fm-green: #22553A;
  --fm-green-dark: #163A27;
  --fm-green-tint: #E6EFE8;
  --fm-amber: #E9B872;
  --fm-red: #9F2A1B;
  --fm-red-tint: #F8E7E2;
  --fm-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fm-max: 1200px;
}

body.fm {
  margin: 0;
  background: var(--fm-paper);
  color: var(--fm-ink);
  font-family: var(--fm-sans);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.fm a { color: var(--fm-green); }
body.fm a:hover { color: var(--fm-green-dark); }
body.fm :focus-visible { outline: 3px solid var(--fm-green); outline-offset: 2px; }

.fm-wrap { max-width: var(--fm-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.fm-mono { font-family: var(--fm-mono); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.fm-eyebrow { font-family: var(--fm-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-green); margin: 0; }
.fm-display { font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.98; margin: 0; }
.fm-h2 { font-size: clamp(30px, 4vw, 40px); }
.fm-lede { font-size: 20px; line-height: 1.5; color: var(--fm-ink-2); margin: 0; max-width: 620px; }
.fm-muted { color: var(--fm-muted); }

/* Buttons */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  cursor: pointer; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
body.fm a.fm-btn--primary, .fm-btn--primary { background: var(--fm-green); color: #FFFFFF; }
body.fm a.fm-btn--primary:hover, .fm-btn--primary:hover { background: var(--fm-green-dark); color: #FFFFFF; }
body.fm a.fm-btn--outline, .fm-btn--outline { background: transparent; border-color: var(--fm-ink); color: var(--fm-ink); }
body.fm a.fm-btn--outline:hover, .fm-btn--outline:hover { background: var(--fm-ink); color: var(--fm-paper); }
.fm-btn--ink { background: var(--fm-ink); color: var(--fm-paper); }
.fm-btn--ink:hover { background: #000; }
.fm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fm-btn--block { display: flex; width: 100%; box-sizing: border-box; }
.fm-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--fm-green); text-decoration: underline; cursor: pointer; }

/* Header */
.fm-header { border-bottom: 1px solid var(--fm-rule); background: var(--fm-paper); }
.fm-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
body.fm a.fm-logo { display: flex; align-items: center; gap: 10px; color: var(--fm-ink); text-decoration: none; font-weight: 800; font-size: 20px; font-stretch: 85%; }
.fm-logo__mark { width: 32px; height: 32px; border-radius: 6px; background: var(--fm-green); display: flex; align-items: center; justify-content: center; }
.fm-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; }
body.fm .fm-nav a { color: var(--fm-ink); text-decoration: none; padding: 8px 0; }
body.fm .fm-nav a:hover { text-decoration: underline; }
body.fm .fm-nav a[aria-current="page"] { color: var(--fm-green); font-weight: 700; }

/* Breadcrumb */
.fm-crumbs { font-family: var(--fm-mono); font-size: 13px; color: var(--fm-muted); padding-top: 20px; }
body.fm .fm-crumbs a { color: var(--fm-muted); }

/* Hero */
.fm-hero { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; padding-top: 32px; padding-bottom: 56px; }
.fm-hero__main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.fm-hero h1 { font-size: clamp(40px, 6.4vw, 64px); }
.fm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--fm-rule); border-radius: 10px; background: var(--fm-card); max-width: 620px; margin: 0; }
.fm-stats > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fm-stats > div + div { border-left: 1px solid var(--fm-rule); }
.fm-stats dt { order: 2; font-size: 14px; color: var(--fm-muted); }
.fm-stats dd { order: 1; margin: 0; font-size: 32px; font-weight: 850; font-stretch: 80%; line-height: 1.05; }

/* Buy card */
.fm-buy { flex: 1 1 320px; min-width: 0; box-sizing: border-box; background: var(--fm-card); border: 2px solid var(--fm-ink); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.fm-buy__price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.fm-buy__price strong { font-size: 52px; font-weight: 850; font-stretch: 80%; line-height: 1; }
.fm-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fm-checks li { display: flex; gap: 10px; align-items: flex-start; }
.fm-checks svg { flex: none; margin-top: 3px; }
.fm-buy__already { font-size: 14px; color: var(--fm-muted); text-align: center; margin: 0; }
.fm-buy.is-licensed .fm-buy__sell { display: none; }
.fm-license { display: flex; flex-direction: column; gap: 8px; }
.fm-license[hidden] { display: none; }
.fm-license__row { display: flex; gap: 8px; }
.fm-license label { font-size: 14px; font-weight: 600; }
.fm-input { flex: 1 1 auto; min-width: 0; min-height: 46px; box-sizing: border-box; padding: 0 12px; border: 1px solid #B9AF99; border-radius: 6px; background: #FFFFFF; font: inherit; color: var(--fm-ink); }
.fm-input:focus { border-color: var(--fm-green); outline: 2px solid var(--fm-green); outline-offset: 0; }
.fm-active { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 8px; background: var(--fm-green-tint); color: var(--fm-green-dark); font-weight: 700; }

/* Dark band */
.fm-band { background: var(--fm-ink); color: var(--fm-paper); }
.fm-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; font-weight: 600; font-size: 15px; }
.fm-band__grid span { font-family: var(--fm-mono); color: var(--fm-amber); margin-right: 10px; }

/* Sections */
.fm-section { padding-top: 64px; padding-bottom: 64px; }
.fm-section--card { background: var(--fm-card); border-top: 1px solid var(--fm-rule); border-bottom: 1px solid var(--fm-rule); }
.fm-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.fm-section__head p { margin: 0; color: var(--fm-ink-2); max-width: 560px; }

/* Quiz */
.fm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fm-tab { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--fm-rule); background: var(--fm-card); color: var(--fm-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.fm-tab span { font-family: var(--fm-mono); font-size: 12px; color: var(--fm-muted); }
.fm-tab:hover { border-color: var(--fm-ink); }
.fm-tab.active { background: var(--fm-ink); border-color: var(--fm-ink); color: var(--fm-paper); }
.fm-tab.active span { color: var(--fm-amber); }

.fm-quiz { background: var(--fm-card); border: 1px solid var(--fm-rule); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--fm-rule), 0 18px 40px -28px rgba(27, 42, 33, .35); }
.fm-quiz__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 22px; border-bottom: 1px dashed var(--fm-rule); font-family: var(--fm-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-quiz__body { padding: 26px 22px; }
.fm-q__num { font-family: var(--fm-mono); font-size: 13px; font-weight: 600; color: var(--fm-green); margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.fm-q__text { font-size: 20px; line-height: 1.45; font-weight: 600; margin: 0 0 20px; }
.fm-options { display: flex; flex-direction: column; gap: 10px; }
.fm-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--fm-rule); border-radius: 6px; background: #FFFFFF; cursor: pointer; font-size: 17px; line-height: 1.4; }
.fm-option:hover { border-color: var(--fm-ink); }
.fm-option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--fm-green); flex: none; }
.fm-option:has(input:checked) { border: 2px solid var(--fm-green); background: var(--fm-green-tint); padding: 13px 15px; }
.fm-quiz__actions { display: flex; justify-content: center; margin-top: 22px; }
.fm-quiz__actions.hidden, .fm-quiz__actions [hidden], #submit-btn.hidden { display: none; }
.fm-quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px dashed var(--fm-rule); }
.fm-quiz__nav #progress { font-family: var(--fm-mono); font-size: 13px; color: var(--fm-muted); text-align: center; }

.fm-result { margin-top: 20px; padding: 16px 18px; border-radius: 6px; font-size: 16px; line-height: 1.55; }
.fm-result.hidden { display: none; }
.fm-result p { margin: 0; }
.fm-result p + p { margin-top: 8px; }
.fm-result--ok { background: var(--fm-green-tint); border: 1px solid #9DBFA8; color: var(--fm-green-dark); }
.fm-result--no { background: var(--fm-red-tint); border: 1px solid #E2B3A8; color: #6E1D12; }
.fm-result--note { background: #F3EFE6; border: 1px solid var(--fm-rule); color: var(--fm-ink); }
.fm-result strong { display: inline-flex; align-items: center; gap: 8px; }

.fm-locked { text-align: center; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fm-locked h3 { margin: 0; font-size: 26px; font-weight: 800; font-stretch: 85%; }
.fm-locked p { margin: 0 0 6px; color: var(--fm-ink-2); }
.fm-summary { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.fm-summary__score { font-size: 64px; font-weight: 850; font-stretch: 80%; line-height: 1; }
.fm-summary__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* Exam sections list */
.fm-covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; border-top: 2px solid var(--fm-ink); }
.fm-covers li { display: flex; gap: 16px; align-items: baseline; padding: 18px 2px; border-bottom: 1px solid var(--fm-rule); }
.fm-covers b { font-family: var(--fm-mono); font-size: 14px; color: var(--fm-green); }
.fm-covers strong { display: block; font-size: 19px; }
.fm-covers span { color: var(--fm-ink-2); font-size: 15px; }

/* Static sample questions + FAQ */
.fm-details { border-top: 1px solid var(--fm-rule); }
.fm-details:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-details summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fm-details summary::-webkit-details-marker { display: none; }
.fm-details summary::after { content: "+"; font-family: var(--fm-mono); color: var(--fm-green); font-size: 22px; line-height: 1; }
.fm-details[open] summary::after { content: "\2212"; }
.fm-details summary small { display: block; font-family: var(--fm-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-green); margin-bottom: 4px; }
.fm-details__body { padding: 0 0 20px; color: var(--fm-ink-2); max-width: 820px; }
.fm-details__body p { margin: 0 0 10px; }
.fm-details__body ul { margin: 0 0 10px; padding-left: 20px; }
.fm-details__body li { margin: 4px 0; }
.fm-correct { color: var(--fm-green); font-weight: 600; }

/* Resources */
.fm-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
body.fm a.fm-resource { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid #3D4D42; border-radius: 10px; color: var(--fm-paper); text-decoration: none; }
body.fm a.fm-resource:hover { border-color: var(--fm-amber); }
.fm-resource strong { font-size: 20px; }
.fm-resource span { color: #C9D2CB; font-size: 15px; }

/* Footer */
.fm-footer { background: var(--fm-ink); color: #C9D2CB; font-size: 14px; border-top: 1px solid #3D4D42; }
.fm-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.fm-footer__brand { font-weight: 800; font-size: 20px; font-stretch: 85%; color: var(--fm-paper); margin: 0 0 6px; }
.fm-footer__title { font-family: var(--fm-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--fm-amber); margin: 0 0 10px; }
.fm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.fm .fm-footer a { color: #C9D2CB; text-decoration: none; }
body.fm .fm-footer a:hover { color: var(--fm-paper); text-decoration: underline; }
.fm-footer__legal { border-top: 1px solid #3D4D42; padding-top: 20px; padding-bottom: 32px; font-size: 12px; line-height: 1.6; color: #A9B4AC; }
.fm-footer__legal p { margin: 0 0 8px; }

/* Cookie banner */
.fm-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--fm-ink); color: var(--fm-paper); border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.fm-cookie.hidden { display: none; }
.fm-cookie p { margin: 0; font-size: 14px; }

@media (max-width: 640px) {
  .fm-wrap { padding-left: 16px; padding-right: 16px; }
  .fm-nav { width: 100%; gap: 0 16px; font-size: 14px; }
  .fm-nav a { white-space: nowrap; }
  .fm-stats dd { font-size: 26px; }
  .fm-stats > div { padding: 12px; }
  .fm-quiz__body { padding: 20px 16px; }
  .fm-quiz__nav { padding: 14px 16px; }
  .fm-q__text { font-size: 18px; }
  .fm-section { padding-top: 48px; padding-bottom: 48px; }
}

/* Resource notes (no link) and secondary resource lines */
.fm-resource--note { border-style: dashed; }
.fm-resource__also { margin: 16px 0 0; color: #C9D2CB; font-size: 15px; }
.fm-resource__also strong { color: var(--fm-paper); }

/* ===================== Homepage ===================== */
.fm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-sample { flex: 1 1 380px; min-width: 0; background: var(--fm-card); border: 1px solid var(--fm-rule); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--fm-rule), 0 18px 40px -28px rgba(27, 42, 33, .35); align-self: center; }
.fm-sample .fm-q__text { font-size: 18px; }
.fm-option--correct { border: 2px solid var(--fm-green); background: var(--fm-green-tint); font-weight: 700; color: var(--fm-green-dark); padding: 13px 15px; align-items: center; cursor: default; }
.fm-sample .fm-option { cursor: default; }
.fm-sample .fm-option:not(.fm-option--correct) { padding-left: 46px; }
body.fm a.fm-sample__link { display: inline-block; margin-top: 16px; font-weight: 700; }
.fm-hero--home { padding-top: 56px; padding-bottom: 64px; align-items: center; }
.fm-hero--home h1 { font-size: clamp(42px, 6.6vw, 72px); }

body.fm-home .tpg-section { padding: 72px 0; background: var(--fm-paper); border: 0; }
body.fm-home .tpg-section--alt { background: var(--fm-card); border-top: 1px solid var(--fm-rule); border-bottom: 1px solid var(--fm-rule); }
body.fm-home .tpg-section__wrap { max-width: var(--fm-max); margin: 0 auto; padding: 0 24px; text-align: left; }
body.fm-home .tpg-section__heading { font-family: var(--fm-sans); font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(32px, 4.4vw, 44px); color: var(--fm-ink); margin: 0 0 10px; text-align: left; }
body.fm-home .tpg-section__sub { color: var(--fm-ink-2); font-size: 17px; margin: 0 0 32px; text-align: left; max-width: 640px; }
body.fm-home .tpg-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
body.fm-home .tpg-product-card { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--fm-card); border: 1px solid var(--fm-rule); border-top: 1px solid var(--fm-rule); border-radius: 10px; padding: 24px; box-shadow: none; color: var(--fm-ink); }
body.fm-home .tpg-product-card:hover { border-color: var(--fm-ink); transform: none; box-shadow: none; }
body.fm-home .tpg-product-card::before, body.fm-home .tpg-product-card::after { display: none; }
body.fm-home .tpg-best-seller { position: absolute; top: -11px; right: 18px; background: var(--fm-amber); color: var(--fm-ink); font-family: var(--fm-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
body.fm-home .tpg-product-card__head { display: flex; gap: 14px; align-items: flex-start; }
body.fm-home .tpg-product-card__icon-wrap { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--fm-green-tint); color: var(--fm-green); display: flex; align-items: center; justify-content: center; }
body.fm-home .tpg-product-card__title { font-family: var(--fm-sans); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.1; color: var(--fm-ink); margin: 0 0 4px; }
body.fm-home .tpg-product-card__subtitle { margin: 0; font-size: 15px; color: var(--fm-muted); }
body.fm-home .tpg-product-card__body { display: flex; flex-direction: column; gap: 14px; border-top: 1px dashed var(--fm-rule); padding-top: 16px; flex: 1 1 auto; }
body.fm-home .tpg-product-card__price-row { display: flex; align-items: baseline; gap: 8px; }
body.fm-home .tpg-product-card__price { font-weight: 850; font-stretch: 80%; font-size: 36px; line-height: 1; color: var(--fm-ink); }
body.fm-home .tpg-product-card__price-note { font-size: 14px; color: var(--fm-muted); }
body.fm-home .tpg-product-card__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
body.fm-home .tpg-product-card__feature { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fm-ink-2); }
body.fm-home .tpg-product-card__feature strong { color: var(--fm-ink); }
body.fm-home .tpg-product-card__check { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--fm-green); }
body.fm-home .tpg-product-card__actions { display: flex; flex-direction: column; gap: 10px; }
body.fm-home .tpg-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 6px; font-family: var(--fm-sans); font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: none; transform: none; }
body.fm-home .tpg-btn--ghost { background: var(--fm-green); color: #FFFFFF; border: 2px solid var(--fm-green); }
body.fm-home .tpg-btn--ghost:hover { background: var(--fm-green-dark); border-color: var(--fm-green-dark); color: #FFFFFF; }
body.fm-home .tpg-btn--outline { background: transparent; color: var(--fm-ink); border: 2px solid var(--fm-ink); }
body.fm-home .tpg-btn--outline:hover { background: var(--fm-ink); color: var(--fm-paper); }
body.fm-home .tpg-features-grid, body.fm-home .tpg-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; border-top: 2px solid var(--fm-ink); padding-top: 28px; }
body.fm-home .tpg-feature-card, body.fm-home .tpg-step { background: transparent; border: 0; box-shadow: none; padding: 0 0 24px; text-align: left; }
body.fm-home .tpg-feature-card__icon { width: 44px; height: 44px; border-radius: 8px; background: var(--fm-green-tint); color: var(--fm-green); display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
body.fm-home .tpg-step__num { width: auto; height: auto; background: none; color: var(--fm-green); font-family: var(--fm-mono); font-weight: 600; font-size: 14px; margin: 0 0 8px; border-radius: 0; justify-content: flex-start; }
body.fm-home .tpg-step__num::before { content: "STEP "; }
body.fm-home .tpg-feature-card__title, body.fm-home .tpg-step__title { font-family: var(--fm-sans); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 24px; line-height: 1.1; color: var(--fm-ink); margin: 0 0 8px; }
body.fm-home .tpg-feature-card__body, body.fm-home .tpg-step__body { color: var(--fm-ink-2); font-size: 16px; line-height: 1.55; margin: 0; }
body.fm-home .tpg-cta { background: var(--fm-ink); color: var(--fm-paper); padding: 64px 0; border: 0; }
body.fm-home .tpg-cta__wrap { max-width: var(--fm-max); margin: 0 auto; padding: 0 24px; text-align: left; }
body.fm-home .tpg-cta__headline { font-family: var(--fm-sans); font-weight: 850; font-stretch: 75%; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 44px); line-height: 1; color: var(--fm-paper); margin: 0 0 10px; }
body.fm-home .tpg-cta__sub { color: #C9D2CB; font-size: 17px; margin: 0 0 24px; }
body.fm-home .tpg-cta__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
body.fm-home .tpg-cta__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid #3D4D42; color: var(--fm-paper); background: transparent; text-decoration: none; font-weight: 600; }
body.fm-home .tpg-cta__btn:hover { border-color: var(--fm-amber); color: var(--fm-paper); background: transparent; }
body.fm-home .tpg-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--fm-ink); color: var(--fm-paper); border-radius: 10px; padding: 0; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); border: 0; }
body.fm-home .tpg-cookie__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; max-width: none; }
body.fm-home .tpg-cookie__text { margin: 0; font-size: 14px; color: var(--fm-paper); }
body.fm-home .tpg-cookie__btn { min-height: 44px; padding: 0 18px; border-radius: 6px; background: var(--fm-green); color: #fff; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ===================== Guides, FAQs, blogs, legal (existing markup) ===================== */
body.fm-skin { background: var(--fm-paper); }
body.fm-skin main, body.fm-skin article { color: var(--fm-ink-2); }
body.fm-skin main h1, body.fm-skin article h1 { font-family: var(--fm-sans); font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.98; font-size: clamp(38px, 6vw, 60px); color: var(--fm-ink); }
body.fm-skin main h2, body.fm-skin article h2 { font-family: var(--fm-sans); font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; font-size: clamp(24px, 3vw, 32px); color: var(--fm-ink); }
body.fm-skin main h3, body.fm-skin article h3 { font-family: var(--fm-sans); font-weight: 750; font-stretch: 92%; font-size: 20px; line-height: 1.25; color: var(--fm-ink); }
body.fm-skin main h4, body.fm-skin article h4 { font-family: var(--fm-sans); font-weight: 700; font-size: 17px; color: var(--fm-ink); }
body.fm-skin main strong, body.fm-skin article strong, body.fm-skin main b { color: var(--fm-ink); }
body.fm-skin main p, body.fm-skin main li, body.fm-skin article p, body.fm-skin article li { line-height: 1.6; }
body.fm-skin main a:not([class*="bg-"]), body.fm-skin article a:not([class*="bg-"]) { color: var(--fm-green); }

/* text colours */
body.fm-skin [class*="text-slate-"], body.fm-skin [class*="text-gray-"] { color: var(--fm-ink-2); }
body.fm-skin .text-slate-800, body.fm-skin .text-slate-900, body.fm-skin .text-gray-900, body.fm-skin .text-gray-800 { color: var(--fm-ink); }
body.fm-skin .text-slate-500, body.fm-skin .text-gray-500 { color: var(--fm-muted); }
body.fm-skin [class*="text-green-"], body.fm-skin [class*="text-blue-"], body.fm-skin [class*="text-purple-"] { color: var(--fm-green); }
body.fm-skin [class*="text-green-8"], body.fm-skin [class*="text-green-9"], body.fm-skin [class*="text-blue-8"], body.fm-skin [class*="text-blue-9"], body.fm-skin [class*="text-purple-8"] { color: var(--fm-ink); }
body.fm-skin [class*="text-red-"] { color: #7A2214; }
body.fm-skin [class*="text-yellow-"], body.fm-skin [class*="text-amber-"], body.fm-skin [class*="text-orange-"] { color: #6B4510; }
/* eyebrow labels above page titles */
body.fm-skin main > div:first-child > .text-sm.font-semibold:first-child,
body.fm-skin article > header > p:first-child { font-family: var(--fm-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-green); }

/* cards and boxes */
body.fm-skin .bg-white { background: var(--fm-card); }
body.fm-skin .bg-white.rounded-xl, body.fm-skin .bg-white.rounded-lg, body.fm-skin .bg-white.rounded { border: 1px solid var(--fm-rule); border-radius: 10px; }
body.fm-skin main [class*="shadow"], body.fm-skin article [class*="shadow"] { box-shadow: none; }
body.fm-skin [class*="hover:scale"]:hover { transform: none; }
body.fm-skin .bg-green-50, body.fm-skin .bg-green-100, body.fm-skin .bg-blue-50, body.fm-skin .bg-blue-100, body.fm-skin .bg-purple-50, body.fm-skin .bg-purple-100, body.fm-skin .bg-slate-50, body.fm-skin .bg-gray-50, body.fm-skin .bg-gray-100 { background: #ECE6D8; border-color: var(--fm-rule); }
body.fm-skin .bg-yellow-50, body.fm-skin .bg-yellow-100, body.fm-skin .bg-amber-50, body.fm-skin .bg-orange-50 { background: #F8EAD2; border-color: var(--fm-amber); }
body.fm-skin .bg-red-50 { background: #F8E7E2; border-color: #E2B3A8; }
body.fm-skin [class*="border-green-"], body.fm-skin [class*="border-blue-"], body.fm-skin [class*="border-purple-"], body.fm-skin [class*="border-slate-"], body.fm-skin [class*="border-gray-"] { border-color: var(--fm-rule); }
body.fm-skin [class*="border-yellow-"], body.fm-skin [class*="border-amber-"], body.fm-skin [class*="border-orange-"] { border-color: var(--fm-amber); }
body.fm-skin [class*="border-red-"] { border-color: #E2B3A8; }
/* left-border callouts become ruled blocks */
body.fm-skin .border-l-4 { border-left-width: 0; }
body.fm-skin .border-l-4:not([class*="bg-"]) { padding-left: 0; border-top: 1px dashed var(--fm-rule); padding-top: 14px; }
body.fm-skin .border-l-4[class*="bg-"] { border: 1px solid var(--fm-rule); border-radius: 10px; }
body.fm-skin .rounded-full { border-radius: 4px; }
body.fm-skin span.rounded-full { background: #ECE6D8; color: var(--fm-ink); font-weight: 600; }

/* gradient and dark bands */
body.fm-skin [class*="bg-gradient-to"] { background: var(--fm-ink); background-image: none; color: var(--fm-paper); border: 0; }
body.fm-skin [class*="bg-gradient-to"] h1, body.fm-skin [class*="bg-gradient-to"] h2, body.fm-skin [class*="bg-gradient-to"] h3, body.fm-skin [class*="bg-gradient-to"] strong { color: var(--fm-paper); }
body.fm-skin [class*="bg-gradient-to"] p, body.fm-skin [class*="bg-gradient-to"] li, body.fm-skin [class*="bg-gradient-to"] [class*="text-"] { color: #C9D2CB; }
body.fm-skin [class*="bg-gradient-to"] a.bg-white, body.fm-skin [class*="bg-gradient-to"] a[class*="bg-white"] { background: var(--fm-paper); color: var(--fm-ink); border-radius: 6px; }
body.fm-skin [class*="bg-gradient-to"] a.bg-white:hover { background: #FFFFFF; }
body.fm-skin .bg-gray-800, body.fm-skin .bg-yellow-900 { background: var(--fm-ink); color: var(--fm-paper); }
body.fm-skin [class*="bg-white/10"], body.fm-skin .bg-opacity-30 { background: rgba(243, 239, 230, .08); }

/* buttons */
body.fm-skin a.bg-green-600, body.fm-skin a.bg-blue-600, body.fm-skin a.bg-blue-500, body.fm-skin button.bg-green-600, body.fm-skin button.bg-blue-600 { background: var(--fm-green); color: #FFFFFF; border-radius: 6px; }
body.fm-skin a.bg-green-600:hover, body.fm-skin a.bg-blue-600:hover, body.fm-skin a.bg-blue-500:hover { background: var(--fm-green-dark); color: #FFFFFF; }

/* tables */
body.fm-skin main table { border-collapse: collapse; }
body.fm-skin main th, body.fm-skin main td { border-color: var(--fm-rule); }
body.fm-skin main thead, body.fm-skin main th { background: #ECE6D8; color: var(--fm-ink); }

/* FAQ-style details */
body.fm-skin main details summary { cursor: pointer; color: var(--fm-ink); }
body.fm-skin [class*="bg-gradient-to"] h1[class], body.fm-skin [class*="bg-gradient-to"] h2[class], body.fm-skin [class*="bg-gradient-to"] h3[class], body.fm-skin [class*="bg-gradient-to"] strong[class] { color: var(--fm-paper); }
/* page titles and headings that sit outside <main> (e.g. full-width banners) */
body.fm-skin h1 { font-family: var(--fm-sans); font-weight: 850; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.98; font-size: clamp(38px, 6vw, 60px); }
body.fm-skin h2 { font-family: var(--fm-sans); font-weight: 800; font-stretch: 78%; text-transform: uppercase; line-height: 1.05; }
body.fm-skin h3 { font-family: var(--fm-sans); }
@media (max-width: 640px) {
  .fm-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-stats--4 > div:nth-child(3) { border-left: 0; }
  .fm-stats--4 > div:nth-child(n+3) { border-top: 1px solid var(--fm-rule); }
}
