@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&family=Cinzel:wght@500;600;700&display=swap');

:root {
  --wine: #7a2331;
  --wine-dark: #551621;
  --rose: #d98a93;
  --rose-light: #f3dde0;
  --olive: #5c6b42;
  --olive-dark: #333d24;
  --gold: #b98a3e;
  --ink: #2b2420;
  --bg: #faf3ea;
  --card: #fffbf5;
  --line: rgba(43, 36, 32, 0.14);
  --sage: #b98a3e;
  --cream: #f3ead9;
  --pattern-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='%23000000' fill-opacity='0.05' stroke='%23000000' stroke-opacity='0.11' stroke-width='0.5'%3E%3Ccircle cx='50' cy='37' r='10'/%3E%3Ccircle cx='63' cy='50' r='10'/%3E%3Ccircle cx='50' cy='63' r='10'/%3E%3Ccircle cx='37' cy='50' r='10'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-utility: 'Cinzel', 'Iowan Old Style', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keeps the footer pinned to the bottom of the viewport on short pages
   (e.g. Čím přispět with an empty list) instead of it sitting right
   under the header with a jarring gap. */
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--wine-dark);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.font-display { font-family: var(--font-display); }
.font-utility { font-family: var(--font-utility); }

a { color: inherit; }

::selection { background: var(--rose); color: var(--wine-dark); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout shell ---------- */
.shell {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 243, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--wine-dark);
}

.nav-link {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  padding: 0.4rem 0;
  position: relative;
  transition: opacity 200ms ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- grain texture ---------- */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--wine-dark);
  background-image: var(--pattern-diamond);
  background-size: 100px 100px;
  background-repeat: repeat;
  color: var(--cream);
}

.hero-eyebrow {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cream);
  padding-bottom: 0.08em;
  white-space: nowrap;
}

/* Same display typography as .hero-names, but for headings that should be
   free to wrap onto multiple lines (error pages) rather than force nowrap. */
.page-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--cream);
}

.hero-amp {
  color: var(--sage);
  font-weight: 400;
  font-size: 0.7em;
  padding: 0 0.12em;
  display: inline-block;
}

.hero-divider {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-sprig {
  color: var(--sage);
  opacity: 0.85;
}

/* ---------- hero meta block (date/venue, badge, countdown) ----------
   A shared max-content column so these rows all match the width of
   whichever is naturally widest, instead of a guessed fixed value. */
.hero-meta-block {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
}

/* ---------- hero detail row (date · venue) ---------- */
.hero-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.9vw, 1.75rem);
  color: var(--cream);
}
.hero-detail .rule { width: 1px; height: 1.6em; background: rgba(243, 234, 217, 0.3); }

/* ---------- hero emblem ----------
   A compact ring medallion sitting above the names, opening the hero
   as a single centered composition instead of a two-column layout. */
.hero-emblem {
  position: relative;
  width: min(28vw, 132px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(185, 138, 62, 0.5);
}
.hero-emblem::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(185, 138, 62, 0.32);
}
.hero-emblem-glow {
  position: absolute;
  inset: -55%;
  z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(185, 138, 62, 0.4), transparent 70%);
  pointer-events: none;
}
.hero-emblem-img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(20, 8, 10, 0.5));
}

/* ---------- polaroid clothesline ----------
   Pins sit exactly on the hero's own diagonal seam (same box, same edge)
   instead of drawing a second line — the existing cut IS the line. */
.hero-clothesline {
  position: relative;
  z-index: 5;
  margin-top: -96px;
  pointer-events: none;
}
.clothesline-wire {
  display: block;
  position: relative;
}
.polaroid {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  background: #fdfaf3;
  padding: 9px 9px 28px;
  border-radius: 2px;
  box-shadow: 0 18px 30px -14px rgba(20, 8, 10, 0.55), 0 3px 6px rgba(20, 8, 10, 0.25);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.04) translateY(-4px) !important;
  box-shadow: 0 24px 36px -14px rgba(20, 8, 10, 0.6), 0 4px 8px rgba(20, 8, 10, 0.3);
  z-index: 5;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.polaroid-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d29a, #b98a3e 65%, #86611d);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* ---------- diagonal section transition ---------- */
.hero-diagonal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: var(--bg);
  clip-path: polygon(0% 100%, 100% 45%, 100% 100%);
}
@media (min-width: 768px) {
  .hero-diagonal { height: 96px; }
}

/* ---------- deadline badge ---------- */
.badge-deadline {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: var(--font-utility);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(243, 234, 217, 0.35);
  border-bottom: 1px solid rgba(243, 234, 217, 0.35);
}
.badge-deadline .ring-icon { color: var(--gold); flex-shrink: 0; width: 24px; height: 24px; }

/* ---------- countdown ---------- */
.countdown-heading {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--sage);
  margin-bottom: 1rem;
}
.countdown-panel {
  position: relative;
  display: inline-flex;
  padding: 1.3rem 2.4rem;
  border: 1px solid rgba(185, 138, 62, 0.45);
  border-radius: 3px;
  background-color: rgba(243, 234, 217, 0.02);
  background-image: linear-gradient(180deg, rgba(243, 234, 217, 0.08), rgba(243, 234, 217, 0.015)), var(--pattern-diamond);
  background-size: auto, 64px 64px;
  box-shadow: 0 16px 30px -20px rgba(20, 8, 10, 0.65), inset 0 0 0 1px rgba(185, 138, 62, 0.14);
}
.countdown-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  color: var(--gold);
  pointer-events: none;
}
.countdown-corner.tl { top: 5px; left: 5px; }
.countdown-corner.tr { top: 5px; right: 5px; transform: scaleX(-1); }
.countdown-corner.bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
.countdown-corner.br { bottom: 5px; right: 5px; transform: scale(-1, -1); }
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.countdown-unit { text-align: center; }
.countdown-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.countdown-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.3rem, 5.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
}
.countdown-label {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- section framing ---------- */
.section { position: relative; padding: 5rem 0; }
.section-alt {
  background-color: var(--wine-dark);
  background-image: var(--pattern-diamond);
  background-size: 100px 100px;
  background-repeat: repeat;
  color: #f2e6e0;
}
.section-alt h2, .section-alt h3 { color: var(--cream); }

.eyebrow {
  font-family: var(--font-utility);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- trail signature element ----------
   A grid strip runs alongside the content: a dashed "trail" line in the
   left rail with a waypoint marker per section, evoking a ranch path map. */
.trail-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .trail-grid { grid-template-columns: 2rem 1fr; column-gap: 2rem; }
}

/* The rail + waypoint markers are a desktop flourish — on narrow screens
   they eat into limited width and skew everything off-center, so they're
   dropped entirely below md and content runs full-width instead. */
.trail-line-grid {
  display: none;
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: center;
  width: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 13px);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .trail-line-grid { display: block; }
}
.trail-line-grid.is-visible { transform: scaleY(1); }

.trail-point-grid {
  display: none;
  grid-column: 1;
  justify-self: center;
  align-self: start;
  margin-top: 0.3rem;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 500ms ease 150ms, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms;
}
@media (min-width: 768px) {
  .trail-point-grid { display: flex; }
}
.trail-point-grid svg { width: 100%; height: 100%; }
.trail-point-grid.is-visible { opacity: 1; transform: scale(1) rotate(0deg); }
.trail-point-fill { fill: var(--bg); }
.section-alt .trail-point-fill { fill: var(--wine-dark); }

/* ---------- cards ---------- */
.field-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 1px 2px rgba(43, 36, 32, 0.04), 0 12px 28px -18px rgba(85, 22, 33, 0.35);
}

/* ---------- calendar add-to-calendar prompt ---------- */
.calendar-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  background: var(--roselight);
  border: 1px solid rgba(185, 138, 62, 0.3);
  border-radius: 1.1rem;
  padding: 1.25rem 1.5rem;
}
.calendar-cta-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1.5px solid var(--gold);
  color: var(--wine);
}

.idea-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(85, 22, 33, 0.45);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, background 180ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--wine);
  color: #fbeee7;
  box-shadow: 0 10px 24px -10px rgba(122, 35, 49, 0.65);
}
.btn-primary:hover { background: var(--wine-dark); box-shadow: 0 12px 28px -8px rgba(122, 35, 49, 0.75); }

.btn-ghost {
  background: transparent;
  border-color: rgba(43, 36, 32, 0.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(248, 236, 226, 0.4);
  color: #f8ece2;
}
.btn-ghost-light:hover { border-color: #f8ece2; background: rgba(248, 236, 226, 0.08); }

.btn-vote {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn-vote:hover { border-color: var(--olive); }
.btn-vote:active { transform: scale(0.92); }
.btn-vote.is-active-up { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn-vote.is-active-down { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ---------- forms ---------- */
.field-label {
  display: block;
  font-family: var(--font-utility);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine-dark);
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(92, 107, 66, 0.15);
  outline: none;
}

.choice-card {
  display: block;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  transition: border-color 160ms ease, background 160ms ease;
}
.choice-card:has(input:checked) {
  border-color: var(--wine);
  background: var(--rose-light);
}
.choice-card:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }

/* ---------- ranked preference list ----------
   Alcohol/non-alcohol legends are different lengths and wrap differently
   at md width, which used to push one rank-list lower than the other.
   Subgrid keeps the legend/hint/list rows aligned across both columns. */
@media (min-width: 768px) {
  .rank-groups { grid-template-rows: auto auto 1fr; }
  .rank-fieldset {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
}
.rank-list { display: flex; flex-direction: column; gap: 0.6rem; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.6rem 0.7rem;
  touch-action: none;
}
.rank-item.is-dragging {
  position: relative;
  z-index: 5;
  background: var(--card);
  border-color: var(--wine);
  box-shadow: 0 14px 28px -12px rgba(85, 22, 33, 0.4);
  cursor: grabbing;
}
body.is-sorting,
body.is-sorting * {
  cursor: grabbing !important;
  user-select: none;
}
.rank-item.is-drop-target { border-color: var(--olive); }
.drag-handle {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0.35;
  cursor: grab;
  touch-action: none;
}
.drag-handle:hover { opacity: 0.7; }
.rank-item.is-dragging .drag-handle { opacity: 1; cursor: grabbing; color: var(--wine); }
.rank-index {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--wine);
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}
.rank-name { flex: 1; font-weight: 500; }
.rank-arrows { display: flex; gap: 0.3rem; }
.rank-arrow {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.rank-arrow:hover:not(:disabled) { border-color: var(--olive); }
.rank-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------- progress bar (contributions) ---------- */
.progress-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(43, 36, 32, 0.09);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive), var(--wine));
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- map shortcut buttons ---------- */
.map-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.map-btn:hover { border-color: var(--wine); background: var(--rose-light); transform: translateY(-1px); }
.map-btn svg { flex-shrink: 0; }

/* ---------- custom map frame ---------- */
.map-custom {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 0.65rem;
  box-shadow: 0 20px 40px -24px rgba(85, 22, 33, 0.4);
}
.map-custom-inner {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  filter: sepia(12%) saturate(78%) contrast(97%) brightness(1.02);
  background: var(--bg);
}
.map-custom-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
#map-embed { width: 100%; height: 100%; }
.map-custom-inner .leaflet-control-attribution {
  background: rgba(255, 251, 245, 0.75);
  font-family: var(--font-utility);
  font-size: 0.6rem;
  color: var(--ink);
  padding: 1px 6px;
}
.map-custom-inner .leaflet-control-attribution a { color: var(--wine); }
.map-pin-icon { filter: drop-shadow(0 4px 6px rgba(85, 22, 33, 0.45)); }
.map-custom-inner .leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: 0.6rem !important;
  overflow: hidden;
  box-shadow: 0 8px 18px -10px rgba(20, 8, 10, 0.45);
}
.map-custom-inner .leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  background: var(--card) !important;
  color: var(--wine-dark) !important;
  font-family: var(--font-utility) !important;
}
.map-custom-inner .leaflet-control-zoom a:hover { background: var(--rose-light) !important; }
.map-custom-inner .leaflet-control-zoom-in { border-bottom: 1px solid var(--line) !important; }
.map-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--gold);
  pointer-events: none;
}
.map-corner.tl { top: 0.7rem; left: 0.7rem; }
.map-corner.tr { top: 0.7rem; right: 0.7rem; transform: scaleX(-1); }
.map-corner.bl { bottom: 0.7rem; left: 0.7rem; transform: scaleY(-1); }
.map-corner.br { bottom: 0.7rem; right: 0.7rem; transform: scale(-1, -1); }
.map-caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--wine-dark);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.35);
}
.map-caption svg { color: var(--wine); flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wine-dark);
}
.faq-question .faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[data-open="true"] .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 1.4rem 1.3rem; color: var(--ink); opacity: 0.75; }

/* ---------- vertical corner label (structure motif) ---------- */
.vlabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vlabel::after {
  content: '';
  width: 1px;
  height: 2.5rem;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- footer ---------- */
.site-footer {
  background-color: var(--wine-dark);
  background-image: var(--pattern-diamond);
  background-size: 100px 100px;
  background-repeat: repeat;
  color: rgba(248, 236, 226, 0.85);
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: #fbeee7;
  box-shadow: 0 10px 24px -10px rgba(122, 35, 49, 0.65);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--wine-dark); }
.back-to-top:active { transform: scale(0.94); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Without JS, nothing ever adds .is-visible — keep content visible by default. */
.no-js .reveal,
.no-js .trail-line-grid,
.no-js .trail-point-grid {
  opacity: 1;
  transform: none;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  background: var(--ink);
  color: #f8ece2;
  font-family: var(--font-utility);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1.3rem;
  border-radius: 0.8rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: 60;
  max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--wine); }
