.ghg-page {
    --ghg-primary: var(--primary-color, #1a73e8);
    --ghg-primary-soft: #e8f1fd;
    --ghg-accent: #0f766e;
    --ghg-warning: #f59e0b;
    --ghg-danger: #dc2626;
    --ghg-surface: var(--bg-color, #fff);
    --ghg-soft: var(--header-bg, #f1f5f9);
    --ghg-text: var(--text-color, #333);
    --ghg-muted: #64748b;
    --ghg-line: #e2e8f0;
    --ghg-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    position: relative;
    overflow: clip;
    background: var(--ghg-surface);
    color: var(--ghg-text);
    font-family: "Roboto", sans-serif;
}

[data-theme="dark"] .ghg-page {
    --ghg-primary-soft: rgba(66, 133, 244, .14);
    --ghg-muted: #cbd5e1;
    --ghg-line: rgba(255, 255, 255, .12);
    --ghg-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

[x-cloak] { display: none !important; }
.ghg-page *, .ghg-page *::before, .ghg-page *::after { box-sizing: border-box; }
.ghg-page a { color: inherit; }
.ghg-wrap { width: min(calc(100% - 32px), 1200px); margin-inline: auto; }

.ghg-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: start;
}

.ghg-timeline {
    position: sticky;
    top: 110px;
    display: grid;
    grid-template-columns: 1fr 3px;
    gap: 32px;
    max-height: calc(100vh - 150px);
    margin: 72px 0;
}

.ghg-timeline-title,
.ghg-section-head > p,
.ghg-kicker {
    margin: 0;
    color: var(--ghg-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ghg-timeline-title { grid-column: 1 / -1; margin-bottom: 5px; color: var(--ghg-muted); }
.ghg-page .ghg-timeline nav {
    display: grid !important;
    gap: 0;
    position: static;
}
.ghg-timeline a {
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 47px;
    color: var(--ghg-muted);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.ghg-timeline a::before {
    content: "";
    position: absolute;
    right: -12px;
    width: 9px;
    height: 9px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: var(--ghg-surface);
    z-index: 1;
}
.ghg-timeline a span { font-size: 10px; font-weight: 700; }
.ghg-timeline a strong { font-size: 12px; line-height: 1.25; }
.ghg-timeline a:hover,
.ghg-timeline a.is-active { color: var(--ghg-primary); transform: translateX(3px); }
.ghg-timeline a.is-active::before {
    border-color: var(--ghg-primary);
    background: var(--ghg-primary);
    box-shadow: 0 0 0 4px var(--ghg-primary-soft);
}
.ghg-timeline-progress { position: relative; width: 3px; height: 100%; border-radius: 4px; background: var(--ghg-line); }
.ghg-timeline-progress i {
    position: absolute;
    inset: 0 0 auto;
    display: block;
    max-height: 100%;
    border-radius: inherit;
    background: linear-gradient(var(--ghg-primary), var(--ghg-accent));
}

.ghg-story { min-width: 0; }
.ghg-section {
    scroll-margin-top: 90px;
    padding: clamp(68px, 8vw, 104px) 0;
    border-bottom: 1px solid var(--ghg-line);
}
.ghg-section:last-child { border-bottom: 0; }
.ghg-page .ghg-section-head {
    display: block;
    position: static;
    top: auto;
    max-width: 760px;
    margin-bottom: 38px;
    padding: 0;
    align-items: initial;
    justify-content: initial;
}
.ghg-section-head > p { margin-bottom: 12px; }
.ghg-section-head h2 {
    margin: 0;
    color: var(--ghg-text);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
}
.ghg-section-head h2 em {
    color: var(--ghg-primary);
    font-size: .55em;
    font-style: normal;
}
.ghg-section-head > span {
    display: block;
    max-width: 680px;
    margin-top: 16px;
    color: var(--ghg-muted);
    font-size: 16px;
    line-height: 1.75;
}

.ghg-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.ghg-summary-grid article {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--ghg-line);
    border-radius: 16px;
    background: var(--ghg-surface);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}
.ghg-summary-grid article > span,
.ghg-summary-grid article > small {
    display: block;
    color: var(--ghg-muted);
    font-size: 11px;
    line-height: 1.45;
}
.ghg-summary-grid article > span { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ghg-summary-grid article > strong {
    display: block;
    margin: 16px 0 8px;
    color: var(--ghg-text);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1;
}
.ghg-summary-grid article > strong b { font: inherit; }
.ghg-summary-grid .ghg-primary-stat {
    border-color: var(--ghg-primary);
    background: linear-gradient(145deg, var(--ghg-primary), #0f5fc8);
}
.ghg-summary-grid .ghg-primary-stat > span,
.ghg-summary-grid .ghg-primary-stat > small { color: rgba(255, 255, 255, .78); }
.ghg-summary-grid .ghg-primary-stat > strong { color: white; }

.ghg-gauge-card {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: center;
    margin-top: 22px;
    padding: 30px;
    border: 1px solid var(--ghg-line);
    border-radius: 20px;
    background: var(--ghg-soft);
}
.ghg-gauge-figure {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
}
.ghg-page .ghg-gauge-figure svg {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 8 / 5;
    margin: auto;
    overflow: visible;
}
.ghg-gauge-track,
.ghg-gauge-value {
    fill: none;
    stroke-width: 22;
    stroke-linecap: round;
}
.ghg-gauge-track { stroke: #cbd5e1; }
.ghg-gauge-value {
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    transition: stroke-dashoffset 2.4s cubic-bezier(.16,1,.3,1);
}
.ghg-gauge-figure text { fill: var(--ghg-text); font-weight: 700; }
.ghg-gauge-figure .ghg-gauge-caption {
    fill: var(--ghg-muted);
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 600;
}
.ghg-gauge-ceiling-tick { stroke: var(--ghg-text); stroke-width: 2; opacity: .5; stroke-dasharray: 3 2; }
.ghg-gauge-ceiling-label {
    fill: var(--ghg-text);
    font-size: 8.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    opacity: .65;
    font-weight: 600;
}
.ghg-gauge-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 38px;
    fill: var(--ghg-text);
}
.ghg-gauge-range-label {
    fill: var(--ghg-muted);
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
}
.ghg-gauge-card h3 { margin: 8px 0 10px; font-size: 1.45rem; }
.ghg-gauge-card p { margin: 0; color: var(--ghg-muted); line-height: 1.7; }
.ghg-gauge-card p + p { margin-top: 14px; }
.ghg-gauge-range { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.ghg-gauge-range span { color: var(--ghg-muted); font-size: 12px; }
.ghg-gauge-range b { display: block; margin-top: 3px; color: var(--ghg-text); font-size: 16px; }
.ghg-gauge-rate {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px dashed var(--ghg-line);
    border-radius: 10px;
    background: var(--ghg-surface);
}
.ghg-gauge-rate span {
    color: var(--ghg-muted);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ghg-gauge-rate b {
    display: block;
    margin-top: 2px;
    color: var(--ghg-danger, #dc2626);
    font-size: 15px;
    font-weight: 700;
}

.ghg-mechanism-panel,
.ghg-chart-shell {
    overflow: hidden;
    border: 1px solid var(--ghg-line);
    border-radius: 20px;
    background: var(--ghg-surface);
    box-shadow: var(--ghg-shadow);
}
.ghg-mechanism-panel { padding: 32px; }
.ghg-page #ghgMechanismSvg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.ghg-mechanism-step-label {
    fill: #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .06em;
}
.ghg-mechanism-step-label.is-atmosphere { fill: #7fd8cf; }
.ghg-mechanism-step-label.is-surface { fill: #8fd6b0; }
.ghg-mechanism-step-label.is-ghg { fill: #fb806a; font-weight: 700; }
.ghg-mechanism-sun-label {
    fill: #0b1120;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
}
.ghg-mechanism-number-bg { fill: var(--ghg-warning); }
.ghg-mechanism-number-bg.is-trapped { fill: var(--ghg-danger); }
.ghg-mechanism-number {
    fill: #0b1120;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
}
.ghg-mechanism-ray {
    stroke: var(--ghg-warning);
    stroke-width: 2;
    opacity: .85;
}
.ghg-mechanism-ray-ir {
    stroke: var(--ghg-danger);
    stroke-width: 2;
    stroke-dasharray: 5 4;
    opacity: .9;
}
#ghgMoleculeCluster circle {
    fill: var(--ghg-danger);
    transform-box: fill-box;
    transform-origin: center;
}
.ghg-mechanism-caption {
    fill: #cbd5e1;
    font-size: 12.5px;
}
.ghg-mechanism-caption .is-highlight { fill: #f8fafc; font-weight: 700; }
.ghg-mechanism-caption.is-on-earth,
.ghg-mechanism-caption.is-on-earth .is-highlight { fill: #f8fafc; }
.ghg-mechanism-caption.is-warming { fill: #fb806a; font-weight: 700; }
.ghg-mechanism-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 20px;
    color: var(--ghg-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}
.ghg-mechanism-legend span { display: flex; gap: 7px; align-items: center; }
.ghg-mechanism-legend i {
    display: inline-block;
    width: 16px;
    height: 3px;
    flex: none;
    border-radius: 2px;
}
.ghg-mechanism-legend .is-shortwave { background: var(--ghg-warning); }
.ghg-mechanism-legend .is-infrared {
    background: repeating-linear-gradient(90deg, var(--ghg-danger) 0 4px, transparent 4px 8px);
}
.ghg-mechanism-legend .is-molecule {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ghg-danger);
}
.ghg-mechanism-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.ghg-mechanism-step-card {
    min-height: 150px;
    padding: 16px;
    border: 1px solid var(--ghg-line);
    border-radius: 10px;
    background: var(--ghg-soft);
    color: var(--ghg-muted);
    font-size: 13px;
    line-height: 1.55;
}
.ghg-mechanism-step-card b {
    display: flex;
    width: 22px;
    height: 22px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ghg-warning);
    color: #0b1120;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 800;
}
.ghg-mechanism-step-card.is-trapped {
    border-color: color-mix(in srgb, var(--ghg-danger) 75%, var(--ghg-line));
    background: linear-gradient(180deg, color-mix(in srgb, var(--ghg-danger) 8%, transparent), transparent);
}
.ghg-mechanism-step-card.is-trapped b { background: var(--ghg-danger); color: white; }

.ghg-gas-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid var(--ghg-line);
    border-radius: 14px;
    background: var(--ghg-soft);
}
.ghg-gas-context > strong { color: var(--ghg-primary); font-size: 29px; font-weight: 700; }
.ghg-gas-context p { margin: 0; color: var(--ghg-muted); font-size: 14px; line-height: 1.65; }
.ghg-gas-context > span { color: var(--ghg-muted); font-size: 10px; text-transform: uppercase; }
.ghg-gas-context > span b { display: block; margin-top: 4px; color: var(--ghg-accent); font-size: 17px; }

.ghg-gas-basket {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--ghg-line);
    border-radius: 14px;
    background: var(--ghg-surface);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.ghg-gas-basket-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    text-align: left;
    min-height: 82px;
    border-right: 1px solid var(--ghg-line);
    border-top: 3px solid transparent;
}
.ghg-gas-basket-stat:first-child { border-top-color: var(--ghg-primary); }
.ghg-gas-basket-stat:nth-child(3) { border-top-color: var(--ghg-accent); }
.ghg-gas-basket-stat:nth-child(5) { border-top-color: var(--ghg-warning); }
.ghg-gas-basket-stat:last-child { border-right: none; border-top-color: var(--ghg-danger); }
.ghg-gas-basket-stat span {
    color: var(--ghg-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ghg-gas-basket-stat b {
    color: var(--ghg-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.ghg-gas-basket-stat:first-child b { color: var(--ghg-primary); font-size: 17px; }
.ghg-gas-basket-stat:nth-child(3) b { color: var(--ghg-accent); }
.ghg-gas-basket-stat:nth-child(5) b { color: var(--ghg-warning); }
.ghg-gas-basket-stat:last-child b { color: var(--ghg-danger); font-size: 13px; }
.ghg-gas-basket-divider { display: none; }
.ghg-gas-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid var(--ghg-line);
    border-left: 4px solid var(--ghg-primary);
    border-radius: 0 12px 12px 0;
    background: var(--ghg-primary-soft);
}
.ghg-gas-note b {
    flex-shrink: 0;
    color: var(--ghg-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding-top: 2px;
}
.ghg-gas-note p {
    margin: 0;
    color: var(--ghg-text);
    font-size: 13px;
    line-height: 1.6;
}

.ghg-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--ghg-line);
}
.ghg-station-picker { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ghg-station-picker > span { width: 100%; color: var(--ghg-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ghg-station-picker label,
.ghg-chart-options label { display: flex; gap: 7px; align-items: center; color: var(--ghg-muted); font-size: 12px; cursor: pointer; }
.ghg-station-picker input,
.ghg-chart-options input { accent-color: var(--ghg-primary); }
.ghg-station-picker i,
.ghg-stat-grid header i {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: var(--station-color);
}
.ghg-range-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.ghg-range-controls label { color: var(--ghg-muted); font-size: 10px; text-transform: uppercase; }
.ghg-range-controls label span { display: block; margin-bottom: 5px; }
.ghg-range-controls input {
    display: block;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--ghg-line);
    border-radius: 7px;
    background: var(--ghg-surface);
    color: var(--ghg-text);
}
.ghg-range-controls button,
.ghg-chart-options button {
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid var(--ghg-primary);
    border-radius: 7px;
    background: var(--ghg-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.ghg-range-controls .is-quiet,
.ghg-chart-options button { border-color: var(--ghg-line); background: transparent; color: var(--ghg-muted); }
.ghg-range-controls button:hover,
.ghg-chart-options button:hover { border-color: var(--ghg-primary); color: var(--ghg-primary); }
.ghg-chart-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--ghg-line);
    background: var(--ghg-soft);
}
.ghg-chart-options > div { display: flex; gap: 6px; }
.ghg-chart-options button { min-height: 28px; padding: 4px 9px; font-size: 10px; }
.ghg-chart-panel { position: relative; min-height: 440px; padding: 12px 18px 0; background: var(--ghg-surface); }
.ghg-chart-canvas { width: 100%; height: 425px; }
.ghg-chart-status {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 425px;
    background: color-mix(in srgb, var(--ghg-surface) 92%, transparent);
    color: var(--ghg-muted);
    font-size: 12px;
}
.ghg-chart-status.is-error { color: var(--ghg-danger); }
.ghg-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--ghg-line);
    background: var(--ghg-line);
}
.ghg-stat-grid article { padding: 18px 20px; background: var(--ghg-surface); }
.ghg-page .ghg-stat-grid header {
    position: static;
    top: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: initial;
    margin-bottom: 14px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}
.ghg-stat-grid dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.ghg-stat-grid dt { margin-bottom: 5px; color: var(--ghg-muted); font-size: 9px; text-transform: uppercase; }
.ghg-stat-grid dd { margin: 0; color: var(--ghg-text); font-size: 12px; }
.ghg-stat-grid dd b { font-size: 15px; }
.ghg-stat-grid dd small { color: var(--ghg-muted); }
.ghg-empty-state { grid-column: 1 / -1; margin: 0; padding: 28px; background: var(--ghg-surface); color: var(--ghg-muted); text-align: center; }

.ghg-sector-list { display: grid; gap: 2px; }
.ghg-sector-list article { padding: 14px 0; border-bottom: 1px solid var(--ghg-line); }
.ghg-sector-label { display: grid; grid-template-columns: 32px minmax(0, 1fr) 52px; gap: 14px; align-items: start; }
.ghg-sector-label > span { font-size: 20px; text-align: center; padding-top: 2px; }
.ghg-sector-label strong,
.ghg-sector-label small { display: block; }
.ghg-sector-label strong { font-size: 14px; line-height: 1.3; }
.ghg-sector-label small { margin-top: 4px; color: var(--ghg-muted); font-size: 12px; line-height: 1.5; }
.ghg-sector-label > b { color: var(--ghg-primary); text-align: right; font-size: 18px; padding-top: 2px; }
.ghg-sector-track { height: 8px; margin: 10px 0 0 46px; overflow: hidden; border-radius: 999px; background: var(--ghg-soft); }
.ghg-sector-track i {
    display: block;
    width: var(--sector-width);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ghg-primary), #38bdf8);
}
.ghg-data-note {
    margin: 20px 0 34px;
    padding: 14px 16px;
    border-left: 4px solid var(--ghg-primary);
    background: var(--ghg-primary-soft);
    color: var(--ghg-muted);
    font-size: 12px;
    line-height: 1.6;
}
.ghg-data-note a { color: var(--ghg-primary); font-weight: 700; }
.ghg-driver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ghg-driver-grid article,
.ghg-gas-grid article {
    padding: 22px;
    border: 1px solid var(--ghg-line);
    border-radius: 16px;
    background: var(--ghg-surface);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.ghg-driver-grid article { display: flex; flex-direction: column; }
.ghg-driver-grid article > span { font-size: 25px; flex-shrink: 0; }
.ghg-driver-grid small { display: inline-block; margin: 0 0 0 8px; padding: 3px 8px; border-radius: 99px; background: var(--ghg-primary-soft); color: var(--ghg-primary); font-size: 10px; font-weight: 700; flex-shrink: 0; width: fit-content; }
.ghg-driver-grid h3 { margin: 14px 0 8px; font-size: 16px; }
.ghg-driver-grid p { margin: 0; color: var(--ghg-muted); font-size: 13px; line-height: 1.65; flex: 1 1 auto; }
.ghg-driver-grid p,
.ghg-gas-grid p { margin: 0; color: var(--ghg-muted); font-size: 13px; line-height: 1.65; }

.ghg-gas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ghg-langg-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--ghg-line);
    border-radius: 16px;
    background: var(--ghg-surface);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ghg-langg-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.ghg-langg-card.is-alert {
    border-color: var(--ghg-danger);
    background: linear-gradient(180deg, rgba(220,38,38,.04), transparent);
}
.ghg-langg-card.is-alert:hover { border-color: #dc2626; }
.ghg-langg-formula {
    display: block;
    color: var(--ghg-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}
.ghg-langg-card.is-alert .ghg-langg-formula { color: var(--ghg-danger); }
.ghg-langg-name {
    display: block;
    margin: 8px 0 16px;
    color: var(--ghg-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ghg-langg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--ghg-line);
    border-radius: 10px;
    overflow: hidden;
}
.ghg-langg-stats span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    color: var(--ghg-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--ghg-soft);
}
.ghg-langg-stats span + span { border-left: 1px solid var(--ghg-line); }
.ghg-langg-stats b {
    display: block;
    color: var(--ghg-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.ghg-langg-card.is-alert .ghg-langg-stats b { color: var(--ghg-danger); }
.ghg-langg-text {
    margin: 0 0 auto;
    color: var(--ghg-muted);
    font-size: 13px;
    line-height: 1.65;
}

.ghg-source-note {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: baseline;
    margin-top: 28px;
    padding: 18px 22px;
    border: 1px solid var(--ghg-line);
    border-radius: 12px;
    background: var(--ghg-soft);
}
.ghg-source-note span {
    flex-shrink: 0;
    color: var(--ghg-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--ghg-surface);
    border: 1px solid var(--ghg-line);
}
.ghg-source-note p {
    flex: 1 1 280px;
    margin: 0;
    color: var(--ghg-muted);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .ghg-layout {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 24px;
    }
    .ghg-timeline {
        top: 90px;
    }
}

@media (max-width: 920px) {
    .ghg-mechanism-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .ghg-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .ghg-story {
        width: min(calc(100% - 32px), 680px);
        margin-inline: auto;
    }
    .ghg-timeline {
        position: relative;
        top: auto;
        grid-template-columns: 1fr 3px;
        gap: 20px;
        width: min(calc(100% - 32px), 680px);
        max-height: none;
        margin: 32px auto 0;
        padding: 20px 24px;
        border: 1px solid var(--ghg-line);
        border-radius: 16px;
        background: var(--ghg-soft);
    }
    .ghg-timeline a::before {
        background: var(--ghg-soft);
    }
    .ghg-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ghg-gauge-card,
    .ghg-gas-context { grid-template-columns: 1fr; }
    .ghg-driver-grid,
    .ghg-gas-grid,
    .ghg-stat-grid { grid-template-columns: 1fr; }
    .ghg-gas-basket { grid-template-columns: 1fr 1fr; }
    .ghg-gas-basket-divider { display: none; }
    .ghg-gas-basket-stat { border-right: none !important; border-top: 3px solid var(--ghg-line); }
    .ghg-gas-basket-stat:first-child,
    .ghg-gas-basket-stat:nth-child(3) { border-top-color: var(--ghg-primary); }
    .ghg-gas-basket-stat:nth-child(5) { border-top-color: var(--ghg-warning); }
    .ghg-gas-basket-stat:last-child { border-top-color: var(--ghg-danger); }
    .ghg-chart-toolbar { padding: 18px; }
    .ghg-range-controls { width: 100%; }
    .ghg-range-controls label { flex: 1 1 130px; }
    .ghg-range-controls input { width: 100%; }
    .ghg-chart-panel { min-height: 370px; padding-inline: 4px; }
    .ghg-chart-canvas,
    .ghg-chart-status { height: 360px; min-height: 360px; }
    .ghg-stat-grid dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .ghg-mechanism-panel { padding: 20px 16px; }
    .ghg-mechanism-steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .ghg-summary-grid { grid-template-columns: 1fr; }
    .ghg-section { padding-block: 58px; }
}

@media (prefers-reduced-motion: reduce) {
    .ghg-page *,
    .ghg-page *::before,
    .ghg-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
