/* Styling for the Parliament Question Hour data story (parliament-question-hour).
   Same brand tokens as the other data stories (budget.css) - parl- prefix on this
   story's own classes only, so nothing here collides with theirs. */
.bg-page {
    --bg-paper: #f3efe7; --bg-ink: #10243d; --soft: #5d6672; --line: #cfc7b9;
    --orange: #ee5c35; --teal: #087f80; --yellow: #f0bd47; --cream: #fffaf0; --white: #fffdf8;
    --serif: StorySerif, Georgia, serif; --sans: StorySans, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.bg-page { margin: 0; background: var(--bg-paper); color: var(--bg-ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
:where(.bg-page) a { color: inherit; }

.bg-hero { max-width: 900px; margin: 0 auto; padding: clamp(50px, 9vh, 90px) clamp(20px, 6vw, 24px) 30px; }
.bg-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.71rem; font-weight: 800; color: var(--orange); }
.bg-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; margin: 16px 0 22px; }
.bg-hero p.dek { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: #334459; max-width: 62ch; }

.bg-section { max-width: 900px; margin: 0 auto; padding: 30px clamp(20px, 6vw, 24px); }
.bg-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.bg-section p { color: #3c4b5e; font-size: 1.05rem; max-width: 68ch; }
.bg-section p.small { font-size: 0.88rem; color: var(--soft); }
.bg-mark { color: var(--orange); font-weight: 700; }

.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px clamp(12px, 3vw, 28px) 12px; }
.chart-card svg { display: block; width: 100%; height: auto; aspect-ratio: 960 / 360; min-height: 220px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 4px 0 18px; font-size: 0.85rem; }
.chart-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.budget-chart-tip { display: none; position: absolute; top: 8px; transform: translateX(-50%); background: var(--bg-ink); color: white; border-radius: 6px; padding: 10px 12px; font-size: 0.78rem; min-width: 160px; pointer-events: none; z-index: 5; box-shadow: 0 10px 24px rgba(16, 36, 61, 0.25); }
.budget-chart-tip .tip-year { font-weight: 800; margin-bottom: 6px; font-family: var(--serif); font-size: 0.95rem; }
.budget-chart-tip .tip-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; white-space: nowrap; }
.budget-chart-tip .tip-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.budget-chart-tip .tip-row b { margin-left: auto; padding-left: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat-card .n { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.02em; }
.stat-card .l { font-size: 0.8rem; color: var(--soft); margin-top: 4px; }
.stat-card.up .n { color: var(--teal); }
.stat-card.down .n { color: var(--orange); }

/* ─── This story's own: ranked bar-lists (ministries, top askers) ───
   Plain divs sized by width%, computed in Blade from $d - no chart library
   needed for a ranking, unlike the line charts above. */
.parl-bars { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.parl-bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; align-items: center; gap: 12px; font-size: 0.88rem; }
.parl-bar-label { text-align: right; color: var(--bg-ink); }
.parl-bar-label small { display: block; color: var(--soft); font-size: 0.76rem; font-weight: 400; }
.parl-bar-track { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; height: 26px; overflow: hidden; }
.parl-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px 0 0 5px; }
.parl-bar-fill.ls { background: var(--teal); }
.parl-bar-fill.rs { background: var(--orange); }
.parl-bar-value { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 700; color: var(--bg-ink); font-variant-numeric: tabular-nums; }
.parl-bar-split { display: flex; height: 100%; }
.parl-bar-split .ls { background: var(--teal); }
.parl-bar-split .rs { background: var(--orange); }

.method { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.85rem; }
.method th, .method td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.method th { color: var(--soft); font-weight: 700; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em; }
.method .ok { color: var(--teal); font-weight: 700; }

.bg-foot { background: var(--bg-ink); color: #b7c4d0; padding: 28px clamp(20px, 6vw, 64px); display: flex; justify-content: space-between; gap: 16px; font-size: 0.76rem; flex-wrap: wrap; }
.bg-foot a { text-decoration: underline; text-underline-offset: 3px; }
