/* Miss G's Weddings — staff and couple interface */
:root {
  --brand: #57375d;
  --brand-dark: #43294a;
  --terracotta: #c9856a;
  --ink: #2c2020;
  --muted: #6b5c6b;
  --line: #ede4e9;
  --bg: #faf7f4;
  --card: #fdf9f6;
  --ok: #2f7d4f;
  --warn: #a15c00;
  --danger: #b3261e;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 1rem 0 .35rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tight { margin: 0 0 .35rem; }
.accent { color: var(--brand); }

/* Layout */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar-user { display: flex; align-items: center; gap: .6rem; }
.topbar-user form { margin: 0; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.brand span { color: var(--brand); }
.brand small { font-weight: 500; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.nav { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: .55rem .85rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.container { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.plain-wrap { max-width: 460px; margin: 8vh auto; padding: 0 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-head p { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.card.auth h1 { margin-bottom: .5rem; }
.card > summary, details.card > summary { cursor: pointer; padding: .1rem 0; }
details.card[open] > summary { margin-bottom: .85rem; }
.stack { display: flex; flex-direction: column; gap: .85rem; }
.stack > h2 { margin-bottom: 0; }
.grid-2, .grid-3 { display: grid; gap: .85rem; grid-template-columns: 1fr; }
.align-start { align-items: start; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.row-between form { margin: 0; }

/* Forms */
label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 600; }
label[hidden] { display: none; }   /* the unconditional display:flex above would otherwise beat the browser's [hidden] default */
label > small, label .muted { font-weight: 400; }
input, select, textarea { font: inherit; color: inherit; padding: .55rem .65rem; border: 1px solid #d9cfd9; border-radius: 8px; background: #fff; width: 100%; min-height: 44px; }
textarea { min-height: 0; resize: vertical; }
input[type=color] { padding: .15rem; height: 44px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #c9856a; outline-offset: 1px; }
label.check, label.radio-row { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
label.radio-row { align-items: flex-start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0 .35rem; }
.prefixed { display: flex; align-items: stretch; }
.prefixed > span { background: #f0e9f0; border: 1px solid #d9cfd9; border-right: 0; border-radius: 8px 0 0 8px; padding: .55rem .6rem; font-weight: 400; color: var(--muted); white-space: nowrap; display: flex; align-items: center; font-size: .85rem; }
.prefixed > input { border-radius: 0 8px 8px 0; }
.copy-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 240px; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; flex: 1 1 150px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-weight: 600; padding: .55rem 1rem; min-height: 44px; border-radius: 8px; border: 1px solid #d9cfd9; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f4eef5; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-small { min-height: 36px; padding: .3rem .7rem; font-size: .875rem; }

/* Messages */
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash-success { background: #eaf6ef; border-color: #b9dfc8; color: #1d5a37; }
.flash-error { background: #fdecea; border-color: #f2bdb8; color: #8a1c14; }
.notice { background: #fff6e5; border: 1px solid #f0d9a4; border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }
.notice-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.notice-action form { margin: 0; }
.debug { text-align: left; white-space: pre-wrap; font-size: .75rem; background: #f4eef2; padding: .75rem; border-radius: 8px; overflow: auto; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.card .table-wrap { border: 0; margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table th.num, .table td.num { text-align: right; }
.table tr:last-child td { border-bottom: 0; }
.table.compact th, .table.compact td { padding: .4rem .5rem; font-size: .9rem; }
.table td input, .table td select { min-height: 38px; padding: .35rem .5rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list.tight li { padding: .2rem 0; flex-direction: row; justify-content: space-between; gap: 1rem; }
blockquote { margin: 0 0 .75rem; padding: .5rem .85rem; border-left: 3px solid var(--brand); background: #f4eef5; border-radius: 0 8px 8px 0; }
blockquote footer { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

.pill { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eee; color: #444; }
.pill-active, .pill-rsvp-complete { background: #e2f3e9; color: #1d5a37; }
.pill-draft, .pill-rsvp-none { background: #f0ecee; color: #5b545e; }
.pill-post_wedding, .pill-rsvp-partial { background: #fff1d6; color: #8a5300; }
.pill-suspended { background: #fdecea; color: #8a1c14; }
.pill-archived { background: #e8e8ee; color: #444; }
.count { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 .5rem; font-size: .8rem; vertical-align: middle; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; color: inherit; }
a.stat:hover { border-color: var(--terracotta); }
.stat-n { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--brand); }
.stat-l { color: var(--muted); font-size: .85rem; }

/* Guest form */
.guest-rows { display: flex; flex-direction: column; gap: .6rem; }
.guest-row { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfb; }
.event-checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .4rem .6rem; }
.event-checks legend { font-size: .8rem; }
@media (min-width: 720px) { .guest-row { grid-template-columns: 1fr auto 9rem; align-items: end; } .guest-row .event-checks { grid-column: 1 / -1; } }

/* Website editor */
.theme-picker { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.theme-option { flex-direction: row; align-items: flex-start; gap: .6rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.theme-option:has(input:checked) { border-color: var(--brand); background: #f4eef5; }
.theme-option small { display: block; color: var(--muted); }

/* Checklist */
.task { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task-main { display: flex; flex-direction: column; gap: .1rem; }
.task.is-closed .task-main strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task-actions { margin: 0; flex: 0 0 9.5rem; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-warn { color: var(--warn); font-weight: 600; }

/* RSVP on behalf (couple side) */
.rsvp-guest { margin-bottom: 1rem; }
.rsvp-event { display: flex; flex-direction: column; gap: .35rem; padding: .5rem 0; }
.rsvp-event-name small { display: block; color: var(--muted); font-weight: 400; }
.choice { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice label { flex-direction: row; align-items: center; gap: .4rem; border: 1px solid #d9cfd9; border-radius: 8px; padding: .5rem .8rem; min-height: 44px; font-weight: 500; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--brand); background: #f4eef5; }

/* Suggested colour chips (website editor) */
.presets { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9cfd9; cursor: pointer; padding: 0; }
.swatch[hidden] { display: none; }

/* ---- Match missgsgownrentals.com: cream ground, plum + terracotta, Playfair headings, Lato body ---- */
body { font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3 { font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif; color: var(--brand); font-weight: 600; }
h1 { font-size: 1.9rem; }
.stat-n, .accent { font-family: 'Playfair Display', Georgia, serif; }
.accent { color: var(--terracotta); }
a { color: var(--brand); }
a:hover { color: var(--terracotta); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 .35rem; }

/* Top bar: white, hairline border, uppercase letter-spaced links */
.topbar { box-shadow: none; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'Playfair Display', Georgia, serif; color: var(--brand); }
.brand-logo { height: 46px; width: auto; display: block; }
.brand span { color: var(--brand); }
.brand small { font-family: 'Lato', sans-serif; color: var(--terracotta); font-weight: 700; letter-spacing: .12em; }
.nav a { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.85); padding: .7rem .9rem; }
.nav a:hover { color: var(--terracotta); }
.nav a.active { color: var(--brand); border-bottom-color: var(--terracotta); }

/* Buttons: 4px radius, small caps, plum with soft plum shadow; hover turns terracotta */
.btn { border-radius: 4px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.btn-small { font-size: .75rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 12px rgba(87,55,93,.25); transition: background-color .2s, box-shadow .2s; }
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); box-shadow: 0 6px 16px rgba(201,133,106,.35); color: #fff; }
.btn:hover { color: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { color: #fff; }
.btn-ghost { text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn-danger:hover { background: #fff5f4; color: var(--danger); border-color: var(--danger); }

/* Cards */
.card { border-radius: 12px; box-shadow: 0 2px 10px rgba(87,55,93,.05); }
.table th { font-family: 'Lato', sans-serif; color: var(--muted); letter-spacing: .08em; }
.table-wrap, .stat { border-radius: 12px; background: var(--card); }
.stat-n { color: var(--brand); }
.count { background: var(--terracotta); }
input, select, textarea { border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline-color: var(--terracotta); }

/* Login / landing */
.plain-wrap { text-align: center; }
.plain-wrap .card { text-align: left; }
.plain-wrap .card.center { text-align: center; }
.plain-logo { display: block; margin: 0 auto 1.25rem; height: 84px; width: auto; }
.auth h1, .card.center h1 { text-align: center; }
.site-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem 0 0; }

/* Staff "log in as" banner */
.imp-bar { background: var(--terracotta); color: #fff; display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .5rem 1rem; font-size: .9rem; }
.imp-bar form { margin: 0; }
.imp-bar .btn { background: #fff; color: var(--brand); border-color: #fff; }

/* QR sheet (printable) */
.print-page { background: #fff; padding: 1rem; }
.sheet-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.qr-card { margin: 0; padding: .75rem; border: 1px dashed #cdbfcd; border-radius: 8px; text-align: center; break-inside: avoid; page-break-inside: avoid; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.qr-card img { width: 160px; height: 160px; }
.qr-card strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: var(--brand); }
.qr-card span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media print {
  .no-print { display: none !important; }
  .print-page { padding: 0; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: .6cm; }
  .qr-card { border-color: #999; }
}

/* Small dropdown menu (guest page) + inline QR */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; z-index: 15; margin-top: .25rem; min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(87,55,93,.15); display: flex; flex-direction: column; padding: .25rem 0; }
.menu-list a { padding: .55rem .9rem; text-decoration: none; color: var(--ink); font-size: .9rem; }
.menu-list a:hover { background: #f4eef5; color: var(--brand); }
.qr-inline { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.qr-inline img { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }

/* Photos page */
.meter { height: 8px; background: #efe7ee; border-radius: 99px; margin-top: .5rem; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter > span.hot { background: var(--danger); }
.drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 110px; border: 2px dashed #cdbfcd; border-radius: 12px; background: #fffdfb; cursor: pointer; padding: 1rem; font-weight: 400; }
.drop.over, .drop:hover { border-color: var(--terracotta); background: #fff8f4; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop strong { display: block; color: var(--brand); }
.drop small { display: block; color: var(--muted); font-weight: 400; }
.drop:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.upload-list { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .875rem; }
.upload-list li { padding: .2rem 0; color: var(--muted); }
.upload-list li.ok { color: var(--ok); }
.upload-list li.bad { color: var(--danger); }
.photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo-card { margin: 0; display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; background: #fff; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; background: #eee; }
.photo-card input { min-height: 38px; padding: .3rem .5rem; font-size: .9rem; }
.photo-actions { display: flex; gap: .35rem; }
.photo-actions form { margin: 0; }
.photo-actions button[disabled] { opacity: .35; cursor: default; }
.hero-edit { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.focus-pick { position: relative; max-width: 420px; cursor: crosshair; line-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.focus-pick img { width: 100%; height: auto; display: block; }
.focus-pick .dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: rgba(201,133,106,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; }

/* Staff list + privacy notice on the plain pages */
tr.is-off td { opacity: .55; }
.notice-page-plain h2 { font-size: 1.15rem; margin: 1.3rem 0 .4rem; }
.notice-page-plain ul { padding-left: 1.2rem; }
.notice-page-plain li { margin-bottom: .3rem; }
.plain-wrap:has(.notice-page-plain) { max-width: 720px; }
