/* Delta Strength docs (/docs/). Self-contained: docs pages load this sheet, not /site.css.
   Tokens, fonts and the logo lockup are copied from styles/00-base.css; keep them in step.

   Content vocabulary (the only classes a docs page uses):
   section.doc-section[id] > h2, h3[id] · ol.steps · a.link · span.ui
   aside.note · aside.note.note--why · aside.note.note--safety · dl.terms · table.doc-table
   Shell: .doc (.doc--single) · .doc-toc (__title, __list) · .doc-main · .doc-head · .eyebrow · .lead
   Index: .doc-cards > a.doc-card (__title, __text) */

@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --green: #1F6B45; --green-dk: #134A2F; --green-soft: #E3F1E8;
  --ink: #111614; --muted: #5A645E; --subtle: #8A938D;
  --canvas: #F5F7F3; --line: #E2E6E0; --white: #FFFFFF;

  --display: Archivo, 'Arial Black', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --h1: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  --h2: 1.6rem;
  --h3: 1.15rem;
  --lead: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);

  --gutter: clamp(1rem, 0.5rem + 3.2vw, 2.5rem);
  --max: 72rem;
  --read: 44rem;
  --toc: 15rem;
  --r-sm: 6px; --r-md: 10px;
  --header-h: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.25rem); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--white); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--h1); font-weight: 850; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); font-weight: 800; line-height: 1.2; }
h3 { font-size: var(--h3); font-weight: 700; line-height: 1.3; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: block; margin-bottom: 0.75rem; font-weight: 700; font-size: 0.75rem; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.lead { font-size: var(--lead); color: var(--muted); }
.link { font-weight: 500; color: var(--green-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(31, 107, 69, 0.45); }
.link:hover { color: var(--green); text-decoration-color: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.4rem; border: 1.5px solid transparent; border-radius: var(--r-md); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dk); }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9375rem; border-radius: var(--r-sm); }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The mark and the lockup (mark + DELTA over STRENGTH). Set the size with --logo on .logo. */
.mark { width: 1em; height: 1em; flex: none; }
.logo { --logo: 1.5rem; display: inline-flex; align-items: center; gap: calc(var(--logo) * 0.42); color: var(--ink); text-decoration: none; line-height: 1; }
.logo .mark { width: calc(var(--logo) * 1.9); height: calc(var(--logo) * 1.9); color: var(--green); }
.logo__words { display: flex; flex-direction: column; }
.logo__delta { width: max-content; font-family: Archivo, sans-serif; font-weight: 850; font-stretch: 125%; font-size: var(--logo); letter-spacing: 0.01em; line-height: 0.78; }
.logo__sub { width: max-content; margin-top: calc(var(--logo) * 0.3); font-family: var(--body); font-weight: 600; font-size: calc(var(--logo) * 0.42); letter-spacing: 0.62em; margin-right: -0.62em; line-height: 1; color: var(--muted); white-space: nowrap; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: var(--r-sm); background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Header: logo, "Docs", then the guide links. No menu; at phone width the links take their own row. */
.dochead { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.dochead__bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; min-height: calc(var(--header-h) - 1px); }
.dochead__brand { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.dochead .logo { --logo: 1.05rem; }
.dochead__docs { padding-left: 0.75rem; border-left: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; color: var(--ink); text-decoration: none; }
.dochead__docs:hover { color: var(--green); }
.dochead__nav { margin-left: auto; }
.dochead__list { display: flex; align-items: center; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.dochead__link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.dochead__link:hover { color: var(--ink); }
body[data-page="clients"] .dochead__link[data-page="clients"],
body[data-page="coach"] .dochead__link[data-page="coach"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.dochead__signin { color: var(--green-dk); font-weight: 600; }
.dochead__signin:hover { color: var(--green); }

@media (max-width: 47.99rem) {
  .dochead__bar { padding-top: 0.4rem; }
  .dochead__nav { order: 2; width: 100%; margin-left: 0; border-top: 1px solid var(--line); }
  .dochead__list { gap: 1.25rem; }
  .dochead__link { min-height: 2.5rem; }
  .dochead__signin-item { margin-left: auto; }
}

/* Layout: TOC at left, reading column at right. One column under 56rem. */
.doc { display: grid; grid-template-columns: var(--toc) minmax(0, var(--read)); column-gap: clamp(2.5rem, 1rem + 4vw, 5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(4rem, 3rem + 4vw, 6rem); }
.doc--single { grid-template-columns: minmax(0, var(--read)); }
.doc-main { min-width: 0; }

.doc-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; padding-top: 0.35rem; }
.doc-toc__title { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.doc-toc__list { display: grid; gap: 0.1rem; border-left: 1px solid var(--line); }
.doc-toc__list a { display: block; margin-left: -1px; padding: 0.3rem 0 0.3rem 0.9rem; border-left: 1px solid transparent; font-size: 0.9rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
.doc-toc__list a:hover { color: var(--ink); border-left-color: var(--ink); }

@media (max-width: 55.99rem) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 1.75rem; }
  .doc-toc { position: static; max-height: none; overflow: visible; margin-bottom: 2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); }
  .doc-toc__list { border-left: 0; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); column-gap: 1.5rem; }
  .doc-toc__list a { margin-left: 0; padding: 0.35rem 0; border-left: 0; }
}

/* Page head and sections */
.doc-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc-head .lead { margin-top: 1rem; max-width: 38rem; }

.doc-section { padding-top: 2.75rem; }
.doc-section + .doc-section { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.doc-section > h2 { margin-bottom: 1rem; }
.doc-section h3 { margin: 2rem 0 0.6rem; }
.doc-section h2 + h3 { margin-top: 1.25rem; }

.doc-main p + p, .doc-main p + ul, .doc-main p + ol, .doc-main ul + p, .doc-main ol + p,
.doc-main p + dl, .doc-main dl + p, .doc-main p + .doc-table, .doc-main .doc-table + p { margin-top: 0.9rem; }
.doc-main ul:not([class]), .doc-main ol:not([class]) { margin-top: 0.75rem; padding-left: 1.25rem; }
.doc-main ul:not([class]) > li + li, .doc-main ol:not([class]) > li + li { margin-top: 0.4rem; }
.doc-main li::marker { color: var(--subtle); }
.doc-main h3 + p, .doc-main h3 + ul, .doc-main h3 + ol, .doc-main h2 + p { margin-top: 0; }
.doc-main code { font-size: 0.9em; }

/* Numbered how-to */
ol.steps { counter-reset: step; display: grid; gap: 0.75rem; margin-top: 1rem; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.25rem; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.15rem; display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--green-soft); color: var(--green-dk); font-size: 0.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* Exact app label */
.ui { display: inline; padding: 0.08em 0.35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); font-size: 0.92em; font-weight: 600; line-height: 1.45; color: var(--ink); }

/* Notes */
aside.note { margin-top: 1.25rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); font-size: 0.97rem; line-height: 1.6; }
aside.note p + p { margin-top: 0.5rem; }
aside.note strong { color: var(--ink); }
aside.note + p, aside.note + h3 + p { margin-top: 1.25rem; }
aside.note--why { border-color: transparent; background: var(--green-soft); }
aside.note--why strong { color: var(--green-dk); }
aside.note--safety { border: 0; border-left: 3px solid var(--ink); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--canvas); }

/* Definitions */
dl.terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.65rem 1.5rem; margin-top: 1rem; padding: 1rem 0; border-block: 1px solid var(--line); }
dl.terms dt { font-weight: 600; }
dl.terms dd { color: var(--ink); }
@media (max-width: 35.99rem) {
  dl.terms { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.terms dt:not(:first-child) { margin-top: 0.75rem; }
}

/* Reference table: scrolls sideways on its own when it is wider than the screen. */
table.doc-table { display: block; max-width: 100%; overflow-x: auto; margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.doc-table th, .doc-table td { padding: 0.6rem 1.25rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th:last-child, .doc-table td:last-child { padding-right: 0; }
.doc-table thead th { border-bottom-color: var(--ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.doc-table td:first-child { font-weight: 600; }

/* Index page cards */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.doc-card { display: block; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease; }
.doc-card:hover { border-color: var(--green); }
.doc-card__title { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.doc-card__title::after { content: ' \2192'; color: var(--green); }
.doc-card__text { display: block; margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }

/* Footer */
.docfoot { border-top: 1px solid var(--line); padding-block: 1.75rem 2.25rem; font-size: 0.875rem; color: var(--muted); }
.docfoot__row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
.docfoot__links { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.docfoot a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.docfoot a:hover { color: var(--ink); text-decoration-color: currentColor; }
.docfoot__legal { margin-top: 0.75rem; max-width: 44rem; color: var(--subtle); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .dochead__nav, .doc-toc, .docfoot, .skip-link { display: none; }
  .dochead { position: static; border: 0; }
  .doc { display: block; padding: 0; }
  body { font-size: 11pt; }
  .doc-section { break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .link { color: var(--ink); }
}
