/* The app's pages around the planner: sign-in, the weddings, people,
   your account. The planner's own styles are planner.css. */
:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --card: #fff;
  --fg: #2b2622;
  --muted: #7a7068;
  --line: #e4dfd7;
  --accent: #a3346f;
  --accent-soft: #f6e6ef;
  --bad: #c53b3b;
  --ok: #2f8a57;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1 { font: 400 32px/1.2 Georgia, serif; margin: 0 0 6px; }
h2 { font-size: 15px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
code { background: #f1ece5; padding: 0.1em 0.35em; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; }
.link.muted { color: var(--muted); }
.link.danger { color: var(--bad); }

.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top .brand { font: 400 20px Georgia, serif; color: var(--fg); text-decoration: none; }
.top .venue { color: var(--muted); font-weight: 600; text-decoration: none; padding-left: 16px; border-left: 1px solid var(--line); }
.top a.venue:hover, .top a.venue.here { color: var(--accent); }
.top nav { margin-left: auto; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a.here { color: var(--accent); }
.top nav form { margin: 0; }
.top nav .link { color: var(--muted); }

.flash { max-width: 980px; margin: 16px auto 0; padding: 10px 14px; border-radius: 10px; }
.flash.notice { background: #e3f3e9; color: var(--ok); }
.flash.alert { background: #fde7e7; color: var(--bad); }

/* The venue's standing, under the menu: its trial's end, or that it's read only. */
.banner { margin: 0; padding: 8px 24px; text-align: center; background: #fff3df; color: #9a6110; border-bottom: 1px solid var(--line); }
.banner.locked { background: #fde7e7; color: var(--bad); }
.banner a { color: inherit; font-weight: 600; }
p.status { margin: 0; color: var(--bad); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 13px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 32px 24px 60px; }
.wrap.narrow { max-width: 520px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { margin: 0; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
form.inline input { width: 280px; max-width: 100%; }
form.inline input[type=date] { width: auto; }
form.inline input[type=number] { width: 90px; }
form.inline input[type=checkbox] { width: auto; margin: 0; }
label.check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
form.stack { display: grid; gap: 14px; max-width: 360px; }
form.stack label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
form.stack.wide { max-width: none; }
form.stack textarea { font: inherit; font-weight: 400; resize: vertical; }
form.stack label small { font-weight: 400; }
.people input[type=number] { width: 96px; }

.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.plans li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; }
.plans li:hover { border-color: var(--accent); }
.plans .plan { display: grid; gap: 2px; padding: 16px 16px 10px; color: inherit; text-decoration: none; flex: 1; }
.plans .plan b { font-size: 16px; }
.plans .plan small { font-size: 13px; }
.plans .plan .date { color: var(--accent); font-weight: 600; }
.plans .acts { display: flex; gap: 14px; padding: 8px 16px 12px; border-top: 1px solid #f1ede7; }
.plans .acts form { margin: 0; }
.plans .acts a.link { text-decoration: none; }
.plans .acts { flex-wrap: wrap; align-items: baseline; }
.plans .acts summary { cursor: pointer; list-style: none; }
.plans .acts summary::-webkit-details-marker { display: none; }
.plans .acts details[open] { flex-basis: 100%; }
.plans .acts details form { margin: 8px 0 0; }
.plans .final { margin-left: 8px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; font-size: 12px; vertical-align: 2px; }

.people { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.people th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); }
.people td { padding: 10px 12px; border-bottom: 1px solid #f1ede7; }
.people form { margin: 0; display: inline; }
.people .acts { text-align: right; white-space: nowrap; }
.people .acts form + form, .people .acts a + form { margin-left: 14px; }
.people .acts a.link { text-decoration: none; }
.people .acts details { display: inline-block; text-align: left; }
.people .acts details + form { margin-left: 14px; }
.people .acts summary { cursor: pointer; list-style: none; }
.people .acts summary::-webkit-details-marker { display: none; }
.people .acts details form.inline { margin: 8px 0 0; flex-wrap: nowrap; }
.shown { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }
.shown p { margin: 4px 0; }
.shown .password code { font-size: 20px; background: #fff; padding: 4px 10px; letter-spacing: .04em; user-select: all; }
.shown .link code { display: block; background: #fff; padding: 6px 10px; overflow-wrap: anywhere; user-select: all; }

/* Sign-in pages (app/auth/pages.templ). */
.auth { max-width: 400px; margin: 12vh auto 40px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.auth h1 { font-size: 28px; margin-bottom: 18px; }
.auth form { display: grid; gap: 14px; }
.auth label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.auth button { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.auth button.secondary { background: none; color: var(--accent); border: 1px solid var(--line); }
.auth form .muted { margin: 0; font-size: 13px; }
.auth [role=alert] { color: var(--bad); }
.auth [role=status] { color: var(--ok); }
.loading { padding: 40px; color: var(--muted); text-align: center; }

@media (max-width: 600px) {
  .wrap { padding: 20px 16px 40px; }
  .top { padding: 10px 16px; }
  .people .acts { white-space: normal; }
}
.auth .eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }

.venues { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.venues a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--fg); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.venues a:hover { border-color: var(--accent); }
.venues small { color: var(--muted); }
.people select { padding: 4px 6px; }

/* A form htmx is sending, until the answer comes back. */
form.htmx-request { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* A wedding's share link, on its page, and the page it opens for vendors
   (app/drafts/shared.templ): read only, on any phone, with no scripts. */
.sharelink { display: flex; gap: 8px; margin: 0 0 12px; max-width: 640px; }
.sharelink input { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.shared .eyebrow { margin: 0 0 4px; color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.shared .floor { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.shared .floorplan { display: block; width: 100%; height: auto; max-height: 75vh; } /* a tall room fits the screen */
.chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.chart section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chart h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.chart h3 small { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
.chart ol { margin: 0; padding-left: 24px; }
.chart li.open { color: var(--muted); }
.index { list-style: none; margin: 0; padding: 0; columns: 16em; column-gap: 28px; }
.index li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #ece7df; break-inside: avoid; }
.index .at { color: var(--muted); text-align: right; }
.shared .note { white-space: pre-line; margin: 0; }
.shared footer { margin-top: 40px; color: var(--muted); font-size: 13px; }
