/* The couple's pages after signing in (Home, Invitation, Guests, Settings): one top bar.
   The NOXNOX wordmark is 38px everywhere, as on the public home page; the tabs move to their own row on phones. */
.bar { position: sticky; top: 0; z-index: 5; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 28px;
  background: var(--bg); border-bottom: .75px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
/* NOXNOX wordmark (docs/brand/noxnox/logos-didone-v1/01-classic-didone.png, trimmed): an image so it also works from disk; inverted on dark */
.wordmark { display: block; width: auto; height: 38px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { filter: invert(1); } }
:root[data-theme="dark"] .wordmark { filter: invert(1); }
.tabs { display: flex; gap: 28px; margin-left: 20px; font-size: 14.5px; align-self: stretch; }
.tabs a { display: flex; align-items: center; text-decoration: none; color: var(--fg3); border-bottom: .75px solid transparent; margin-bottom: -.75px; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current] { color: var(--fg); border-bottom-color: var(--fg); }
.bar .status { margin-left: auto; font-size: 13px; color: var(--fg3); }

/* Press feedback shared by every button on the couple's pages (2026-11-30): a 2% settle on press, back in 120ms.
   Only transform; hover stays whatever each page set. */
body .btn, body .mini, body .pills label, body .sides button, body .stepper button {
  transition: opacity .25s cubic-bezier(.22, 1, .36, 1), background .25s cubic-bezier(.22, 1, .36, 1), border-color .25s, color .25s, transform .12s ease-out; }
body .btn:active:not(:disabled), body .mini:active, body .pills label:active, body .sides button:active, body .stepper button:active { transform: scale(.98); }

/* One toast for Home, Guests and Settings: rises 8px while it fades in, and sits above the home bar on phones. The editor keeps its own
   (it sits above the editor's fixed bar). */
#toast { position: fixed; inset: auto auto max(28px, env(safe-area-inset-bottom)) 50%; z-index: 20; margin: 0; border: 0; padding: 10px 18px; border-radius: 2px;
  background: var(--fg); color: var(--bg); font-size: 14px; width: max-content; max-width: calc(100vw - 32px); align-items: center; gap: 16px;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 2px 0; font-size: 14px; }

/* Loading (Kel 2026-12-01): while a page waits for the couple's data it shows its own layout as quiet bars with a slow
   sheen, so the half-loaded page has the shape of the loaded one; the content then takes its place in one step, top to
   bottom. Each page keeps a .skel template inside <main class="loading">, and Noxnox.ready() (backend.js) ends it.
   A page that can draw without waiting never paints it. Only transform is animated. */
:root { --sheen: rgba(255, 255, 255, .78); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sheen: rgba(255, 250, 240, .07); } }
:root[data-theme="dark"] { --sheen: rgba(255, 250, 240, .07); }
main.loading > :not(.skel) { display: none !important; }
.sk { display: block; position: relative; overflow: hidden; width: var(--w, 100%); max-width: 100%; height: var(--h, 12px); margin: var(--mt, 0px) 0 var(--mb, 0px);
  background: var(--line); border-radius: 2px; }
.sk::after, main.loading ~ .preview .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, var(--sheen) 50%, transparent 80%);
  transform: translateX(-100%); animation: sk-sheen 1.7s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sk-sheen { to { transform: translateX(100%); } }
/* each bar stands in for one line of the real page and takes up that line's height */
.sk.k { --h: 10px; --mt: 5px; --mb: 21px; }                    /* the small line above a headline */
.sk.h1 { --h: calc(var(--sk-h1, 44px) * .7); --mt: calc(var(--sk-h1, 44px) * .19); --mb: calc(var(--sk-h1, 44px) * .19 + 14px); }
.sk.h2 { --h: 20px; --mt: 7px; --mb: 7px; }
.sk.t { --h: 11px; --mt: 7px; --mb: 8px; }
.sk.b { --h: 44px; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--rh, 60px); border-bottom: .75px solid var(--line); }
.sk-row .sk { flex: none; }
@media (prefers-reduced-motion: reduce) { .sk::after, main.loading ~ .preview .screen::after { display: none; } }

@media (max-width: 720px) {
  /* phones: wordmark (and the page's own button) on the first row, the four tabs evenly across the second; the bar scrolls away */
  .bar { position: static; height: auto; flex-wrap: wrap; gap: 0 12px; padding: 14px 16px 0; }
  .bar .status { display: none; }
  .tabs { order: 3; width: 100%; margin: 10px 0 0; gap: 0; justify-content: space-between; height: 46px; font-size: 14px; }
}

/* What to do, and when (Kel 2026-12-01; timeline.js draws it, Home and the editor's review show it). Across when there is
   room, down the left in a narrow column (container query, so the editor's review column gets the phone layout too). */
.plan { container-type: inline-size; }
.plan .cap { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); margin: 0 0 18px; }
.plan .ask { margin: 0 0 24px; color: var(--fg2); font-size: 15px; }
.plan .tl { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.plan .tl li { position: relative; padding: 0 22px 0 0; display: grid; grid-template-rows: 20px 15px auto; row-gap: 14px; }
.plan .tl li::before { content: ""; position: absolute; top: 41px; left: 8px; right: -8px; border-top: .75px solid var(--line); }
.plan .tl li.done::before { border-top-color: var(--fg); }
.plan .tl li:last-child::before { display: none; }
.plan .here { font: 600 11px/20px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.plan .dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; border: .75px solid var(--fg3); background: var(--bg);
  display: grid; place-items: center; color: var(--bg); font: 600 9px/1 system-ui, sans-serif; }
.plan li.done .dot { background: var(--fg); border-color: var(--fg); }
.plan li.now .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(179, 146, 98, .2); }
.plan li.next .dot { border: 1.5px solid var(--gold); }
.plan li.day .dot { border: 1.25px solid var(--fg2); }
.plan .txt { display: block; }
.plan .name { display: block; font: 400 19px/1.3 var(--serif); color: var(--fg2); }
.plan li.now .name, .plan li.next .name, .plan li.done .name { color: var(--fg); }
.plan .date { display: block; margin-top: 4px; font-size: 14px; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan li.later .date, .plan li.done .date { color: var(--fg2); }
.plan .what { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--fg3); text-wrap: pretty; }
.plan .go { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--fg); text-decoration: underline; text-decoration-thickness: .75px; text-underline-offset: 3px; }
.plan .date .go, .plan .ask .go { margin-top: 0; font-size: inherit; }
@container (max-width: 600px) {
  .plan .tl { grid-auto-flow: row; }
  .plan .tl li { grid-template-columns: 15px 1fr; grid-template-rows: auto auto; column-gap: 19px; row-gap: 2px; padding: 0 0 22px; }
  .plan .here { grid-column: 2; grid-row: 1; line-height: 16px; }
  .plan li:not(.has-here) .here { display: none; }
  .plan .dot { grid-column: 1; grid-row: 2; margin-top: 6px; }
  .plan .txt { grid-column: 2; grid-row: 2; }
  .plan .tl li::before { top: 8px; bottom: -8px; left: 7px; right: auto; border-top: 0; border-left: .75px solid var(--line); }
  .plan .tl li.has-here::before { top: 26px; }
  .plan .tl li.done::before { border-left-color: var(--fg); }
  .plan .tl li:last-child { padding-bottom: 0; }
}
