/* The Gym Talk — public site styles (brand-first media layout)
   Brand purple comes from the supplied logo; --brand* tokens are overridden at runtime
   from Admin → Customize site → Appearance (contrast-checked). Lime is an accent only. */

/* Self-hosted fonts (SIL Open Font License) — no third-party font requests */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20B9,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --brand: #563B8C;
  --brand-dark: #3e2a65;
  --brand-darker: #2b1d46;
  --brand-mid: #8a76ae;
  --brand-light: #e9e3f2;
  --brand-lighter: #f4f1f9;
  --night: #211137;      /* dark brand surfaces: top strip, band, about strip */
  --night-2: #160b27;    /* footer */
  --lime: #d7ff76;       /* accent only — never body text on white */
  --ink: #191522;
  --ink-2: #4f475d;
  --ink-3: #6b6378;      /* ≥ 4.5:1 on white and on --bg */
  --bg: #f7f5fb;
  --line: #e4ddef;
  --paper: #ffffff;
  --good: #1d6b45; --good-bg: #e6f5d5;
  --warn: #8a4b00; --warn-bg: #fdf0dc;
  --bad: #a3221a;  --bad-bg: #fbe7e5;
  --radius: 16px;
  --btn-radius: 11px;
  --wrap: 1160px;
  --gutter: clamp(16px, 3.5vw, 32px);
  --header-h: 72px;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 110%;
  --shadow: 0 16px 45px rgba(43, 20, 80, .07);
}
.font-classic { --font-display: "Fraunces", Georgia, serif; --display-stretch: 100%; }
.font-system { --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: var(--font-body); --display-stretch: 100%; }
.buttons-pill { --btn-radius: 999px; }
.buttons-square { --btn-radius: 3px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .topstrip :focus-visible, .band :focus-visible, .about-strip :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-family: var(--font-display); font-stretch: var(--display-stretch); }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--brand); padding: 8px 14px; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.hp { position: absolute; left: -5000px; }
[hidden] { display: none !important; }
.meta { color: var(--ink-3); font-size: 14px; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border: 1.5px solid var(--brand); border-radius: var(--btn-radius);
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: not-allowed; }
.btn--alt, .btn--ghost { background: #fff; color: var(--brand); border-color: #d6cbea; }
.btn--alt:hover, .btn--ghost:hover { background: var(--brand-lighter); color: var(--brand-dark); border-color: var(--brand); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.btn--lime:hover { background: #c6f25a; border-color: #c6f25a; color: var(--night); }
.btn--on-brand { background: #fff; border-color: #fff; color: var(--brand-darker); }
.btn--on-brand:hover { background: var(--lime); border-color: var(--lime); color: var(--night); }
.btn--brand { /* alias kept for older templates */ }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--link { background: none; border: 0; color: var(--brand); padding: 0; min-height: 0; font-weight: 800; text-decoration: underline; }
.btn--link:hover { background: none; color: var(--brand-dark); }
.arrow::after { content: "↗"; font-weight: 700; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ---------- header ---------- */
.topstrip { background: var(--night); color: #e7ddf7; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
.topstrip .wrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__badge { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; background: var(--brand); }
.brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 19px; letter-spacing: -.02em; text-transform: uppercase; }
.brand__tag { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.sitenav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sitenav a, .sitenav__parent { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 800; text-decoration: none; background: none; border: 0; cursor: pointer; }
.sitenav a:hover, .sitenav__parent:hover { color: var(--brand); background: var(--brand-lighter); }
.sitenav a[aria-current="page"] { color: var(--brand); background: var(--brand-lighter); }
.has-sub { position: relative; }
.sitenav__sub { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none !important; flex-direction: column; align-items: stretch !important; }
.has-sub.is-open .sitenav__sub { display: flex !important; }
.navtoggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; place-items: center; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.navtoggle__bars::before { position: absolute; top: -6px; } .navtoggle__bars::after { position: absolute; top: 6px; }

/* ---------- page head (inner pages) ---------- */
.page-head { background: linear-gradient(130deg, #fff, var(--brand-lighter)); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-head__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.03em; margin: 8px 0 10px; color: var(--ink); }
.page-head__sub { color: var(--ink-2); font-size: 17px; max-width: 64ch; margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.kicker { display: inline-block; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.pill { display: inline-block; background: var(--brand-light); color: var(--brand); padding: 7px 12px; border-radius: 30px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- home hero ---------- */
.hero { padding: 64px 0 52px; background: radial-gradient(ellipse at 82% 12%, var(--brand-light), transparent 40%), linear-gradient(130deg, #fff, var(--brand-lighter)); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero__title { font-size: clamp(40px, 5.6vw, 70px); font-weight: 900; line-height: 1; letter-spacing: -.045em; margin: 20px 0; color: var(--ink); }
.hero__title span { display: block; color: var(--brand); }
.hero__lead { max-width: 560px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14px; font-weight: 800; }
.checks li::before { content: "✓"; color: var(--brand); margin-right: 6px; }
.brand-panel { position: relative; overflow: hidden; min-height: 380px; padding: 26px; border-radius: 26px; color: #fff;
  background: linear-gradient(145deg, var(--night), var(--brand-dark) 62%, var(--brand)); box-shadow: 0 25px 60px rgba(50, 16, 111, .2); }
.brand-panel::before { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -65px; top: -95px; box-shadow: 0 0 0 35px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.03); }
.brand-panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.brand-panel__top { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .1em; color: #e6dafc; text-transform: uppercase; }
.brand-panel__tag { background: var(--lime); color: var(--night); padding: 5px 9px; border-radius: 7px; }
.brand-panel__text { position: relative; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.1; letter-spacing: -.02em; font-weight: 900; max-width: 330px; margin: 40px 0 0; }
.brand-panel__foot { position: absolute; left: 26px; bottom: 28px; display: flex; align-items: center; gap: 14px; }
.brand-panel__foot img { width: 92px; height: auto; }
.brand-panel__foot small { display: block; font-size: 11px; letter-spacing: .14em; color: #dccdf7; font-weight: 800; text-transform: uppercase; max-width: 160px; }
.brand-panel__sticker { position: absolute; right: 20px; bottom: 22px; background: var(--lime); color: var(--night); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 900; transform: rotate(4deg); max-width: 150px; line-height: 1.2; }

.band { background: var(--night); color: #fff; padding: 20px 0; border-top: 1px solid #3c2856; border-bottom: 1px solid #3c2856; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; text-transform: uppercase; }
.band__left { font-size: 12px; letter-spacing: .2em; font-weight: 900; color: var(--lime); }
.band__middle { font-size: 15px; letter-spacing: .1em; font-weight: 900; }
.band__right { font-size: 13px; letter-spacing: .1em; color: #dccdf7; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--white { background: #fff; }
.section--tint { background: var(--brand-lighter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; line-height: 1.06; letter-spacing: -.035em; margin: 8px 0 0; max-width: 680px; }
.section-head p { max-width: 430px; color: var(--ink-2); font-size: 15px; margin: 0; }
.section-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-pad { padding-top: 40px; padding-bottom: 72px; }

/* ---------- empty / loading / notices ---------- */
.empty { background: #fff; border: 1.5px dashed #d4c8ea; border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); }
.empty p { margin: 0 0 12px; } .empty p:last-child { margin: 0; }
.empty__icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); font-size: 20px; font-weight: 900; }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; background: var(--brand-lighter); border-left: 5px solid var(--brand); }
.notice--success { background: var(--good-bg); border-color: var(--good); color: #0f3f28; }
.notice--error { background: var(--bad-bg); border-color: var(--bad); color: #5f130e; }
.notice--warn { background: var(--warn-bg); border-color: var(--warn); color: #4f2b00; }
.notice p:last-child { margin: 0; }
.skeleton { background: linear-gradient(90deg, #eee9f6 25%, #f7f4fb 37%, #eee9f6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- reels ---------- */
.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.reel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdbdea; }
.reel__frame { position: relative; display: block; aspect-ratio: 9 / 14; background: linear-gradient(145deg, var(--night), var(--brand) 62%, var(--brand-mid)); overflow: hidden; color: #fff; text-decoration: none; }
.reel:nth-child(4n+2) .reel__frame { background: linear-gradient(145deg, var(--night), var(--brand-dark), var(--brand-mid)); }
.reel:nth-child(4n+3) .reel__frame { background: linear-gradient(145deg, var(--brand-darker), var(--brand)); }
.reel__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__label { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 900; font-size: 19px; line-height: 1.1; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.reel__platform { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: rgba(22, 11, 39, .65); padding: 4px 8px; border-radius: 6px; }
.reel__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); z-index: 1; }
.reel__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid var(--brand); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.reel__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.reel__title { font-size: 15px; line-height: 1.3; margin: 0; font-family: var(--font-body); font-stretch: 100%; }
.reel__title a { color: var(--ink); text-decoration: none; }
.reel__caption { font-size: 14px; color: var(--ink-3); margin: 0; }
.reel__open { margin-top: auto; font-size: 14px; font-weight: 900; text-decoration: none; }
.reel__related { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin: 0; }

/* ---------- blog cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdbdea; }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand), var(--night)); overflow: hidden; color: #fff; text-decoration: none; }
.post-card:nth-child(3n+2) .post-card__media { background: linear-gradient(135deg, var(--night), var(--brand-mid)); }
.post-card:nth-child(3n+3) .post-card__media { background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__art { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.post-card__art span { font-size: 11px; letter-spacing: .14em; font-weight: 900; text-transform: uppercase; opacity: .9; }
.post-card__art strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 21px; line-height: 1.12; max-width: 300px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__body .kicker { font-size: 11px; }
.post-card__title { font-size: 19px; line-height: 1.25; margin: 0; font-weight: 850; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { font-size: 15px; color: var(--ink-2); margin: 0; }
.post-card__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.post-card__foot a { font-weight: 900; text-decoration: none; font-size: 14px; }
.blog-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 26px; }
.blog-feature .post-card__media { aspect-ratio: 16 / 10; height: 100%; }
.blog-feature__body { padding: 26px 26px 26px 0; }
.blog-feature__title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; margin: 10px 0; }
.blog-feature__title a { color: var(--ink); text-decoration: none; }

/* tools (search + filter) */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.searchbox { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d8cfe6; border-radius: 12px; padding: 0 6px 0 14px; min-height: 48px; }
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 59, 140, .14); }
.searchbox svg { flex: none; color: var(--ink-3); }
.searchbox input { border: 0; outline: 0; background: transparent; width: 100%; padding: 12px 0; min-width: 0; }
.select { min-height: 48px; border: 1px solid #d8cfe6; border-radius: 12px; padding: 0 38px 0 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234f475d' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; max-width: 100%; }
.select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(86, 59, 140, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 800; text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.result-count { font-size: 14px; color: var(--ink-3); margin: -8px 0 16px; }

/* ---------- documents ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.doc-card:hover { border-color: #cdbdea; box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-card__top { display: flex; align-items: center; gap: 12px; }
.doc-card__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.doc-card__type { font-size: 11px; letter-spacing: .14em; font-weight: 900; color: var(--brand); text-transform: uppercase; }
.doc-card h3 { font-size: 18px; line-height: 1.25; margin: 0; font-family: var(--font-body); font-stretch: 100%; font-weight: 850; }
.doc-card h3 a { color: var(--ink); text-decoration: none; }
.doc-card h3 a:hover { color: var(--brand); }
.doc-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.doc-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.doc-card__foot a { font-size: 14px; font-weight: 900; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--brand-lighter); color: var(--brand-dark); }
.badge--free { background: var(--good-bg); color: var(--good); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.doc-aside { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.doc-aside h2 { font-size: 20px; margin-bottom: 10px; }
.doc-aside .btn { width: 100%; margin-top: 8px; }
.dm-keyword { font-size: 26px; font-weight: 900; letter-spacing: .06em; color: var(--brand); background: var(--brand-lighter); border-radius: 12px; padding: 10px 14px; text-align: center; margin: 12px 0; }
.preview { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.preview iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }
.doc-cover { border-radius: 16px; margin-bottom: 22px; width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- calculators ---------- */
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: st; }
.stepper li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--ink-3); }
.stepper li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-lighter); color: var(--ink-3); font-size: 13px; }
.stepper li.is-current { color: var(--brand); border-color: var(--brand); }
.stepper li.is-current::before { background: var(--brand); color: #fff; }
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done::before { content: "✓"; background: var(--good-bg); color: var(--good); }
.calc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.calc-card:hover { border-color: #cdbdea; box-shadow: var(--shadow); transform: translateY(-2px); }
.calc-card__num { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--brand); }
.calc-card h3 { font-size: 20px; margin: 0; font-weight: 900; }
.calc-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.calc-card__who { font-size: 14px !important; color: var(--ink-3) !important; }
.calc-card__who strong { color: var(--ink-2); }
.calc-card .btn { margin-top: auto; align-self: flex-start; }
.calc-card--feature { background: linear-gradient(145deg, var(--night), var(--brand-dark)); color: #fff; border-color: transparent; }
.calc-card--feature h3, .calc-card--feature .calc-card__num { color: #fff; }
.calc-card--feature p, .calc-card--feature .calc-card__who, .calc-card--feature .calc-card__who strong { color: #e1d6f5 !important; }
.calc-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 59, 140, .15); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.gate { max-width: 720px; margin: 0 auto; }
.gate h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; letter-spacing: -.02em; margin: 12px 0 8px; }
.gate__why { color: var(--ink-2); font-size: 15px; }
.gate__chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--brand-lighter); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--ink-3); }
.field .req { color: var(--bad); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #d8cfe6; border-radius: 12px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 59, 140, .14); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field--check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.input-unit { display: flex; align-items: stretch; border: 1.5px solid #d8cfe6; border-radius: 12px; background: #fff; overflow: hidden; }
.input-unit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 59, 140, .14); }
.input-unit input:not([type="checkbox"]) { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-width: 0; }
.input-unit__u { display: grid; place-items: center; padding: 0 12px; background: var(--brand-lighter); color: var(--ink-2); font-weight: 800; font-size: 14px; white-space: nowrap; }
.help { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.error { color: var(--bad); font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea, .has-error .input-unit, .has-error .combo__input { border-color: var(--bad) !important; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.fine { font-size: 13px; color: var(--ink-3); }

.desk { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.desk__nav { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.desk__nav .label { display: block; color: var(--ink-3); font-weight: 900; font-size: 11px; letter-spacing: .14em; padding: 8px 10px; text-transform: uppercase; }
.desk__tab { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.desk__tab:hover { background: var(--brand-lighter); color: var(--brand); }
.desk__tab[aria-current="true"] { background: var(--brand-light); color: var(--brand-dark); }
.desk__tab span { font-size: 12px; opacity: .7; }
.desk__nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.desk__user { font-size: 13px; color: var(--ink-3); padding: 8px 10px 4px; }
.desk__panel { min-width: 0; }
.desk__intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.desk__intro h2 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 4px; }
.desk__intro p { color: var(--ink-2); margin: 0; font-size: 15px; max-width: 60ch; }
.substeps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.substeps button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; color: var(--ink-3); cursor: pointer; }
.substeps button[aria-current="step"] { border-color: var(--brand); color: var(--brand); background: var(--brand-lighter); }
.group-title { font-size: 16px; font-weight: 900; margin: 0 0 4px; font-family: var(--font-body); font-stretch: 100%; }
.group-help { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.result { margin-top: 22px; border: 1px solid #d9ccf3; background: var(--brand-lighter); border-radius: 18px; padding: clamp(16px, 2.4vw, 24px); }
.result:focus { outline: 3px solid var(--brand); outline-offset: 3px; }
.result__label { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--brand-dark); text-transform: uppercase; }
.result__big { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: var(--brand); line-height: 1.1; margin: 6px 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.result__big.is-bad { color: var(--bad); }
.result__note { color: var(--ink-2); font-size: 15px; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.metric { background: #fff; border: 1px solid #e3d9f6; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.metric small { display: block; color: var(--ink-3); font-size: 13px; }
.metric b { display: block; font-size: 17px; margin-top: 3px; overflow-wrap: anywhere; }
.metric--group { grid-column: 1 / -1; background: transparent; border: 0; padding: 8px 2px 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
.metric.is-total { border-color: var(--brand); }
.result__how { margin-top: 16px; background: #fff; border-radius: 12px; border: 1px solid #e3d9f6; padding: 4px 14px; }
.result__how summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.result__how ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 14px; color: var(--ink-2); }
.result__how code { font-family: inherit; font-weight: 700; color: var(--ink); }
.result__warn { margin-top: 12px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin: 18px 0 0; }

/* ---------- location picker (combobox) ---------- */
.loc-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.combo { position: relative; }
.combo__input { width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; border: 1.5px solid #d8cfe6; border-radius: 12px; background: #fff; outline: none; }
.combo__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(86, 59, 140, .14); }
.combo__input:disabled { background: #f3f0f7; color: var(--ink-3); cursor: not-allowed; }
.combo__toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.combo__toggle:disabled { cursor: not-allowed; opacity: .5; }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.combo__opt { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.combo__opt small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--brand-lighter); color: var(--brand-dark); }
.combo__opt--custom { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 700; color: var(--brand); }
.combo__msg { padding: 10px 12px; font-size: 14px; color: var(--ink-3); }
.combo__msg--error { color: var(--bad); }
.combo__msg button { margin-left: 6px; }
.combo__group { padding: 8px 12px 4px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- article / prose ---------- */
.article__head { padding-top: 36px; padding-bottom: 20px; }
.article__title { font-weight: 900; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.03em; line-height: 1.04; margin: 10px 0 12px; }
.article__sub { font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.article__hero { margin: 8px auto 32px; }
.article__hero img { width: 100%; border-radius: 20px; max-height: 620px; object-fit: cover; }
.article__body { background: #fff; }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose h2 { font-size: 28px; margin-top: 1.6em; font-weight: 850; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--brand); font-size: 21px; color: var(--brand-darker); font-weight: 600; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose pre { overflow-x: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.embed { position: relative; aspect-ratio: 16/9; margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.embed--tall { aspect-ratio: 9/14; max-width: 420px; }
.embed--audio { aspect-ratio: auto; height: 232px; background: none; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio { width: 100%; margin-bottom: 24px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.pager__btn { font-weight: 800; padding: 8px 18px; border: 1.5px solid var(--brand); border-radius: var(--btn-radius); text-decoration: none; background: #fff; }
.pager__btn.is-disabled { opacity: .4; border-color: var(--line); color: var(--ink-3); }
.pager__info { color: var(--ink-3); font-size: 14px; }

/* ---------- about ---------- */
.about-strip { background: var(--night); color: #fff; padding: 34px 0; }
.about-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.about-strip h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.about-strip p { color: #d6cae6; font-size: 15px; max-width: 560px; margin: 8px 0 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-card h2 { font-size: 22px; }
.contact-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.contact-list b { min-width: 86px; color: var(--ink-3); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-list a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { background: var(--night-2); color: #fff; padding: 44px 0 22px; }
.footer a { color: #ddd2ea; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__brand img { width: 120px; height: auto; margin-bottom: 12px; }
.footer__brand p { color: #bdb0ce; font-size: 14px; max-width: 280px; }
.footer__h { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #a999c2; margin: 4px 0 12px; font-family: var(--font-body); font-stretch: 100%; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__addr { color: #bdb0ce; font-size: 14px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #2e1f45; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #a999c2; }
.footer__base p { margin: 0; }

/* ---------- forms page (start your gym), misc ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.aside-note { background: var(--brand-lighter); border-radius: 12px; padding: 14px 18px; font-size: 16px; }

/* ---------- error pages ---------- */
.error-page { background: var(--night); color: #fff; min-height: 100vh; }
.error-wrap { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 80px; display: grid; gap: 32px; }
.error-wrap img { width: 140px; }
.error-card { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.error-card h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; letter-spacing: -.03em; margin: 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sitenav { gap: 12px; }
  .sitenav a { padding: 8px 9px; }
}
@media (max-width: 920px) {
  .navtoggle { display: grid; }
  .sitenav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px var(--gutter) 18px; flex-direction: column; align-items: stretch; gap: 10px; }
  .sitenav.is-open { display: flex; }
  .sitenav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .sitenav a, .sitenav__parent { padding: 12px; font-size: 16px; width: 100%; text-align: left; }
  .sitenav__sub { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .masthead__cta { width: 100%; }
  .hero__grid, .doc-layout, .about-grid, .form-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .about-strip__inner { flex-direction: column; align-items: flex-start; }
  .desk { grid-template-columns: 1fr; }
  .desk__nav { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .desk__nav .label, .desk__nav hr, .desk__user { grid-column: 1 / -1; }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__body { padding: 0 22px 22px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }
  .brand__badge { width: 40px; height: 40px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 9px; }
  .topstrip { font-size: 10px; letter-spacing: .1em; }
  .hero { padding: 40px 0 34px; }
  .hero__title { letter-spacing: -.035em; }
  .brand-panel { min-height: 340px; padding: 20px; }
  .brand-panel__foot { left: 20px; bottom: 82px; }
  .brand-panel__sticker { right: 16px; bottom: 18px; }
  .section { padding: 52px 0; }
  .card-grid, .doc-grid, .form-grid, .loc-picker { grid-template-columns: 1fr; }
  .reel-grid { gap: 10px; }
  .reel__label { font-size: 15px; left: 10px; right: 10px; bottom: 10px; }
  .reel__body { padding: 10px; }
  .desk__intro { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .stepper li { font-size: 13px; }
  .toolbar .select { width: 100%; }
}
@media (max-width: 380px) {
  .reel-grid, .desk__nav { grid-template-columns: 1fr; }
}
@media print {
  .masthead, .topstrip, .footer, .navtoggle, .desk__nav, .result__actions { display: none !important; }
  body { background: #fff; }
}
