/* The Ghost Athlete — site.css. Tokens + components from the design system, then page styles. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img{max-width:100%}
/* The Ghost Athlete — colors. Dark "Racing green" is the default; light "Paper" via data-theme="light". Values from tokens.json. */
:root {
  --surface: #0B3B2A; /* Page background. Dark is the brand default (hero, social, Home). Paper is for long reading (Journey, Start here body). */
  --surface-raised: #10442F; /* Cards, StatCard, WeekEntry rows, form fields. */
  --surface-sunken: #082E21; /* Full-width bands, footer, code/data panels. */
  --line: #245A45; /* Hairline dividers and card outlines. Decorative only: never the only border of a control. */
  --line-strong: #5E8572; /* Input borders, focus-free control outlines. 3:1 on surface and surface-raised in both themes. */
  --ink: #F2EDE3; /* Primary text and headlines on surface, surface-raised and surface-sunken. */
  --ink-muted: #9FB5A8; /* Secondary text, captions, labels, footer copy. ≥5:1 on every surface. */
  --accent: #E3C26F; /* The one highlight: primary buttons, the key number, active nav, links. One accent element per view. */
  --on-accent: #0B3B2A; /* Text and icons on accent fills (buttons). */
  --focus: #E3C26F; /* 2px focus ring, offset 2px. */
  --brg: #0E5A3C; /* Identity: British racing green. Large blocks, cover, social backgrounds on paper theme. Text on it uses cream. */
  --brass: #E3C26F; /* Identity: brass. Highlights, data key series, wordmark on dark. Never text on paper. */
  --cream: #F2EDE3; /* Identity: cream. Text on brg and photo overlays. */
  --context: #5E8572; /* Chart context series, gridless reference lines, inactive dots. Never text. */
  --status-win: #7FC79B; /* WeekStatus Win: label text, border and dot. ≥4.5:1 on surface and surface-raised. */
  --status-steady: #9FB5A8; /* WeekStatus Steady: label text, border and dot. */
  --status-downshift: #E3C26F; /* WeekStatus Downshift (a deliberate lighter week): label text, border and dot. */
  --status-setback: #EC8E7A; /* WeekStatus Setback and chart warnings. Small use only; never a big block. */
  --photo-overlay: #08140F; /* Bottom photo overlay end color, used at about 90% */
}
[data-theme="dark"] {
  --surface: #0B3B2A; /* Page background. Dark is the brand default (hero, social, Home). Paper is for long reading (Journey, Start here body). */
  --surface-raised: #10442F; /* Cards, StatCard, WeekEntry rows, form fields. */
  --surface-sunken: #082E21; /* Full-width bands, footer, code/data panels. */
  --line: #245A45; /* Hairline dividers and card outlines. Decorative only: never the only border of a control. */
  --line-strong: #5E8572; /* Input borders, focus-free control outlines. 3:1 on surface and surface-raised in both themes. */
  --ink: #F2EDE3; /* Primary text and headlines on surface, surface-raised and surface-sunken. */
  --ink-muted: #9FB5A8; /* Secondary text, captions, labels, footer copy. ≥5:1 on every surface. */
  --accent: #E3C26F; /* The one highlight: primary buttons, the key number, active nav, links. One accent element per view. */
  --on-accent: #0B3B2A; /* Text and icons on accent fills (buttons). */
  --focus: #E3C26F; /* 2px focus ring, offset 2px. */
  --brg: #0E5A3C; /* Identity: British racing green. Large blocks, cover, social backgrounds on paper theme. Text on it uses cream. */
  --brass: #E3C26F; /* Identity: brass. Highlights, data key series, wordmark on dark. Never text on paper. */
  --cream: #F2EDE3; /* Identity: cream. Text on brg and photo overlays. */
  --context: #5E8572; /* Chart context series, gridless reference lines, inactive dots. Never text. */
  --status-win: #7FC79B; /* WeekStatus Win: label text, border and dot. ≥4.5:1 on surface and surface-raised. */
  --status-steady: #9FB5A8; /* WeekStatus Steady: label text, border and dot. */
  --status-downshift: #E3C26F; /* WeekStatus Downshift (a deliberate lighter week): label text, border and dot. */
  --status-setback: #EC8E7A; /* WeekStatus Setback and chart warnings. Small use only; never a big block. */
}
[data-theme="light"] {
  --surface: #F4F0E6; /* Page background. Dark is the brand default (hero, social, Home). Paper is for long reading (Journey, Start here body). */
  --surface-raised: #FBF8F1; /* Cards, StatCard, WeekEntry rows, form fields. */
  --surface-sunken: #ECE6D8; /* Full-width bands, footer, code/data panels. */
  --line: #D8D1C1; /* Hairline dividers and card outlines. Decorative only: never the only border of a control. */
  --line-strong: #6E8077; /* Input borders, focus-free control outlines. 3:1 on surface and surface-raised in both themes. */
  --ink: #10251C; /* Primary text and headlines on surface, surface-raised and surface-sunken. */
  --ink-muted: #4D6157; /* Secondary text, captions, labels, footer copy. ≥5:1 on every surface. */
  --accent: #0E5A3C; /* The one highlight: primary buttons, the key number, active nav, links. One accent element per view. */
  --on-accent: #F4F0E6; /* Text and icons on accent fills (buttons). */
  --focus: #0E5A3C; /* 2px focus ring, offset 2px. */
  --brg: #0E5A3C; /* Identity: British racing green. Large blocks, cover, social backgrounds on paper theme. Text on it uses cream. */
  --brass: #E3C26F; /* Identity: brass. Highlights, data key series, wordmark on dark. Never text on paper. */
  --cream: #F2EDE3; /* Identity: cream. Text on brg and photo overlays. */
  --context: #A7B3AC; /* Chart context series, gridless reference lines, inactive dots. Never text. */
  --status-win: #1E7A4C; /* WeekStatus Win: label text, border and dot. ≥4.5:1 on surface and surface-raised. */
  --status-steady: #56685F; /* WeekStatus Steady: label text, border and dot. */
  --status-downshift: #8A5E0E; /* WeekStatus Downshift (a deliberate lighter week): label text, border and dot. */
  --status-setback: #B5432F; /* WeekStatus Setback and chart warnings. Small use only; never a big block. */
}

/* The Ghost Athlete — typography. Inter (400/500/600/700) and JetBrains Mono (500). Values from tokens.json. */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --type-display-xl: 700 72px/76px var(--font-sans); /* Home hero headline only. 44px/48px on mobile. */
  --type-display-xl-size: 72px;
  --type-display-xl-line: 76px;
  --type-display-xl-weight: 700;
  --type-display-xl-tracking: -0.02em;
  --type-display: 700 52px/56px var(--font-sans); /* Page titles. 36px/40px on mobile. */
  --type-display-size: 52px;
  --type-display-line: 56px;
  --type-display-weight: 700;
  --type-display-tracking: -0.015em;
  --type-h1: 700 36px/42px var(--font-sans); /* Section headings. 28px/34px on mobile. */
  --type-h1-size: 36px;
  --type-h1-line: 42px;
  --type-h1-weight: 700;
  --type-h1-tracking: -0.01em;
  --type-h2: 600 26px/32px var(--font-sans); /* Sub-sections, card titles. */
  --type-h2-size: 26px;
  --type-h2-line: 32px;
  --type-h2-weight: 600;
  --type-h2-tracking: 0;
  --type-h3: 600 20px/28px var(--font-sans); /* Small headings, WeekEntry titles. */
  --type-h3-size: 20px;
  --type-h3-line: 28px;
  --type-h3-weight: 600;
  --type-h3-tracking: 0;
  --type-body-lg: 400 20px/32px var(--font-sans); /* Lead paragraphs, story beats. */
  --type-body-lg-size: 20px;
  --type-body-lg-line: 32px;
  --type-body-lg-weight: 400;
  --type-body-lg-tracking: 0;
  --type-body: 400 17px/28px var(--font-sans); /* Default reading text. Max measure 680px. */
  --type-body-size: 17px;
  --type-body-line: 28px;
  --type-body-weight: 400;
  --type-body-tracking: 0;
  --type-small: 500 14px/20px var(--font-sans); /* Captions, disclaimers, meta. */
  --type-small-size: 14px;
  --type-small-line: 20px;
  --type-small-weight: 500;
  --type-small-tracking: 0;
  --type-label: 600 12px/16px var(--font-sans); /* Uppercase eyebrows, wordmark, status labels. */
  --type-label-size: 12px;
  --type-label-line: 16px;
  --type-label-weight: 600;
  --type-label-tracking: 0.08em;
  --type-data-xl: 500 56px/60px var(--font-mono); /* The key number in StatCard. 40px on mobile. */
  --type-data-xl-size: 56px;
  --type-data-xl-line: 60px;
  --type-data-xl-weight: 500;
  --type-data-xl-tracking: -0.02em;
  --type-data: 500 20px/24px var(--font-mono); /* Inline metrics, table numbers, deltas. */
  --type-data-size: 20px;
  --type-data-line: 24px;
  --type-data-weight: 500;
  --type-data-tracking: 0;
  --type-data-sm: 500 13px/18px var(--font-mono); /* Week counters, axis labels. */
  --type-data-sm-size: 13px;
  --type-data-sm-line: 18px;
  --type-data-sm-weight: 500;
  --type-data-sm-tracking: 0;
}

/* The Ghost Athlete — spacing. Values from tokens.json. */
:root {
  --space-1: 4px; /* Icon gaps, dot spacing. */
  --space-2: 8px; /* Tight gaps inside labels and pills. */
  --space-3: 12px; /* Gap between label and value. */
  --space-4: 16px; /* Card inner gap, form field padding. */
  --space-6: 24px; /* Card padding (mobile), stack gap between paragraphs. */
  --space-8: 32px; /* Card padding (desktop), gap between cards. */
  --space-12: 48px; /* Section padding (mobile). */
  --space-16: 64px; /* Gap between sections inside a page. */
  --space-24: 96px; /* Section padding (desktop). */
  --space-32: 128px; /* Hero top/bottom padding (desktop). */
}

/* The Ghost Athlete — radius. Values from tokens.json. */
:root {
  --radius-sm: 4px; /* Status pills edges, small tags, chart bar ends. */
  --radius-md: 8px; /* Buttons, inputs. */
  --radius-lg: 16px; /* Cards, images, StatCard. */
  --radius-full: 999px; /* Status dots and round avatars only. */
}

/* The Ghost Athlete — layout. Values from tokens.json. */
:root {
  --content-max: 1120px; /* Max page width. */
  --measure: 680px; /* Max width of running text. */
  --gutter: 24px; /* Grid gutter; page side padding on mobile. */
}

/* The Ghost Athlete — component styles. All values come from tokens.css variables. */
.tga-root{font-family:var(--font-sans);color:var(--ink);background:var(--surface);}
.tga-wordmark{font-family:var(--font-sans);font-size:13px;line-height:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brass);}
[data-theme="light"] .tga-wordmark{color:var(--accent);}
.tga-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:48px;padding:0 var(--space-6);border-radius:var(--radius-md);font-family:var(--font-sans);font-size:16px;font-weight:600;line-height:20px;text-decoration:none;cursor:pointer;border:1.5px solid transparent;transition:background-color .15s ease-out,color .15s ease-out,border-color .15s ease-out;}
.tga-btn--primary{background:var(--accent);color:var(--on-accent);}
.tga-btn--primary:hover{filter:brightness(1.06);}
.tga-btn--secondary{background:transparent;color:var(--ink);border-color:var(--line-strong);}
.tga-btn--secondary:hover{border-color:var(--ink);}
.tga-btn--text{background:transparent;color:var(--accent);padding:0;min-height:44px;}
.tga-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.tga-status{display:inline-flex;align-items:center;gap:var(--space-2);height:28px;padding:0 var(--space-3);border-radius:var(--radius-sm);border:1px solid currentColor;font-family:var(--font-sans);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;}
.tga-status::before{content:"";width:8px;height:8px;border-radius:var(--radius-full);background:currentColor;}
.tga-status--win{color:var(--status-win);} .tga-status--steady{color:var(--status-steady);}
.tga-status--downshift{color:var(--status-downshift);} .tga-status--setback{color:var(--status-setback);}
.tga-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-8);}
.tga-eyebrow{font-size:12px;line-height:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted);}
.tga-stat__head{display:flex;justify-content:space-between;align-items:center;gap:var(--space-4);flex-wrap:wrap;margin-bottom:var(--space-6);}
.tga-stat__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6);}
.tga-stat__value{font-family:var(--font-mono);font-size:44px;line-height:48px;font-weight:500;letter-spacing:-.02em;color:var(--ink);}
.tga-stat__value--key{color:var(--accent);}
.tga-stat__unit{font-family:var(--font-sans);font-size:16px;color:var(--ink-muted);margin-left:4px;letter-spacing:0;}
.tga-stat__delta{font-family:var(--font-mono);font-size:14px;line-height:20px;color:var(--ink-muted);margin-top:var(--space-1);}
.tga-stat__note{margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--line);font-size:17px;line-height:28px;color:var(--ink);}
.tga-week{display:grid;grid-template-columns:88px 1fr auto;gap:var(--space-6);align-items:start;padding:var(--space-6) 0;border-bottom:1px solid var(--line);}
.tga-week__num{font-family:var(--font-mono);font-size:13px;line-height:18px;font-weight:500;color:var(--ink-muted);padding-top:6px;}
.tga-week__title{font-size:20px;line-height:28px;font-weight:600;margin:var(--space-2) 0 var(--space-1);}
.tga-week__text{font-size:17px;line-height:28px;color:var(--ink-muted);margin:0;}
.tga-week__metrics{display:flex;gap:var(--space-4);margin-top:var(--space-3);font-family:var(--font-mono);font-size:14px;color:var(--ink);}
.tga-balance{display:grid;grid-template-columns:auto 80px;gap:6px var(--space-3);align-items:center;font-size:12px;color:var(--ink-muted);}
.tga-balance__bar{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;}
.tga-balance__bar span{height:6px;border-radius:2px;background:var(--line);}
.tga-balance__bar span.on{background:var(--accent);}
.tga-signup{background:var(--surface-sunken);border-radius:var(--radius-lg);padding:var(--space-12) var(--space-8);}
.tga-signup__title{font-size:36px;line-height:42px;font-weight:700;letter-spacing:-.01em;margin:0 0 var(--space-3);}
.tga-signup__text{font-size:17px;line-height:28px;color:var(--ink-muted);margin:0 0 var(--space-6);max-width:var(--measure);}
.tga-signup__form{display:flex;gap:var(--space-3);flex-wrap:wrap;}
.tga-input{flex:1 1 240px;min-height:48px;padding:0 var(--space-4);border-radius:var(--radius-md);border:1.5px solid var(--line-strong);background:var(--surface-raised);color:var(--ink);font-family:var(--font-sans);font-size:16px;}
.tga-input::placeholder{color:var(--ink-muted);}
.tga-input:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.tga-signup__fine{margin-top:var(--space-4);font-size:14px;line-height:20px;color:var(--ink-muted);}
@media (max-width:600px){.tga-stat__value{font-size:40px;line-height:44px}.tga-stat__grid{grid-template-columns:1fr 1fr}.tga-week{grid-template-columns:1fr}.tga-card{padding:var(--space-6)}}
/* Standalone key number (hero stat, social slide): the only place data-xl (56px) is used. */
.tga-keynumber{font:var(--type-data-xl);letter-spacing:var(--type-data-xl-tracking);color:var(--accent);}
@media (max-width:600px){.tga-keynumber{font-size:40px;line-height:44px}}
/* Website layout (ui_kits/website). Mobile first, 390px. */
.tga-container{max-width:var(--content-max);margin:0 auto;padding:0 var(--gutter);}
.tga-section{padding:var(--space-12) 0;}
.tga-header{box-sizing:border-box;height:64px;border-bottom:1px solid var(--line);background:var(--surface);position:relative;z-index:2;}
.tga-header__in{height:63px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);}
.tga-nav{display:none;gap:var(--space-8);}
.tga-nav a,.tga-footer__nav a{font-size:16px;line-height:20px;font-weight:500;color:var(--ink);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;transition:color .15s ease-out;}
.tga-nav a:hover,.tga-footer__nav a:hover{color:var(--ink-muted);}
.tga-menu-btn{min-height:44px;padding:0 var(--space-3);border-radius:var(--radius-md);border:1.5px solid var(--line-strong);background:transparent;color:var(--ink);font-family:var(--font-sans);font-size:16px;font-weight:600;cursor:pointer;}
.tga-menu-btn:focus-visible,.tga-nav a:focus-visible,.tga-footer a:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.tga-menu{display:grid;padding:var(--space-2) var(--gutter) var(--space-4);border-bottom:1px solid var(--line);background:var(--surface);}
.tga-menu a{font-size:17px;line-height:28px;font-weight:500;color:var(--ink);text-decoration:none;min-height:48px;display:flex;align-items:center;}
.tga-hero{position:relative;min-height:88vh;display:flex;flex-direction:column;background:var(--photo-overlay);overflow:hidden;}
.tga-hero__photo{display:block;width:100%;height:44vh;min-height:280px;object-fit:cover;object-position:50% 22%;}
.tga-hero__shade{position:absolute;left:0;right:0;top:0;height:44vh;min-height:280px;background:linear-gradient(to bottom,transparent 45%,var(--photo-overlay) 100%);}
.tga-hero__in{position:relative;width:100%;box-sizing:border-box;padding-top:var(--space-4);padding-bottom:var(--space-12);}
.tga-hero__eyebrow{font:var(--type-label);letter-spacing:var(--type-label-tracking);text-transform:uppercase;color:var(--brass);}
.tga-hero__title{font-size:44px;line-height:48px;font-weight:700;letter-spacing:-.02em;color:var(--cream);margin:var(--space-4) 0;text-wrap:balance;}
.tga-hero__sub{font:var(--type-body-lg);color:var(--ink-muted);margin:0 0 var(--space-8);max-width:520px;}
.tga-hero__cta{display:grid;gap:var(--space-3);}
.tga-hero__fine{font:var(--type-small);color:var(--ink-muted);margin:var(--space-4) 0 0;}
.tga-h1{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.01em;margin:0 0 var(--space-6);text-wrap:balance;}
.tga-h2{font:var(--type-h2);margin:var(--space-3) 0 var(--space-2);}
.tga-body{font:var(--type-body);margin:0 0 var(--space-6);max-width:var(--measure);}
.tga-small{font:var(--type-small);color:var(--ink-muted);}
.tga-rules{display:grid;gap:var(--space-8);}
.tga-rule__num{font:var(--type-data);color:var(--ink-muted);}
.tga-rule p{font:var(--type-body);color:var(--ink-muted);margin:0;}
.tga-footer{background:var(--surface-sunken);padding:var(--space-12) 0;}
.tga-footer__nav{display:flex;gap:var(--space-2) var(--space-6);flex-wrap:wrap;margin:var(--space-6) 0;}
.tga-footer__links{display:flex;gap:var(--space-2) var(--space-6);flex-wrap:wrap;margin-top:var(--space-6);}
.tga-footer__links a{font:var(--type-small);color:var(--ink-muted);min-height:44px;display:inline-flex;align-items:center;}
.tga-footer p{font:var(--type-small);color:var(--ink-muted);margin:0 0 var(--space-1);max-width:var(--measure);}
@media (min-width:900px){
.tga-section{padding:var(--space-24) 0;}
.tga-nav{display:flex;}.tga-menu-btn,.tga-menu{display:none;}
.tga-hero{flex-direction:row;align-items:center;background:var(--surface);}
.tga-hero__photo{position:absolute;top:0;left:50%;width:50%;height:100%;min-height:0;object-position:50% 18%;}
.tga-hero__shade{display:none;}
.tga-hero__cta{display:flex;flex-wrap:wrap;}
.tga-hero__in{padding-top:var(--space-32);padding-bottom:var(--space-32);}
.tga-hero__copy{width:50%;padding-right:var(--space-8);box-sizing:border-box;}
.tga-hero__title{font-size:52px;line-height:56px;letter-spacing:-.015em;color:var(--ink);}
.tga-h1{font-size:36px;line-height:42px;}
.tga-rules{grid-template-columns:repeat(3,1fr);}
}
@media (min-width:1200px){.tga-hero__copy{padding-right:var(--space-16);}.tga-hero__title{font-size:72px;line-height:76px;letter-spacing:-.02em;}}
/* Logo: open 300° ring with a dot at the end + lockup. One color: brass on racing green, green on paper, cream on photos. */
.tga-logo{display:inline-flex;align-items:center;gap:10px;color:var(--brass);text-decoration:none;font-family:var(--font-sans);font-size:13px;line-height:16px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;}
.tga-logo svg{flex:none;width:28px;height:28px;}
.tga-logo b{font-weight:700;}
.tga-logo:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
[data-theme="light"] .tga-logo{color:var(--accent);}
[data-theme="dark"] .tga-logo{color:var(--brass);}

/* ---------- site pages ---------- */
a{color:var(--accent);text-underline-offset:3px;transition:color .15s ease-out}
a:hover{color:var(--ink)}
.tga-btn--primary:hover{color:var(--on-accent)}
.tga-nav a[aria-current],.tga-menu a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.tga-menu-d summary{display:inline-flex;align-items:center;list-style:none}
.tga-menu-d summary::-webkit-details-marker{display:none}
.tga-menu-d .tga-menu{position:absolute;left:0;right:0;top:64px}
.tga-section--flow{padding-top:0}
.tga-display{font-size:36px;line-height:40px;font-weight:700;letter-spacing:-.015em;margin:0 0 var(--space-4)}
.tga-lead{font:var(--type-body-lg);color:var(--ink-muted);margin:0;max-width:var(--measure)}
.tga-h3{font:var(--type-h3);margin:0 0 var(--space-1)}
.tga-season{font:var(--type-label);letter-spacing:var(--type-label-tracking);text-transform:uppercase;color:var(--ink-muted);margin:0 0 var(--space-2)}
.tga-prose{max-width:var(--measure)}
.tga-prose p{font:var(--type-body);margin:0 0 var(--space-6)}
.tga-prose p:last-child{margin-bottom:0}
.tga-split{display:grid;gap:var(--space-8)}
.tga-portrait{display:block;width:100%;max-width:360px;aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius-lg)}
.tga-beats,.tga-rows{list-style:none;margin:0;padding:0;max-width:var(--measure)}
.tga-beats li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:var(--space-4);padding:var(--space-6) 0;border-bottom:1px solid var(--line)}
.tga-beats .n{font:var(--type-data);color:var(--ink-muted);padding-top:2px}
.tga-beats p,.tga-qa p{font:var(--type-body);color:var(--ink-muted);margin:0}
.tga-rows li{font:var(--type-body);color:var(--ink-muted);padding:var(--space-4) 0;border-bottom:1px solid var(--line)}
.tga-rows b{color:var(--ink);font-weight:600}
.tga-bullets{margin:0 0 var(--space-8);padding-left:20px;max-width:var(--measure)}
.tga-bullets li{font:var(--type-body);margin-bottom:var(--space-2)}
.tga-qa{display:grid;gap:var(--space-6);max-width:var(--measure)}
.tga-legend{display:grid;gap:var(--space-4);max-width:var(--measure);margin-bottom:var(--space-6)}
.tga-legend div{display:grid;gap:var(--space-2);justify-items:start;font:var(--type-body);color:var(--ink-muted)}
.tga-sys{display:flex;flex-direction:column;align-items:stretch;margin-bottom:var(--space-6)}
.tga-sys__src{display:grid;gap:var(--space-2)}
.tga-sys__box{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4);font:var(--type-small);color:var(--ink-muted)}
.tga-sys__box b{display:block;color:var(--ink);font-weight:600}
.tga-sys__arrow{position:relative;align-self:center;width:1.5px;height:28px;margin:var(--space-2) 0 calc(var(--space-2) + 4px);background:var(--line-strong)}
.tga-sys__arrow::after{content:"";position:absolute;left:50%;bottom:-4px;width:8px;height:8px;border-right:1.5px solid var(--line-strong);border-bottom:1.5px solid var(--line-strong);transform:translateX(-50%) rotate(45deg)}
.tga-trend{margin:0 0 var(--space-12);max-width:var(--measure)}
.tga-trend__plot{position:relative;height:140px;border-bottom:1px solid var(--line)}
.tga-trend__pt{position:absolute;left:var(--space-6);display:flex;align-items:center;gap:var(--space-2);font:var(--type-data-sm);color:var(--ink)}
.tga-trend__pt i{width:10px;height:10px;border-radius:var(--radius-full);background:var(--accent)}
.tga-trend__pt--ctx i{background:var(--context)}
.tga-trend__axis{font:var(--type-data-sm);color:var(--ink-muted);padding:var(--space-2) 0 0 var(--space-6)}
.tga-trend figcaption{font:var(--type-small);color:var(--ink-muted);margin-top:var(--space-3)}
.tga-center{min-height:60vh;display:flex;align-items:center}
@media (max-width:600px){.tga-stat__grid{grid-template-columns:1fr;gap:var(--space-4)}}
@media (min-width:900px){
.tga-menu-d{display:none}
.tga-display{font-size:52px;line-height:56px}
.tga-split{grid-template-columns:360px minmax(0,1fr);gap:var(--space-16);align-items:start}
.tga-legend div{grid-template-columns:140px minmax(0,1fr);align-items:center}
.tga-sys{flex-direction:row;align-items:center}
.tga-sys__src{flex:1.4}
.tga-sys__box{flex:1}
.tga-sys__arrow{flex:none;width:28px;height:1.5px;margin:0 calc(var(--space-2) + 4px) 0 var(--space-2)}
.tga-sys__arrow::after{left:auto;right:-1px;bottom:auto;top:50%;transform:translateY(-50%) rotate(-45deg)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
