/* Built by scripts/build-guides.mjs; edit guides/assets/guides.css */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/barlow-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2")}

/*
 * Template Trainer design tokens.
 *
 * Every redesigned screen uses these variables (never raw colors), so the
 * light and dark themes and any later palette change live in one place.
 * A screen opts into the new look with the `tt` class, and into dark mode
 * with data-theme="dark" on itself or any parent.
 */
:root {
  /* Type */
  --tt-font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --tt-font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing: 4px steps */
  --tt-space-1: 4px;
  --tt-space-2: 8px;
  --tt-space-3: 12px;
  --tt-space-4: 16px;
  --tt-space-5: 20px;
  --tt-space-6: 24px;
  --tt-space-8: 32px;

  /* Radii */
  --tt-radius-sm: 10px;
  --tt-radius-md: 14px;
  --tt-radius-lg: 20px;
  --tt-radius-pill: 999px;

  /* Touch target */
  --tt-tap: 44px;

  /* Motion */
  --tt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --tt-fast: 120ms;
  --tt-med: 220ms;

  /* Light theme */
  --tt-bg: #f6f5f4;
  --tt-surface: #ffffff;
  --tt-surface-2: #f0efee;
  --tt-surface-3: #e6e4e2;
  --tt-line: #e2e0dd;
  --tt-line-strong: #cfccc8;
  --tt-text: #141416;
  --tt-text-muted: #5f5f66;
  --tt-primary: #c8102e;
  --tt-primary-pressed: #a50d26;
  --tt-on-primary: #ffffff;
  --tt-primary-text: #b00d28;
  --tt-accent: #b86e00;
  --tt-accent-fill: #f5a524;
  --tt-on-accent: #141416;
  --tt-done: #0f9f8f;
  --tt-done-fill: #2dd4bf;
  --tt-done-tint: rgba(45, 212, 191, 0.16);
  --tt-on-done: #0f0f11;
  --tt-shadow: 0 10px 30px rgba(20, 20, 22, 0.14);
  --tt-focus: 0 0 0 3px rgba(200, 16, 46, 0.35);
}

[data-theme="dark"] {
  --tt-bg: #0f0f11;
  --tt-surface: #18181b;
  --tt-surface-2: #232327;
  --tt-surface-3: #2e2e33;
  --tt-line: #2e2e33;
  --tt-line-strong: #3a3a40;
  --tt-text: #f4f4f5;
  --tt-text-muted: #a1a1aa;
  --tt-primary: #d62828;
  --tt-primary-pressed: #b01e1e;
  --tt-on-primary: #ffffff;
  --tt-primary-text: #ff6b6f;
  --tt-accent: #f5a524;
  --tt-accent-fill: #f5a524;
  --tt-on-accent: #0f0f11;
  --tt-done: #2dd4bf;
  --tt-done-fill: #2dd4bf;
  --tt-done-tint: rgba(45, 212, 191, 0.12);
  --tt-on-done: #0f0f11;
  --tt-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --tt-focus: 0 0 0 3px rgba(255, 107, 111, 0.45);
  color-scheme: dark;
}

/* Shared building blocks for redesigned screens. See tokens.css. */

.tt {
  font-family: var(--tt-font-body);
  color: var(--tt-text);
  background: var(--tt-bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.tt *,
.tt *::before,
.tt *::after {
  box-sizing: border-box;
}

.tt-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Text */
.tt-display {
  font-family: var(--tt-font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.2px;
  margin: 0;
}
.tt-title {
  font-family: var(--tt-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}
.tt-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}
.tt-muted {
  color: var(--tt-text-muted);
}
.tt-num {
  font-variant-numeric: tabular-nums;
}

/* Cards */
.tt-card {
  background: var(--tt-surface);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-lg);
  padding: var(--tt-space-4);
}

/* Buttons */
.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tt-space-2);
  min-height: var(--tt-tap);
  padding: 0 var(--tt-space-4);
  border-radius: var(--tt-radius-md);
  border: 1px solid transparent;
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  background: var(--tt-surface-3);
  color: var(--tt-text);
  transition: background-color var(--tt-fast) var(--tt-ease), transform var(--tt-fast) var(--tt-ease);
  -webkit-tap-highlight-color: transparent;
}
.tt-btn:active {
  transform: scale(0.97);
}
.tt-btn:focus-visible,
.tt-icon-btn:focus-visible,
.tt-segmented button:focus-visible {
  outline: none;
  box-shadow: var(--tt-focus);
}
.tt-btn:disabled,
.tt-icon-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.tt-btn--primary {
  background: var(--tt-primary);
  color: var(--tt-on-primary);
}
.tt-btn--primary:hover {
  background: var(--tt-primary-pressed);
}
.tt-btn--inverse {
  background: var(--tt-text);
  color: var(--tt-bg);
}
.tt-btn--ghost {
  background: transparent;
  color: var(--tt-primary-text);
}
.tt-btn--block {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}

.tt-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tt-tap);
  height: var(--tt-tap);
  border-radius: var(--tt-radius-md);
  border: 1px solid var(--tt-line);
  background: var(--tt-surface);
  color: var(--tt-text);
  cursor: pointer;
  padding: 0;
}

/* Inputs. Older global styles size every text box; undo that here. */
.tt input,
.tt select,
.tt textarea {
  margin: 0;
  min-width: 0;
}
.tt .tt-input {
  width: 100%;
  height: var(--tt-tap);
  border-radius: var(--tt-radius-md);
  border: 1px solid var(--tt-line);
  background: var(--tt-bg);
  color: var(--tt-text);
  padding: 0 var(--tt-space-3);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
}
.tt .tt-input:focus {
  outline: none;
  border-color: var(--tt-primary-text);
  box-shadow: var(--tt-focus);
}
.tt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--tt-text-muted);
}

/* Chips */
.tt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--tt-radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--tt-surface-2);
  color: var(--tt-text-muted);
}
.tt-chip--accent {
  background: var(--tt-accent-fill);
  color: var(--tt-on-accent);
}

/* Segmented control */
.tt-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-bg);
}
.tt-segmented button {
  min-height: 40px;
  border: none;
  border-radius: var(--tt-radius-sm);
  background: transparent;
  color: var(--tt-text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.tt-segmented button[aria-pressed="true"] {
  background: var(--tt-surface-3);
  color: var(--tt-text);
  font-weight: 700;
}

/* Progress bar */
.tt-progress {
  height: 4px;
  background: var(--tt-surface-2);
}
.tt-progress > span {
  display: block;
  height: 100%;
  background: var(--tt-primary-text);
  transition: width var(--tt-med) var(--tt-ease);
}

/* Bottom sheet dialog */
.tt-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: tt-fade var(--tt-med) var(--tt-ease);
}
.tt-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--tt-surface);
  border-radius: var(--tt-radius-lg) var(--tt-radius-lg) 0 0;
  padding: var(--tt-space-6) var(--tt-space-5) calc(var(--tt-space-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-3);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: tt-rise var(--tt-med) var(--tt-ease);
}
@media (min-width: 600px) {
  .tt-sheet-backdrop {
    align-items: center;
  }
  .tt-sheet {
    border-radius: var(--tt-radius-lg);
  }
}

@keyframes tt-fade {
  from { opacity: 0; }
}
@keyframes tt-rise {
  from { transform: translateY(24px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tt *,
  .tt-sheet-backdrop,
  .tt-sheet {
    animation: none !important;
    transition: none !important;
  }
}

/* Number boxes in set tables */
.tt .tt-number {
  width: 100%;
  height: 40px;
  border-radius: var(--tt-radius-sm);
  border: 1px solid var(--tt-line-strong);
  background: var(--tt-surface-2);
  color: var(--tt-text);
  text-align: center;
  font-family: var(--tt-font-body);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
  max-width: none;
  min-width: 0;
}
.tt .tt-number:focus {
  outline: none;
  border-color: var(--tt-primary-text);
  box-shadow: var(--tt-focus);
}

/* Section heading with a note on the right */
.tt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--tt-space-3);
  margin-bottom: var(--tt-space-3);
}

/* Tappable list rows inside a card */
.tt-rows {
  display: flex;
  flex-direction: column;
  padding: var(--tt-space-1) var(--tt-space-4);
}
.tt-rows > * + * {
  border-top: 1px solid var(--tt-line);
}
.tt-row {
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  width: 100%;
  min-height: 60px;
  padding: var(--tt-space-3) 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tt-row:focus-visible {
  outline: none;
  box-shadow: var(--tt-focus);
  border-radius: var(--tt-radius-sm);
}
.tt-row__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.tt-row__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-text);
}
.tt-row__value {
  font-family: var(--tt-font-display);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

/* Choice lists in sheets */
.tt-choices {
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-2);
  max-height: 60vh;
  overflow-y: auto;
}
.tt-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-3);
  min-height: 56px;
  padding: 0 var(--tt-space-4);
  border-radius: var(--tt-radius-md);
  border: 1px solid var(--tt-line);
  background: var(--tt-surface-2);
  color: var(--tt-text);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tt-choice > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
}
.tt-choice:hover {
  color: var(--tt-text);
  border-color: var(--tt-line-strong);
}
.tt-choice[aria-pressed="true"] {
  border-color: var(--tt-primary-text);
}
.tt-choice:focus-visible {
  outline: none;
  box-shadow: var(--tt-focus);
}

.tt-avatar {
  flex: none;
  width: var(--tt-tap);
  height: var(--tt-tap);
  border-radius: 50%;
  border: 1px solid var(--tt-line);
  background: var(--tt-surface);
  color: var(--tt-text);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tt .tt-number--wide {
  height: var(--tt-tap);
  text-align: left;
  padding: 0 var(--tt-space-3);
}
.tt-field small {
  font-size: 12px;
}

.tt-chip.is-done {
  background: var(--tt-done-tint);
  color: var(--tt-text);
}

/* Line chart */
.tt-chart {
  margin: 0;
}
.tt-chart__plot {
  position: relative;
  touch-action: pan-y;
}
.tt-chart__plot svg {
  display: block;
  overflow: visible;
}
.tt-chart__tip {
  position: absolute;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--tt-radius-sm);
  background: var(--tt-surface-3);
  color: var(--tt-text);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--tt-shadow);
}

.tt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tt-consent {
  position: fixed;
  left: var(--tt-space-4);
  right: var(--tt-space-4);
  bottom: calc(var(--tt-space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 2000;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-3) var(--tt-space-4);
  padding: var(--tt-space-4);
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  color: var(--tt-text);
  font-family: var(--tt-font-body);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.tt-consent p {
  flex: 1 1 260px;
  margin: 0;
}
.tt-consent a {
  color: var(--tt-primary-text);
}
.tt-consent__actions {
  display: flex;
  gap: var(--tt-space-2);
  margin-left: auto;
}

/* Layout for the training guides. The app's tokens, components and consent
   banner styles are put in front of this file by scripts/build-guides.mjs. */
html {
  background: var(--tt-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body.g-body {
  margin: 0;
  min-height: 100vh;
  background: var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--tt-font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.g-body a {
  color: var(--tt-primary-text);
}
.g-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--tt-space-4);
}
.g-skip {
  position: absolute;
  left: -9999px;
}
.g-skip:focus {
  left: var(--tt-space-4);
  top: var(--tt-space-4);
  z-index: 3000;
  padding: var(--tt-space-2) var(--tt-space-3);
  background: var(--tt-surface);
  border-radius: var(--tt-radius-sm);
}

/* Header and footer */
.g-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 17, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--tt-line);
}
.g-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-4);
  min-height: 64px;
}
.g-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  color: var(--tt-text) !important;
  font-family: var(--tt-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.g-brand span {
  color: var(--tt-primary-text);
}
.g-header__nav {
  display: flex;
  align-items: center;
  gap: var(--tt-space-5);
}
.g-header__nav a:not(.tt-btn) {
  color: var(--tt-text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.g-header__nav a:not(.tt-btn):hover {
  color: var(--tt-text);
}
.g-body a.tt-btn--primary {
  color: var(--tt-on-primary);
}
.g-header__cta {
  min-height: 40px;
  font-size: 15px;
  text-decoration: none;
}
@media (max-width: 640px) {
  .g-header__nav a:not(.tt-btn) {
    display: none;
  }
  .g-brand {
    font-size: 18px;
  }
}

.g-footer {
  margin-top: 96px;
  padding: var(--tt-space-8) 0 calc(var(--tt-space-8) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--tt-line);
  background: var(--tt-surface);
  color: var(--tt-text-muted);
  font-size: 15px;
}
.g-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--tt-space-6);
}
.g-footer p {
  max-width: 360px;
  margin: var(--tt-space-3) 0 0;
}
.g-footer nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--tt-space-2) var(--tt-space-8);
  align-content: start;
}
.g-footer nav a {
  color: var(--tt-text-muted);
  text-decoration: none;
}
.g-footer nav a:hover {
  color: var(--tt-text);
}

/* Page top */
.g-hero {
  padding-top: 56px;
  padding-bottom: var(--tt-space-8);
}
.g-hero h1 {
  max-width: 820px;
  margin: var(--tt-space-3) 0 var(--tt-space-4);
  font-family: var(--tt-font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-wrap: balance;
}
.g-hero--index h1 {
  max-width: 760px;
}
.g-lede {
  max-width: 720px;
  margin: 0;
  color: var(--tt-text-muted);
  font-size: 20px;
  line-height: 1.5;
}
.g-meta {
  margin: var(--tt-space-4) 0 0;
  color: var(--tt-text-muted);
  font-size: 14px;
  font-weight: 600;
}
.g-crumbs {
  display: flex;
  gap: var(--tt-space-2);
  color: var(--tt-text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.g-crumbs a {
  text-decoration: none;
}

/* Article */
.g-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--tt-space-8);
  border-top: 1px solid var(--tt-line);
  padding-top: var(--tt-space-8);
}
@media (min-width: 1000px) {
  .g-layout {
    grid-template-columns: 240px minmax(0, 720px);
    gap: 64px;
  }
}
@media (min-width: 1000px) {
  .g-layout--single {
    grid-template-columns: minmax(0, 820px);
  }
}
.g-toc {
  font-size: 15px;
  line-height: 1.4;
}
.g-toc ol {
  margin: var(--tt-space-3) 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--tt-line);
}
.g-toc li a {
  display: block;
  padding: 6px 0 6px var(--tt-space-3);
  color: var(--tt-text-muted);
  text-decoration: none;
}
.g-toc li a:hover {
  color: var(--tt-text);
}
@media (min-width: 1000px) {
  .g-toc {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
@media (max-width: 999px) {
  .g-toc {
    padding: var(--tt-space-4);
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-lg);
    background: var(--tt-surface);
  }
}

.g-prose {
  min-width: 0;
}
.g-prose > :first-child {
  margin-top: 0;
}
.g-prose h2 {
  margin: 56px 0 var(--tt-space-3);
  font-family: var(--tt-font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}
.g-prose h3 {
  margin: var(--tt-space-8) 0 var(--tt-space-2);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.g-prose p,
.g-prose ul,
.g-prose ol {
  margin: 0 0 var(--tt-space-5);
}
.g-prose ul,
.g-prose ol {
  padding-left: 1.3em;
}
.g-prose li {
  margin-bottom: var(--tt-space-2);
}
.g-prose li::marker {
  color: var(--tt-primary-text);
  font-weight: 700;
}
.g-prose strong {
  color: var(--tt-text);
  font-weight: 700;
}
.g-prose blockquote {
  margin: var(--tt-space-6) 0;
  padding: var(--tt-space-4) var(--tt-space-5);
  border-left: 4px solid var(--tt-accent);
  border-radius: 0 var(--tt-radius-md) var(--tt-radius-md) 0;
  background: var(--tt-surface);
}
.g-prose blockquote p:last-child {
  margin-bottom: 0;
}
.g-prose hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--tt-line);
}
.g-table {
  margin: 0 0 var(--tt-space-6);
  overflow-x: auto;
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-md);
}
.g-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
}
.g-table th,
.g-table td {
  padding: var(--tt-space-3) var(--tt-space-4);
  border-bottom: 1px solid var(--tt-line);
  text-align: left;
  vertical-align: top;
}
.g-table th {
  background: var(--tt-surface-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--tt-text-muted);
  white-space: nowrap;
}
.g-table tr:last-child td {
  border-bottom: 0;
}

/* Quick answer at the top, and sources at the bottom */
.g-answer {
  margin: 0 0 var(--tt-space-8);
  padding: var(--tt-space-5);
  border: 1px solid var(--tt-line-strong);
  border-left: 4px solid var(--tt-done-fill);
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface);
}
.g-answer .tt-eyebrow {
  margin: 0 0 var(--tt-space-2);
  color: var(--tt-done);
}
.g-answer p:last-child {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}
.g-sources ol {
  font-size: 15px;
  line-height: 1.5;
  color: var(--tt-text-muted);
}

/* Call to action into the app */
.g-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-4) var(--tt-space-6);
  margin: 56px 0 0;
  padding: var(--tt-space-6);
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(214, 40, 40, 0.22), transparent 55%),
    var(--tt-surface);
}
.g-cta > div {
  flex: 1 1 320px;
}
.g-cta p {
  margin: 0;
  color: var(--tt-text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.g-cta .g-cta__title {
  margin-bottom: var(--tt-space-2);
  color: var(--tt-text);
  font-family: var(--tt-font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.g-cta .tt-btn {
  color: var(--tt-on-primary);
  text-decoration: none;
}

/* Guide cards */
.g-section-title {
  margin: 0 0 var(--tt-space-4);
  font-family: var(--tt-font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}
.g-related {
  margin-top: 72px;
}
.g-index-section {
  margin-bottom: 48px;
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--tt-space-4);
}
.g-card {
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-2);
  padding: var(--tt-space-5);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  color: var(--tt-text) !important;
  text-decoration: none;
  transition: border-color var(--tt-fast) var(--tt-ease), transform var(--tt-fast) var(--tt-ease);
}
.g-card:hover {
  border-color: var(--tt-primary);
  transform: translateY(-2px);
}
.g-card .tt-eyebrow {
  color: var(--tt-primary-text);
}
.g-card__title {
  font-family: var(--tt-font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.g-card__text {
  color: var(--tt-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Circuit timer (guides/assets/circuit-timer.js) */
.g-prose .g-timer-note {
  margin: calc(-1 * var(--tt-space-8)) 0 48px;
  padding: var(--tt-space-4) var(--tt-space-5);
  border-left: 4px solid var(--tt-primary);
  border-radius: 0 var(--tt-radius-md) var(--tt-radius-md) 0;
  background: var(--tt-surface-2);
  font-size: 16px;
  line-height: 1.5;
}
.g-timer-note a {
  font-weight: 700;
  white-space: nowrap;
}
.g-timer {
  margin: 0 0 48px;
  padding: var(--tt-space-5);
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  font-size: 16px;
  line-height: 1.4;
}
.g-timer__stage {
  display: grid;
  justify-items: center;
  gap: var(--tt-space-2);
  padding: var(--tt-space-4) 0 var(--tt-space-5);
  text-align: center;
}
.g-timer__phase {
  padding: 4px 14px;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-surface-3);
  color: var(--tt-text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.g-timer[data-phase="work"] .g-timer__phase {
  background: var(--tt-primary);
  color: var(--tt-on-primary);
}
.g-timer[data-phase="rest"] .g-timer__phase,
.g-timer[data-phase="roundRest"] .g-timer__phase {
  background: var(--tt-done-fill);
  color: var(--tt-on-done);
}
.g-timer[data-phase="done"] .g-timer__phase {
  background: var(--tt-accent-fill);
  color: var(--tt-on-accent);
}
.g-timer__ring {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
}
.g-timer__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.g-timer__ring circle {
  fill: none;
  stroke-width: 10;
}
.g-timer__track {
  stroke: var(--tt-surface-3);
}
.g-timer__bar {
  stroke: var(--tt-primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 120ms linear;
}
.g-timer[data-phase="rest"] .g-timer__bar,
.g-timer[data-phase="roundRest"] .g-timer__bar {
  stroke: var(--tt-done-fill);
}
.g-timer[data-phase="prep"] .g-timer__bar {
  stroke: var(--tt-accent-fill);
}
.g-timer__clock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--tt-font-display);
  font-size: clamp(64px, 18vw, 96px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.g-timer__now {
  margin: 0;
  font-family: var(--tt-font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.g-timer__next,
.g-timer__round {
  margin: 0;
  color: var(--tt-text-muted);
  font-size: 15px;
  font-weight: 600;
}
.g-timer__controls {
  display: flex;
  justify-content: center;
  gap: var(--tt-space-2);
  margin-bottom: var(--tt-space-5);
}
.g-timer__controls .tt-btn--primary {
  min-width: 140px;
}
.g-timer__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tt-space-2);
  margin-bottom: var(--tt-space-4);
}
.g-timer__presets button {
  min-height: 36px;
  padding: 0 var(--tt-space-3);
  border: 1px solid var(--tt-line-strong);
  border-radius: var(--tt-radius-pill);
  background: transparent;
  color: var(--tt-text);
  font: 600 14px var(--tt-font-body);
  cursor: pointer;
}
.g-timer__presets button:hover {
  border-color: var(--tt-primary);
}
.g-timer__settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--tt-space-3);
}
.g-timer__settings .tt-field {
  font-size: 14px;
}
.g-timer__settings .g-timer__wide {
  grid-column: 1 / -1;
}
.g-timer textarea.tt-input {
  height: auto;
  min-height: 112px;
  padding-top: var(--tt-space-2);
  resize: vertical;
  line-height: 1.5;
}
.g-timer__total {
  margin: var(--tt-space-3) 0 0;
  color: var(--tt-text-muted);
  font-size: 14px;
}
.g-timer__sound {
  display: inline-flex;
  align-items: center;
  gap: var(--tt-space-2);
  font-size: 14px;
  font-weight: 600;
}
.g-timer:fullscreen {
  display: grid;
  align-content: center;
  border: 0;
  border-radius: 0;
  overflow: auto;
}
.g-timer:fullscreen .g-timer__ring {
  width: min(60vh, 80vw);
}
