/* Shared by the guide, workout and tool pages (generated by scripts/build-guides.mjs). Same tokens as the landing page. */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-display: swap; src: url(/assets/Archivo-latin.woff2) format("woff2"); }
:root { --mint: #16E29A; --mint-text: #087F56; --mint-50: #E8FCF4; --ink: #1D2125; --muted: #6B7278; --line: #EEEEEB; --subtle: #F7F7F5; --bg: #FFFFFF; --card: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root { --mint-text: #16E29A; --mint-50: #15372B; --ink: #F7F7F5; --muted: #9AA0A6; --line: #3A4046; --subtle: #262B30; --bg: #1D2125; --card: #262B30; }
  .mark-light { display: none; } .mark-dark { display: inline-block !important; }
  html .frames img { filter: none; } /* html: beats the base rule further down */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Archivo", system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--mint-text); }
img { max-width: 100%; }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 20px; }
header .wrap, footer .wrap { max-width: 1160px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }
.logo img { width: 34px; height: 34px; }
.logo em { font-style: normal; color: var(--mint-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--mint); color: #1D2125; font: 600 16px/1 "Archivo", sans-serif; text-decoration: none; border: 0; cursor: pointer; }
header .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 10px; }

main { padding: 20px 0 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--mint-text); margin-bottom: 10px; }
h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; }
h2 { margin: 44px 0 14px; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; line-height: 1.15; }
h3 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin: 16px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

ol.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; position: relative; padding: 2px 0 2px 44px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #1D2125; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
ul.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
ul.list li { display: flex; gap: 12px; }
ul.list li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 11px; border-radius: 3px; background: var(--mint); }
ul.avoid li::before { background: #E5484D; }

.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 6px; }
/* The drawings are white shapes (the app uses them as a mask): ink-coloured in light mode, as they are in dark mode. */
.frames span { display: block; padding: 8px; border-radius: 16px; background: var(--subtle); }
.frames img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: brightness(0); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--subtle); font-size: 14px; }
.chips li.main { background: var(--mint-50); color: var(--mint-text); font-weight: 600; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.links a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--mint); }
.links b { display: block; font-weight: 700; }
.links span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table { overflow-x: auto; }

.cta { margin: 48px 0 0; padding: 26px; border-radius: 22px; background: var(--subtle); }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); }
.cta .btn { margin-top: 6px; }

/* Calculators */
.tool { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fields input, .fields select { font: 600 20px/1 "Archivo", sans-serif; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 9em; }
.fields select { width: auto; }
.fields input:focus, .fields select:focus { border-color: var(--mint); outline: none; }
.result { margin-top: 22px; font-size: 18px; }
.result .big { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.plates { display: flex; align-items: center; gap: 4px; min-height: 130px; margin-top: 18px; }
.plates .bar { height: 14px; width: 60px; border-radius: 3px; background: #B8BCC2; }
.plates i { display: block; width: 22px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
@media (max-width: 520px) { .frames { gap: 6px; } .tool { padding: 18px; } .fields input { width: 7em; } }
