/* ==========================================================================
   Park map - application styles.
   Layout: top bar / filter row / [map stage | detail panel] / footer
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Author `display` rules outrank the UA stylesheet's [hidden] rule, so
   elements toggled with .hidden = true would otherwise stay visible. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

button { font: inherit; color: inherit; }

img { max-width: 100%; display: block; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}

.visually-hidden {
  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: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-md); text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; }

/* --- Top bar -------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(12px, 3vw, 28px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand__mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }

.brand__text { min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
  font-size: var(--step--1);
  color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar__spacer { flex: 1 1 auto; }

/* Mode switcher */
.modeswitch {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.modeswitch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modeswitch__btn:hover { color: var(--ink); }
.modeswitch__btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}

.flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 11px; background: var(--surface-2);
  white-space: nowrap;
}
.flag svg { width: 17px; height: 12px; border-radius: 2px; flex: none; }

.themetoggle {
  appearance: none; cursor: pointer;
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.themetoggle:hover { color: var(--ink); border-color: var(--line-strong); }
.themetoggle svg { width: 18px; height: 18px; }
.themetoggle .icon-moon { display: none; }
:root[data-theme="dark"] .themetoggle .icon-sun { display: none; }
:root[data-theme="dark"] .themetoggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .themetoggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .themetoggle .icon-moon { display: block; }
}

/* --- Filter chip row ------------------------------------------------------ */

.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.filterbar__label {
  font-size: var(--step--1);
  color: var(--ink-3);
  white-space: nowrap;
  margin-right: 2px;
  flex: none;
}
.chip {
  appearance: none; cursor: pointer;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip--clear { background: transparent; border-style: dashed; }

.resultcount {
  margin-left: auto;
  flex: none;
  font-size: var(--step--1);
  color: var(--ink-3);
  padding-left: 12px;
  white-space: nowrap;
}

/* --- Main grid ------------------------------------------------------------ */

.layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(12px, 2vw, 22px) clamp(12px, 3vw, 28px);
  align-items: start;
}

/* --- Map stage ------------------------------------------------------------ */

.stage {
  position: relative;
  background: var(--map-backdrop);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.stage__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;   /* pan and pinch are handled in map.js */
}
.stage__viewport.is-panning { cursor: grabbing; }

.stage__canvas {
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
}
.stage__canvas.is-animating { transition: transform var(--dur) var(--ease); }

.stage__img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* The base plan is a client photo, so it stays light in dark mode. Taking a
   little brightness off it stops it glaring against the dark chrome without
   touching the plot overlay, which is drawn on top. */
:root[data-theme="dark"] .stage__img { filter: brightness(0.78) saturate(0.88); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage__img { filter: brightness(0.78) saturate(0.88); }
}

.stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Plot shapes */
.plot { cursor: pointer; transition: opacity var(--dur) var(--ease); }
.plot__shape {
  fill: var(--plot-fill, var(--ok-soft));
  stroke: var(--plot-line, var(--ok));
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill var(--dur) var(--ease), stroke-width var(--dur-fast) var(--ease);
}
.plot--available { --plot-fill: color-mix(in srgb, var(--ok) 26%, transparent); --plot-line: var(--ok); }
.plot--reserved  { --plot-fill: color-mix(in srgb, var(--warn) 28%, transparent); --plot-line: var(--warn); }
.plot--sold,
.plot--booked    { --plot-fill: color-mix(in srgb, var(--gone) 26%, transparent); --plot-line: var(--gone); }

@supports not (color: color-mix(in srgb, red, blue)) {
  .plot--available { --plot-fill: var(--ok-soft); }
  .plot--reserved  { --plot-fill: var(--warn-soft); }
  .plot--sold, .plot--booked { --plot-fill: var(--gone-soft); }
}

.plot__label {
  fill: var(--plot-label);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: var(--plot-label-shadow);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.plot:hover .plot__shape { stroke-width: 3.5; }
.plot:focus { outline: none; }
.plot:focus-visible .plot__shape {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 6 3;
}
.plot.is-selected .plot__shape {
  stroke-width: 4;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Filters dim, never hide - the map keeps its shape. */
.plot.is-dimmed { opacity: var(--dimmed); pointer-events: none; }

/* Legend + hint overlays */
.stage__legend,
.stage__hint {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  font-size: var(--step--1);
}

.stage__legend { left: 12px; bottom: 12px; padding: 10px 12px; }
.legend__title {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-3); margin-bottom: 7px; font-weight: 700;
}
.legend__list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.legend__item { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend__swatch {
  width: 13px; height: 13px; border-radius: 4px; flex: none;
  border: 1.5px solid var(--sw, var(--ok));
  background: var(--sw-bg, var(--ok-soft));
}

.stage__hint {
  right: 12px; top: 12px; padding: 8px 12px; color: var(--ink-2);
  max-width: 46%;
}

/* Zoom controls */
.zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: grid; gap: 6px;
}
.zoom__btn {
  appearance: none; cursor: pointer;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  font-size: 1.1rem; line-height: 1;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.zoom__btn:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.zoom__btn:disabled { opacity: 0.45; cursor: default; }
.zoom__btn svg { width: 17px; height: 17px; }

/* --- Detail panel --------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: sticky;
  top: clamp(12px, 2vw, 22px);
}

.panel__empty {
  padding: 44px 26px;
  text-align: center;
  color: var(--ink-3);
}
.panel__empty svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--line-strong); }
.panel__empty h2 {
  font-size: var(--step-1);
  color: var(--ink-2);
  margin-bottom: 6px;
}
.panel__empty p { margin: 0; font-size: var(--step--1); }

.panel__media { position: relative; background: var(--surface-2); }
.panel__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: var(--surface-2);
}
.panel__thumbs {
  display: flex; gap: 6px; padding: 8px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.panel__thumb {
  appearance: none; padding: 0; cursor: pointer;
  width: 54px; height: 40px; flex: none;
  border: 2px solid transparent; border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-3);
}
.panel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel__thumb[aria-current="true"] { border-color: var(--accent); }

.panel__body { padding: 18px 20px 20px; }

.panel__head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 4px;
}
.panel__title { font-size: var(--step-2); letter-spacing: -0.015em; flex: 1 1 auto; }
.panel__sub { color: var(--ink-3); font-size: var(--step--1); margin-bottom: 14px; }

.badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--available { color: var(--ok);   background: var(--ok-soft);   border-color: var(--ok); }
.badge--reserved  { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.badge--sold,
.badge--booked    { color: var(--gone); background: var(--gone-soft); border-color: var(--gone); }

.panel__price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
}
.panel__priceunit {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.specgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.spec { background: var(--surface-2); padding: 11px 13px; }
.spec__k {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-weight: 700; margin-bottom: 3px;
}
.spec__v { font-size: var(--step-0); font-weight: 600; }

.feats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.feat {
  font-size: var(--step--1);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  font-weight: 500;
}

.panel__blurb {
  font-size: var(--step-0);
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.6;
}

.panel__actions { display: grid; gap: 9px; }

.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: var(--step-0);
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* --- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 14px clamp(12px, 3vw, 28px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: var(--step--1);
  color: var(--ink-3);
}
.footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer a:hover { color: var(--accent); border-color: var(--accent); }
.footer__spacer { flex: 1 1 auto; }

/* --- Enquiry modal -------------------------------------------------------- */

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 16px;
}
.modal__scrim { position: absolute; inset: 0; background: rgba(20, 18, 14, 0.55); }
.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 22px 24px 24px;
}
.modal__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.modal__title { font-size: var(--step-2); flex: 1 1 auto; letter-spacing: -0.015em; }
.modal__close {
  appearance: none; cursor: pointer; flex: none;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
}
.modal__close:hover { color: var(--ink); }
.modal__sub { color: var(--ink-3); font-size: var(--step--1); margin: 0 0 18px; }

.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: var(--step--1); font-weight: 600;
  margin-bottom: 5px; color: var(--ink-2);
}
.field .req { color: var(--gone); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.field input:focus-visible, .field textarea:focus-visible { box-shadow: var(--focus); }
.field textarea { min-height: 88px; resize: vertical; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field__err { color: var(--gone); font-size: var(--step--1); margin-top: 4px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--gone); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formnote { font-size: var(--step--1); color: var(--ink-3); margin: 12px 0 0; }

.formstatus { margin-top: 14px; }
.formstatus__box {
  border-radius: var(--r-md); padding: 13px 15px; font-size: var(--step--1);
  border: 1px solid transparent;
}
.formstatus--error { background: var(--gone-soft); border-color: var(--gone); color: var(--ink); }
.formstatus--error strong { color: var(--gone); }
.formstatus__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.success { text-align: center; padding: 18px 6px 6px; }
.success__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok);
  border: 2px solid var(--ok);
}
.success__icon svg { width: 28px; height: 28px; }
.success h3 { font-size: var(--step-2); margin-bottom: 8px; }
.success p { color: var(--ink-2); margin: 0 0 8px; }
.success__ref {
  display: inline-block; margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step--1);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: var(--r-sm); color: var(--ink-2);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 920px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .stage__hint { display: none; }
  .topbar { gap: 10px; }
  .brand__tag { display: none; }
  .modeswitch { order: 3; width: 100%; }
  .modeswitch__btn { flex: 1 1 0; }
  .topbar__spacer { display: none; }
  .flag { margin-left: auto; }
  .field__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* The plan is only ~230px tall here, so the legend has to give ground. */
  .stage__legend { left: 8px; bottom: 8px; padding: 6px 8px; font-size: 0.72rem; }
  .legend__title { font-size: 0.6rem; margin-bottom: 4px; }
  .legend__swatch { width: 10px; height: 10px; }
  .legend__list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; }
  .zoom { right: 8px; bottom: 8px; }
  .panel__price { font-size: var(--step-2); }
}

@media print {
  .filterbar, .zoom, .modeswitch, .themetoggle, .stage__hint { display: none; }
  .layout { grid-template-columns: 1fr; }
}

/* --- Static listing ------------------------------------------------------- */
/* Prerendered into the HTML at build time. This is what a visitor gets before
   (or without) JavaScript, so it must stand on its own, not read as a fallback. */

.listing {
  padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 28px) clamp(28px, 5vw, 52px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.listing__title {
  font-size: var(--step-2);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.listing__intro {
  margin: 0 0 26px;
  color: var(--ink-2);
  max-width: 62ch;
}

.listing__group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 26px 0 12px;
}
.listing__group:first-of-type { margin-top: 0; }
.listing__count {
  font-size: 0.7rem;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  letter-spacing: 0.04em;
}

.listing__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.listing__link {
  display: grid;
  grid-template-columns: 1fr auto;
  /* The name gets a full-width row of its own; squeezing it beside the badge
     wrapped "Touring pitch 1" onto two lines at every realistic card width. */
  grid-template-areas:
    "name  name"
    "meta  meta"
    "price badge";
  align-items: start;
  gap: 2px 12px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.listing__link:hover { border-color: var(--accent); background: var(--surface-3); }

.listing__name { grid-area: name; font-weight: 600; }
.listing__meta { grid-area: meta; font-size: var(--step--1); color: var(--ink-3); }
.listing__price {
  grid-area: price;
  align-self: end;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.listing__unit {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.listing__link .badge { grid-area: badge; align-self: end; justify-self: end; }

/* --- Enquiry: demonstration confirmation ---------------------------------- */
/* Deliberately NOT styled as a success. A sales demo that fakes a sent enquiry
   is worse than one that admits it is a demo. */

.demo__flag {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  color: var(--ink);
  font-size: var(--step--1);
  margin-bottom: 16px;
}
.demo__flag strong { color: var(--warn); }
.demo__flag svg { width: 20px; height: 20px; flex: none; color: var(--warn); }

.demo__body { margin: 0 0 18px; color: var(--ink-2); }

.demo__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.demo__table th,
.demo__table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.demo__table tr:last-child th,
.demo__table tr:last-child td { border-bottom: 0; }
.demo__table th {
  width: 38%;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  white-space: nowrap;
}
.demo__table td { word-break: break-word; }

.demo__caption {
  font-size: var(--step--1);
  color: var(--ink-3);
  margin: 12px 0 0;
}
