/* rosenbachweg.de – one stylesheet, no build step.
   Colours follow the old site and the logo: white, grey text (#444), logo blue (#80aee2) as
   accent, coral (#f6635e) for badges. Every colour token holds a light and a dark value via
   light-dark(); `color-scheme` picks one. It follows the device unless the theme switch set
   data-theme="light|dark" on <html> (see the inline script in _layout/top.html). */

/* Montserrat (variable, Latin subset) for headings, like the old site. Self-hosted, so no
   requests to Google. Source: @fontsource-variable/montserrat 5.3.0, licence: fonts/OFL.txt */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-wght.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;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --bg:             light-dark(#ffffff, #1b1c1e);
  --surface:        light-dark(#ffffff, #242629);
  --surface-2:      light-dark(#f6f6f6, #2c2f33);
  --head-bg:        light-dark(#eaf2fb, #22272e);
  --text:           light-dark(#444444, #e4e4e4);
  --muted:          light-dark(#666666, #a8a8a8);
  --border:         light-dark(#e6e6e6, #3a3d42);
  --primary:        light-dark(#2a6fbe, #8fbbe9);  /* links, buttons (contrast ≥ 4.5) */
  --primary-strong: light-dark(#255fa2, #b7d3f2);
  --primary-soft:   light-dark(#eaf2fb, #26303b);
  --on-primary:     light-dark(#ffffff, #1b1c1e);
  --accent:         #80aee2;                         /* logo blue: lines and decoration only */
  --coral:          light-dark(#b8322c, #ff8a84);
  --coral-soft:     light-dark(#fde7e6, #3a2526);
  --ok:             light-dark(#2f7d4f, #6fcf9b);
  --shadow:    0 1px 2px light-dark(rgb(0 0 0 / .05), rgb(0 0 0 / .3)), 0 4px 16px light-dark(rgb(0 0 0 / .05), rgb(0 0 0 / .25));
  --shadow-lg: 0 10px 40px light-dark(rgb(0 0 0 / .14), rgb(0 0 0 / .5));
  --logo: url("/img/logo.svg");
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 72rem;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Non-colour differences of the dark theme (light-dark() only takes colours). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --logo: url("/img/logo-dark.svg"); --sun: inline; --moon: none; }
}
:root[data-theme="dark"] { --logo: url("/img/logo-dark.svg"); --sun: inline; --moon: none; }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 1.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
mark.missing { background: #ff0; color: #000; font-weight: 700; padding: 0 .3em; }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ── Buttons & small parts ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.2em; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-strong); color: var(--on-primary); transform: translateY(-1px); }
.icon-button {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text);
  font-size: 1.15rem; cursor: pointer; transition: background .15s;
}
.icon-button:hover { background: var(--border); }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.badge {
  display: inline-block; padding: .15em .65em; border-radius: 999px;
  font-size: .8rem; font-weight: 650; white-space: nowrap;
}
.badge-vacant { background: var(--coral-soft); color: var(--coral); }
.intern-hint { color: var(--muted); font-size: .92em; font-style: italic; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--muted); max-width: 46rem; }

/* Logo: a background image from the --logo token, so it follows the theme
   and only the variant that is shown gets downloaded. */
.logo { display: block; flex: none; width: 6.5rem; aspect-ratio: 720 / 216; background: var(--logo) center / contain no-repeat; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { font-family: var(--font-head); display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.site-nav { order: 1; margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-head);
  display: block; padding: .45rem .8rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.site-nav .lang-switch { border: 1px solid var(--border); font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.menu-toggle { display: none; }
.theme-toggle { flex: none; order: 2; margin-left: .5rem; }
html:not(.js) .theme-toggle { display: none; }
.theme-toggle .icon-sun { display: var(--sun, none); }
.theme-toggle .icon-moon { display: var(--moon, inline); }

@media (max-width: 860px) {
  .theme-toggle { order: 0; margin-left: auto; }
  .js .menu-toggle {
    order: 3; display: grid; place-items: center; margin-left: .5rem;
    width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
    background: var(--surface-2); cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 1.2rem; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* without JS the nav simply wraps below the brand */
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: .75rem; flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }

  .js .site-nav {
    position: fixed; inset: 4rem 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: .5rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-.5rem); opacity: 0; visibility: hidden;
    transition: transform .2s, opacity .2s, visibility 0s .2s;
  }
  .js .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .2s, opacity .2s; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .75rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .js .site-nav .lang-switch { align-self: flex-start; }
}

/* ── Page head & prose ──────────────────────────────────────────────────── */
.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background: var(--head-bg);
  border-bottom: 3px solid var(--accent);
}
.page-head .lead { margin: 0; }
.page-body { padding-block: 2.5rem 4rem; }
.prose { max-width: 46rem; }
.prose:empty { display: none; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose a.role-link, .prose a.doc-inline { font-weight: 600; }
.prose .mail-link { white-space: nowrap; }

.callout {
  margin: 1.75rem 0; padding: 1.1rem 1.4rem;
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}
.callout > :last-child { margin-bottom: 0; }

.prose ul.benefits { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: none; }
@media (min-width: 700px) { .prose ul.benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; gap: 1rem; margin: 0; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.benefits li > .icon {
  width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
}
.benefits p { margin: .25rem 0 0; color: var(--muted); font-size: .97rem; }
.prose:has(.benefits) { max-width: 52rem; }

.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.5rem 3.5rem; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: var(--surface); font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .3rem;
  width: 2px; background: var(--border);
}
.steps p { margin: .25rem 0 0; color: var(--muted); }

/* ── Home ───────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(32 36 42 / .86) 0%, rgb(32 36 42 / .62) 50%, rgb(32 36 42 / .2) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero .eyebrow { color: rgb(255 255 255 / .8); }
.hero h1 { max-width: 18ch; }
.hero .lead { color: rgb(255 255 255 / .9); margin-bottom: 2rem; }
.hero .btn-hero { font-size: 1.05rem; padding: .85em 1.5em; }

.tiles {
  display: grid; gap: 1rem; margin-top: -2.5rem; position: relative;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.tile {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: .9rem; row-gap: .15rem; align-items: center;
  padding: 1.2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tile-icon {
  grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 1.3rem;
}
.tile-title { font-weight: 700; }
.tile-text { grid-column: 2; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.tile-arrow { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); transition: transform .2s, color .2s; }
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--primary); }

.home-intro { display: grid; gap: 2.5rem; padding-block: 3.5rem 4rem; align-items: start; }
@media (min-width: 960px) { .home-intro { grid-template-columns: 1fr 1fr; } }
.community {
  padding: 1.75rem; border-radius: var(--radius); background: var(--primary-soft);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.community h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: 1.35rem; }
.community h2 .icon { color: var(--ok); }
.community .chat { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.community .chat-link {
  padding: .85em 1.5em; border-radius: 999px; background: var(--ok); color: var(--on-primary);
  font-size: 1.05rem; text-decoration: none; transition: transform .15s, filter .15s;
}
.community .chat-link:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--on-primary); }
.community .chat-qr { width: 180px; margin: 0; }
.community .intern-hint { display: flex; gap: .4rem; align-items: baseline; margin-bottom: 0; }

/* ── SV directory ───────────────────────────────────────────────────────── */
.sv { margin-top: 2rem; }
.sv-hint { display: flex; gap: .4rem; align-items: center; margin: 0 0 1.5rem; }
.role-group { margin-top: 2.25rem; scroll-margin-top: 5rem; }
.role-group h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.roles { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: .97rem; }
.roles thead th { background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: .55rem .9rem; }
.roles tbody tr { border-top: 1px solid var(--border); scroll-margin-top: 5rem; }
.roles tbody tr:target { background: var(--primary-soft); box-shadow: inset 4px 0 0 var(--accent); }
.roles th[scope="row"], .roles td { padding: .7rem .9rem; vertical-align: top; text-align: left; }
.role-title { font-weight: 650; width: 24%; }
.role-title .badge { margin-top: .3rem; }
.role-duty summary { cursor: pointer; color: var(--text); }
.role-duty summary::marker { color: var(--muted); }
.role-duty details[open] summary { margin-bottom: .4rem; }
.duties { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.duties li + li { margin-top: .2em; }
.role-chat { margin: .35rem 0 0; font-size: .9rem; }
.chat { display: inline-block; }
.chat-link { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
/* QR code drawn by site.js; without JS the empty box stays hidden */
.chat-qr { display: none; margin-top: .5rem; width: 140px; aspect-ratio: 1; background: #fff; border-radius: 6px; }
.js .chat-qr { display: block; }
.chat-qr svg { display: block; width: 100%; height: 100%; fill: #000; }
.role-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.role-who { width: 26%; }
.holder-note { font-weight: 700; color: var(--primary); }
.holder-room { color: var(--muted); font-size: .88em; white-space: nowrap; }
.role-mail { width: 1%; text-align: right; }
.mail-icon {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); text-decoration: none;
}
.mail-icon:hover { background: var(--primary); color: var(--on-primary); }
@media (max-width: 640px) {
  .roles thead { display: none; }
  .roles tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .8rem .9rem; }
  .roles th[scope="row"], .roles td { display: block; padding: 0; width: auto; }
  .role-title, .role-duty, .role-who { grid-column: 1; }
  .role-mail { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .role-who { font-size: .93rem; }
}
.more-link { margin-top: 3rem; }
.more-link a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }

/* ── Rooms ──────────────────────────────────────────────────────────────── */
.rooms { margin-top: 1rem; }
.room-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.room-card-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.room-card-link:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.room-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-card-link:hover .room-card-media img { transform: scale(1.05); }
.no-photo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; }
.no-photo .icon { font-size: 2rem; }
.photo-count {
  position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .82rem; font-weight: 600;
}
.room-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.room-card-body h3 { margin-bottom: .3rem; }
.room-location { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.room-summary { font-size: .95rem; margin-bottom: .8rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .9rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: .8rem; font-weight: 600;
}
.room-more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; font-size: .93rem; }
.room-card-link:hover .room-more .icon { transform: translateX(3px); }
.room-more .icon { transition: transform .2s; }

/* Dialog */
.room-dialog {
  width: min(56rem, 100% - 2rem); max-height: min(92vh, 100%); padding: 0;
  border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain;
}
.room-dialog:focus-visible { outline: none; }
.room-dialog::backdrop { background: rgb(20 22 26 / .6); backdrop-filter: blur(3px); }
.room-dialog[open] { animation: dialog-in .25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(1rem) scale(.98); } }
@media (max-width: 640px) {
  .room-dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
}
.dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.25rem 1rem 1.5rem; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.dialog-head h2 { margin: 0; }
.dialog-head .eyebrow { display: flex; align-items: center; gap: .3rem; margin-bottom: .2rem; text-transform: none; letter-spacing: 0; }
.dialog-head form { margin: 0; }
.room-detail { padding: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .room-detail { grid-template-columns: 1.4fr 1fr; padding: 1.75rem; }
  .room-detail .prose { grid-column: 1; grid-row: 1 / span 2; }
  .room-detail .facts { grid-column: 2; grid-row: 1; }
  .room-detail .room-section { grid-column: 2; }
  .room-detail .room-section.rules { grid-column: 1 / -1; }
}
.facts { margin: 0; padding: 1rem 1.1rem; background: var(--surface-2); border-radius: var(--radius-sm); display: grid; gap: .8rem; align-self: start; }
.facts:empty { display: none; }
.facts dt { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: .15rem 0 0; }
.room-section h3 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.inventory { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.inventory li { display: flex; gap: .5rem; align-items: baseline; }
.inventory .icon { color: var(--ok); }
.rules { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--coral-soft); }
.rules h3 { color: var(--coral); }
.rules ul { margin: 0; padding-left: 1.2em; }

/* Gallery */
.gallery { position: relative; background: #000; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-zoom img { width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; object-fit: cover; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; translate: 0 -50%;
  background: rgb(255 255 255 / .85); color: #444; box-shadow: var(--shadow);
}
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-prev:hover, .gallery-next:hover { background: #fff; }
.gallery-dots { position: absolute; bottom: .75rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.gallery-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(255 255 255 / .5); transition: background .2s, transform .2s; }
.gallery-dots span.is-active { background: #fff; transform: scale(1.25); }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: rgb(0 0 0 / .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.lightbox form { position: absolute; top: 1rem; right: 1rem; margin: 0; }
.lightbox .icon-button { background: rgb(255 255 255 / .15); color: #fff; }
.lightbox .icon-button:hover { background: rgb(255 255 255 / .3); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox[data-single] .lightbox-prev, .lightbox[data-single] .lightbox-next { display: none; }

/* ── Documents ──────────────────────────────────────────────────────────── */
.doc-groups { display: grid; gap: 2.5rem; margin-top: 2rem; }
.doc-group { scroll-margin-top: 6rem; }
.doc-group > p { color: var(--muted); max-width: 46rem; }
.doc-group:target h2 { color: var(--primary); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: 46rem; }
.doc {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.doc:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--shadow); }
.doc-icon {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 10px; background: var(--coral-soft); color: var(--coral); font-size: 1.2rem;
}
.doc-text { display: flex; flex-direction: column; min-width: 0; }
.doc-title { font-weight: 600; }
.doc-meta { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .85rem; }
.doc-action { margin-left: auto; color: var(--muted); font-size: 1.2rem; }
a.doc:hover .doc-action { color: var(--primary); }
.doc.is-locked { opacity: .65; background: var(--surface-2); }
.doc.is-locked .doc-icon { background: var(--border); color: var(--muted); }
.doc-inline.is-locked { color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: auto; padding-block: 2.5rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border); font-size: .95rem; }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
.footer-brand { display: flex; gap: .9rem; align-items: center; }
.footer-brand p, .footer-contact p { margin: 0; color: var(--muted); }
.net-status {
  display: flex; align-items: center; gap: .5rem; margin: 2rem 0 0; padding-top: 1.2rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem;
}
.net-status.is-internal { color: var(--ok); }

/* ── Error page ─────────────────────────────────────────────────────────── */
.error-page { padding-block: clamp(3rem, 10vw, 7rem); text-align: center; }
.error-page .lead { margin-inline: auto; }
.error-code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin-bottom: .5rem; color: var(--accent); }

