/* Scontatore: the "Tabellone" look. Paper, ink and signal red, a departure board for the verdicts.
   System fonts only: the site loads nothing from third parties (see the privacy notice). */
:root {
  --ink: #111111;
  --paper: #f5f4ef;
  --white: #ffffff;
  --soft: #4a4a46;
  --red: #d3241b;
  --red-dark: #a81c14;
  --red-text: #b01e16;
  --board: #151515;
  --cell: #262626;
  --cell-line: #0b0b0b;
  --board-text: #f3f1ea;
  --board-muted: #b9b6ac;
  --amber: #ffb81c;
  --line: #d8d5cb;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.125rem/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 82.5rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 10; top: .5rem; left: .5rem; background: var(--ink); color: var(--white); padding: .7rem 1rem; }

/* Brand: the S flap, then "contatore" */
.brand { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; }
.brand:hover { color: var(--ink); }
.brand span { padding-top: .06em; }
.flap { width: 1.06em; height: 1.06em; flex: none; }
.flap .tile { fill: var(--red); }
.flap .s { fill: none; stroke: var(--white); stroke-width: 14; }
.flap .split, .flap .notch { fill: var(--paper); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 3px solid var(--ink); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; font-size: 1rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem 1.15rem; background: var(--ink); color: var(--white); }
.nav-cta:hover { background: var(--red); color: var(--white); text-decoration: none; }
/* The private area's menu: where the host is, underlined in red; signing out, the quietest item. */
.account-nav { gap: .25rem 1.75rem; }
.nav-tab { display: inline-flex; align-items: center; min-height: 2.75rem; border-block: 3px solid transparent; }
nav .nav-tab:hover { border-bottom-color: var(--ink); text-decoration: none; }
nav .nav-tab[aria-current="page"] { border-bottom-color: var(--red); }
.nav-out { min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.nav-out:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: clamp(1.75rem, 3vw, 2.75rem); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3rem, 5vw, 4rem); }
.eyebrow { display: flex; align-items: center; gap: .85rem; margin: 0; font-size: .94rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dot { flex: none; width: .875rem; height: .875rem; border-radius: 50%; background: var(--red); }
h1 { margin: 0; font-weight: 800; font-size: clamp(3.4rem, 10vw, 10.25rem); line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.red { color: var(--red); }
.hero-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); gap: 2rem 2.5rem; align-items: end; padding-top: 1.75rem; border-top: 1px solid var(--ink); }
.lead { margin: 0; max-width: 37.5rem; font-size: clamp(1.25rem, 1.8vw, 1.56rem); line-height: 1.4; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .875rem; min-height: 2.75rem; padding: 1.1rem 1.9rem; border: 0; border-radius: 0; background: var(--red); color: var(--white); font: inherit; font-size: 1.125rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--red-dark); color: var(--white); }
.button svg { width: 1.25rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 2.2; }
/* One red button per task; the other actions are outlined, and deleting is outlined in red. */
.button.secondary, .button.danger { padding: calc(1.1rem - 2px) calc(1.9rem - 2px); border: 2px solid var(--ink); background: var(--white); color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--white); }
.button.danger { border-color: var(--red); color: var(--red-text); }
.button.danger:hover { background: var(--red); color: var(--white); }
.under { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .375rem; }

/* The board */
.board { padding-block: 4rem 3.5rem; background: var(--board); color: var(--board-text); }
.board:focus { outline: none; }
.board .wrap { display: flex; flex-direction: column; gap: 1.75rem; }
.board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.board-head h2 { margin: .4rem 0 0; font-weight: 800; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.mono { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--board-muted); }
.board-scroll { overflow-x: auto; border-top: 2px solid var(--board-text); }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 .625rem; font-family: var(--mono); }
.board th, .board td { padding: 0 .5rem; text-align: left; vertical-align: middle; }
.board th:first-child { padding-left: 0; }
.board td:last-child { padding-right: 0; }
.board thead th { padding-top: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--board-muted); }
.board tbody { font-size: 1.375rem; font-weight: 600; }
.cell { display: flex; align-items: center; min-height: 4.5rem; padding: .75rem 1.125rem; border-radius: 3px; white-space: nowrap; background-color: var(--cell);
  background-image: linear-gradient(to bottom, transparent calc(50% - 1px), var(--cell-line) calc(50% - 1px), var(--cell-line) calc(50% + 1px), transparent calc(50% + 1px)); }
.cell.name, .cell.verdict { letter-spacing: .05em; text-transform: uppercase; }
.cell.save { color: var(--amber); }
.cell.wait { white-space: normal; font-size: 1rem; font-weight: 400; color: var(--board-muted); }
.cell.verdict { font-weight: 700; color: var(--board); }
.verdict.switch { background-color: var(--amber); --cell-line: #c98c00; }
.verdict.stay { background-color: var(--board-text); --cell-line: #bdbab0; }
.verdict.pending { padding: calc(.75rem - 2px) calc(1.125rem - 2px); border: 2px solid var(--board-muted); background: none; color: var(--board-text); }
.board-note { margin: 0; max-width: 47.5rem; font-size: .94rem; color: var(--board-muted); }

/* Method */
.method { display: flex; flex-direction: column; gap: 3.5rem; padding-block: clamp(4.5rem, 8vw, 7rem) 2.5rem; }
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); gap: 1.5rem 2rem; align-items: end; }
.split-head h2, .pilot h2 { margin: 0; font-weight: 800; font-size: clamp(2.75rem, 5.4vw, 5.25rem); line-height: .95; letter-spacing: -.04em; }
.split-head p { margin: 0; max-width: 30rem; font-size: 1.25rem; }
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.stops li { display: flex; flex-direction: column; gap: 1.125rem; padding: 2rem 2rem 2rem 0; }
.stops li + li { padding-left: 2rem; border-left: 1px solid var(--ink); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800; font-size: 1.875rem; }
.stops li:first-child .num { background: var(--red); }
.stops h3 { margin: 0; font-size: 1.69rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stops p { margin: 0; }

/* Promise */
.promise { padding-block: clamp(4rem, 7vw, 6rem) 2.5rem; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); gap: 2rem 3rem; padding-top: 2.5rem; border-top: 3px solid var(--red); }
.promise .big { margin: 0; font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.promise ul { margin: 0; padding: 0; list-style: none; font-size: 1.19rem; }
.promise li { display: flex; gap: 1.125rem; padding-block: 1.125rem; border-bottom: 1px solid var(--ink); }
.promise li span { padding-top: .3rem; font-family: var(--mono); font-size: .8rem; color: var(--red-text); }

/* Pilot and form */
.pilot { padding-block: clamp(4.5rem, 8vw, 7rem) clamp(5rem, 8vw, 7.5rem); scroll-margin-top: 1rem; }
.pilot-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 3px solid var(--ink); }
.pilot-intro { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3.25rem); background: var(--white); }
.pilot-intro .eyebrow { color: var(--red-text); }
.pilot h2 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); line-height: .98; }
.pilot-intro p { margin: 0; max-width: 29rem; }
.intro-lead { font-size: 1.19rem; }
.intro-fine { font-size: .94rem; color: var(--soft); }
.pilot form { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3.25rem); border-left: 3px solid var(--ink); background: var(--paper); }
form label { display: block; margin-bottom: .5rem; font-size: .81rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
form input:not([type="radio"], [type="checkbox"]), form select { width: 100%; min-height: 3.25rem; padding: 0 .875rem; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
form :focus-visible { outline-offset: 1px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.125rem; }
form .fine { margin: 0; font-size: .81rem; color: var(--soft); }
form .button { width: 100%; min-height: 3.5rem; }
.notice { display: flex; align-items: flex-start; gap: .75rem; margin: 0; padding: .9rem 1rem; border: 2px solid var(--ink); background: var(--white); font-weight: 600; }
.notice::before { content: ""; flex: none; width: .75rem; height: .75rem; margin-top: .45em; border-radius: 50%; background: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: var(--board-text); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; font-size: .94rem; }
.site-footer .brand { color: var(--board-text); font-size: 1.75rem; }
.site-footer .flap .tile { fill: #e8392e; }
.site-footer .flap .split, .site-footer .flap .notch { fill: var(--ink); }
.site-footer nav { font-weight: 400; }
.site-footer nav a { text-decoration: underline; text-underline-offset: .25em; }
.site-footer a:hover { color: var(--white); }

/* Private pages: signing in, the portfolio, an apartment */
.account { display: flex; flex-direction: column; gap: 1.5rem; max-width: 54rem; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6rem); }
.account h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.account h2 { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.account h3 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.account p { margin: 0; max-width: 42rem; }
.account .eyebrow a { text-decoration: none; }
.account .eyebrow a:hover { text-decoration: underline; text-underline-offset: .3em; }
/* Where the page is, and the way back: every step up is a link. */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .6rem; margin: 0; padding: 0; list-style: none; font-size: .94rem; color: var(--soft); }
.crumbs li { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›" / ""; color: var(--soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.crumbs a:hover { color: var(--red-text); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.page-head > div, .title { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.account .button { padding: .9rem 1.5rem; font-size: 1.06rem; }
.account .button.secondary, .account .button.danger { padding: calc(.9rem - 2px) calc(1.5rem - 2px); }
.account form .button { width: auto; align-self: flex-start; }
.lede { font-size: 1.19rem; }
.tag { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.panel { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 3px solid var(--ink); background: var(--white); }
.panel input:not([type="radio"], [type="checkbox"]) { background: var(--paper); }
.account .hint { margin-top: .5rem; font-size: .94rem; color: var(--soft); }
.options { display: grid; gap: .625rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.options legend { margin-bottom: .625rem; padding: 0; font-size: .81rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
form label.option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .125rem .75rem; margin: 0; padding: .875rem 1rem; border: 2px solid var(--ink); background: var(--white); font-size: 1rem; font-weight: 400; letter-spacing: normal; text-transform: none; cursor: pointer; }
.option input { grid-row: span 2; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--red); }
.option strong { font-weight: 700; }
.option span { font-size: .94rem; color: var(--soft); }
.option:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.step { display: flex; flex-direction: column; gap: 1.25rem; }
.outcome { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.5rem; border-left: 6px solid var(--red); background: var(--white); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.choice { display: flex; flex-direction: column; gap: .5rem; min-height: 2.75rem; padding: 1.25rem; border: 3px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.choice strong { font-size: 1.19rem; font-weight: 800; line-height: 1.2; }
.choice span { font-size: .94rem; color: var(--soft); }
.choice:hover { border-color: var(--red); }
.choice[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.choice[aria-pressed="true"] strong::after { content: " ✓" / ""; color: var(--red-text); }
/* Once a way is chosen, the others are a smaller choice, under Altre opzioni. */
.choices.compact { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: .75rem; margin-top: .75rem; }
.compact .choice { gap: .25rem; padding: .875rem 1rem; border-width: 2px; }
.compact .choice strong { font-size: 1rem; }
.compact .choice span { font-size: .875rem; }
.fix summary { min-height: 2.75rem; padding-block: .6rem; font-weight: 600; cursor: pointer; }
.fix[open] summary { margin-bottom: 1rem; }
.settings { display: flex; flex-direction: column; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.account .settings h2, .group-list h2 { font-size: .81rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.settings h2 { margin-bottom: .25rem; }
/* The portfolio: what to do first, then the rest. Each apartment is a row that opens it. */
.group-list { display: flex; flex-direction: column; gap: .75rem; }
.apartments { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.apartments li { border-bottom: 1px solid var(--ink); }
.apartments a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1rem; padding: 1rem 0; text-decoration: none; }
.apartments a::after { content: "›" / ""; grid-column: 2; grid-row: 1 / span 2; font-size: 2rem; line-height: 1; color: var(--soft); transition: transform .15s; }
.apartments a:hover .name { color: var(--red-text); }
.apartments a:hover::after { color: var(--red-text); transform: translateX(.25rem); }
.apartments .name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.state { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; color: var(--soft); }
.state::before { content: ""; flex: none; width: .625rem; height: .625rem; margin-top: .45em; border: 2px solid var(--soft); border-radius: 50%; }
.state.todo { color: var(--red-text); font-weight: 600; }
.state.todo::before { border-color: var(--red); background: var(--red); }
.state.switch::before { border-color: var(--amber); background: var(--amber); }
.state.stay::before { border-color: var(--ink); background: var(--ink); }
.session { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.session p { font-size: .94rem; color: var(--soft); overflow-wrap: anywhere; }
.text-button { min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.text-button:hover { color: var(--red-text); }
.inline { display: contents; }
.documents { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.documents li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--ink); }
.documents li > div:first-child { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.documents span { font-size: .94rem; color: var(--soft); overflow-wrap: anywhere; }
.doc-actions { display: flex; align-items: center; gap: 1.25rem; }
.doc-actions a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.notice-box { padding: clamp(1.25rem, 3vw, 2rem); border: 3px solid var(--ink); background: var(--white); }
/* I tuoi dati: one card per part, deleting the account apart; the notice to accept scrolls in its own box. */
.card { padding: clamp(1.25rem, 3vw, 2rem); border: 2px solid var(--ink); background: var(--white); scroll-margin-top: 1rem; }
.card .notice-box { border-width: 2px; background: var(--paper); }
.notice-box.scroll { max-height: min(28rem, 60vh); overflow-y: auto; }
.danger-zone { border-color: var(--red); }
.danger-zone h2 { color: var(--red-text); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.stack > fieldset, .stack > label { align-self: stretch; }
.address-inline { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .9rem; border: 1px solid var(--ink); background: var(--white); font-size: .94rem; font-weight: 600; text-decoration: none; }
.jump a:hover { background: var(--ink); color: var(--white); }
.notice-text { display: flex; flex-direction: column; gap: .75rem; }
.notice-text h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.notice-text h4 { margin: .75rem 0 0; font-size: 1rem; font-weight: 800; }
.notice-text .fine { font-size: .94rem; color: var(--soft); }

/* The bill entered by hand (ENE-21) */
.progress { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; font-size: .94rem; }
.progress li { counter-increment: step; }
.progress a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .9rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.progress li:not(:last-child) a::before { content: counter(step) ". "; white-space: pre; font-family: var(--mono); font-size: .85em; }
.progress a:hover { border-color: var(--red); color: var(--red-text); }
.progress a[aria-current="step"] { background: var(--ink); color: var(--white); }
.bill-form { gap: 1.75rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.input { display: flex; align-items: stretch; }
.input input { flex: 1; min-width: 0; }
.unit { display: inline-flex; align-items: center; padding: 0 .875rem; border: 2px solid var(--ink); border-left: 0; background: var(--white); font-weight: 600; white-space: nowrap; }
.account .example { display: block; margin-top: .25rem; font-family: var(--mono); font-size: .8rem; color: var(--ink); overflow-wrap: anywhere; }
.error { margin: .5rem 0 0; color: var(--red-text); font-weight: 600; }
.has-error input:not([type="radio"], [type="checkbox"]) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.group { margin: 0; padding: 0; border: 0; min-width: 0; }
.group legend { margin-bottom: .625rem; padding: 0; font-size: .81rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.inline-options { grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }
form .form-actions .button { width: auto; }
/* With a single price, the three band prices are not asked for, and the other way round. Without :has, both show. */
.bill-form:has(#f-price_mode-single:checked) .band-prices, .bill-form:has(#f-price_mode-bands:checked) .single-price { display: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.section-head a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.summary { margin: 0; border-top: 3px solid var(--ink); }
.summary > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding: .875rem 0; border-bottom: 1px solid var(--ink); }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary .tag { margin-left: .5rem; color: var(--red-text); }
.summary .tag.read { color: var(--soft); }
.address { margin: .5rem 0; padding: .75rem .875rem; border: 2px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: .9rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.panel input[type="file"] { padding: .75rem; border: 2px dashed var(--ink); background: var(--paper); font: inherit; }
.missing { color: var(--red-text); font-weight: 700; }
.unknown { color: var(--soft); }
.needed { display: flex; flex-direction: column; gap: .625rem; margin: 0; padding-left: 1.2rem; }

/* The report on an apartment and on the portfolio (ENE-5) */
.verdict-box.stay { border-left-color: var(--ink); }
.verdict-box.inconclusive, .verdict-box.unavailable, .verdict-box.stale, .verdict-box.incomplete,
.verdict-box.expired { border-left-color: var(--soft); }
.verdict-box .tag { margin: 0; }
.verdict-box h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.03em; }
.account .provenance { margin-top: .25rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .94rem; color: var(--soft); }
.provenance a { font-weight: 600; color: var(--ink); }
/* With a verdict, its offer comes first in the list, marked as the verdict's box is. */
ol.offers.picked li:first-child { padding-inline: 1.25rem; border-left: 6px solid var(--red); background: var(--white); }
/* The offers held apart: folded away under a verdict, open without one (they are then all there is). */
.held { gap: 0; border-top: 3px solid var(--ink); }
.held .more { border-bottom: 1px solid var(--ink); }
.more summary { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding-block: .5rem; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+" / ""; flex: none; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); font: 700 1rem/1.25rem var(--mono); text-align: center; }
.more[open] summary::before { content: "−" / ""; }
.more summary:hover h3 { color: var(--red-text); }
.more > :not(summary) { margin-bottom: 1rem; }
.more .offers { border-top-width: 1px; }
.report-part { display: flex; flex-direction: column; gap: 1rem; }
.account .fine { font-size: .94rem; color: var(--soft); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 1px; margin: 0; border: 3px solid var(--ink); background: var(--ink); }
.figures > div { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.25rem; background: var(--white); }
.figures dt { font-size: .81rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.figures dd { margin: 0; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }
.save { color: var(--red-text); }
.offers { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.offers li { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--ink); }
ol.offers { counter-reset: offer; }
ol.offers li { counter-increment: offer; }
ol.offers .offer-name::before { content: counter(offer) ". "; font-family: var(--mono); font-weight: 700; }
.offer-name strong { font-size: 1.125rem; overflow-wrap: anywhere; }
.offer-name span { display: block; font-size: .94rem; color: var(--soft); overflow-wrap: anywhere; }
.offer-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr)); gap: .5rem 1rem; margin: 0; }
.offer-figures dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.offer-figures dd { margin: 0; font-family: var(--mono); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.costs { width: 100%; border-collapse: collapse; border-top: 3px solid var(--ink); font-size: 1rem; }
.costs th, .costs td { padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.costs td { font-family: var(--mono); text-align: right; white-space: nowrap; }
.costs thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.costs thead th:not(:first-child) { text-align: right; }
.costs tbody tr:last-child { font-weight: 800; }
.rule { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.5rem; border: 2px solid var(--ink); }
.totals { display: flex; flex-direction: column; gap: 1rem; padding-bottom: .5rem; }

/* Privacy notice */
.legal { max-width: 50rem; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6rem); }
.legal .eyebrow { margin-bottom: 1.25rem; }
.legal h1 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -.04em; }
.legal h2 { margin: 2.5rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.legal .fine { font-size: .94rem; color: var(--soft); }
.legal p, .legal li { max-width: 42rem; }
.legal ul { padding-left: 1.2rem; }
.legal h3 { margin: 1.5rem 0 .25rem; font-size: 1.06rem; font-weight: 800; }
.legal .notice-text { display: block; }

@media (max-width: 860px) {
  .pilot-box { grid-template-columns: minmax(0, 1fr); }
  .pilot form { border-left: 0; border-top: 3px solid var(--ink); }
  .stops { grid-template-columns: 1fr; }
  .stops li, .stops li + li { padding: 1.75rem 0; border-left: 0; }
  .stops li + li { border-top: 1px solid var(--ink); }
}
/* On a phone each apartment becomes its own block of flaps. */
@media (max-width: 1000px) {
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board table, .board tbody { display: block; }
  .board tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding-block: 1rem; border-bottom: 1px solid #3a3a3a; }
  .board th, .board td { padding: 0; }
  .board tbody th, .board td.wide, .board td.wide + td { grid-column: 1 / -1; }
  .cell { min-height: 3.75rem; }
  .board td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--board-muted); }
  .board tbody { font-size: 1.125rem; }
}
@media (max-width: 540px) {
  .site-header nav a:not(.nav-cta, .nav-keep, .nav-tab) { display: none; }
  .account-nav { width: 100%; gap: .25rem 1.25rem; }
  .nav-out { margin-left: auto; padding: 0 .9rem; font-size: .94rem; }
  .account .button, .account form .button { width: 100%; }
  .page-head > .button { width: 100%; }
  .progress { gap: .375rem; font-size: .875rem; }
  .progress a { padding-inline: .6rem; }
  .site-header .wrap { gap: .75rem; }
  .nav-cta { padding: .6rem .9rem; font-size: .94rem; }
  .site-footer nav a { display: inline; }
  .brand { font-size: 1.5rem; }
  .pair { grid-template-columns: 1fr; }
  .trio, .summary > div { grid-template-columns: 1fr; }
  form .form-actions .button { width: 100%; }
  .pilot-intro, .pilot form { padding: 1.75rem 1.25rem; }
  .pilot h2 { font-size: 2rem; }
  .button { width: 100%; }
}
