.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hg-paper {
    width: min(1100px, 100%);
    max-width: 1100px;
}
.hg-paper > h1,
.hg-paper > .hg-epigraph,
.hg-paper > .hg-pull,
.hg-paper > p:not(.hg-kicker):not(.hg-stamp):not(.hg-updated):not(.hg-hero-actions) {
    max-width: 44rem;
}
.hg-paper .hg-paper-toc,
.hg-paper .hg-kpi-grid,
.hg-paper .hg-bar-list,
.hg-paper .hg-keep-bars,
.hg-paper .hg-flow-steps {
    padding-left: 0;
    color: inherit;
}
.hg-paper .hg-paper-toc li,
.hg-paper .hg-kpi-grid li,
.hg-paper .hg-keep-bars li,
.hg-paper .hg-flow-steps li,
.hg-paper .hg-bar-list li { margin: 0; }
.hg-paper-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}
.hg-paper-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--hg-border);
    background: var(--input-bg);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.88rem;
}
.hg-paper-toc a:hover { color: var(--primary-hover); border-color: var(--hg-accent); }
.hg-paper-block {
    margin: 2.6rem 0 0;
    scroll-margin-top: 96px;
}
.hg-paper-block > p { max-width: 44rem; color: var(--hg-muted); }
.hg-kpi-grid {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hg-kpi { padding: 1rem 1rem 1.05rem; }
.hg-kpi-n {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    line-height: 1;
    color: var(--primary);
}
.hg-kpi-l {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.92rem;
    color: var(--text);
}
.hg-kpi-h { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--text-faint); }
.hg-chart-card {
    margin: 1.4rem 0 0;
    padding: 1.15rem 1.1rem 1.05rem;
    border: 1px solid var(--hg-border);
    background: var(--hg-surface);
}
.hg-chart-card figcaption {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
}
.hg-chart-split {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}
.hg-donut-wrap { position: relative; width: min(220px, 70vw); margin: 0 auto; }
.hg-donut { width: 100%; height: auto; display: block; }
.hg-donut path { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); transform-origin: 60px 60px; }
.hg-donut path.is-dim { opacity: 0.28; }
.hg-donut path.is-on { transform: scale(1.04); }
.hg-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
    pointer-events: none;
}
.hg-donut-center strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1.1;
}
.hg-bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.hg-bar-btn {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hg-bar-btn strong { color: var(--primary); font-family: var(--font-display); }
.hg-bar-btn.is-on span { color: var(--primary-hover); }
.hg-bar-track {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: var(--input-bg);
    overflow: hidden;
}
.hg-bar-fill,
.hg-keep-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hg-blood), var(--primary));
    transition: width 0.9s var(--ease);
}
.hg-bar-note { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--text-faint); }
.hg-chart-foot { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--text-faint); }
.hg-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0.85rem; }
.hg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--hg-border);
    background: var(--input-bg);
    color: var(--text-soft);
    font: inherit;
    cursor: pointer;
}
.hg-chip span {
    min-width: 1.4rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--hg-border);
    font-size: 0.75rem;
    color: var(--text-faint);
}
.hg-chip.is-on { border-color: var(--hg-accent); background: var(--primary-soft); color: var(--text); }
.hg-table-wrap { overflow-x: auto; margin: 0.4rem 0 0; -webkit-overflow-scrolling: touch; }
.hg-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.hg-table caption {
    caption-side: bottom;
    padding-top: 0.7rem;
    text-align: left;
    color: var(--text-faint);
    font-size: 0.82rem;
}
.hg-table th,
.hg-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--hg-border);
    text-align: left;
    vertical-align: top;
}
.hg-table th {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-weight: 500;
}
.hg-table tbody tr { transition: background 0.25s var(--ease); }
.hg-table tbody tr:hover { background: var(--primary-soft); }
.hg-table-compare { min-width: 420px; }
.hg-table-compare td:first-child { color: var(--text-soft); }
.hg-table-compare td:last-child { color: var(--text-faint); }
.hg-table-meta { margin: 0.65rem 0 1.2rem; font-size: 0.82rem; color: var(--text-faint); }
.hg-tree-board {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
}
.hg-tree {
    padding: 1rem 0.8rem 1.1rem;
    border: 1px solid var(--hg-border);
    background: var(--input-bg);
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}
.hg-tree-row,
.hg-tree-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}
.hg-tree-fork {
    width: min(48%, 160px);
    height: 18px;
    border: 1px solid var(--hg-line);
    border-top: 0;
    margin: 0.1rem 0 0.15rem;
}
.hg-tree-fork-wide { width: min(92%, 520px); }
.hg-tree-node {
    min-height: 44px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--hg-border);
    background: var(--hg-surface);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}
.hg-tree-leaf { font-size: 0.8rem; }
.hg-tree-node.is-on { border-color: var(--hg-accent); background: var(--primary-soft); color: var(--primary-hover); }
.hg-tree-detail { padding: 1.15rem 1.1rem; }
.hg-tree-detail h3 { margin: 0.2rem 0 0.45rem; }
.hg-flow-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr);
}
.hg-flow-dot {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 48px;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--hg-border);
    background: var(--input-bg);
    color: var(--text-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hg-flow-dot span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--hg-border);
    font-family: var(--font-display);
    font-size: 0.82rem;
}
.hg-flow-dot.is-on { border-color: var(--hg-accent); background: var(--primary-soft); color: var(--text); }
.hg-flow-dot.is-on span { background: var(--primary); color: var(--hg-ink); border-color: var(--primary); }
.hg-flow-panel { margin-top: 0.9rem; }
.hg-flow-card { padding: 1.1rem 1.15rem; }
.hg-flow-card[hidden] { display: none; }
.hg-flow-nav { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; }
.hg-keep-bars { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.hg-keep-btn {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.35rem 0.7rem;
    width: 100%;
    min-height: 52px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--hg-border);
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hg-keep-n { font-family: var(--font-display); color: var(--primary); }
.hg-keep-track {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 999px;
    background: var(--hg-bg);
    overflow: hidden;
}
.hg-keep-btn.is-on { border-color: var(--hg-accent); background: var(--primary-soft); }
.hg-risk-grid { display: grid; gap: 0.7rem; margin-top: 1rem; grid-template-columns: minmax(0, 1fr); }
.hg-risk summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-display);
}
.hg-risk[open] { border-color: var(--hg-accent); }
.hg-risk p { margin: 0.2rem 0 0; color: var(--hg-muted); }

@media (min-width: 768px) {
    .hg-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hg-chart-split { grid-template-columns: 220px minmax(0, 1fr); }
    .hg-tree-board { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr); }
    .hg-flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hg-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .hg-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hg-paper { width: 100%; }
    .hg-flow-nav .hg-btn { flex: 1 1 140px; }
    .hg-table { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hg-bar-fill,
    .hg-keep-fill,
    .hg-donut path { transition: none; }
}
