/* Mantelzorgers.nl, warm and calm. Mobile first. */
[hidden] { display: none !important; }

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/nunito-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/nunito-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/nunito-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #FFF7E7;
  --surface: #FBF1DA;
  --surface-warm: #EDE3D1;
  --card: #FFFDF8;
  --border: #E8DFC9;
  --text: #2E1A47;
  --text-quiet: #594675;
  --accent: #FF6B35;
  --accent-dark: #B8461F;
  --butter: #FFD25C;
  --sage: #7E9F4B;
  --sage-light: #B4C68F;
  --coral: #F4877E;
  --lavender: #B7B0DC;
  --peach: #FFB89E;
  --danger: #E04646;

  --r-sm: 20px;
  --r-card: 24px;
  --r-lg: 28px;
  --pill: 999px;

  --shadow-card: 0 2px 8px rgba(46, 26, 71, .06);
  --shadow-float: 0 4px 16px rgba(46, 26, 71, .08);
  --shadow-btn: 0 6px 16px rgba(255, 107, 53, .25);

  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--text);
  --wrap: 1120px;
  --gap: clamp(16px, 4vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}
img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4.2vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p, ul, ol, dl, table { margin: 0 0 1em; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--text); }
strong { font-weight: 800; }
small, .small { font-size: 16px; }
.muted { color: var(--text-quiet); }
.lead { font-size: 20px; color: var(--text-quiet); max-width: 40em; }
hr { border: 0; border-top: 2px solid var(--border); margin: 32px 0; }
code { font-size: .9em; background: var(--surface-warm); padding: .1em .35em; border-radius: 8px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-weight: 800; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding-block: clamp(36px, 7vw, 72px); }
.section-tight { padding-block: 28px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.layout-side { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .sticky { position: sticky; top: 20px; } }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 2px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-word { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo-word span { color: var(--text-quiet); }
.menu { position: static; }
.menu-toggle { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--pill); background: var(--surface); font-weight: 800; cursor: pointer; position: relative; }
.menu-toggle::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2.5px; background: var(--text); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); position: absolute; top: 8px; right: 10px; }
.nav { position: absolute; left: 0; right: 0; top: 72px; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--border); box-shadow: var(--shadow-float); padding: 8px var(--gap) 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a, .nav .linkbutton { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); width: 100%; }
.nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 800; }
.nav-account { margin-top: 12px !important; }
.nav-account .btn { margin-top: 12px; border: 0; justify-content: center; }
.count { background: var(--accent); color: var(--text); border-radius: var(--pill); padding: 0 8px; font-size: 15px; font-weight: 800; min-width: 24px; text-align: center; }
@media (min-width: 1200px) {
  .js .menu-toggle { display: none; }
  .menu > .nav { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0; gap: 24px; align-items: center; background: none; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav-account { margin: 0 !important; }
  .nav li a, .nav .linkbutton { border: 0; min-height: 44px; padding: 0 12px; border-radius: var(--pill); width: auto; }
  .nav li a:hover, .nav .linkbutton:hover { background: var(--surface); }
  .nav a[aria-current="page"] { background: var(--surface); }
  .nav-account .btn { margin: 0 0 0 8px; }
  .nav-main { margin-right: 8px !important; }
}
/* The menu must also be visible on desktop when JS closes the details element. */
@media (min-width: 1200px) { details.menu:not([open]) > nav { display: flex; } }

.verifybar { background: var(--butter); padding: 12px 0; }
.verifybar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.verifybar p { margin: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 2px solid var(--sage-light); border-radius: var(--r-sm); padding: 14px 18px; margin: 20px 0 0; box-shadow: var(--shadow-card); }
.notice svg { flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 20px; background: var(--surface); }
.alert svg { flex: none; margin-top: 3px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-danger { background: #FBE3E1; border: 2px solid var(--danger); }
.alert-warn { background: #FFF0C7; border: 2px solid var(--butter); }
.alert-info { background: var(--card); border: 2px solid var(--lavender); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 2px solid transparent; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--text); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: #FF7F4F; color: var(--text); }
.btn-dark { background: var(--accent-dark); color: #fff; }
.btn-dark:hover { background: #9C3A19; color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--surface); color: var(--text); }
.btn-quiet { background: var(--surface); color: var(--text); }
.btn-quiet:hover { background: var(--surface-warm); color: var(--text); }
.btn-danger { background: var(--card); color: #A42727; border-color: #A42727; }
.btn-danger:hover { background: #FBE3E1; color: #7E1C1C; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-block { width: 100%; }
.linkbutton { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
form.inline { display: inline; }

/* ---------- Cards and tags ---------- */
.card { position: relative; background: var(--card); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.card > :last-child { margin-bottom: 0; }
.card-lg { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); }
.card-flat { background: var(--surface); box-shadow: none; border: 0; }
.card-title { font-size: 21px; margin: 6px 0 8px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.stretched:focus-visible) { box-shadow: var(--focus); }
.stretched:focus-visible { box-shadow: none; }
.card:has(.stretched):hover { box-shadow: var(--shadow-float); }
.card-foot { margin-top: 12px; }
.request-card, .helper-card { display: flex; flex-direction: column; }
.request-card .card-foot, .helper-card .card-foot { margin-top: auto; padding-top: 12px; }

.tags, .badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.tag, .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--pill); padding: 3px 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.badge { font-weight: 800; background: var(--surface); }
.tone-lavender { background: var(--lavender); }
.tone-butter { background: var(--butter); }
.tone-sage { background: var(--sage-light); }
.tone-peach { background: var(--peach); }
.tone-coral { background: var(--coral); }
.tone-plain { background: var(--surface-warm); }
.status { display: inline-block; border-radius: var(--pill); padding: 2px 12px; font-size: 15px; font-weight: 800; background: var(--surface-warm); }
.status-nieuw, .status-ter-controle, .status-aangevraagd { background: var(--butter); }
.status-geaccepteerd, .status-open, .status-goedgekeurd, .status-gepubliceerd { background: var(--sage-light); }
.status-afgewezen, .status-geblokkeerd, .status-gepauzeerd, .status-verborgen { background: #F6CFCB; }

.meta { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-quiet); font-size: 16px; }
.meta li { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { flex: none; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--text); }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--lavender); color: var(--text); font-weight: 800; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar-md { width: 48px; height: 48px; font-size: 17px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 120px; height: 120px; font-size: 38px; }
.helper-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.helper-head .card-title { margin: 0; }
.helper-head p { margin: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--butter); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .hero { margin: 0 var(--gap); border-radius: 0 0 40px 40px; } }
.hero-inner { display: grid; gap: 24px; padding-top: clamp(32px, 6vw, 72px); align-items: end; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 { font-size: clamp(36px, 8vw, 60px); margin-bottom: 12px; }
.hero .lead { color: var(--text); }
.hero-form { background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-float); display: grid; gap: 14px; margin: 24px 0 clamp(28px, 5vw, 56px); }
@media (min-width: 640px) { .hero-form { grid-template-columns: 1.4fr 1fr; align-items: end; } .hero-form .btn { grid-column: 1 / -1; } }
.hero-form .field { margin: 0; }
.hero-art { align-self: end; }
.hero-art svg { display: block; width: 100%; height: auto; max-height: 420px; }
.hero-alt { margin: -16px 0 32px; }

.band { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 48px); }
.band-sage { background: var(--sage-light); }
.band-lavender { background: var(--lavender); }
.band-peach { background: var(--peach); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--r-card); padding: 22px 22px 22px 76px; position: relative; box-shadow: var(--shadow-card); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--text-quiet); }
.stat { font-size: 36px; font-weight: 800; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%232E1A47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.page-head { padding-top: clamp(24px, 5vw, 48px); padding-bottom: 8px; }
.page-head p.lead { margin-bottom: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field > label, .label, legend { display: block; font-weight: 800; margin-bottom: 6px; }
legend { font-size: 21px; padding: 0; }
.hint { display: block; color: var(--text-quiet); font-size: 16px; margin: -2px 0 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--text); background: var(--card);
  border: 2px solid #CFC3A8; border-radius: 16px; appearance: none;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232E1A47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--text); box-shadow: 0 0 0 3px var(--butter); border-radius: 16px; }
input[aria-invalid=true], textarea[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }
.input-short { max-width: 220px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: #A42727; font-weight: 600; font-size: 16px; margin: 6px 0 0; }
.field-error svg { flex: none; margin-top: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }

.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px 16px; background: var(--card); border: 2px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; }
.choice:hover { border-color: #CFC3A8; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--text); border-radius: 8px; background: var(--card); margin-top: 1px; }
.choice input[type=radio] + .box { border-radius: 50%; }
.choice input:checked + .box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%232E1A47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--text); }
.choice:has(input:checked) { border-color: var(--text); background: #FFF3E9; }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice .tone-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 7px; margin-left: auto; }
.choice small { display: block; font-weight: 400; color: var(--text-quiet); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent-dark); }

.slots { border-collapse: separate; border-spacing: 6px; margin: 0 -6px 8px; width: auto; }
.slots th { font-weight: 600; font-size: 16px; text-align: left; padding: 0 4px; }
.slots thead th { text-align: center; color: var(--text-quiet); }
.slots td { padding: 0; text-align: center; }
.slot { display: block; cursor: pointer; position: relative; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-box, .slot-on, .slot-off { display: block; width: 64px; height: 44px; border-radius: 14px; border: 2px solid var(--border); background: var(--card); }
.slot input:checked + .sr-only + .slot-box { background: var(--accent); border-color: var(--text); }
.slot input:focus-visible + .sr-only + .slot-box { box-shadow: var(--focus); }
.slot-on { background: var(--sage-light); border-color: var(--sage); width: 48px; height: 32px; }
.slot-off { width: 48px; height: 32px; border-style: dashed; }
@media (max-width: 380px) { .slot-box { width: 52px; } }

.form-card { max-width: 640px; }

/* Multi-step request form */
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 24px; }
.stepper li { flex: 1; height: 8px; border-radius: var(--pill); background: var(--surface-warm); }
.stepper li.done, .stepper li.current { background: var(--accent); }
.step-count { font-weight: 800; color: var(--text-quiet); margin-bottom: 4px; }
.js .steps-form fieldset.step[hidden] { display: none; }
.step-nav { display: none; }
.js .step-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; }
.js .steps-form .final-submit { display: none; }
.js .steps-form.on-last .final-submit { display: inline-flex; }
.js .steps-form.on-last .step-next { display: none; }
.steps-form fieldset.step { background: var(--card); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.steps-form .step + .step { margin-top: 20px; }
.js .steps-form .step + .step { margin-top: 0; }
.privacy-note { display: flex; gap: 12px; background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; font-size: 16px; margin-bottom: 18px; }
.privacy-note svg { flex: none; margin-top: 2px; }
.privacy-note p { margin: 0; }

/* ---------- Detail pages ---------- */
.facts { display: grid; gap: 0; margin: 0 0 20px; }
.facts > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.locked { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--r-sm); padding: 16px; }
.locked svg { flex: none; }
.locked p:last-child { margin-bottom: 0; }
.sensitive { background: #F3F0FB; border: 2px solid var(--lavender); border-radius: var(--r-sm); padding: 16px 18px; }
.sensitive h3 { font-size: 18px; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 12px 10px 0; vertical-align: top; }
.prose blockquote { margin: 0 0 1em; padding: 12px 18px; background: var(--surface); border-radius: var(--r-sm); }
.disclaimer { font-size: 16px; color: var(--text-quiet); background: var(--surface); border-radius: var(--r-sm); padding: 14px 18px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-plain > li:last-child { border-bottom: 0; }
.link-list a { display: block; font-weight: 800; text-decoration: none; color: var(--text); }
.link-list a:hover { text-decoration: underline; }
.link-list p { margin: 2px 0 0; color: var(--text-quiet); font-size: 16px; }
.kb-search { display: flex; gap: 10px; max-width: 560px; }
.kb-search input { flex: 1; }

/* ---------- Messages ---------- */
.inbox { list-style: none; padding: 0; margin: 0; }
.inbox li { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-sm); background: var(--card); margin-bottom: 10px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.inbox li.unread { border: 2px solid var(--accent); }
.inbox .who { font-weight: 800; }
.inbox .main { min-width: 0; flex: 1; }
.inbox .main p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .side { text-align: right; flex: none; font-size: 15px; color: var(--text-quiet); }
.thread-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.thread-head h1 { font-size: 28px; margin: 0; }
.thread { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.thread .day { align-self: center; font-size: 15px; color: var(--text-quiet); font-weight: 600; margin: 8px 0 0; }
.bubble { max-width: min(560px, 88%); padding: 12px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); align-self: flex-start; border-bottom-left-radius: 8px; }
.bubble.mine { align-self: flex-end; background: #FFE3D3; border-color: var(--peach); border-bottom-left-radius: 22px; border-bottom-right-radius: 8px; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble p:empty { height: .8em; }
.bubble .time { display: flex; gap: 10px; justify-content: space-between; font-size: 14px; color: var(--text-quiet); margin-top: 6px; }
.bubble .time a { color: var(--text-quiet); }
.bubble .warn { margin-top: 10px; font-size: 15px; background: #FFF0C7; border-radius: 14px; padding: 8px 12px; display: flex; gap: 8px; }
.bubble .warn svg { flex: none; margin-top: 2px; }
.composer textarea { min-height: 110px; }
.appointment { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; }
.appointment p { margin: 0; }

.stars { display: inline-flex; gap: 2px; }
.star-input { display: flex; gap: 8px; flex-wrap: wrap; }
.star-input label { min-width: 52px; min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; border: 2px solid var(--border); background: var(--card); font-weight: 800; cursor: pointer; position: relative; }
.star-input input { position: absolute; opacity: 0; }
.star-input label:has(input:checked) { background: var(--accent); border-color: var(--text); }
.star-input label:has(input:focus-visible) { box-shadow: var(--focus); }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review .reply { margin: 12px 0 0 16px; padding: 12px 16px; background: var(--surface); border-radius: var(--r-sm); }

.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid #CFC3A8; }
.checklist .done .mark { background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%232E1A47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--sage); }
.checklist a { font-weight: 600; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface); font-weight: 800; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.admin-nav a[aria-current="page"] { background: var(--text); color: #fff; }
.tile { display: block; text-decoration: none; color: var(--text); }
.tile .stat { margin-bottom: 4px; }
.tile-alert { background: #FBE3E1; border-color: var(--danger); }
pre.mail { white-space: pre-wrap; font-family: inherit; font-size: 16px; background: var(--surface); padding: 12px; border-radius: 14px; margin: 8px 0 0; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); min-height: 44px; display: flex; align-items: center; }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 36px 20px; background: var(--surface); border-radius: var(--r-card); }
.empty p { max-width: 32em; margin-left: auto; margin-right: auto; }
.filters { display: grid; gap: 14px; background: var(--card); padding: 18px; border-radius: var(--r-card); box-shadow: var(--shadow-card); border: 1px solid var(--border); margin-bottom: 24px; }
.filters .field { margin: 0; }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr 1.4fr .8fr auto; align-items: end; } }
@media (min-width: 760px) { .filters.filters-5 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .filters.filters-5 { grid-template-columns: 1.5fr .9fr 1.3fr 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--surface); padding: 48px 0 24px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-flex; min-height: 40px; align-items: center; color: var(--text); text-decoration: none; font-weight: 600; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-title { font-size: 18px; margin-bottom: 8px; }
.logo-footer { margin-bottom: 12px; }
.footer-crisis { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--border); }
.footer-crisis p { margin: 0; color: var(--text-quiet); }

.error-page { text-align: center; padding-block: clamp(40px, 10vw, 96px); }
.error-page svg { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .env-tag, .verifybar, .composer, .actions { display: none; }
  body { background: #fff; }
}
.center { justify-content: center; text-align: center; }
.error-page .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt { margin-top: 24px; }
.h3 { font-size: 21px; margin: 0 0 8px; }
.mb { margin-bottom: 20px; }
.nav li a, .nav .linkbutton, .nav .btn { white-space: nowrap; }


/* ---------- Spacing fixes ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.section-head > h1, .section-head > h2, .section-head > h3 { margin: 0; }
.row > h1, .row > h2, .row > h3, .row > p { margin-bottom: 0; }
.card.list-plain { padding: 8px 22px; }
.card-lg.list-plain { padding: 8px clamp(22px, 4vw, 36px); }
.card > .list-plain:last-child > li:last-child { padding-bottom: 0; }
.item-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.item-row p { margin: 4px 0 0; }
.item-title { font-weight: 800; color: var(--text); text-decoration: none; }
.item-title:hover { text-decoration: underline; }
.convo { display: flex; gap: 12px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.convo-text { display: flex; flex-direction: column; min-width: 0; }
.convo-name { font-weight: 800; }
.convo:hover .convo-name { text-decoration: underline; }
.convo .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo never shrinks away */
.logo, .logo-mark { flex: none; }
.logo-mark { width: 44px; height: 32px; max-width: none; }
.logo-footer .logo-mark { width: 40px; height: 29px; }

/* Notices float as a toast, so they never push the page around */
.toast-wrap { position: fixed; z-index: 40; left: 0; right: 0; top: 16px; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.toast { pointer-events: auto; margin: 0; max-width: 560px; width: 100%; box-shadow: var(--shadow-float), 0 12px 32px rgba(46, 26, 71, .12); align-items: center; transition: opacity .3s ease, transform .3s ease; }
.toast p { flex: 1; }
.toast.is-hiding { opacity: 0; transform: translateY(-12px); }
.toast-close { flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; font: inherit; font-size: 26px; line-height: 1; color: var(--text-quiet); cursor: pointer; border-radius: 50%; }
.toast-close:hover { background: var(--surface); color: var(--text); }
.prose a, .prose code { overflow-wrap: anywhere; }

/* Header: never wider than the screen */
.header-row { min-width: 0; }
.nav-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1200px) { .nav { gap: 12px !important; } .nav li a, .nav .linkbutton { padding: 0 10px; } }

/* Account dropdown on desktop; plain items in the mobile menu */
.only-desktop { display: none !important; }
.account-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: var(--pill); background: none; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.account-toggle:hover, .account-toggle[aria-expanded="true"] { background: var(--surface); }
@media (min-width: 1200px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: block !important; }
  .account-menu { position: relative; }
  .account-list { display: none !important; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; flex-direction: column; align-items: stretch !important; gap: 0 !important; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-float); padding: 8px !important; z-index: 30; }
  .account-list.open, .no-js .account-menu:focus-within .account-list { display: flex !important; }
  .account-list li a, .account-list .linkbutton { display: flex; width: 100%; border-radius: 12px; padding: 0 12px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 600; }
}

/* Fields in a grid: the field margin already spaces the rows */
.grid:has(> .field) { row-gap: 0; }

/* Photo editor */
.avatar-xxl { width: 160px; height: 160px; font-size: 48px; }
.photo-preview { display: flex; justify-content: center; margin: 4px 0 16px; }
.photo-tools { display: grid; gap: 10px; justify-items: center; padding: 14px; margin-bottom: 18px; background: var(--surface); border-radius: var(--r-sm); text-align: center; }
.photo-tools p { margin: 0; }
.tool-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 2px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.tool:hover { border-color: var(--text); }
.tool-icon { width: 48px; padding: 0; }
.tool-pad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 44px); gap: 4px; }
.tool-pad .up { grid-area: 1 / 2; } .tool-pad .left { grid-area: 2 / 1; } .tool-pad .right { grid-area: 2 / 3; } .tool-pad .down { grid-area: 3 / 2; }
.photo-upload input[type=file] { font: inherit; font-size: 16px; max-width: 100%; }
.table-wrap { position: relative; }
@media (min-width: 1200px) and (max-width: 1359px) { .account-toggle .nav-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.tool { white-space: nowrap; }

/* Legends sit inside the fieldset, not on its top border */
legend { float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }
fieldset::after { content: ""; display: table; clear: both; }

/* ---------- More breathing room ---------- */
.card { padding: 24px; }
.card-lg { padding: clamp(24px, 4.5vw, 40px); }
.card.list-plain { padding: 8px 24px; }
.grid { gap: 24px; }
.layout-side { gap: 32px; }
.layout-side > .stack > * + *, aside.stack > * + * { margin-top: 24px; }
.layout-side > .stack > section + section, .detail-section { margin-top: 40px; }
.stack.section-tight > * + *, .stack > .card + .card, .stack > article + article { margin-top: 20px; }
.section-head { margin-bottom: 20px; }
.page-head { padding-bottom: 16px; }
.page-head + .layout-side, .page-head + .section-tight { padding-top: 16px; }
.badges, .tags { gap: 8px; margin-bottom: 14px; }
.badge, .tag { padding: 4px 12px; }

.response-card { display: grid; gap: 16px; }
.response-card > * { margin: 0 !important; }
.response-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.response-head .status { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .response-head { grid-template-columns: auto minmax(0, 1fr) auto; } .response-head .status { grid-column: 3; justify-self: end; } }
.response-who .card-title { margin: 0 0 2px; }
.response-who p { margin: 0; }
.response-headline { color: var(--text-quiet); }
.response-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts as separate chips with an icon each */
.fact-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 10px; }
.fact-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 12px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--border); font-size: 16px; font-weight: 600; }
.fact-chips .icon { color: var(--accent-dark); flex: none; }
.posted { margin: 0; }
.meta { gap: 6px 18px; }
.meta .icon { color: var(--text-quiet); flex: none; }

/* Breadcrumb: Home / section / current page */
.crumbs { margin: 0 0 16px; font-size: 15px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; padding: 0; margin: 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; color: var(--text-quiet); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #B9AE96; font-weight: 600; }
.crumbs a { color: var(--text-quiet); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .crumbs [aria-current] { max-width: 18ch; } }


/* Expandable actions look like buttons, with a chevron that turns */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--pill); background: var(--surface); color: var(--text); font-weight: 600; font-size: 16px; cursor: pointer; }
details.more > summary:hover { background: var(--surface-warm); }
details.more > summary::before { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%232E1A47' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .15s ease; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more[open] > summary { margin-bottom: 14px; }
details.propose > summary { cursor: pointer; }
details.propose > summary .icon { color: var(--accent-dark); }
details.propose[open] > summary { background: var(--surface); border-color: transparent; }
.propose-form { display: grid; gap: 0; margin-top: 16px; }
.propose-form .btn { margin-bottom: 10px; }
.card .appointment + details, .card .appointment + p { margin-top: 16px; }

/* ---------- One page width everywhere ----------
   Every page uses the same .wrap (same left edge as the logo). Pages with less content
   limit their content column instead of centring a narrower container. */
.wrap.narrow > *, .page-head.narrow > * { max-width: 760px; }
.wrap.auth > * { max-width: 600px; }
.wrap.auth > .page-head { max-width: none; }
.wrap.auth > .page-head > * { max-width: 600px; }
.error-page > * { margin-left: auto; margin-right: auto; }

/* Footer sits at the bottom of the screen on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { flex: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; max-width: 820px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 12px; box-shadow: var(--shadow-card); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; min-height: 56px; }
.faq-item > summary h3 { margin: 0; font-size: 19px; }
.faq-item > summary::after { content: ""; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232E1A47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; transition: transform .15s ease; }
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 18px; color: var(--text-quiet); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Local pages ---------- */
.place-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; }
.place-grid a { display: flex; align-items: center; min-height: 40px; color: var(--text); font-weight: 600; text-decoration: none; }
.place-grid a:hover { color: var(--accent-dark); text-decoration: underline; }
.province-list { display: grid; gap: 12px; }
.province-list details { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); }
.province-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 800; min-height: 56px; }
.province-list summary span { font-weight: 600; color: var(--text-quiet); font-size: 16px; }
.province-list .place-grid { padding: 0 20px 18px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.stat-row li { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 18px; min-width: 150px; }
.stat-row strong { display: block; font-size: 28px; line-height: 1.1; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-list a { display: block; height: 100%; padding: 20px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); }
.service-list a:hover { box-shadow: var(--shadow-float); }
.service-list strong { display: block; font-size: 19px; margin-bottom: 4px; }
.service-list span { color: var(--text-quiet); font-size: 16px; }
.do-dont { display: grid; gap: 20px; }
@media (min-width: 760px) { .do-dont { grid-template-columns: 1fr 1fr; } }
.cross-list { list-style: none; padding: 0; }
.cross-list li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.cross-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #F6CFCB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%232E1A47' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.postcode-jump { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; margin-top: 16px; }
.postcode-jump input { flex: 1 1 180px; }
/* Truncate the current page in the breadcrumb (the name sits in a span for structured data) */
.crumbs [aria-current] { min-width: 0; }
.crumbs [aria-current] > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32ch; }
@media (max-width: 640px) { .crumbs [aria-current] > span { max-width: 18ch; } }
.crumbs [aria-current] { display: inline-flex; max-width: none; overflow: visible; }
.crumbs [aria-current] > span { display: inline-block; vertical-align: bottom; }
.crumbs li { min-height: 32px; }

/* Subtle environment tag next to the logo (test/demo) */
.env-tag { flex: none; margin-right: auto; margin-left: -8px; align-self: center; padding: 2px 10px; border-radius: var(--pill); background: var(--lavender); color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1.5; cursor: default; }
@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .logo-word { font-size: 20px; }
  .logo-mark { width: 38px; height: 28px; }
  .env-tag { font-size: 12px; padding: 1px 8px; margin-left: -2px; }
  .menu-toggle { padding: 0 14px; }
  .env-tag ~ .menu .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Demo/test notice at the bottom of the footer */
.env-banner { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 18px; background: #F3F0FB; border: 2px solid var(--lavender); border-radius: var(--r-sm); }
.env-banner .env-tag { margin: 2px 0 0; align-self: flex-start; }
.env-banner p { margin: 0; font-size: 16px; }

/* Facts in a narrow column (sidebar): label above value */
aside .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.facts dd { overflow-wrap: break-word; hyphens: manual; }
.field > label.check { display: flex; font-weight: 400; margin-bottom: 0; }

/* ---------- Spacing sweep ---------- */
.province-list details > p { padding: 0 20px; margin: 0 0 10px; }
.count { display: inline-block; line-height: 1.5; padding: 1px 8px; }
.status, .tag, .badge { line-height: 1.5; }
pre.mail { overflow-wrap: anywhere; }

/* ---------- Beheer: bezoekers ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 16px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--border); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }
.visitors-filters { display: grid; gap: 16px; margin-bottom: 20px; }
.pill-row { margin: 0; gap: 6px; }
.pill-row a { min-height: 38px; padding: 0 14px; font-size: 16px; }
.range-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.range-form .field { margin: 0; }
.pill-groups { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.pill-groups > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters .tag { text-decoration: none; color: var(--text); background: var(--butter); font-weight: 800; }
.kpis { margin-bottom: 20px; }
.kpis .stat { margin: 6px 0 4px; }
.visitors-grid { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .visitors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.visitors-grid > .card { min-width: 0; }
.bar-chart svg { display: block; width: 100%; height: 180px; margin: 4px 0; }
.bar-chart rect { fill: var(--text); }
.bar-chart rect:hover { fill: var(--accent); }
.bar-axis { display: flex; justify-content: space-between; gap: 12px; }
.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.share-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.share-list a { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 16px; }
.share-list a:hover { background: var(--surface); }
.share-bar { position: absolute; inset: 0; width: 100%; height: 100%; }
.share-bar rect { fill: #EEF2E3; }
.share-list a > :not(.share-bar) { position: relative; }
.share-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-list strong, .share-list .muted { width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }

/* Beheer: content editor */
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.md-toolbar[hidden] { display: none; }
.input-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
