/* Plain Django pages */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* .message-stack / .app-message are styled with the rest of the app-shell chrome
   at the foot of this file: the approved mockup renders a flash message as an
   inline callout above the content, not as a floating toast. */

.settings-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card,
.settings-card,
.profile-card,
.profile-list-card,
.form-section {
  padding: 24px;
}

.settings-card h2,
.profile-card h2,
.form-section h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.profile-card-head,
.profile-list-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.profile-card-head h2,
.profile-list-card-head h2 {
  margin: 6px 0 0;
}

.profile-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.profile-facts div,
.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--ink-muted);
}

.profile-facts dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.checkbox-chip {
  position: relative;
  cursor: pointer;
}

/* Visually hidden, but still a box of its own: without a size it kept the width of every
   other input (the whole row) and sat outside the chip, so the profile form overflowed the
   viewport by 75px at 375px. The chip holds it now, and it is one pixel. */
.checkbox-chip input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.plan-actions,
.ops-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* The checkout buttons carry the price and "incl. btw" in their label, which is about as
   wide as a 360px phone allows. Less side padding keeps each label on one line down to
   360px; below that it breaks before "incl. btw" (a no-break space joins the two words),
   and the line height keeps the two lines from sitting cramped. */
.plan-actions .btn {
  padding: 10px 16px;
  line-height: 1.25;
  text-align: center;
}

/* The line under a comparison table or list that says HuisPing's price includes VAT, and the
   line after it that says where a provider or a reader sends a correction. Same quiet style. */
.comp-price-note,
.comp-correction-note {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.comp-correction-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comp-correction-note a:hover {
  color: var(--ink);
}

/* A content page that compares providers carries the correction line on its own, not under a table. */
.seo-correction {
  margin: 1.5rem 0;
}

.seo-correction .comp-correction-note {
  margin: 0;
}

.danger {
  color: var(--danger);
}

.danger-zone {
  /* Was a raw #b3261e, a red that is not in the palette at all, left over from the
     pre-redesign system. The destructive affordance stays (a hint of red on the card
     edge), but it is now mixed from --danger so it cannot drift off-palette. */
  border-color: color-mix(in oklab, var(--danger) 35%, var(--line));
}

.auth-footnote {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Help for a login code that does not arrive, under the verify form (accounts/login_code_verify.html). */
.code-help {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.code-help-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.code-help ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.code-help li + li {
  margin-top: 4px;
}

.code-resend,
.code-help-google {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.help-line {
  display: inline;
}

@media (max-width: 720px) {
  .profile-card-head,
  .profile-list-card-head,
  .profile-facts div,
  .ops-row {
    flex-direction: column;
  }

  .profile-facts dd {
    text-align: left;
  }
}

/* -- Matches page -------------------------------------------------------- */
/* The homepage ping (landing.css `.lp .ping`) in the app shell: white, one
   hairline, radius 8, no shadow. Cards in a row share the row's height and keep the
   source link on the bottom edge, so a row with one badge stays level. */

/* The dashboard's weekly count leads to the matches page, so it reads as a link:
   brand green like the source link on the page it opens (.ping-foot a). */
.liveness-strip a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.liveness-strip a:hover {
  text-decoration-color: var(--brand);
}

/* "Woningruil telt hier niet mee.", next to the watching count it qualifies. */
.liveness-strip .liveness-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* The back link drops below the heading on a phone instead of squeezing it. */
.match-head {
  flex-wrap: wrap;
}

.match-notes {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
}

/* The one-time note after the limited-info filter was switched off for her: the text,
   and "Begrepen" beside it, under it on a phone. */
.limited-info-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}

.limited-info-notice p {
  flex: 1 1 32ch;
  margin: 0;
}

.limited-info-notice form {
  margin: 0;
}

/* The end of Free (partials/plan_change_banner.html): her date and "Kies een plan" on one
   line, the button under it on a phone, and the referral offer as a short line of its own. */
.plan-change-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}

.plan-change-notice p {
  flex: 1 1 24ch;
  margin: 0;
}

.plan-change-notice .plan-change-referral {
  flex-basis: 100%;
  font-size: var(--t-13);
}

/* "Hoe werkt het?" of the referral block (billing/_referral_block.html): the rules a click away. */
.plan-referral-how summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}

/* Few or no homes: which of her filters hides the others, with the way out beside each
   line (search_profiles/hidden_homes.py). The panel replaces the empty state at 0, the
   hint sits under the count at 1 to 4, the note after "Toon ze" carries "Terugzetten". */
.hidden-homes {
  gap: var(--s-4);
  align-content: center;
}

.hidden-homes h2 {
  margin: 0;
}

.hidden-homes-block {
  width: min(100%, 64ch);
  text-align: left;
}

.hidden-homes-profile {
  margin: 0 0 var(--s-2);
  color: var(--ink);
  font-size: var(--t-15);
  font-weight: 600;
}

.hidden-homes-lines {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hidden-homes-lines li,
.hidden-homes-hint,
.hidden-homes-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

.hidden-homes-text {
  flex: 1 1 28ch;
}

.hidden-homes-done p {
  flex: 1 1 32ch;
  margin: 0;
}

.hidden-homes-form,
.hidden-homes-done form {
  margin: 0;
}

.hidden-homes-hint {
  margin: calc(-1 * var(--s-2)) 0 var(--s-4);
  color: var(--ink-muted);
  font-size: var(--t-15);
}

.hidden-homes-pointer {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: var(--t-13);
}

/* One-tap widen suggestions (search_profiles/widen.py), under the hidden-homes lines. */
.widen {
  width: min(100%, 64ch);
  margin: var(--s-3) 0 var(--s-4);
  text-align: left;
}

.widen-head {
  margin: 0 0 var(--s-2);
  color: var(--ink);
  font-size: var(--t-15);
  font-weight: 600;
}

.widen-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.widen-list form {
  margin: 0;
}

.widen-button {
  min-height: 44px;
}

.widen-count {
  margin-left: var(--s-1);
  color: var(--ink-muted);
  font-weight: 400;
}

/* In the empty card (the panel at 0 homes, also under "Nog geen nieuwe woning sinds ..."):
   one centred column under the centred heading, like the other empty cards. Each way out
   sits centred under its own sentence, the suggestions centred under theirs, and every
   button is the same 44px high. On a phone the buttons stack at full width. */
.empty-state.hidden-homes .hidden-homes-block,
.empty-state.hidden-homes .widen {
  text-align: center;
}

.empty-state.hidden-homes .hidden-homes-lines li {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
}

/* The Plus pointer's button sits under its sentence too, not beside it. */
.empty-state.hidden-homes .hidden-homes-pointer {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  text-align: center;
}

/* With several profiles, each block's name is a small label, not the empty card's 34px h3. */
.empty-state.hidden-homes .hidden-homes-profile {
  margin: 0 0 var(--s-2);
  font-family: inherit;
  font-size: var(--t-15);
  font-weight: 600;
}

.empty-state.hidden-homes .widen {
  margin: var(--s-4) 0 0;
}

.empty-state.hidden-homes .widen-list {
  justify-content: center;
}

.empty-state.hidden-homes .btn {
  min-height: 44px;
}

.empty-state.hidden-homes .widen-button {
  flex-wrap: wrap;
  row-gap: 2px;
  white-space: normal;
}

.empty-state.hidden-homes .widen-count {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .empty-state.hidden-homes {
    padding: var(--s-5) var(--s-4);
  }

  .empty-state.hidden-homes .hidden-homes-lines li,
  .empty-state.hidden-homes .widen-list {
    justify-items: stretch;
  }

  .empty-state.hidden-homes .widen-list {
    flex-direction: column;
  }

  .empty-state.hidden-homes .hidden-homes-form,
  .empty-state.hidden-homes .btn {
    width: 100%;
  }
}

.match-preview-hidden {
  margin: var(--s-3) 0 0;
}

.match-summary {
  margin: 0 0 var(--s-4);
  color: var(--ink-soft);
  font-size: var(--t-15);
}

.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-list > li {
  display: flex;
}

.match-list .ping {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}

.match-list .ping-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-list .ping-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--brand);
}

.match-list .ping-source {
  margin: 0;
  letter-spacing: inherit;
}

.match-list .ping-time {
  margin-left: auto;
  letter-spacing: 0.04em;
}

.match-list .ping-title {
  margin: var(--s-2) 0 0;
  font-family: var(--display);
  font-size: var(--t-20);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.match-list .ping-meta {
  margin: var(--s-2) 0 0;
  font-size: var(--t-13);
  color: var(--ink-soft);
}

.match-list .ping-meta b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-list .ping-badge {
  margin: var(--s-3) 0 0;
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  background: var(--paper-2);
  font-size: var(--t-13);
  color: var(--ink-soft);
}

.match-list .ping-badge b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* As in the email: the brand rule while nobody had reacted, neutral after that. */
.match-list .ping-badge--neutral {
  border-left-color: var(--line-strong);
}

.match-list .ping-foot {
  margin: auto 0 0;
  padding-top: var(--s-2);
}

.match-list .ping-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  font-size: var(--t-15);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-list .ping-foot a:hover {
  text-decoration-color: var(--brand);
}

.match-state {
  margin: var(--s-2) 0 0;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink-soft);
}

.match-list .ping--offline .ping-dot {
  background: var(--line-strong);
}

.match-list .ping--offline .ping-title,
.match-list .ping--offline .ping-meta b {
  color: var(--ink-soft);
}

.match-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  font-size: var(--t-13);
  color: var(--ink-muted);
}

/* The whole card opens the home's page: the title's link is stretched over the card
   (one link for the keyboard, one tap target for a thumb), and the source link at the
   foot keeps its own layer above it so it still opens the ad. */
.match-list .ping {
  position: relative;
  transition: border-color var(--t-hover) linear;
}

.match-list .ping:hover {
  border-color: var(--line-strong);
}

.match-list .ping-title a {
  color: inherit;
  text-decoration: none;
}

.match-list .ping-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.match-list .ping:has(.ping-title a:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.match-list .ping-foot a,
.match-list .ping-foot form {
  position: relative;
  z-index: 1;
}

/* -- Matches page: day headers ------------------------------------------- */
/* Newest first groups the cards under the day each home was found. The header reads
   like the cards' own mono kicker and runs a hairline to the right edge, so the eye
   finds the next day without a box around it. */
.match-day {
  margin: 0 0 var(--s-5);
}

.match-day-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-day-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* -- Matches: the live view (search_profiles/live_view.py) --------------- */
/* The header card after a save sits under the page head. The day-zero section
   "Recent aanbod dat past" stands apart from her own list: a hairline above, its
   own heading and a quiet line that says these homes are not mailed. */
.live-view-saved {
  margin: 0 0 var(--s-4);
}

.recent-homes {
  margin: var(--s-5) 0 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--line);
}

.recent-homes > h2 {
  margin: 0 0 var(--s-2);
}

.recent-homes-note {
  margin: 0 0 var(--s-4);
  color: var(--ink-muted);
}

.recent-homes-more {
  margin: var(--s-3) 0 0;
  color: var(--ink-muted);
}

/* -- Matches: the "Ik heb gereageerd" mark ------------------------------- */
/* On a card the foot holds the source link on the left and the toggle on the right;
   a long source name wraps the toggle under it. The toggle is a button that looks like
   a checkbox: the box is drawn from aria-pressed, so the state is one attribute for the
   eye, the keyboard and the script alike. */
.match-list .ping-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-3);
}

/* The toggle keeps to the right edge, also once a long source name wraps it onto its
   own line, so the toggles of a row of cards line up. */
.match-list .ping-foot form {
  margin-left: auto;
}

/* The same home on another source ("Ook op Pararius"): its links sit next to the source
   link, not spread over the foot, and the toggle still keeps to the right. */
.match-list .ping-foot a[data-twin-link]:last-of-type {
  margin-right: auto;
}

.responded-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
}

.responded-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--t-13);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-hover) linear;
}

.responded-button::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  /* The box is the only sign that the label is a control and that it is off, so its
     edge reads at 4.5:1 on white, as the native checkboxes beside it do. */
  border: 1.5px solid var(--ink-muted);
  border-radius: 4px;
  background: var(--paper);
  transition: background var(--t-hover) linear, border-color var(--t-hover) linear;
}

.responded-button:hover {
  color: var(--ink);
}

.responded-button:hover::before {
  border-color: var(--brand);
}

.responded-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.responded-button[aria-pressed="true"] {
  color: var(--brand);
}

.responded-button[aria-pressed="true"]::before {
  border-color: var(--brand);
  background: var(--brand);
}

/* The check: two edges of a small square, turned, over the filled box. */
.responded-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* While app.js posts the mark: the button keeps focus, so it is marked busy, not disabled. */
.responded-toggle[aria-busy="true"] .responded-button {
  cursor: progress;
  opacity: 0.7;
}

.responded-when {
  font-size: var(--t-13);
  color: var(--ink-muted);
}

/* "Gereageerd op 3 okt" on the card: a small brand pill with the same check. */
.match-responded {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-start;
  margin: var(--s-3) 0 0;
  padding: 3px var(--s-3) 3px var(--s-2);
  border-radius: var(--r-full);
  background: var(--brand-wash);
  color: var(--brand);
  font-size: var(--t-13);
  font-weight: 600;
  line-height: 1.3;
}

/* Not chosen, or she stopped: the same pill, quiet, without the check. */
.match-responded--muted {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-soft);
}

.match-responded--muted::before {
  display: none;
}

/* "Bij 4 woningen ben je bezig: ...", above the list for the plans with steps. */
.match-busy {
  margin: 0 0 var(--s-2);
  font-size: var(--t-15);
}

.match-busy a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-busy a:hover {
  text-decoration-color: var(--brand);
}

.match-responded::before {
  content: "";
  flex: none;
  width: 5px;
  height: 9px;
  margin: 0 3px 3px 4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* "Beperkte info, bekijk de advertentie bij de bron" on a card and on a home's page: the
   source left out the rent, the size or the number of rooms. A quiet line, not a
   warning: the home is no worse for it, she reads the rest at the source. */
.match-limited {
  margin: var(--s-2) 0 0;
  font-size: var(--t-13);
  line-height: 1.4;
  color: var(--ink-soft);
}

/* "Onbeperkt reageren kan hier alleen met een betaald account" on a card and on a home's page: unlimited replies there need a paid account. */
.match-costs {
  margin: var(--s-2) 0 0;
  font-size: var(--t-13);
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

/* "Woningruil" on a card and on a home's page: a neutral pill, so a swap reads apart
   from a home to rent at a glance. */
.match-kind {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: var(--s-3) 0 0;
  padding: 3px var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--paper-2);
  color: var(--ink);
  font-size: var(--t-13);
  font-weight: 600;
  line-height: 1.3;
}

.match-list .ping--offline .match-responded {
  background: var(--paper-2);
  color: var(--ink-soft);
}

/* -- Matches page: filters and sort -------------------------------------- */
/* One row: the filter disclosure on the left, the sort on the right (floated, so the
   open panel clears below it at full width in every browser). flow-root keeps the
   chips and the list from flowing up beside the float while the panel is closed. */
.match-filter-bar {
  display: flow-root;
  margin: 0 0 var(--s-4);
}

/* The select and its Sorteer button as one row; the label is for screen readers. */
.match-sort {
  float: right;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3) var(--s-3);
}

.match-sort .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.match-sort select {
  min-height: 36px;
  padding: 6px 13px;
  font-size: var(--t-13);
}

/* On a phone the row does not fit beside the Filteren button: its own line below it,
   above the chips and the homes. */
@media (max-width: 480px) {
  .match-filter-bar {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
  }

  .match-sort {
    float: none;
    order: 2;
    margin: 0;
  }

  .match-sort .field {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.match-filters-toggle {
  list-style: none;
  cursor: pointer;
}

.match-filters-toggle::-webkit-details-marker {
  display: none;
}

.match-filters-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-top: 3px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transition: transform var(--t-hover) linear;
}

.match-filters[open] > .match-filters-toggle::after {
  margin-top: -3px;
  transform: rotate(180deg);
}

.match-filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--paper);
  font-size: var(--t-11);
  font-weight: 600;
  line-height: 1;
}

.match-filters-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: var(--s-3);
  clear: both;
  margin-top: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper-2);
}

.match-filters-panel .field input,
.match-filters-panel .field select {
  background: var(--paper);
}

.match-filters-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.match-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}

.match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid color-mix(in oklab, var(--brand) 42%, var(--line));
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--t-13);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-hover) linear;
}

.match-chip:hover {
  border-color: var(--brand);
}

.match-chip--clear {
  border-color: var(--line);
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.match-chip--clear:hover {
  border-color: var(--ink);
}

/* -- A home's page --------------------------------------------------------- */
.match-detail-back {
  margin: 0 0 var(--s-4);
  font-size: var(--t-15);
}

.match-detail-back a,
.match-detail-profiles a,
.match-detail-source a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-detail-back a:hover,
.match-detail-profiles a:hover,
.match-detail-source a:hover {
  text-decoration-color: var(--brand);
}

.match-detail .ping-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-detail .ping-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--brand);
}

.match-detail .ping--offline .ping-dot {
  background: var(--line-strong);
}

/* app.css gives .ping-source a bottom margin, which would push the time out of line. */
.match-detail .ping-source {
  margin: 0;
  letter-spacing: inherit;
}

.match-detail .ping-time {
  letter-spacing: 0.04em;
}

/* A home's title is a sentence from an ad, not a page name: the section size, not the
   display size of the other workspace headings. */
.match-detail-head h1.match-detail-title {
  margin-top: var(--s-2);
  font-size: var(--t-section);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.match-detail-lead {
  margin: var(--s-2) 0 0;
  font-size: var(--t-17);
  color: var(--ink-soft);
}

.match-detail-lead b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-state--open {
  color: var(--brand);
}

.match-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--s-4);
  align-items: start;
}

.match-detail-card {
  padding: var(--s-5);
}

.match-detail-card h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-detail-card dl + h2,
.match-detail-card p + h2,
.match-detail-card ul + h2 {
  margin-top: var(--s-5);
}

.match-detail-card .profile-facts {
  margin: 0;
}

.match-detail-card .profile-facts div:last-child {
  border-bottom: 0;
}

/* A date and time stay on one line; the label wraps instead. */
.match-detail-card .profile-facts time {
  white-space: nowrap;
}

.match-detail .ping-badge {
  margin: var(--s-4) 0 0;
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  background: var(--paper-2);
  font-size: var(--t-13);
  color: var(--ink-soft);
}

.match-detail .ping-badge b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-detail .ping-badge--neutral {
  border-left-color: var(--line-strong);
}

.match-detail-description {
  margin: 0;
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.match-detail-profiles {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-detail-source {
  margin: var(--s-5) 0 0;
}

@media (max-width: 860px) {
  .match-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* -- How to apply, under the facts ----------------------------------------- */
/* One card across the page: the route's lines read as a short note, the guide links
   as a compact list. The letter lands between the two (its own block). */
.match-apply {
  margin-top: var(--s-4);
  padding: var(--s-5);
}

.match-apply-title {
  margin: 0 0 var(--s-3);
  font-size: var(--t-20);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.match-apply-lines {
  max-width: 70ch;
}

.match-apply-lines p {
  margin: 0;
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-apply-lines p + p {
  margin-top: var(--s-2);
}

/* The first line is the route itself; the lines after it are the home's own notes. */
.match-apply-lines p:first-child {
  color: var(--ink);
}

.match-apply-more,
.match-apply-extra {
  margin: var(--s-5) 0 var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-apply-extra {
  margin-top: var(--s-4);
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink-soft);
}

.match-apply-links {
  display: grid;
  /* min(): on a 320px phone the card's inner width is under 260px, so the column
     takes what there is instead of pushing into the padding. */
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--s-1) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-apply-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-2);
  font-size: var(--t-15);
  line-height: 1.5;
}

/* A tap target of about 40px, like the buttons around it, rather than one text line. */
.match-apply-links a,
.match-letter-public a {
  display: inline-block;
  padding: var(--s-2) 0;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-apply-links a:hover {
  text-decoration-color: var(--brand);
}

.match-apply-note {
  font-size: var(--t-13);
  color: var(--ink-muted);
}

@media (max-width: 480px) {
  .match-apply {
    padding: var(--s-4);
  }
}

/* -- The home's page: the reply tools --------------------------------------- */
/* The head's actions: the source button and the "Ik heb gereageerd" mark side by
   side, wrapping under each other on a narrow screen. */
.match-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}

.match-detail-actions .responded-toggle {
  min-height: 44px;
}

/* The letter inside the apply card, between the route's lines and the guide links:
   a rule above it, the app's own heading, and the shared generator (seo-pilot.css,
   loaded on this page only while the letter renders) under it. */
.match-letter {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}

.match-letter-title {
  margin: 0;
  font-size: var(--t-17);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* The app's heading, not the pilot pages' display face (.pilot-generator h3). */
.match-letter .match-letter-title {
  font-family: var(--sans);
  font-size: var(--t-17);
  font-weight: 700;
}

/* The result's own heading sits one level under the letter's, in the same face. */
.match-letter .pilot-generator__result-heading h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-15);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.match-letter-intro,
.match-letter-note,
.match-letter-public {
  max-width: 70ch;
  margin: var(--s-2) 0 0;
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-letter .pilot-generator__surface {
  margin-top: var(--s-5);
}

/* The result panel follows her down the fields on a wide screen, under the sticky
   nav (--nav-h); under 900px seo-pilot.css lets it flow with the page. */
.match-letter .pilot-generator__result {
  top: calc(var(--nav-h) + var(--s-5));
}

/* On a phone three paddings stack (the card's, the panel's and the safety note's), so
   the panel and the note give up most of theirs and the letter keeps its width. */
@media (max-width: 620px) {
  .match-letter .pilot-generator__result {
    padding: var(--s-4);
  }

  .match-letter .pilot-safety {
    padding: var(--s-3) var(--s-4);
  }
}

/* On a portal home the letter is folded: she applies with her registration there,
   and opens the letter only when the ad asks for a motivation. */
.match-letter-details {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}

.match-letter-details summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-15);
  font-weight: 600;
  color: var(--brand);
}

.match-letter-details summary::-webkit-details-marker {
  display: none;
}

/* The disclosure mark: a small chevron that turns when the letter is open. */
.match-letter-details summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 var(--s-1) 0 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform var(--t-hover) linear;
}

.match-letter-details[open] summary::before {
  transform: rotate(45deg);
}

.match-letter-details summary:hover {
  color: var(--brand-deep);
}

.match-letter-details summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.match-letter-details .match-letter {
  margin-top: var(--s-2);
  border-top: 0;
  padding-top: 0;
}

/* After the letter the guide links are a block of their own again: a rule closes
   the letter, so the small "Meer uitleg" kicker does not read as its footnote. */
.match-letter + .match-apply-more,
.match-letter-details + .match-apply-more {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}

/* Free, on a listing-site home: what the paid plans get here, and the public tool. */
.match-letter--locked .tier-badge {
  margin-left: var(--s-2);
}

.match-letter-upgrade {
  margin: var(--s-4) 0 0;
}

.match-letter-note {
  color: var(--ink-muted);
}

.match-letter-public {
  margin-top: var(--s-3);
}

.match-letter-public a:hover {
  text-decoration-color: var(--brand);
}

.match-letter-lang {
  color: var(--ink-muted);
}

/* -- The home's page: her steps ("Jouw stappen voor deze woning") ------------ */
/* A card under the apply card, in the same voice: her step and its "Wat nu?" line on
   top, then quiet groups that open like the letter's disclosure. Rows are whole labels
   of 44px; the Uitleg control sits beside the label and its text opens under the row. */
.match-steps {
  margin-top: var(--s-4);
  padding: var(--s-5);
}

.match-steps [hidden],
.match-detail-actions [hidden] {
  display: none !important;
}

.match-stage-row {
  max-width: 70ch;
}

.match-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-2) var(--s-3);
  margin: 0;
}

.match-stage-field {
  flex: 0 1 auto;
  min-width: min(260px, 100%);
  margin: 0;
}

.match-stage-field select {
  min-height: 44px;
  background: var(--paper);
}

.match-stage .btn {
  min-height: 44px;
}

.match-stage-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--t-13);
  color: var(--ink-muted);
}

.match-stage-next {
  margin: var(--s-4) 0 0;
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-stage-next b {
  color: var(--ink);
}

.match-stage-links {
  margin: var(--s-2) 0 0;
  font-size: var(--t-15);
}

.match-stage-links a,
.match-steps-official a,
.match-step-why a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-stage-links a:hover,
.match-steps-official a:hover,
.match-step-why a:hover {
  text-decoration-color: var(--brand);
}

.match-steps-group {
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.match-steps-group + .match-steps-group {
  margin-top: 0;
}

.match-steps-group summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.match-steps-group summary::-webkit-details-marker {
  display: none;
}

.match-steps-group summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 var(--s-1) 0 2px;
  border: solid var(--ink-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform var(--t-hover) linear;
}

.match-steps-group[open] summary::before {
  transform: rotate(45deg);
}

.match-steps-group summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.match-steps-group-title {
  font-size: var(--t-15);
  font-weight: 700;
}

.match-steps-count {
  margin-left: auto;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.match-steps-form {
  margin: 0;
}

.match-steps-list {
  display: grid;
  gap: var(--s-1);
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}

.match-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s-3);
}

.match-step-label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  font-size: var(--t-15);
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}

.match-step-label input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.match-step-label input:checked + span {
  color: var(--ink-soft);
}

/* Free: the same rows as a plain list, a small dot where the box would be. */
.match-step-label--plain {
  cursor: default;
}

.match-step-label--plain::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 6px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.match-step-why-toggle {
  min-height: 44px;
  padding: 0 var(--s-1);
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: var(--t-13);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}

.match-step-why-toggle:hover,
.match-step-why-toggle[aria-expanded="true"] {
  color: var(--ink);
}

.match-step-why-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.match-step-why {
  grid-column: 1 / -1;
  max-width: 64ch;
  margin: 0 0 var(--s-2) calc(18px + var(--s-3));
  font-size: var(--t-13);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-step-why p {
  margin: 0;
}

.match-step-why p + p {
  margin-top: var(--s-1);
}

.match-step--tip {
  display: block;
  max-width: 70ch;
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  border-left: 2px solid var(--line-strong);
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-steps-save {
  margin-bottom: var(--s-3);
}

.match-steps-official {
  margin: 0 0 var(--s-4);
  font-size: var(--t-13);
}

.match-steps-tips {
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  max-width: 70ch;
}

.match-steps-tips-title,
.match-steps-free-title {
  margin: 0 0 var(--s-2);
  font-size: var(--t-15);
  font-weight: 700;
  color: var(--ink);
}

.match-steps-tips ul {
  margin: 0;
  padding-left: var(--s-4);
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-steps-tips li + li {
  margin-top: var(--s-2);
}

.match-steps-counted {
  margin: var(--s-2) 0 0;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink-muted);
}

.match-steps-locked {
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  max-width: 70ch;
  font-size: var(--t-15);
  line-height: 1.6;
  color: var(--ink-soft);
}

.match-steps-locked p {
  margin: 0;
}

.match-steps-locked .tier-badge {
  margin-left: var(--s-1);
}

/* The head's badge once she is past Gereageerd: the card pill, as a link to her steps. */
.match-stage-badge {
  margin: 0;
  text-decoration: none;
}

.match-stage-badge:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .match-steps {
    padding: var(--s-4);
  }

  .match-stage-field {
    flex: 1 1 100%;
  }
}

/* -- Match preview bar -------------------------------------------------- */
.match-preview-bar {
  background: color-mix(in oklab, var(--brand-soft) 60%, var(--card));
  border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--line));
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.match-preview-bar p {
  margin: 0;
}

.match-preview-bar strong {
  color: var(--ink);
}

/* -- Password eye toggle ------------------------------------------------- */
.password-field-wrap {
  position: relative;
}

.password-field-wrap input {
  padding-right: 44px;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--ink);
}

/* -- Google OAuth button + divider --------------------------------------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid var(--line);
}

.btn-google:hover {
  background: #f8f8f8;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   APP-SHELL CHROME: approved redesign
   Source of truth: docs/design/2026-08-07-redesign-mockups/app-shell.html +
   mockup.css, approved by the owner on 2026-08-08. Governed by
   docs/planning/2026-08-07-redesign-direction.md and DECISIONS.md.

   WHY THIS LIVES IN plain.css. base.html is the only template that loads this
   file (landing/index.html loads app.css alone), so this is the stylesheet the
   app shell already ships, not a second one, and not a scoped <style> block.

   WHY THE TOKENS ARE DECLARED ON THE CHROME ROOTS AND NOT ON :root. This slice
   redesigns the chrome only. Everything below it (search profiles, settings,
   ops, and the ~100 SEO pages that extend this shell) is still drawn with
   app.css's older palette until its own Track F task lands, and hoisting these
   values to :root would half-restyle every one of them (cream paper turning
   white under a terracotta accent that has not been removed yet). Custom
   properties inherit, so declaring them on the chrome roots gives the header,
   banner, flash stack and footer the complete new system while the page bodies
   keep the old one. When the remaining tasks land, this declaration moves to
   :root and the selector list disappears.

   Owner rulings held here: no dark theme and no theme toggle (7); full-viewport
   header with the nav centred (1); Ops + Analytics inside the account menu,
   labelled staff-only; the hamburger flush right on mobile (the `1fr auto`
   grid, reused verbatim from mockup.css).
   ========================================================================== */

.app-nav,
.billing-banner,
.message-stack,
.site-footer-min,
.seo-footer {
  /* Colour · direction §2.3: the complete palette. Nothing else is a colour. */
  --brand: #256f56;
  --brand-deep: #1b5642;
  --brand-wash: #e9f2ee;
  --graphite: #14181b;
  --ink: #16191c;
  --ink-soft: #4a5157;
  --ink-muted: #5f686e;
  --paper: #ffffff;
  --paper-2: #f4f6f7;
  --line: #e3e8ea;
  --line-strong: #c9d2d6;
  --danger: #a33a32;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.72);

  /* Type · §2.2: zero webfonts in the chrome; `system-ui` leads. */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;
  --t-20: 20px;
  --t-17: 17px;
  --t-15: 15px;
  --t-13: 13px;
  --t-11: 11px;

  /* Spacing · 4px base, §2.4 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --pad-inline: clamp(20px, 5vw, 64px);
  --measure: 1160px;

  --r-s: 8px;
  --r-full: 999px;
  --nav-h: 64px;
  --t-hover: 120ms;
}

/* Sticky-nav anchor offset, kept from DECISIONS.md. */
html {
  scroll-padding-top: 84px;
}

/* ------------------------------------------------------------------ nav -- */
/* §2.5: 64px, solid --paper, no backdrop blur: blur is the SaaS default and
   the brief asks for quiet. */

.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

/* Owner ruling 1: the header is the one element that ignores the measure and
   spans the whole viewport. Equal 1fr flanks keep the nav optically centred
   however wide the wordmark or the action group gets. */
.app-nav .nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
  height: 100%;
  width: 100%;
  padding-inline: var(--pad-inline);
}

.app-nav :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 65%, white);
  outline-offset: 3px;
  border-radius: 2px;
}

.app-nav .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Georgia italic has exactly one job in the chrome: the wordmark's "Ping". */
.app-nav .wordmark em {
  font-style: italic;
  color: var(--brand);
}

.app-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--t-15);
}

.app-nav .nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: var(--t-15);
  text-decoration: none;
  transition: color var(--t-hover) linear;
}

.app-nav .nav-links a:hover {
  color: var(--ink);
}

/* The one thing a signed-in header must say that a marketing header need not:
   where you are. Drawn with ::after so marking the current link costs no layout
   shift, and in --brand because this is selection. */
.app-nav .nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.app-nav .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--brand);
}

/* The language switcher is a POST form (it persists the choice onto the user),
   so it cannot be a plain link like the mockup's static "EN": it is restyled
   to sit in the nav row as one. */
.app-nav .lang-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
}

.app-nav .lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: var(--t-15);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--t-hover) linear;
}

.app-nav .lang-switcher-btn:hover {
  color: var(--ink);
}

/* nowrap is load-bearing: app.css lets .nav-actions wrap, and a wrapped action
   row inside a 64px header overflows it. */
.app-nav .nav-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-3);
}

.app-nav .nav-logout-form {
  margin: 0;
  display: contents;
}

/* Chrome buttons. app.css sizes .btn for the old system and lifts it 1px on
   hover; §2.6 allows colour and border only, and §2.7 sets a 44px target floor
   with no exception for a nav. */
.app-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: var(--t-15);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-hover) linear,
    border-color var(--t-hover) linear, color var(--t-hover) linear;
}

.app-nav .btn:hover,
.app-nav .btn:active:not(:disabled) {
  transform: none;
}

.app-nav .btn-small {
  min-height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--t-13);
}

.app-nav .btn-primary {
  background: var(--brand);
  color: var(--paper);
  border-color: transparent;
}

.app-nav .btn-primary:hover {
  background: var(--brand-deep);
}

.app-nav .btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.app-nav .btn-secondary:hover {
  border-color: var(--ink);
}

/* --------------------------------------------------------- account menu -- */

.app-nav .account {
  position: relative;
}

.app-nav .account-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: var(--t-15);
  cursor: pointer;
  transition: color var(--t-hover) linear, border-color var(--t-hover) linear;
}

.app-nav .account-trigger:hover {
  color: var(--ink);
  border-color: var(--line);
}

/* A display name is user input: one word or forty characters. Cap it here or a
   long name pushes the actions track past the wordmark's own track. */
.app-nav .account-name {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav .account-chevron {
  flex: none;
  color: var(--ink-muted);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-nav .account:has([data-menu-panel]:not([hidden])) .account-trigger {
  color: var(--ink);
  border-color: var(--line);
}

.app-nav .account:has([data-menu-panel]:not([hidden])) .account-chevron {
  transform: rotate(180deg);
}

/* The system has exactly one shadow token and it belongs to the hero desk, so a
   floating panel cannot borrow elevation. It separates itself with the stronger
   hairline instead. */
.app-nav .menu-panel {
  position: absolute;
  top: calc(100% + var(--s-2));
  right: 0;
  z-index: 200;
  min-width: 264px;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  text-align: left;
}

/* flex + min-height, not padding: a menu row must clear the 44px target floor
   whatever the label's line box happens to compute to. */
.app-nav .menu-panel a,
.app-nav .menu-links .lang-switcher-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: var(--t-15);
  text-decoration: none;
  transition: color var(--t-hover) linear;
}

.app-nav .menu-panel a:hover,
.app-nav .menu-links .lang-switcher-btn:hover {
  color: var(--ink);
}

.app-nav .menu-links .lang-switcher {
  display: block;
}

/* Weight and ink are enough to mark the current page in a vertical list; the
   centre nav's 2px rule would read as a stray underline here. */
.app-nav .menu-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.app-nav .menu-identity {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.app-nav .menu-name {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-15);
  font-weight: 600;
}

.app-nav .menu-mail {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--t-13);
  word-break: break-word;
}

.app-nav .menu-plan {
  margin: var(--s-3) 0 0;
}

.app-nav .pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-nav .menu-links {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.app-nav .menu-note {
  margin: var(--s-2) 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- mobile menu -- */

.app-nav .nav-mobile {
  display: none;
  position: relative;
}

.app-nav .nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.app-nav .mobile-nav-menu {
  width: min(288px, calc(100vw - (2 * var(--pad-inline))));
  margin: 0;
}

/* ----------------------------------------------------- billing banner -- */
/* Chrome, not content: it renders between the header and the page on every
   authenticated page, so an un-retokenised band would sit as a legacy-styled
   stripe directly under the new header on every screen. Cool gray, one
   hairline: no fill, no accent. */

.billing-banner {
  display: block;
  gap: 0;
  padding: 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: var(--t-15);
}

.billing-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  max-width: var(--measure);
  margin-inline: auto;
  padding-block: var(--s-3);
  padding-inline: var(--pad-inline);
}

.billing-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--t-15);
  line-height: 1.5;
}

.billing-banner b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.billing-banner form {
  margin: 0;
}

.billing-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--paper);
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--t-hover) linear;
}

.billing-banner .btn:hover {
  background: var(--brand-deep);
  transform: none;
}

/* The links in a band that only informs (the terms notice) read as links; the buttons keep their own look. */
.billing-banner p a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The note after a mail pause (partials/bounce_note.html): the button and, next to it, the link to another address. */
.billing-banner .bounce-note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

.billing-banner .bounce-note-actions a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* A quiet dismissal ("Gelezen" on the terms notice) in a band that only informs: an outline,
   not the brand fill of an action. */
.billing-banner .btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.billing-banner .btn-ghost:hover {
  background: var(--paper);
  border-color: var(--ink-muted);
}

/* ------------------------------------------------------ flash messages -- */
/* The callout shape from direction §3: a 3px left rule in the semantic colour
   on --paper-2. No border, no radius, no icon, no fill, and no longer a
   floating toast, so a message cannot cover the content it refers to. */

.message-stack {
  display: grid;
  gap: var(--s-2);
  max-width: var(--measure);
  margin: var(--s-5) auto 0;
  padding-inline: var(--pad-inline);
  font-family: var(--sans);
}

.app-message {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border: 0;
  border-left: 3px solid var(--brand);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: var(--t-15);
  line-height: 1.5;
}

.app-message.error {
  border-left-color: var(--danger);
}

/* app.css resets every link to inherit the text colour; a link inside a callout
   is usually the way forward, so it must read as a link (same as .tier-nudge a).
   Never a button: this rule (a class and a tag) outranks .btn-primary's own text
   colour (one class), and painted "Verder met je zoekprofiel" brand green on the
   graphite button. :where() keeps the rule's weight for every other link as it was.
   tests/test_link_rules_spare_buttons.py holds every container link rule to this. */
.app-message a:not(:where(.btn)) {
  color: var(--brand);
  font-weight: 600;
}

/* ----------------------------------------------------- app-shell footer -- */
/* Graphite, so a signed-in page is bookended exactly like the homepage: white
   chrome above, one dark anchor below. The live footer separated these four
   links with "·"; dropped, because at 320px the row wraps and a wrapped line
   can begin with an orphaned dot. Spacing does the same job at every width. */

.site-footer-min {
  background: var(--graphite);
  color: var(--on-dark-soft);
  padding-block: var(--s-5);
  font-family: var(--sans);
  font-size: var(--t-13);
}

.footer-min-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--s-5);
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.footer-min-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* target floor: 13px text with no padding misses it */
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color var(--t-hover) linear;
}

.footer-min-inner a:hover {
  color: var(--on-dark);
}

.site-footer-min :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 65%, white);
  outline-offset: 3px;
}

/* The SEO footer overrides {% block footer %} with its own five-column link
   farm. Task 6 retokenises it only: the structure is Track F's SEO slice. */
.seo-footer .wordmark em {
  color: var(--brand);
}

/* ---------------------------------------------------------- < 860px ------ */
/* Two zones: wordmark | actions. Hiding .nav-links removes the grid item but
   not the track, so the actions would auto-place into track 2 of
   `1fr auto 1fr` and the empty third track would sit to the RIGHT of the
   hamburger, pushing it short of the padding edge by an amount that grows with
   the viewport (~54px at 390, over 300px just below this breakpoint).
   `margin-left:auto` cannot correct it: that aligns an item inside its own
   track, and track 2 is not the last one. Declaring the mobile grid explicitly
   puts the actions in the final track, flush right at every width. This is the
   fix mockup.css already carries; it is reused verbatim, not reinvented. */

@media (max-width: 859px) {
  .app-nav .nav-links {
    display: none;
  }

  .app-nav .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .app-nav .nav-mobile {
    display: block;
  }

  /* The signed-out header used to carry a second, hidden-on-narrow "Inloggen"
     secondary next to the signup CTA. Owner round 2, item 6 merged the two into one
     button, so there is no secondary left to hide here; signed in, the secondary is
     Uitloggen, which has no other route on the page and stays visible. */

  /* The identity block moves into the burger panel at this width. */
  .app-nav .account {
    display: none;
  }
}

/* ------------------------------------------------- staff 2FA pages ------- */
/* django-two-factor-auth's pages (login, setup, backup codes) keep the library's
   markup: Bootstrap class names and a form laid out as a table.
   templates/two_factor/_base.html puts them in the app shell; these rules give
   that markup the app's own panel, field and button look. */

.two-factor {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.two-factor h1 {
  margin: 0 0 var(--s-3);
  font-family: var(--display);
  font-size: var(--t-section);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.two-factor h2,
.two-factor h3 {
  margin: var(--s-5) 0 var(--s-2);
  font-size: var(--t-17);
}

.two-factor p {
  margin: 0 0 var(--s-4);
  color: var(--ink-soft);
}

.two-factor form {
  margin: 0;
}

.two-factor hr {
  margin: var(--s-5) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* The wizard form: one label above each input in place of two table columns. */
.two-factor table {
  width: 100%;
  margin: 0 0 var(--s-5);
}

.two-factor table,
.two-factor tbody,
.two-factor tr,
.two-factor th,
.two-factor td {
  display: block;
  padding: 0;
  text-align: left;
}

.two-factor tr + tr {
  margin-top: var(--s-4);
}

.two-factor th label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: var(--t-13);
  font-weight: 600;
}

.two-factor input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"]),
.two-factor select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.two-factor input:not([type="checkbox"], [type="radio"]):focus,
.two-factor select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}

/* A checkbox row ("don't ask again on this device") reads box first, label beside it. */
.two-factor tr:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.two-factor tr:has(input[type="checkbox"]) label {
  margin: 0;
  font-weight: 400;
}

.two-factor input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.two-factor .errorlist {
  margin: 0 0 var(--s-2);
  padding: 0;
  list-style: none;
  color: var(--danger);
  font-size: var(--t-13);
}

.two-factor .alert {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper-2);
}

/* Buttons: app.css draws .btn and .btn-primary; the library's other variants follow. */
.two-factor .btn {
  margin: 0 var(--s-2) var(--s-2) 0;
  text-decoration: none;
}

.two-factor .btn:hover {
  transform: none;
}

.two-factor .btn-secondary,
.two-factor .btn-info,
.two-factor .btn-success,
.two-factor .btn-warning,
.two-factor .btn-danger {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.two-factor .btn-secondary:hover,
.two-factor .btn-info:hover,
.two-factor .btn-success:hover {
  border-color: var(--ink);
}

.two-factor .btn-warning,
.two-factor .btn-danger {
  color: var(--danger);
}

.two-factor .btn-warning:hover,
.two-factor .btn-danger:hover {
  border-color: var(--danger);
}

.two-factor .btn-link {
  color: var(--ink-muted);
}

.two-factor .btn-link:hover {
  color: var(--ink);
}

.two-factor .btn-sm {
  min-height: 36px;
  padding: 9px 14px;
  font-size: var(--t-13);
}

.two-factor .btn-block {
  display: flex;
  width: 100%;
  margin-right: 0;
}

/* The first step has nothing to go back to; the library still renders a dead "Back". */
.two-factor .btn:disabled {
  display: none;
}

.two-factor .float-right {
  float: right;
  margin-right: 0;
}

/* The title of an app page ("Accountinstellingen", 407px at the 48px minimum) is wider than a 375px phone and made the whole page scroll
   sideways, with the button next to it pushed out of the viewport. A lower minimum and a wrapping header keep both inside the page;
   from 686px the 7vw preferred size is the same as before. */
.workspace-head { flex-wrap: wrap; }
.workspace-head > * { min-width: 0; }
.workspace-head h1 { font-size: clamp(36px, 7vw, 86px); overflow-wrap: anywhere; }

/* Free sees one home (search_profiles/free_lock.py): after her card, up to two placeholder rows that hold nothing of any
   home (bars only, a soft blur and a fade), then the Plus panel as a plain block, never over the card. No animation. */
.free-lock-ghosts {
  margin-top: var(--s-4);
}

.free-lock-ghost {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
  min-height: 132px;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

/* The second row fades further but still reads as a blurred card on the white page: the bars use the strong line. */
.free-lock-ghost + .free-lock-ghost {
  opacity: 0.6;
}

.free-lock-bar {
  display: block;
  height: 12px;
  background: var(--line-strong);
  border-radius: 6px;
}

/* S0 and S1: the plain 19:00 note after the card or the empty state. */
.free-note {
  margin-top: var(--s-4);
}

.free-lock-bar--short { width: 35%; }
.free-lock-bar--title { width: 80%; height: 18px; }
.free-lock-bar--meta { width: 60%; }

.free-lock {
  margin: var(--s-5) 0 0;
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
}

.free-lock h2 {
  margin: 0 0 var(--s-3);
}

.free-lock p {
  margin: 0 0 var(--s-3);
}

.free-lock .free-lock-soft {
  color: var(--ink-soft);
}

.free-lock .free-lock-cta {
  margin: var(--s-4) 0 0;
}

@media (max-width: 480px) {
  .free-lock-ghost { min-height: 88px; }
  .free-lock { padding: var(--s-4); }
  .free-lock .free-lock-cta .btn { display: flex; justify-content: center; width: 100%; }
}

/* -- Ease of life (switch spec 13, work package WP11) ----------------------------------- */
/* "Reageren kost geld bij deze site" (search_profiles/ease.py): the same quiet bold line as the older
   Kamernet note, with the platform's own price page as a link when the metadata has one. The link
   keeps its own layer above the card's stretched title link. */
.match-costs--badge a {
  position: relative;
  z-index: 1;
  margin-left: var(--s-1);
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
}

.match-costs--badge a:hover {
  text-decoration-color: var(--brand);
}

/* "Kopieer je brief" (profiles/partials/letter_copy_button.html): a text button in the card's foot, drawn
   like the "Ik heb gereageerd" mark so the foot reads as one row of quiet controls. Its status line
   is a live region under the row. */
.letter-copy {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

.letter-copy-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: var(--t-15);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}

.letter-copy-button::before {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 3px -3px 0 -1.5px var(--paper), 3px -3px 0 0 currentColor;
  margin: 2px 2px 0 0;
}

.letter-copy-button:hover {
  text-decoration-color: var(--brand);
}

.letter-copy-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.letter-copy-button[data-copied] {
  color: var(--ink);
  text-decoration: none;
}

.letter-copy-status {
  flex-basis: 100%;
  font-size: var(--t-13);
  line-height: 1.4;
  color: var(--ink-soft);
}

.letter-copy-status:empty {
  display: none;
}

.match-list .ping-foot .letter-copy {
  margin-right: var(--s-3);
}

.match-detail-actions .letter-copy-button {
  min-height: 44px;
}

/* -------------------------------------------------------------- web app -- */
/* The installed app on a phone with a notch, rounded corners or a home bar
   (app.core.pwa). Once the 1 December switch is on, base.html asks for the
   whole screen (viewport-fit=cover); these keep the header, the page and the
   sticky call to action clear of those parts. Without viewport-fit=cover every
   inset is 0, so before the switch, and on any other screen, nothing moves.
   The sides and the bottom go on html, not body: app.css gives body its own
   bottom padding under the sticky call to action on a narrow screen. */
html {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-nav {
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}

.mobile-sticky-cta-v3 {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ---------------------------------------------------------- install app -- */
/* The install button and its iPhone how-to (w36, partials/install_app.html,
   app/install-app.js). Hidden until the script reveals it, and then it takes
   only its own line: the block sits last on its page or in its column, so
   nothing above it moves. The dialog carries its own colours, because in the
   landing page's dark footer it would otherwise take the footer's light text. */
.install-app[hidden],
.install-app [hidden] {
  display: none !important;
}

.install-app--profiles {
  margin-top: var(--s-6);
}

.install-app--footer {
  margin-top: var(--s-4);
}

.install-app--settings h2 {
  margin-bottom: var(--s-3);
}

.install-app-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  max-width: 100%;
  padding: 0 var(--s-4);
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--paper);
  color: var(--brand);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.install-app-button:hover {
  background: var(--brand-soft);
}

.install-app-button:focus-visible,
.install-app-close:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.lp-footer .install-app-button {
  border-color: var(--on-dark-soft);
  background: transparent;
  color: var(--on-dark);
}

.lp-footer .install-app-button:hover {
  background: var(--graphite-2);
}

/* landing.css's ".lp :focus-visible" comes later with the same weight: keep the round corners and, in the white
   dialog, the full brand green (its lighter green is under 3:1 there). */
.lp .install-app-button:focus-visible,
.lp .install-app-close:focus-visible {
  border-radius: 999px;
}

.lp .install-app-close:focus-visible {
  outline-color: var(--brand);
}

.lp-footer .install-app-button:focus-visible {
  outline-color: var(--on-dark);
}

.install-app-inline {
  font-size: 15px;
  line-height: 1.5;
}

.install-app-inline .install-app-title {
  margin: 0 0 var(--s-1);
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Two classes deep: the landing page's .lp ol and .lp svg rules would win over one. */
.install-app .install-app-steps {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
}

.install-app .install-app-share {
  display: inline-block;
  vertical-align: -3px;
}

.install-app-howto {
  width: min(360px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.35);
  font-size: 16px;
  line-height: 1.5;
}

.install-app-howto::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.install-app-howto-body {
  padding: var(--s-5) var(--s-5) var(--s-3);
}

.install-app-howto .install-app-title {
  margin: 0 0 var(--s-3);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
}

.install-app-howto li,
.install-app-howto strong {
  color: var(--ink);
}

.install-app-actions {
  margin: 0;
  padding: 0 var(--s-5) var(--s-5);
}

.install-app-close {
  min-height: 44px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------- web push -- */
/* The push opt-in card of the matches page and "Meldingen op je apparaten" on
   the settings page (w37, partials/push_optin.html, accounts/partials/
   push_devices.html, app/web-push.js). Hidden until the script reveals what
   this browser can use; without JavaScript nothing shows. */
.push-card[hidden],
.push-card [hidden] {
  display: none !important;
}

.push-card--optin {
  margin: 0 0 var(--s-5);
  padding: var(--s-5);
}

.push-card--optin h2 {
  margin: 0 0 var(--s-2);
  font-size: 20px;
  line-height: 1.3;
}

.push-card p {
  margin: 0 0 var(--s-3);
}

.push-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
}

.push-card .push-ios-steps {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  padding-left: 22px;
  list-style: decimal;
}

.push-card .install-app-share {
  display: inline-block;
  vertical-align: -3px;
}

/* Empty, the status line takes no space but stays rendered: a live region a screen reader only meets when its words
   arrive is often not read out. */
.push-status:empty {
  margin: 0;
}

.push-status {
  margin: var(--s-3) 0 0;
  font-weight: 600;
}

.push-devices {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}

.push-devices:empty {
  display: none;
}

.push-device {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.push-device-name {
  margin: 0 0 var(--s-2);
}

.push-device-here {
  display: inline-block;
  margin-left: var(--s-1);
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.push-mail {
  margin-top: var(--s-4);
}
