@charset "UTF-8";
/*
 * Salles communales - one stylesheet, no build step, no external font or CDN.
 *
 *   1. Tokens       every colour, size, space and radius; rules below use nothing else
 *   2. Base         elements
 *   3. Utilities    layout helpers that replace style="" in templates (stack, row, m-0…)
 *   4. Components   button, card, pill, tabs, segmented, field, table, message, stat
 *   5. Public site  header, venue cards, gallery, month calendar, price panel
 *   6. Back-office  shell, menu, mobile tab bar, heading, timeline, check-out, settings…
 *   7. Ambience     beige ground, contour lines, section drawings
 *   8. Print
 */

/* Inter, served by us (no font CDN: data protection). Same typeface as the PDFs. Licence: fonts/Inter-OFL.txt */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 1. Tokens ---------------------------------------------------------------------------------- */
:root {
  /* Brand: the municipality's colour replaces --accent (see core/base.html). */
  --accent: #b4232a;
  /* The platform's own identity (grandesalle.ch): it signs small, never in the municipality's place. */
  --brand: #1f5a43;
  --brand-deep: #1f5a43;   /* the same in dark mode: behind white text */
  --brand-ink: #143d2d;
  --sun: #f2b33d;

  /* Ink and surfaces */
  --ink: #16181d;
  --ink-2: #2e333c;
  --muted: #4a505c;
  --soft: #5b6270;
  --ground: #ebe6dc;
  --surface: #ffffff;
  --on-ink: #ffffff;       /* text on an ink background (inverted in dark mode) */
  --art: #ffffff;          /* the line drawings and the contour lines */
  --surface-2: #faf9f6;
  --hover: #f1efea;
  --line: #e3e1dc;
  --line-soft: #efede8;
  --field: #cfcbc3;
  --placeholder: #d9d5cc;

  /* States: one meaning, one colour, everywhere (pills, calendars, timeline, legends) */
  --free-bg: #e3f2ea;     --free-ink: #1f6b45;     --free-line: #9ccbb1;
  --pending-bg: #fff1d6;  --pending-ink: #7a4e00;  --pending-line: #e5c27a;
  --option-a: #fff8e8;    --option-b: #ffebc2;     --option-line: #c99a3a;
  --busy-bg: #4a505c;     --busy-ink: #ffffff;
  --closed-bg: #efede8;   --closed-ink: #8a8478;   --closed-line: #b9b4aa;
  --closed-b: #e3e0d9;
  --internal-bg: #e4eefb; --internal-ink: #1f4e8c; --internal-line: #a9c3e8;
  /* Not a state but a fact of the calendar: school holidays and public holidays of the canton */
  --holiday: #6a4c9c;     --holiday-bg: #efe9f7;   --holiday-line: #c6b5e2;
  --neutral-bg: #ebeae7;  --neutral-ink: #3f4450;
  --danger: #8e1f25;      --danger-bg: #fbe7e8;    --danger-line: #e2b8ba;

  /* Space: 4 · 8 · 12 · 16 · 24 · 32 */
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px; --s-2xl: 32px;

  /* Type: 12 · 13 · 14 · 16 · 18 · 22 · 28 */
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-base: 16px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 28px;

  /* Radius: small (fields, buttons) · medium (cards) · round (pills) */
  --r-sm: 8px; --r-md: 12px; --r-pill: 999px;
  --radius: var(--r-md);

  /* Heights: comfortable to tap */
  --h-control: 44px; --h-control-sm: 36px; --h-field: 48px; --h-field-compact: 36px;

  --shadow-float: 0 -6px 20px rgba(22, 24, 29, .06);
  --shadow-menu: 0 10px 30px rgba(22, 24, 29, .14);
  --focus: 2px solid var(--ink);

  color-scheme: light dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--ground);
}

/* Dark mode, following the system. Only tokens change; the widget stays light (it lives in the municipality's
   page), and so does print. */
@media screen and (prefers-color-scheme: dark) {
  :root:not(:has(body.is-embed)) {
    --ink: #ecebe8; --ink-2: #d6d4cf; --muted: #b4b1aa; --soft: #9c9991;
    --ground: #1c1b19; --surface: #262522; --surface-2: #2c2b28; --hover: #34322e;
    --line: #3a3834; --line-soft: #312f2c; --field: #4d4a45; --placeholder: #3a3834;
    --on-ink: #1c1b19; --art: #4a4741;
    --brand: #6fbf96; --brand-ink: #9ad6b6;
    --free-bg: #17382a;     --free-ink: #7fd1a5;     --free-line: #2f6b4c;
    --pending-bg: #3d2f12;  --pending-ink: #f0c879;  --pending-line: #7a5c1f;
    --option-a: #3a2e14;    --option-b: #4a3a17;     --option-line: #a5822e;
    --busy-bg: #8b909b;     --busy-ink: #141414;
    --closed-bg: #2c2b28;   --closed-ink: #8f8b83;   --closed-line: #55524c; --closed-b: #34322e;
    --internal-bg: #1b2c45; --internal-ink: #9cc2f2; --internal-line: #36547d;
    --holiday: #bfa6ec;     --holiday-bg: #2d2540;   --holiday-line: #57477a;
    --neutral-bg: #34322e;  --neutral-ink: #cfccc6;
    --danger: #f19a9f;      --danger-bg: #45191c;    --danger-line: #7a3438;
    --shadow-float: 0 -6px 20px rgba(0, 0, 0, .35);
    --shadow-menu: 0 10px 30px rgba(0, 0, 0, .5);
  }
  :root:not(:has(body.is-embed)) .shell,
  :root:not(:has(body.is-embed)) body.public { background-image: url("../img/roofs-dark.944d2717bffb.svg"); }
  :root:not(:has(body.is-embed)) .section-art { filter: none; }
  :root:not(:has(body.is-embed)) img.photo, :root:not(:has(body.is-embed)) .gallery img { filter: brightness(.92); }
}
html:has(body.is-embed) { color-scheme: light; }

/* 2. Base ------------------------------------------------------------------------------------ */
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--t-base); line-height: 1.5; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--t-lg); font-weight: 600; }
h3 { font-size: var(--t-base); font-weight: 600; }
code { font-size: .9em; }
.snippet { display: block; white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 10px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
html:has(body.is-embed), body.is-embed { background: transparent; }

/* 3. Utilities ------------------------------------------------------------------------------- */
.stack-0, .stack-xs, .stack-sm, .stack-md, .stack-lg, .stack-xl { display: flex; flex-direction: column; }
.stack-xs { gap: var(--s-xs); } .stack-sm { gap: var(--s-sm); } .stack-md { gap: var(--s-md); }
.stack-lg { gap: var(--s-lg); } .stack-xl { gap: var(--s-xl); }
.row { display: flex; }
.gap-xs { gap: var(--s-xs); } .gap-sm { gap: var(--s-sm); } .gap-md { gap: var(--s-md); } .gap-lg { gap: var(--s-lg); } .gap-xl { gap: var(--s-xl); }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-baseline { align-items: baseline; } .items-end { align-items: flex-end; } .items-start { align-items: start; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; } .self-center { align-self: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); gap: var(--s-lg); }
.m-0 { margin: 0; } .mt-xs { margin-top: var(--s-xs); } .mt-sm { margin-top: var(--s-sm); } .mt-md { margin-top: var(--s-md); } .mt-lg { margin-top: var(--s-lg); }
.mb-sm { margin-bottom: var(--s-sm); } .my-xs { margin-block: var(--s-xs); } .ml-auto { margin-left: auto; }
.measure-sm { max-width: 420px; } .measure { max-width: 560px; } .measure-lg { max-width: 640px; }
.min-w-0 { min-width: 0; }
.text-right { text-align: right; } .text-center { text-align: center; }
.text-danger { color: var(--danger); } .text-muted, .muted { color: var(--muted); } .text-accent { color: var(--accent); }
.fine { font-size: var(--t-sm); color: var(--soft); } .fine-size { font-size: var(--t-sm); }
.medium { font-weight: 500; } .semibold { font-weight: 600; } .bold { font-weight: 700; }
.inline { display: inline; } .nowrap { white-space: nowrap; } .no-underline { text-decoration: none; }
.desktop-only { } .mobile-only { display: none !important; }
a[href^="tel:"] { white-space: nowrap; }

/* 4. Components ------------------------------------------------------------------------------ */

/* Buttons. One primary (accent) per screen: the action that moves the file forward.
   Navigation and secondary actions use the plain button. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  min-height: var(--h-control); padding: 0 var(--s-lg); border-radius: var(--r-sm); border: 1px solid var(--field);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.button:hover { background: var(--hover); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { filter: brightness(.94); background: var(--accent); }
.button.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.button.danger { color: var(--danger); border-color: var(--danger-line); background: transparent; }
.button.danger:hover { background: var(--danger-bg); }
.button.small { min-height: var(--h-control-sm); padding: 0 var(--s-md); font-size: var(--t-sm); }
.button.block { width: 100%; }
.row-actions { display: flex; gap: var(--s-sm); flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }

/* Cards: the title of a section always sits inside its card. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-lg); }
.card > h2:first-child, .card > h3:first-child { margin-bottom: var(--s-xs); }
.card.quiet { background: color-mix(in srgb, var(--surface) 50%, transparent); border-color: transparent; }

/* Pills say a state; they are flat and never look like a button. */
.pill { white-space: nowrap; display: inline-block; font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--neutral-bg); color: var(--neutral-ink); line-height: 1.5; }
.pill.free { background: var(--free-bg); color: var(--free-ink); }
.pill.tentative { background: var(--pending-bg); color: var(--pending-ink); }
.pill.busy { background: var(--neutral-bg); color: var(--neutral-ink); }
.pill.internal { background: var(--internal-bg); color: var(--internal-ink); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }

/* Facts and tags: attributes of a venue or a renter (no border, not clickable). */
.facts { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.facts span, .tag { font-size: var(--t-sm); font-weight: 500; background: var(--line-soft); color: var(--ink-2);
  padding: 4px 10px; border-radius: var(--r-pill); }

/* Tabs: choose a venue (Prices, Venues). Underlined, never a black button. */
.tabs { display: flex; gap: var(--s-xs); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs .tab { flex: none; padding: 10px var(--s-md); font-size: var(--t-md); font-weight: 600; color: var(--soft); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .tab-add { color: var(--soft); font-weight: 500; }

/* Segmented control: switch a view (Day/Week/Month, price grids) or answer OK/Problem. */
.segmented { display: inline-flex; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; }
.segmented > a, .segmented > button, .segmented label {
  min-height: 34px; padding: 0 var(--s-md); display: inline-flex; align-items: center; border: 0; border-radius: 7px;
  background: transparent; font: inherit; font-size: var(--t-md); font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.segmented > a:hover, .segmented > button:hover { color: var(--ink); background: var(--hover); }
.segmented > a.active, .segmented > button.active { background: var(--ink); color: var(--on-ink); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + label.ok { background: var(--free-ink); color: #fff; }
.segmented input:checked + label.ko { background: var(--danger); color: #fff; }
.segmented input:focus-visible + label { outline: var(--focus); outline-offset: 1px; }

/* Fields: two sizes, normal (forms) and compact (tables), same border and focus. */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
label.field input, label.field select, label.field textarea, .input {
  min-height: var(--h-field); border: 1px solid var(--field); border-radius: var(--r-sm); padding: 0 var(--s-md);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); width: 100%; }
label.field textarea { padding: 10px var(--s-md); min-height: 96px; }
label.field input:focus, label.field select:focus, label.field textarea:focus, .input:focus,
table.formset input:focus, table.formset select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
label.check { display: flex; align-items: center; gap: 10px; min-height: var(--h-control); font-size: 15px; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.errorlist { color: var(--danger); font-size: var(--t-sm); margin: var(--s-xs) 0 0; padding: 0; list-style: none; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-md); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.choices label {
  display: flex; align-items: center; gap: var(--s-sm); min-height: var(--h-field); padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--field); background: var(--surface); font-size: 15px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choices input { accent-color: var(--accent); }
table.formset td { vertical-align: top; }
input.amount-input { text-align: right; font-variant-numeric: tabular-nums; }
table.formset input:not([type=checkbox]), table.formset select {
  width: 100%; min-width: 90px; min-height: var(--h-field-compact); padding: 0 10px; font: inherit; font-size: var(--t-md);
  border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }

/* Drop-downs: one chevron, drawn and aligned the same everywhere (the browsers' own arrows differ). */
select, label.field select, table.formset select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6170' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
  padding-right: 36px !important; cursor: pointer; }
label.field select { background-color: var(--surface); }
table.formset select { background-position: right 8px center; padding-right: 28px !important; }

/* Tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
th { text-align: left; font-size: var(--t-xs); font-weight: 600; color: var(--soft); background: var(--surface-2); padding: 10px 14px; }
td { padding: var(--s-md) 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
td.amount, th.amount { text-align: right; white-space: nowrap; }

/* Messages */
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-sm); }
.messages li { padding: 10px 14px; border-radius: var(--r-sm); background: var(--free-bg); color: var(--free-ink); font-size: var(--t-md); }
.messages li.error { background: var(--danger-bg); color: var(--danger); }
.messages li.warning { background: var(--pending-bg); color: var(--pending-ink); }

/* Stat tiles (dashboard filters) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-md); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px var(--s-lg); }
.stat .fine { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat strong { display: block; font-size: var(--t-2xl); }
a.stat { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--ink); }
a.stat.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--hover); }
a.stat.empty { background: color-mix(in srgb, var(--surface) 60%, transparent); }
a.stat.empty strong { color: var(--soft); font-weight: 500; }

/* Icons */
.icon { flex: none; display: block; }
.with-icon { display: flex; align-items: center; gap: var(--s-sm); }
.with-icon .icon { color: var(--soft); }

/* Coat of arms (drawn when the municipality has not uploaded one) */
.coat { width: 36px; height: 42px; border-radius: 4px 4px 18px 18px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.coat-img { width: 36px; height: 42px; object-fit: contain; display: block; flex: none; }

/* Legends of the calendars */
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: var(--t-xs); color: var(--muted); }
.legend i, .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.swatch.free { background: var(--free-bg); border: 1px solid var(--free-line); }
.swatch.tentative { background: var(--pending-bg); border: 1px solid var(--pending-line); }
.swatch.option { background: repeating-linear-gradient(45deg, var(--option-a), var(--option-a) 3px, var(--option-b) 3px, var(--option-b) 6px); border: 1px dashed var(--option-line); }
.swatch.busy { background: var(--busy-bg); }
.swatch.closed { background: var(--closed-bg); border: 1px dashed var(--closed-line); }
.swatch.internal { background: var(--internal-bg); border: 1px solid var(--internal-line); }
.swatch.recurring { background: var(--line-soft); }
.swatch.school { background: var(--holiday); border-radius: var(--r-pill); width: 12px; height: 3px; vertical-align: 3px; }
.swatch.holiday { background: var(--holiday); border-radius: var(--r-pill); width: 8px; height: 8px; vertical-align: 0; margin: 0 8px 0 2px; }

/* The grandesalle symbol and signature */
.brand-mark { flex: none; display: block; }
.brand-mark .roof { stroke: var(--ink); }
.brand-mark .door { fill: var(--brand); }
.brand-mark.light .roof { stroke: #fff; }
.brand-mark.light .door { fill: var(--sun); }
.platform-signature { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--soft); text-decoration: none; }
.platform-signature strong { color: var(--ink-2); font-weight: 600; }
.platform-signature:hover strong { color: var(--brand); }
.platform-signature .roof { stroke: var(--soft); }
.signature-row { padding: 2px 0 0; }
.shell > nav .platform-signature { padding: 4px 6px; font-size: 11px; color: var(--soft); white-space: nowrap; gap: 6px; }
.shell > nav .platform-signature:hover { background: transparent; }
.widget > .platform-signature { align-self: flex-end; }

/* 5. Public site (mobile first) -------------------------------------------------------------- */
.public-header {
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--accent);
  padding: 14px 20px; display: flex; align-items: center; gap: var(--s-md); }
.public-header .name { font-weight: 600; }
.public-main { max-width: 760px; margin: 0 auto; padding: var(--s-xl) 20px 120px; display: flex; flex-direction: column; gap: 20px; }
.public-footer { max-width: 760px; margin: 0 auto; padding: var(--s-xl) 20px; font-size: var(--t-sm); color: var(--soft); }
.venue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.venue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.venue-card:hover { border-color: var(--ink); }
.venue-card .photo { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--placeholder); }
.venue-card .body { padding: var(--s-md) 14px 14px; display: flex; flex-direction: column; gap: var(--s-xs); }
.gallery { display: flex; gap: var(--s-sm); overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-md); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 auto; width: min(100%, 560px); height: 240px; object-fit: cover; border-radius: var(--r-md); scroll-snap-align: start; background: var(--placeholder); }
.gallery img:only-child { width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--r-sm); background: var(--placeholder); }

/* Month calendar (public page and widget) */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-xs); }
/* The month's name is a list of the bookable months: December next year in one click, not twelve. */
.month-select { font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  min-height: var(--h-control-sm); padding: 0 var(--s-sm); cursor: pointer; text-align: center; }
.month-select:hover { background: var(--hover); border-color: var(--line); }
.month .head { font-size: var(--t-xs); color: var(--soft); text-align: center; font-weight: 500; }
.month .day { height: 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  font-size: var(--t-md); font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.month .day.free { background: var(--free-bg); color: var(--free-ink); border-color: var(--free-line); }
.month a.day.free:hover { background: var(--free-ink); color: #fff; }
.month .day.tentative { background: var(--pending-bg); color: var(--pending-ink); border-color: var(--pending-line); }
.month .day.busy { background: var(--busy-bg); color: var(--busy-ink); }
.month .day.closed, .month .day.too_late { background: var(--closed-bg); color: var(--closed-ink); border: 1px dashed var(--closed-line); }
.month .day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
/* School holidays: a short rounded dash under the number; public holiday: a dot in the corner. Name in the title. */
.month .day { position: relative; }
.month .day.school::before { content: ""; position: absolute; bottom: 6px; left: 50%; width: 14px; height: 3px;
  margin-left: -7px; border-radius: var(--r-pill); background: var(--holiday); }
.month .day.holiday::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px;
  border-radius: var(--r-pill); background: var(--holiday); box-shadow: 0 0 0 1.5px var(--surface); }
.holidays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }

/* Price panel (request form) */
.price-panel { position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow-float); padding: 14px 20px 20px; }
.price-panel .line { display: flex; justify-content: space-between; font-size: var(--t-md); color: var(--muted); }
.price-panel .total { font-size: 24px; font-weight: 700; color: var(--ink); }
@media (max-width: 700px) { .price-panel { margin: 0 -20px; border-radius: 0; border-inline: 0; } }

/* Request form, step "When": date and times side by side on wider screens. */
@media (min-width: 600px) {
  .step[data-step="1"] { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg) var(--s-md); }
  .step[data-step="1"] > :not([data-field]), .step[data-step="1"] > fieldset { grid-column: 1 / -1; }
}

/* Public ambience: the same ground as the back-office (the village's roofs), and a line drawing above the main title. */
body.public { min-height: 100vh; background: var(--ground) url("../img/roofs.5eefdb4c51f5.svg") left bottom / 720px 180px repeat-x fixed; }
.public-hero { position: relative; isolation: isolate; padding-top: 120px; }
.public-hero .section-art { left: auto; right: 0; transform: none; top: 0; width: min(300px, 70%); }

/* The renter's booking: a banner with the venue, and the journey step by step. */
.dossier-head { display: flex; flex-direction: column; gap: var(--s-lg); overflow: hidden; }
.dossier-head .cover { display: block; width: calc(100% + 2 * var(--s-lg)); height: 160px; object-fit: cover; margin: calc(-1 * var(--s-lg)) calc(-1 * var(--s-lg)) 0; background: var(--placeholder); }
.card.attention { border-color: var(--pending-line); box-shadow: inset 4px 0 0 var(--pending-line); }
.list { padding-left: 20px; }
.item { padding-bottom: var(--s-md); border-bottom: 1px solid var(--line-soft); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.journey { list-style: none; margin: 0; padding: var(--s-md) 0 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--t-xs); color: var(--soft); line-height: 1.25; }
.journey li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.journey li:first-child::before { display: none; }
.journey .dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); box-sizing: border-box; }
.journey li.done { color: var(--ink-2); }
.journey li.done::before, .journey li.current::before { background: var(--free-ink); }
.journey li.done .dot { background: var(--free-ink); border-color: var(--free-ink); }
.journey li.done .dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.journey li.current { color: var(--ink); font-weight: 600; }
.journey li.current .dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.journey .label { padding: 0 2px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 420px) { .journey li { font-size: 10.5px; } .journey li.current { font-weight: 600; letter-spacing: -0.01em; } }

/* The platform's own home page (grandesalle.ch): its identity leads here, and only here. */
.button.primary.brand { background: var(--brand-deep); border-color: var(--brand-deep); }
.platform-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); max-width: 1120px; margin: 0 auto; padding: var(--s-xl) var(--s-xl) 0; }
.platform-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -0.045em; }
.platform-main { max-width: 1120px; margin: 0 auto; padding: 56px var(--s-xl) var(--s-2xl); display: flex; flex-direction: column; gap: 56px; }
.platform-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.platform-hero .eyebrow { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.platform-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.platform-hero .lead { font-size: var(--t-lg); line-height: 1.55; color: var(--muted); margin: 0; max-width: 620px; }
.platform-drawing { width: 100%; height: auto; fill: none; stroke: var(--art); stroke-linecap: round; stroke-linejoin: round; }
.platform-drawing .door { fill: var(--brand); stroke: none; }
.platform-drawing .sun { fill: var(--sun); stroke: none; }
.platform-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-lg); }
.platform-footer { max-width: 1120px; margin: 0 auto; padding: var(--s-xl) var(--s-xl) 200px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-lg); font-size: var(--t-sm); color: var(--soft); }
.platform-footer a { color: var(--soft); }
.platform-nav { display: flex; align-items: center; gap: var(--s-lg); flex-wrap: wrap; font-size: var(--t-md); font-weight: 500; }
.platform-nav > a:not(.button) { text-decoration: none; color: var(--ink-2); }
.platform-nav > a:not(.button):hover { color: var(--brand); }
.platform-section { display: flex; flex-direction: column; gap: var(--s-xl); }
.platform-section h2, .platform-band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.platform-section h3, .platform-band h3 { font-size: var(--t-lg); }
.platform-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-xl); }
.platform-steps li { display: flex; flex-direction: column; gap: var(--s-sm); }
.platform-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: var(--t-lg); }
.platform-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-lg); }
.feature-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); display: grid; place-items: center; }
.feature-icon .icon { width: 22px; height: 22px; }
.platform-band { background: var(--brand-deep); color: #fff; border-radius: 20px; padding: var(--s-2xl) clamp(var(--s-xl), 4vw, 48px); }
.platform-band p { color: rgba(255, 255, 255, .86); line-height: 1.55; }
.platform-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-lg); }
.price-card .price-venues { margin: 0; color: var(--brand); font-weight: 600; font-size: var(--t-sm); }
.price-card .price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-xs); }
.price-card .price strong { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.price-card .price span { color: var(--soft); font-size: var(--t-sm); }
.price-card.featured { border-color: var(--brand); box-shadow: inset 0 4px 0 var(--brand); }
.price-card .button { align-self: flex-start; margin-top: auto; }
.platform-price-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-lg); }
.platform-launch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-md); padding: var(--s-lg) var(--s-xl); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--sun) 20%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sun) 60%, transparent); }
.commune-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-sm); }
.commune-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-md); padding: var(--s-md) var(--s-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.commune-list a:hover { border-color: var(--ink); }
.commune-list .chevron { font-size: 22px; color: var(--soft); }
.prose h2 { font-size: var(--t-lg) !important; letter-spacing: 0 !important; margin-top: var(--s-md); }
.prose p { margin: 0; line-height: 1.6; color: var(--ink-2); }
.grow { flex: 1 1 240px; }
@media (max-width: 760px) { .platform-header { flex-wrap: wrap; } .platform-nav { gap: var(--s-md); } }
@media (max-width: 760px) { .platform-hero { grid-template-columns: 1fr; } .platform-drawing { max-width: 200px; } }

/* Widget pasted into the municipality's site: transparent ground, white cards. */
.widget { padding: var(--s-md); }
.widget-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--s-md); align-items: center; padding: var(--s-sm);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.widget-card:hover { border-color: var(--ink); }
.widget-card .photo { width: 88px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--placeholder); display: block; }
.widget-card .chevron { font-size: 22px; color: var(--soft); padding-right: var(--s-xs); }
.venue-card .availability, .widget-card .availability { font-size: var(--t-sm); color: var(--free-ink); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.venue-card .availability::before, .widget-card .availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--free-ink); flex: none; }

/* 6. Back-office ------------------------------------------------------------------------------ */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.shell > nav { flex: 1 1 200px; max-width: 230px; background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px var(--s-md) var(--s-md); display: flex; flex-direction: column; gap: 2px;
  /* The menu stays in view, the person and the log-out button always at the bottom of the screen. */
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.shell > nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px var(--s-md); border-radius: var(--r-sm); font-size: var(--t-md); color: var(--ink-2); }
.shell > nav a:hover { background: var(--surface-2); }
.shell > nav a .icon { opacity: .75; }
.shell > nav a.active { background: var(--hover); font-weight: 600; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.shell > nav a.active .icon { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--t-md); text-decoration: none; color: var(--ink); }
.shell > nav .brand { padding: 0 var(--s-sm) 18px; }
.brand .coat, .brand .coat-img { width: 30px; height: 36px; font-size: var(--t-sm); }
.shell > nav .bottom { margin-top: auto; padding: var(--s-md) var(--s-xs) 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 6px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--hover); color: var(--ink); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; }
.who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who-text strong { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text span { font-size: var(--t-xs); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell > nav .actions { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.shell > nav .actions form { margin: 0; }
.shell > nav .language-switch .button { flex: 1; }
.shell > nav .logout { width: 100%; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.shell > nav .logout:hover { background: var(--hover); }
.language-switch { display: flex; gap: var(--s-xs); margin: 0; }
.mobile-top { display: none; }

.shell > main { flex: 999 1 560px; min-width: 0; padding: var(--s-xl) 28px; display: flex; flex-direction: column; gap: 18px; max-width: 1240px; }
.heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-md); }
.heading .eyebrow { font-size: var(--t-sm); color: var(--soft); }
.heading .eyebrow a { color: inherit; }

/* Detail page (a booking): the file on the left, decision and price in a column that stays in view. */
.detail-layout { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: var(--s-lg); align-items: flex-start; }
.detail-main { flex: 1 1 480px; min-width: 0; }
.detail-aside { flex: 0 1 340px; min-width: 280px; position: sticky; top: var(--s-lg); }
.detail-aside:not(:has(.card)) { display: none; }
@media (max-width: 860px) { .detail-aside { flex-basis: 100%; position: static; } }
details > summary { cursor: pointer; }
.card .tablewrap.flush { border: 0; border-radius: 0; margin-inline: calc(-1 * var(--s-lg)); }
.card .tablewrap.flush td:first-child, .card .tablewrap.flush th:first-child { padding-left: var(--s-lg); }
.card .tablewrap.flush td:last-child, .card .tablewrap.flush th:last-child { padding-right: var(--s-lg); }

/* Timeline calendar */
.timeline { min-width: 700px; }
.timeline .tl-row { display: grid; height: 52px; border-top: 1px solid var(--line-soft); }
.timeline .tl-head { display: grid; font-size: 11px; color: var(--soft); text-align: center; }
.timeline .tl-label { grid-row: 1; grid-column: 1; padding: 0 var(--s-md); display: flex; align-items: center; font-size: var(--t-sm); font-weight: 600; }
.timeline .tl-cell { grid-row: 1; border-left: 1px solid var(--line-soft); }
.timeline .tl-cell a { display: block; height: 100%; }
.timeline .tl-cell a:hover { background: var(--free-bg); }
.timeline .tl-bar { grid-row: 1; margin: var(--s-sm) 2px; border-radius: 6px; font-size: 11px; padding: var(--s-xs) 6px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; z-index: 1; text-decoration: none; font-weight: 600; }
.tl-bar.busy { background: var(--busy-bg); color: var(--busy-ink); }
.tl-bar.tentative { background: var(--pending-bg); color: var(--pending-ink); border: 1px solid var(--pending-line); }
.tl-bar.option { background: repeating-linear-gradient(45deg, var(--option-a), var(--option-a) 6px, var(--option-b) 6px, var(--option-b) 12px);
  color: var(--pending-ink); border: 1px dashed var(--option-line); }
.tl-bar.internal { background: var(--internal-bg); color: var(--internal-ink); border: 1px solid var(--internal-line); }
.tl-bar.closed { background: repeating-linear-gradient(135deg, var(--closed-bg), var(--closed-bg) 6px, var(--closed-b) 6px, var(--closed-b) 12px); color: var(--muted); }
.tl-bar.recurring { background: var(--line-soft); color: var(--neutral-ink); font-weight: 400; }
.timeline .tl-holidays { height: 32px; }
.timeline .tl-holidays .tl-label { font-weight: 500; color: var(--holiday); }
.timeline .tl-holidays .tl-bar { margin: 6px 2px; padding: 1px 6px; }
.tl-bar.school { background: var(--holiday-bg); color: var(--holiday); border: 1px solid var(--holiday-line); font-weight: 500; }
.timeline .tl-head .holiday { color: var(--holiday); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 2px; }
.tag.school { background: var(--holiday-bg); color: var(--holiday); }
.tag.holiday { background: var(--holiday); color: var(--surface); }
.weekend { background: var(--surface-2); }

/* Council meeting: numbered points */
.agenda-point { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.point-number { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; }

/* Check-out */
.checkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: var(--s-sm) 0; border-bottom: 1px solid var(--line-soft); }
.charge { display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "label label label" "qty unit amount"; gap: var(--s-sm) 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.charge .c-label { grid-area: label; } .charge .c-qty { grid-area: qty; } .charge .c-unit { grid-area: unit; } .charge .c-amount { grid-area: amount; }
.charge input[type="text"], .charge input[type="number"] { width: 100%; }
.sum { display: flex; justify-content: space-between; padding: var(--s-xs) 0; }
.sum.total { border-top: 1.5px solid var(--ink); margin-top: var(--s-xs); padding-top: var(--s-sm); font-weight: 700; font-size: 17px; }
.signature-pad { width: 100%; height: 180px; border: 1px dashed var(--field); border-radius: var(--r-md); background: #fff; /* white in dark mode too: the ink is dark */ touch-action: none; display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); display: block; }

/* Settings */
.settings { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.settings .preview { position: sticky; top: var(--s-lg); display: flex; flex-direction: column; gap: 10px; }
.preview-site { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--ground); }
.preview-site header { display: flex; align-items: center; gap: 10px; padding: var(--s-md) 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.preview-site header .coat, .preview-site header .coat-img { width: 28px; height: 33px; font-size: var(--t-md); }
.preview-site .hero { padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.preview-site .cta { align-self: flex-start; padding: 9px 14px; border-radius: var(--r-sm); color: #fff; font-weight: 600; font-size: var(--t-md); }
.contrast { font-size: var(--t-sm); }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .settings .preview { position: static; } }

/* Photo drop zone */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 18px;
  border: 1.5px dashed var(--field); border-radius: var(--r-md); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--hover); }
.dropzone strong { font-size: 15px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone.chosen [data-files] { color: var(--ink); font-weight: 500; }
.caption-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.caption-form input { min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--r-sm); font: inherit; font-size: var(--t-sm); }
.caption-form input + input { grid-column: 1; }
.caption-form button { grid-column: 2; grid-row: 1; }
.photo-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Phones: a top bar (municipality + the person's menu) and a tab bar at the bottom for the sections. */
@media (max-width: 700px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: revert !important; }
  .shell { flex-direction: column; flex-wrap: nowrap; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); position: sticky; top: 0; z-index: 30;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--accent); padding: 10px var(--s-lg) var(--s-sm); }
  .mobile-top .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-menu { position: relative; }
  .user-menu summary { list-style: none; cursor: pointer; }
  .user-menu summary::-webkit-details-marker { display: none; }
  .user-menu .avatar { width: 36px; height: 36px; }
  .user-menu[open] .avatar { background: var(--ink); color: var(--on-ink); }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 86vw); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow-menu); padding: var(--s-md); display: flex; flex-direction: column; gap: var(--s-sm); }
  .menu-panel > a { display: flex; align-items: center; gap: 10px; padding: var(--s-sm); border-radius: var(--r-sm); text-decoration: none; font-size: var(--t-md); }
  .menu-panel > a:hover { background: var(--hover); }
  .menu-panel .who-text { padding: 0 var(--s-sm) var(--s-sm); border-bottom: 1px solid var(--line-soft); }
  .menu-panel form { margin: 0; }

  .shell > nav { position: fixed; inset: auto 0 0 0; z-index: 30; max-width: none; height: auto; flex: none; flex-direction: row; gap: 0;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); box-shadow: var(--shadow-float); }
  .shell > nav::-webkit-scrollbar { display: none; }
  .shell > nav .brand, .shell > nav .bottom { display: none; }
  .shell > nav a { flex: 1 0 68px; max-width: 96px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px; line-height: 1.2; text-align: center; }
  .shell > nav a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .shell > nav a.active { box-shadow: inset 0 -2px 0 var(--accent); background: transparent; }
  .shell > main { width: 100%; padding: var(--s-lg) var(--s-lg) 96px; }
  h1 { font-size: var(--t-xl); }
}

/* 7. Ambience: beige ground, the village's roofs along the bottom, a line drawing per section */
.shell { background: var(--ground) url("../img/roofs.5eefdb4c51f5.svg") left bottom / 720px 180px repeat-x fixed; }
.shell > main { position: relative; isolation: isolate; }
.shell > main .heading:not(.heading ~ .heading) { min-height: 150px; align-items: flex-end; }
.section-art { position: absolute; z-index: -1; top: 0; left: 54%; transform: translateX(-50%); width: min(330px, 38%); height: auto; color: var(--art);
  pointer-events: none; stroke-width: 2.6; filter: drop-shadow(0 1px 0 rgba(22, 24, 29, .10));
  background: radial-gradient(closest-side, var(--ground) 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
@media (max-width: 700px) {
  /* Above the title, smaller, so it never sits under the text. */
  .section-art { left: auto; right: var(--s-lg); top: var(--s-sm); transform: none; width: 46%; }
  .shell > main .heading:not(.heading ~ .heading) { min-height: 0; padding-top: 104px; }
}

/* 8. Print ------------------------------------------------------------------------------------ */
@media print {
  .shell > nav, .mobile-top, .no-print, .section-art { display: none !important; }
  .shell, body { background: #fff; }
  .shell > main { padding: 0; }
  .shell > main .heading:not(.heading ~ .heading) { min-height: 0; padding-top: 0; }
}
