/* ──────────────────────────────────────────────────────────────────────────
   Josefina & Fredrik · 12 juni 2027
   Skandinaviskt naturnära — Instrument Serif + Manrope
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #fbfaf7;
  --ink:       #1a1a1a;
  --muted:     #6b6b6b;
  --soft:      #a8a29a;
  --paper:     #f4efe6;
  --sand:      #d4c5b0;
  --accent:    #6e5a3d;
  --line:      rgba(26, 26, 26, 0.12);
  --hair:      rgba(26, 26, 26, 0.06);

  --serif:     "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  --sans:      "Manrope", -apple-system, system-ui, sans-serif;

  --pad:       clamp(20px, 4vw, 56px);
  --max:       1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Type helpers ─────────────────────────────────────────────────────── */
.serif    { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.eyebrow  {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.wrap         { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow  { max-width: 760px;      margin: 0 auto; padding-inline: var(--pad); }
.lead         { font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 56ch; margin: 0; }
.lead-narrow  { max-width: 60ch; margin: 0 auto; }
.lead-center  { text-align: center; margin: 0 auto 32px; }

/* ── Top nav ──────────────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--bg) 92%, transparent), transparent);
  transition: background .25s ease, padding .25s ease, border-color .25s ease;
}
.top-nav.scrolled {
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top-mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.top-links {
  display: flex; gap: 28px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.top-links a { opacity: 0.7; transition: opacity .2s; }
.top-links a:hover { opacity: 1; }
.top-lang {
  display: inline-flex; align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.top-lang button {
  background: none; border: 0; padding: 4px 8px;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
}
.top-lang button.active { color: var(--ink); }
.top-lang span { color: var(--line); margin: 0 2px; }

@media (max-width: 760px) {
  .top-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px var(--pad) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 56px;
  justify-items: center;
}
.hero-eyebrow {
  letter-spacing: 0.4em;
}
.hero-names {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
/* Blazor's <FocusOnNavigate Selector="h1"> focuses this heading on load for
   screen-reader/keyboard users; the heading isn't tabbable, so suppress the
   programmatic focus ring (equivalent to the template's app.css h1:focus rule). */
.hero-names:focus {
  outline: none;
}
.hero-name {
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.95;
}
.hero-amp {
  font-style: italic;
  font-size: clamp(36px, 7vw, 96px);
  color: var(--accent);
  margin: 8px 0;
}
.hero-meta {
  display: grid;
  gap: 36px;
  justify-items: center;
}
.hero-date {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.hero-date-big {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0.02em;
}
.hero-date-line {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-count {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 220px;
}
.hero-count-num {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
}
.hero-count-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.hero-scroll svg { opacity: 0.6; }
.hero-scroll:hover { color: var(--ink); }

/* ── Section frame ────────────────────────────────────────────────────── */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section .wrap { padding-inline: var(--pad); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
.sec-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
}
.sec-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}
.sec-bar {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--ink);
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.sec-title em {
  font-style: italic;
  color: var(--accent);
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .sec-meta { padding-top: 0; }
}

/* ── Placeholder image ────────────────────────────────────────────────── */
.ph-img {
  position: relative;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
  border-radius: 2px;
}
.ph-img svg { display: block; width: 100%; height: 100%; }
.ph-label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  padding: 6px 10px;
  color: var(--muted);
}

/* ── Place section ────────────────────────────────────────────────────── */
.place-grid {
  display: grid;
  /* grid-template-columns: 1.2fr 1fr; */ /* återställ när egna bilder är på plats */
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.place-image .ph-img { aspect-ratio: 4 / 5; }
.venue-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}
.venue-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--bg);
  display: grid;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.venue-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.venue-card-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.venue-card-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
}
.venue-card-meta { font-size: 14px; color: var(--ink); margin-top: 4px; }
.venue-card-hint { font-size: 13px; color: var(--muted); }

.travel { border-top: 1px solid var(--line); padding-top: 48px; }
.travel-title {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.travel-list { display: grid; gap: 0; }
.travel-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.travel-row:last-child { border-bottom: 0; }
.travel-mode {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.travel-body { font-size: 15px; line-height: 1.6; color: var(--ink); }

@media (max-width: 860px) {
  .place-grid { grid-template-columns: 1fr; gap: 36px; }
  .venue-cards { grid-template-columns: 1fr; }
  .travel-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
}

/* ── Dress section ────────────────────────────────────────────────────── */
.dress-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.dress-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.dress-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.55;
}
.dress-list .dot {
  display: inline-block;
  width: 6px; height: 6px; flex: 0 0 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
}
.dress-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.swatch span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  mix-blend-mode: multiply;
}

@media (max-width: 860px) {
  .dress-grid { grid-template-columns: 1fr; gap: 32px; }
  .dress-swatches { grid-template-columns: repeat(3, 1fr); }
}

/* ── Evening / schedule ───────────────────────────────────────────────── */
.evening-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.sched-row {
  display: grid;
  grid-template-columns: 110px 1fr 2fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.sched-time {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.005em;
  font-feature-settings: "tnum" on;
}
.sched-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  align-self: center;
}
.sched-label {
  font-size: 15px;
  color: var(--ink);
}
.evening-note {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  max-width: 60ch;
}
.info-tbd {
  padding: 32px 0;
  max-width: 44ch;
  color: rgba(41, 38, 27, 0.7);
}

@media (max-width: 860px) {
  .evening-grid { grid-template-columns: 1fr; gap: 24px; }
  .sched-row { grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; }
  .sched-rule { display: none; }
  .sched-time { font-size: 20px; }
}

/* ── Stay section ─────────────────────────────────────────────────────── */
.stay-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stay-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--bg);
  display: grid;
  gap: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.stay-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.stay-card-head { display: grid; gap: 8px; }
.stay-card-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}
.stay-card-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stay-card-note { font-size: 14px; line-height: 1.6; color: var(--ink); }
.stay-card-price { color: var(--ink); white-space: nowrap; }

/* ── Locked schedule / prices notice ──────────────────────────────────── */
.section-locked .locked-note {
  display: grid;
  justify-items: start;
  gap: 24px;
  max-width: 58ch;
}
.locked-mark {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}
.locked-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 860px) {
  .stay-list { grid-template-columns: 1fr; }
}
.stay-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ── RSVP ─────────────────────────────────────────────────────────────── */
.section-rsvp {
  background: var(--paper);
}
.section-rsvp .sec-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-rsvp .sec-meta { justify-content: center; padding-top: 0; }
.section-rsvp .sec-title { max-width: 18ch; }

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  margin-top: 8px;
}
.rsvp-field { display: grid; gap: 8px; }
.rsvp-field-full { grid-column: 1 / -1; }
.rsvp-field label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.rsvp-field input,
.rsvp-field textarea,
.rsvp-field select {
  font: inherit;
  font-size: 16px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
}
.rsvp-field textarea { padding-top: 12px; resize: vertical; }
.rsvp-field input:focus,
.rsvp-field textarea:focus,
.rsvp-field select:focus { border-color: var(--accent); }
.rsvp-field ::placeholder { color: var(--soft); }
.rsvp-err { font-size: 12px; color: #a33b2a; margin-top: 2px; }
.rsvp-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.rsvp-choice {
  display: inline-flex;
  border: 1px solid var(--ink);
  width: fit-content;
}
.rsvp-choice button {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.rsvp-choice button + button { border-left: 1px solid var(--ink); }
.rsvp-choice button.active { background: var(--ink); color: var(--bg); }

.rsvp-checks {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}
.rsvp-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
}
.rsvp-check input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 1px;
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.rsvp-check input[type=checkbox]:checked {
  background: var(--ink);
}
.rsvp-check input[type=checkbox]:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}

.rsvp-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rsvp-deadline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.rsvp-deadline .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.rsvp-success {
  text-align: center;
  padding: 48px 0 12px;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.rsvp-mark {
  width: 72px; height: 72px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px;
  font-family: var(--serif);
}
.rsvp-success h3 {
  font-family: var(--serif);
  font-size: 40px;
  margin: 0;
  font-weight: 400;
}
.rsvp-success p {
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}

@media (max-width: 760px) {
  .rsvp-form { grid-template-columns: 1fr; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-filled { background: var(--ink); color: var(--bg); }
.btn-filled:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Real images (place) ──────────────────────────────────────────────── */
.real-img {
  margin: 0;
  position: relative;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 5;
}
.real-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.real-img figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  padding: 6px 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── Gallery ──────────────────────────────────────────────────────────── */
.gallery {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.gallery-head {
  display: grid;
  gap: 10px;
  margin-bottom: 48px;
  text-align: center;
}
.gallery-sub {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 auto;
  max-width: 32ch;
  color: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-cell {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 2px;
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-cell.is-wide { grid-column: span 2; }
.gallery-cell.is-tall { grid-row: span 2; }
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  filter: saturate(0.95) contrast(1.02);
}
.gallery-cell:hover img { transform: scale(1.03); }
.gallery-cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-cell:hover figcaption { opacity: 1; }
.gallery-credit {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
}
@media (max-width: 860px) {
  .gallery { padding: 80px 0; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 10px;
  }
  .gallery-cell.is-wide { grid-column: span 2; }
  .gallery-cell.is-tall { grid-row: span 2; }
  .gallery-cell figcaption { opacity: 1; }
}

/* ── Pullquote ─────────────────────────────────────────────────────────── */
.pullquote {
  padding: 96px var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.pullquote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--ink);
}
.pullquote-attr {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── Coming soon (temporary landing) ───────────────────────────────────── */
.coming-soon {
  padding: 96px var(--pad);
  text-align: center;
}
.coming-soon-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  margin: 0 auto;
  max-width: 24ch;
  color: var(--muted);
}

/* ── Admin page ─────────────────────────────────────────────────────────── */
.admin { min-height: 100vh; background: var(--bg); color: var(--ink); padding: clamp(20px,4vw,48px); }
.admin h1 { margin: 4px 0 0; font-size: clamp(30px,5vw,46px); }

.admin-btn {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); transition: background .15s, color .15s;
}
.admin-btn:hover { background: var(--accent); color: #fff; }
.admin-btn.primary { background: var(--accent); color: #fff; }
.admin-btn.primary:hover { filter: brightness(1.1); }
.admin-btn.ghost { border-color: var(--line); color: var(--muted); }
.admin-btn.ghost:hover { background: var(--paper); color: var(--ink); }
.admin-btn.tiny { padding: 4px 10px; font-size: 11px; }

.admin-err { color: #b00020; }
.admin-ok  { color: var(--accent); font-size: 14px; margin: 4px 0 16px; }
.admin-muted { color: var(--muted); }

/* Gate */
.admin-gate { max-width: 320px; margin: 16vh auto; display: grid; gap: 14px; justify-items: center; text-align: center; }
.admin-gate h1 { margin: 0 0 6px; }
.admin-gate input {
  width: 100%; padding: 11px 14px; font-size: 16px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.admin-gate input:focus { outline: none; border-color: var(--accent); }

/* Header */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-actions-bar { display: flex; gap: 10px; }

/* Summary */
.admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.sum-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sum-card.sum-total { background: var(--accent); color: #fff; border-color: var(--accent); }
.sum-side { font-size: 20px; margin-bottom: 6px; }
.sum-nums { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.sum-total .sum-nums { color: rgba(255,255,255,0.85); }
.sum-nums b { color: inherit; font-weight: 600; }
.sum-total .sum-nums b { color: #fff; }

/* Guest grid */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.guest-dirty { position: absolute; top: 10px; right: 12px; color: var(--accent); font-size: 12px; }
.badge-yes  { color: #1b7a3d; }
.badge-no   { color: #b00020; }
.badge-none { color: var(--soft); }

/* Dialog */
.admin-dialog-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(26,26,26,0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.admin-dialog {
  background: var(--bg); border-radius: 18px; width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto; padding: 22px 24px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dlg-head h2 { margin: 0; font-size: 28px; }
.dlg-x { background: none; border: none; font-size: 18px; color: var(--muted); }
.dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.dlg-field { display: grid; gap: 5px; font-size: 13px; }
.dlg-field > span:first-child { color: var(--muted); letter-spacing: 0.02em; }
.dlg-full { grid-column: 1 / -1; }
.dlg-field input, .dlg-field select, .dlg-field textarea {
  font-family: var(--sans); font-size: 15px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%;
}
.dlg-field input:focus, .dlg-field select:focus, .dlg-field textarea:focus { outline: none; border-color: var(--accent); }
.dlg-check { grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.dlg-check input { width: auto; }
.dlg-check > span { color: var(--ink); }
.dlg-when { color: var(--muted); font-size: 12px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ── Schedule place subtext ────────────────────────────────────────────── */
.sched-body { display: flex; flex-direction: column; gap: 2px; }
.sched-place {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 100px var(--pad) 56px;
  display: grid;
  gap: 14px;
  justify-items: center;
  border-top: 1px solid var(--line);
}
.foot-amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
}
.foot-sign {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.005em;
}
.foot-contact {
  font-size: 14px;
  color: var(--ink);
}
.foot-contact a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.foot-contact a:hover {
  border-color: var(--ink);
}
.foot-mark {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.34em;
}

/* ── Dev Tweaks panel (dev-only; ported from the prototype's tweaks-panel) ── */
.twk-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; width: 280px;
  max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: rgba(250, 249, 247, 0.78); color: #29261b;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.6); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 40px rgba(0, 0, 0, 0.18);
  font: 11.5px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif; overflow: hidden;
}
.twk-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 10px 14px; user-select: none;
}
.twk-hd b { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.twk-x {
  appearance: none; border: 0; background: transparent; color: rgba(41, 38, 27, 0.55);
  width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1;
}
.twk-x:hover { background: rgba(0, 0, 0, 0.06); color: #29261b; }
.twk-body {
  padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; overflow-x: hidden; min-height: 0;
}
.twk-sect {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(41, 38, 27, 0.45); padding: 10px 0 0;
}
.twk-sect:first-child { padding-top: 0; }
.twk-row { display: flex; flex-direction: column; gap: 5px; }
.twk-lbl { display: flex; justify-content: space-between; align-items: baseline; color: rgba(41, 38, 27, 0.72); }
.twk-lbl > span:first-child { font-weight: 500; }
.twk-field {
  appearance: none; box-sizing: border-box; width: 100%; min-width: 0; height: 26px; padding: 0 8px;
  border: 0.5px solid rgba(0, 0, 0, 0.1); border-radius: 7px;
  background: rgba(255, 255, 255, 0.6); color: inherit; font: inherit; outline: none; cursor: pointer;
}
.twk-field:focus { border-color: rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.85); }
a.twk-link { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 500; }
select.twk-field {
  padding-right: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='rgba(0,0,0,.5)' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}
.twk-seg {
  position: relative; display: flex; padding: 2px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.06); user-select: none;
}
.twk-seg-thumb {
  position: absolute; top: 2px; bottom: 2px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: left 0.15s cubic-bezier(0.3, 0.7, 0.4, 1), width 0.15s;
}
.twk-seg button {
  appearance: none; position: relative; z-index: 1; flex: 1; border: 0;
  background: transparent; color: inherit; font: inherit; font-weight: 500; min-height: 22px;
  border-radius: 6px; cursor: pointer; padding: 4px 6px; line-height: 1.2;
}
.twk-chips { display: flex; gap: 6px; }
.twk-chip {
  position: relative; appearance: none; flex: 1; min-width: 0; height: 46px; padding: 0; border: 0;
  border-radius: 6px; overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s cubic-bezier(0.3, 0.7, 0.4, 1), box-shadow 0.12s;
}
.twk-chip:hover { transform: translateY(-1px); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.12); }
.twk-chip[data-on="1"] { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.15); }
.twk-chip > span {
  position: absolute; top: 0; bottom: 0; right: 0; width: 34%;
  display: flex; flex-direction: column; box-shadow: -1px 0 0 rgba(0, 0, 0, 0.1);
}
.twk-chip > span > i { flex: 1; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1); }
.twk-chip > span > i:first-child { box-shadow: none; }
.twk-chip svg {
  position: absolute; top: 6px; left: 6px; width: 13px; height: 13px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* ── Admin budget page ─────────────────────────────────────────────── */
.admin-link {
  display: inline-block;
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.admin-link:hover { border-bottom-color: var(--accent); }

.budget-cat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.4rem 0 .5rem;
  border-bottom: 1px solid var(--sand);
  padding-bottom: .3rem;
}
.budget-cat h2 { margin: 0; font-size: 1.1rem; color: var(--accent); }
.budget-cat-sum { font-size: .9rem; color: var(--accent); }

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
}
.budget-row {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: .7rem .8rem;
  cursor: pointer;
  position: relative;
}
.budget-row.dirty { border-color: var(--accent); }
.budget-nums {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .35rem;
  font-size: .85rem;
  color: color-mix(in srgb, var(--accent) 75%, #000 10%);
}

/* ── Admin guest overview: table grouped by side ───────────────────── */
.guest-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guest-table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 65%, #000 10%);
  padding: .4rem .7rem;
  border-bottom: 1px solid var(--sand);
}
.guest-table td { padding: .5rem .7rem; vertical-align: middle; }
.guest-table th.num, .guest-table td.num { text-align: right; white-space: nowrap; }

.grp-head td { padding-top: 1.2rem; border-bottom: 1px solid var(--sand); }
.grp-name { font-size: 1.15rem; }
.grp-inv { margin-left: .5rem; font-size: .8rem; color: var(--muted); }

.guest-row { cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--sand) 55%, transparent); }
.guest-row:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.guest-row.dirty { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.guest-row .guest-dirty { position: static; margin-right: .35rem; color: var(--accent); }
.gr-code {
  display: inline-block; margin-left: .5rem; padding: .05rem .45rem;
  font: 600 .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.gr-code:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

.grp-sum td {
  border-top: 1px solid var(--sand);
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.grand-total td {
  background: var(--accent); color: #fff; font-weight: 700;
  padding-top: .7rem; padding-bottom: .7rem;
}
.grand-total td:first-child { border-radius: 10px 0 0 10px; }
.grand-total td:last-child { border-radius: 0 10px 10px 0; }
.grand-total .grp-inv { color: color-mix(in srgb, #fff 80%, transparent); }
.budget-summary .sum-nums { flex-wrap: wrap; }
