/* =============================================
   holyrood-polls.css — Holyrood Parliament Polls
   Full editorial redesign (NYT/FT style)
   Scoped under body.holyrood-polls, prefix: hyp-
   Requires: editorial-base.css + polls-editorial.css
   ============================================= */

/* ---- Foundation ---- */
body.holyrood-polls {
    background: #FFFFFF;
    font-family: var(--ed-font-sans);
    color: var(--ed-color-body);
    -webkit-font-smoothing: antialiased;
}

.hyp-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* Narrower column for editorial text sections */
.hyp-narrow {
    max-width: 680px;
}

/* ---- Masthead ---- */
.hyp-masthead {
    margin-bottom: 32px;
    max-width: 680px;
}
.hyp-kicker {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 8px 0;
}
.hyp-masthead-rule {
    border: none;
    border-top: 3px solid #1a1a1a;
    margin: 0 0 16px 0;
}
.hyp-headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0 0 8px 0;
}
.hyp-subtitle {
    font-family: var(--ed-font-sans);
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ---- Hero numbers strip ---- */
.hyp-hero-strip {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.hyp-hero-party {
    flex: 1;
    min-width: 90px;
    padding: 12px 14px;
    border-left: 4px solid var(--party-color, #ccc);
    margin-bottom: 8px;
}
.hyp-hero-name {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    color: #666;
    margin: 0 0 2px 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.hyp-hero-pct {
    font-family: var(--ed-font-sans);
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hyp-hero-changes {
    display: flex;
    gap: 8px;
    margin-top: 3px;
}
.hyp-hero-chg {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}
.hyp-hero-chg-label {
    font-size: 9px;
    font-weight: 600;
    color: #999;
    margin-right: 2px;
    text-transform: uppercase;
}
.hyp-hero-chg.up { color: #2e7d32; }
.hyp-hero-chg.down { color: #c62828; }
.hyp-hero-chg.flat { color: #999; }

.hyp-hero-footnote {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    color: #999;
    margin: 6px 0 0 0;
}

/* ---- Section system ---- */
.hyp-rule {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 48px 0;
}

.hyp-section-label {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 8px 0;
}

.hyp-section-head {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.15;
    margin: 0 0 6px 0;
}

.hyp-section-intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 20px 0;
    max-width: 680px;
}

/* ---- Tabs ---- */
.hyp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 24px;
}
.hyp-tab {
    font-family: var(--ed-font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.hyp-tab:hover { color: #1a1a1a; }
.hyp-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* ---- Nav links ---- */
.hyp-nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hyp-nav-link {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #ccc;
    transition: text-decoration-color 0.15s;
}
.hyp-nav-link:hover { text-decoration-color: #333; }

/* ---- Chart section ---- */
.hyp-chart-wrap {
    position: relative;
    margin-bottom: 8px;
}
.hyp-chart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.hyp-chart-note {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin: 12px 0 0 0;
    max-width: 680px;
}

/* ---- Latest poll spotlight ---- */
.hyp-spotlight {
    background: #f7f7f7;
    border-left: 3px solid var(--spotlight-color, #1a1a1a);
    padding: 20px 24px;
    margin-bottom: 0;
}
.hyp-spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.hyp-spotlight-pollster {
    font-family: var(--ed-font-sans);
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.hyp-spotlight-meta {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}
.hyp-spotlight-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hyp-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 48px 52px;
    align-items: center;
    gap: 8px;
    height: 24px;
}
.hyp-bar-label {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hyp-bar-track {
    height: 20px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.hyp-bar-fill {
    height: 100%;
    border-radius: 2px;
    opacity: 0.75;
    transition: width 0.4s ease;
}
.hyp-bar-pct {
    font-family: var(--ed-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.hyp-bar-change {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.hyp-bar-change.up { color: #2e7d32; }
.hyp-bar-change.down { color: #c62828; }
.hyp-bar-change.flat { color: #999; }

.hyp-spotlight-note {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 14px 0 0 0;
    line-height: 1.5;
}

/* ---- House effects / pollster comparison ---- */
.hyp-house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.hyp-house-card {
    border: 1px solid #e0e0e0;
    padding: 14px;
    background: #fff;
}
.hyp-house-pollster {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a1a1a;
}
.hyp-house-date {
    font-family: var(--ed-font-sans);
    font-size: 10px;
    color: #999;
    margin: 0 0 8px 0;
}
.hyp-house-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-family: var(--ed-font-sans);
    font-size: 13px;
}
.hyp-house-party {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}
.hyp-house-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hyp-house-val {
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}
.hyp-house-diff {
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}
.hyp-house-diff.high { color: #c62828; }
.hyp-house-diff.low { color: #2e7d32; }

/* ---- Polling table ---- */
.hyp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
}
.hyp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ed-font-sans);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.hyp-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    padding: 8px 10px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 2px solid #1a1a1a;
}
.hyp-table thead th:first-child,
.hyp-table thead th:nth-child(2) {
    text-align: left;
}
.hyp-table tbody td {
    padding: 8px 10px;
    text-align: right;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}
.hyp-table tbody td:first-child,
.hyp-table tbody td:nth-child(2) {
    text-align: left;
}
.hyp-table tbody tr:last-child td {
    border-bottom: 2px solid #1a1a1a;
}
.hyp-table tbody tr:hover {
    background: #fafafa;
}
.hyp-table tbody tr.expandable {
    cursor: pointer;
}
.hyp-table .expand-row {
    display: none;
}
.hyp-table .expand-row.open {
    display: table-row;
}
.hyp-table .expand-row td {
    background: #fafafa;
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
}
.hyp-table .cell-highlight {
    font-weight: 700;
    color: #1a1a1a;
}

/* Party cell colour intensity */
.hyp-table .party-cell {
    position: relative;
}
.hyp-table .party-cell .cell-bg {
    position: absolute;
    inset: 2px;
    border-radius: 2px;
    opacity: 0.12;
    pointer-events: none;
}

/* ---- Swing analysis ---- */
.hyp-swing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 16px;
}
.hyp-swing-col h3 {
    font-family: var(--ed-font-sans);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    margin: 0 0 12px 0;
}
.hyp-swing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--ed-font-sans);
    font-size: 14px;
}
.hyp-swing-party {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
}
.hyp-swing-val {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hyp-swing-val.positive { color: #2e7d32; }
.hyp-swing-val.negative { color: #c62828; }

/* Swing bar chart (pure CSS) */
.hyp-swing-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 56px;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.hyp-swing-bar-label {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    text-align: right;
}
.hyp-swing-bar-track {
    position: relative;
    height: 18px;
    background: #f5f5f5;
    border-radius: 1px;
}
.hyp-swing-bar-zero {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ccc;
}
.hyp-swing-bar-fill {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 1px;
}
.hyp-swing-bar-val {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: left;
}
.hyp-swing-bar-val.positive { color: #2e7d32; }
.hyp-swing-bar-val.negative { color: #c62828; }

/* ---- Recent polls cards ---- */
.hyp-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* ---- FAQ / Methodology ---- */
.hyp-faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.hyp-faq-item:first-child {
    border-top: 1px solid #e0e0e0;
}
.hyp-faq-question {
    font-family: var(--ed-font-sans);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hyp-faq-question::-webkit-details-marker { display: none; }
.hyp-faq-question::after {
    content: '+';
    font-size: 18px;
    color: #999;
    flex-shrink: 0;
    margin-left: 12px;
}
.hyp-faq-item[open] .hyp-faq-question::after { content: '\2212'; }
.hyp-faq-answer {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    padding: 0 0 16px 0;
}
.hyp-faq-answer p { margin: 0 0 10px 0; }
.hyp-faq-answer p:last-child { margin-bottom: 0; }

/* ---- Footer text ---- */
.hyp-footer-text {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}

/* ---- Links ---- */
.hyp-wrap a {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
.hyp-wrap a:hover { text-decoration-color: #333; }

/* ---- Download/share button ---- */
.hyp-btn {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    font-weight: 600;
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.hyp-btn:hover { background: #1a1a1a; }
.hyp-btn-secondary {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.hyp-btn-secondary:hover { border-color: #999; }

/* Pill buttons (chart controls) */
.hyp-pill {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.hyp-pill:hover { border-color: #999; color: #333; }
.hyp-pill.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ---- Explore list ---- */
.hyp-explore-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hyp-explore-list li {
    border-bottom: 1px solid #f0f0f0;
}
.hyp-explore-list li:last-child { border-bottom: none; }
.hyp-explore-list a {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #1a1a1a;
    padding: 10px 0;
    text-decoration: none;
}
.hyp-explore-list a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- D3 Chart container ---- */
.hyp-chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 8px;
}
.hyp-chart-container svg {
    width: 100%;
    height: 100%;
}
.hyp-chart-container .gbp-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 10px;
    font-family: var(--ed-font-sans);
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hyp-chart-container .gbp-tooltip-date {
    font-weight: 700;
    font-size: 11px;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.hyp-chart-container .gbp-tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0;
}
.hyp-chart-container .gbp-tooltip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hyp-chart-container .gbp-tooltip-party {
    font-size: 11px;
    color: #666;
    flex: 1;
}
.hyp-chart-container .gbp-tooltip-val {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}
.hyp-chart-container .axis text {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    fill: #999;
}
.hyp-chart-container .axis path,
.hyp-chart-container .axis .domain {
    display: none;
}
.hyp-chart-container .grid-line {
    stroke: #F0F0F0;
    stroke-width: 0.5;
}
.hyp-chart-container .party-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.hyp-chart-container .event-marker {
    stroke: #CCC;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}
.hyp-chart-container .event-label {
    font-family: var(--ed-font-sans);
    font-size: 9px;
    fill: #BBB;
}
.hyp-chart-container .crosshair {
    stroke: #DDD;
    stroke-width: 1;
}
.hyp-chart-container .end-label {
    font-family: var(--ed-font-sans);
    font-size: 11px;
    font-weight: 600;
}

/* Chart controls */
.hyp-chart-right-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.hyp-range-group {
    display: flex;
    gap: 4px;
}
.hyp-select {
    font-family: var(--ed-font-sans);
    font-size: 13px;
    color: #333;
    padding: 5px 28px 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 8px center no-repeat;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* ---- Table controls (gb-polls style) ---- */
.hyp-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}
.hyp-table-range-group {
    display: flex;
    gap: 4px;
}
.hyp-table-filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.hyp-table-count {
    font-family: var(--ed-font-sans);
    font-size: 12px;
    color: #999;
    margin: 4px 0 8px 0;
}

/* Sortable headers */
.hyp-th-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.hyp-th-sortable:hover {
    background: #f5f5f5;
}
.hyp-sort-icon {
    font-size: 8px;
    color: #999;
    margin-left: 2px;
}

/* Party column colored headers */
.hyp-table thead th.col-snp { border-top: 3px solid #FCD34D; color: #B8860B; }
.hyp-table thead th.col-lab { border-top: 3px solid #E4003B; color: #E4003B; }
.hyp-table thead th.col-con { border-top: 3px solid #0087DC; color: #0087DC; }
.hyp-table thead th.col-ld { border-top: 3px solid #FDBB30; color: #c89600; }
.hyp-table thead th.col-grn { border-top: 3px solid #008066; color: #008066; }
.hyp-table thead th.col-alba { border-top: 3px solid #00AEEF; color: #00AEEF; }
.hyp-table thead th.col-ref { border-top: 3px solid #12B6CF; color: #12B6CF; }
.hyp-table thead th.col-oth { border-top: 3px solid #999; color: #999; }

/* Clickable poll rows */
.hyp-table .poll-row {
    cursor: pointer;
    transition: background 0.1s;
}
.hyp-table .poll-row:hover {
    background: #fafafa;
}
.hyp-table .poll-row.is-expanded {
    background: #fafafa;
    border-bottom-color: transparent;
}
.hyp-table .date-col {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}
.hyp-table .pollster-col {
    white-space: nowrap;
}
.hyp-table .sample-col {
    font-size: 12px;
    color: #999;
}
.hyp-table .leading-val {
    font-weight: 700;
}

/* Expandable detail row */
.hyp-table .detail-row td {
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
}
.hyp-poll-detail {
    padding: 16px 12px;
    background: #fafafa;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.hyp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}
.hyp-detail-meta strong {
    font-weight: 600;
    color: #333;
}
.hyp-detail-prev {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}
.hyp-detail-parties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px 24px;
    margin-bottom: 12px;
}
.hyp-detail-party-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}
.hyp-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hyp-detail-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}
.hyp-detail-val {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    min-width: 42px;
    text-align: right;
}
.hyp-detail-change {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    min-width: 42px;
    text-align: right;
}
.hyp-detail-change.positive { color: #2e7d32; }
.hyp-detail-change.negative { color: #c62828; }
.hyp-detail-change.neutral { color: #999; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hyp-wrap { padding: 32px 16px 48px; }
    .hyp-headline { font-size: 28px; }
    .hyp-hero-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .hyp-hero-party { min-width: unset; padding: 10px 10px; }
    .hyp-hero-pct { font-size: 22px; }
    .hyp-hero-name { font-size: 10px; }
    .hyp-rule { margin: 36px 0; }
    .hyp-section-head { font-size: 20px; }
    .hyp-section-intro { font-size: 16px; }
    .hyp-swing-grid { grid-template-columns: 1fr; gap: 24px; }
    .hyp-bar-row {
        grid-template-columns: 70px 1fr 40px 45px;
        gap: 6px;
    }
    .hyp-bar-label { font-size: 12px; }
    .hyp-house-grid { grid-template-columns: 1fr 1fr; }
    .hyp-spotlight { padding: 16px 18px; }
    .hyp-recent-grid { grid-template-columns: 1fr; }
    .hyp-chart-container { height: 300px; }
    .hyp-table-controls { flex-direction: column; align-items: flex-start; }
    .hyp-detail-parties { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hyp-headline { font-size: 24px; }
    .hyp-hero-strip { grid-template-columns: 1fr 1fr; }
    .hyp-hero-party { padding: 8px 10px; margin-bottom: 0; }
    .hyp-hero-pct { font-size: 20px; }
    .hyp-hero-name { font-size: 10px; }
    .hyp-rule { margin: 28px 0; }
    .hyp-house-grid { grid-template-columns: 1fr; }
    .hyp-bar-row {
        grid-template-columns: 60px 1fr 36px 42px;
        gap: 4px;
    }
    .hyp-bar-label { font-size: 11px; }
    .hyp-bar-pct { font-size: 13px; }
    .hyp-chart-container { height: 260px; }
    .hyp-detail-parties { grid-template-columns: 1fr; }
    .hyp-select { width: 100%; }
}
