/* Example households (backlog 77): styles linked only by households*.html and household-*.html, after style.css,
   for what is the section's own; the page shell, the label (kicker) and icon, cards, bands and pills are style.css's. Series colours: in hand = the site's accent (a stepped blue in dark mode, where the accent #8fbcf2 sits
   above the chart lightness band), taxes and contributions two more hues; benefits a neutral ink tint on a bar of
   their own. Checked with the dataviz validator (validate_palette.js, all pairs, light on #fbfaf6 and dark on
   #14171c: lightness band, chroma, CVD and normal-vision separation, 3:1 against the surface). Text in the
   pictures wears the page's text colours. */
:root { --hh-hand: var(--accent); --hh-tax: #9a4416; --hh-tax2: #c98218; --hh-con: #2b9a86;
        --hh-ben: color-mix(in srgb, var(--ink) 55%, var(--paper)); }
@media (prefers-color-scheme: dark) {
  :root { --hh-hand: #5b97e0; --hh-tax: #b24c2a; --hh-tax2: #b98a1a; --hh-con: #1f9c7c; }
}
/* Taxes in two shades (state taxes, municipal tax), re-checked 2026-11-28 with the validator, all pairs: light
   #1a4fa0 #9a4416 #c98218 #2b9a86 on #fbfaf6 and dark #5b97e0 #b24c2a #b98a1a #1f9c7c on #14171c, every check
   passes. */

.draft { padding: .5rem .8rem; border-left: 3px solid var(--hh-tax); background: var(--raised); font-size: .9375rem; }
main > .hhgrid, main > .hhchart, main > .hhwide, main > details.year, main > .hhsplit { max-width: none; }

/* A: the households as the site's cards (style.css .card), three across on a wide screen, one on a phone */
.hhgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: .75rem;
          margin: 1.5rem 0 1rem; padding: 0; list-style: none; }
.hhcard { min-width: 0; }
.hhcard .ktiles div { border-top-color: color-mix(in srgb, var(--ink) 14%, var(--raised)); }
.hhcard h3 { margin: 0 0 .3rem; font: 600 1.125rem/1.25 var(--serif); }
.hhcard h3 a { color: var(--ink); text-decoration-color: var(--line); }
.hhcard h3 a:hover { text-decoration-color: var(--ink); }
.hhcard .set { font-size: .8125rem; line-height: 1.4; color: var(--muted); margin: 0 0 .4rem; }
.hhcard .ktiles { margin-top: auto; }
.hhcard .ktiles dd { font-size: 1.375rem; }
.hhcard .kwhat { font-size: .8125rem; color: var(--muted); margin: .2rem 0 0; }
.hhcard .hhkey { font-variant-numeric: tabular-nums; }
.hhcard .more { font-size: .8125rem; font-weight: 400; margin: .4rem 0 0; }
@media (max-width: 24rem) { .hhcard .ktiles dd { font-size: 1.2rem; } }

/* split bars (cards and the person's year) */
.hhbar { margin: .5rem 0 .2rem; }
.hhbar svg { display: block; width: 100%; height: 1.5rem; }
.hhbar.big svg { height: 2.4rem; }
.hhbar .s-hand { fill: var(--hh-hand); }
.hhbar .s-tax { fill: var(--hh-tax); }
.hhbar .s-tax2 { fill: var(--hh-tax2); }
.hhbar .s-con { fill: var(--hh-con); }
.hhbar .s-ben { fill: var(--hh-ben); }
.hhkey { display: flex; flex-wrap: wrap; gap: .1rem 1rem; list-style: none; padding: 0; margin: 0; font-size: .8125rem;
         color: var(--ink); }
.hhkey li { white-space: nowrap; }
.hhkey .k { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -.05rem; }
.k.s-hand { background: var(--hh-hand); } .k.s-tax { background: var(--hh-tax); }
.k.s-tax2 { background: var(--hh-tax2); }
.k.s-con { background: var(--hh-con); } .k.s-ben { background: var(--hh-ben); }
.k.up { background: var(--hh-hand); } .k.down { background: var(--hh-tax); }
.hhkey.big { font-size: .9375rem; gap: .2rem 1.5rem; margin-bottom: .5rem; }

/* row charts: dot strips, kept of 100, the step picture; a wide and a narrow drawing, CSS shows one */
.hhchart { margin: .6rem 0 .4rem; }
.hhchart svg { display: block; width: 100%; height: auto; }
.hhchart svg.w { max-width: 45rem; }
.hhchart svg.n { display: none; max-width: 26rem; }
@media (max-width: 40rem) { .hhchart svg.w { display: none; } .hhchart svg.n { display: block; } }
.hhc .lab { fill: var(--ink); font: 13px var(--sans); }
.hhc .val { fill: var(--ink); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; }
.hhc .tick { fill: var(--muted); font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.hhc .grid { stroke: var(--line); stroke-width: 1; }
.hhc .zero { stroke: var(--muted); stroke-width: 1; }
.hhc .dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.hhc .bar { fill: var(--hh-hand); }
.hhc .up { fill: var(--hh-hand); }
.hhc .down { fill: var(--hh-tax); }
.hhc .end { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.hhc .link { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.hhc .rowbg { fill: transparent; }

/* tables of the section */
.hhwide table th[scope=row] { font-weight: 400; color: var(--ink); font-size: inherit; }
.hhwide tr.sub th, .hhwide tr.sub td { font-weight: 600; border-bottom-color: var(--ink); }
.hhwide tr.out th, .hhwide tr.out td { color: var(--muted); font-size: .875rem; }
.hhwide tr.head th { color: var(--muted); font-size: .8125rem; font-weight: 600; padding-top: 1rem; }
.hhwide td.n, .hhwide th.n { white-space: nowrap; }
table.long td { font-size: .8125rem; line-height: 1.4; min-width: 9rem; }
table.long td.p { min-width: 0; white-space: nowrap; }
@media (max-width: 40rem) { .scroll table.long { min-width: 60rem; } }
/* the method page's statute table: three columns of one sentence each */
@media (max-width: 40rem) { .scroll table.long.dev { min-width: 36rem; } }
.hhsplit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
@media (min-width: 52rem) { .hhsplit { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.hhsplit .side dl { margin: .6rem 0; }
.decisions { list-style: none; padding: 0; margin: .4rem 0 1rem; font-size: .9375rem; }
.decisions li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.decisions .meta { display: block; font-size: .8125rem; color: var(--muted); }
.decisions .title { display: block; font-size: .8125rem; color: var(--muted); }
.decisions .eff { display: block; font-size: .8125rem; font-weight: 600; margin-top: .15rem; }
.summary { font: 500 1.1875rem/1.5 var(--serif); margin: .4rem 0 .8rem; }
.caveats ul.note { padding-left: 1.1rem; margin: .3rem 0 .6rem; }
.caveats ul.note li { margin: .25rem 0; }
.hhchart.steps { margin-top: 1rem; }
details.year > summary .u { font-weight: 400; color: var(--muted); }
details.year > .in { padding: 0 0 1rem; }
.facts dd .muted { font-size: .875rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
      margin: 0; padding: 0; border: 0; }
/* narrow tables keep to the screen on a phone (style.css gives scrolling tables 40 rem there) */
.hhwide table.fit { min-width: 0 !important; }
@media (max-width: 40rem) { .hhwide table.fit td.n, .hhwide table.fit th.n { padding-left: .6rem; } }
.hhc.n .lab { font-size: 12px; }

/* the section's own bits of the site's parts: the link back in the label, the icon in the front's band */
.kicker a { color: inherit; text-decoration-thickness: 1px; }
.band h2 .icb { display: inline-flex; vertical-align: -.55rem; margin-right: .6rem; }
.band.caveats ul.note { padding-left: 1.1rem; margin: .4rem 0 0; }
.summary .u { font: 400 .9375rem/1.5 var(--sans); color: var(--muted); }

/* the front's comparison table: headings wrap with their units under them, so three numeric columns fit at 1280 px;
   on a phone it scrolls inside its own container (style.css gives scrolling tables 40 rem there) */
.hhcmp table.cmp th.n { white-space: normal; min-width: 7.5rem; }
.hhcmp table.cmp th[scope=row] { min-width: 12rem; }

/* housing allowance by review month: each figure with its net income, review month and acts under it */
.hhreview table.rv th.n, .hhreview table.rv td.n { text-align: left; padding-left: 0; padding-right: 1.25rem; }
.hhreview table.rv td .u { display: block; white-space: normal; font-size: .8125rem; line-height: 1.35;
                           color: var(--muted); margin-top: .1rem; }
.hhreview table.rv td.n { min-width: 9rem; }
.hhreview table.rv td.n:nth-child(3), .hhreview table.rv td.n:nth-child(4) { min-width: 12rem; }
.hhreview table.rv td.w { font-size: .8125rem; line-height: 1.4; min-width: 9rem; }
.hhreview table.rv th.n { white-space: normal; }
/* a long section name in the jump list (household-1: the activation model variant) wraps instead of widening a phone page */
.jump li { max-width: 100%; white-space: normal; }
/* caveats: the household's name on its own line above its caveats */
.caveats .cw { display: block; font-weight: 600; color: var(--ink, inherit); }
/* the table of where 100 euros of extra income go: each row's sentences and the benefits' names under the figures */
table.kept th[scope=row] .u, table.kept td .u { display: block; font-size: .8125rem; line-height: 1.35;
  color: var(--muted); font-weight: 400; white-space: normal; }
table.kept th[scope=row] { min-width: 16rem; max-width: 26rem; }
table.kept td { vertical-align: top; }
details.hhfold > summary { cursor: pointer; font-weight: 600; margin: .8rem 0 .4rem; }
