/* Ledorly proof of concept — navy-and-white tree identity. Navy #001B48, white surfaces, one warm accent. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/playfair.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/playfair-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/lora-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/lora.woff2") format("woff2"); }

:root {
  /* Brand navy sampled from the tree mark background (edge median #001B48). */
  --ivory: #f6f7fa; --paper: #ffffff; --sand: #eef0f5; --sand-deep: #d5dae3;
  --ocean: #001B48; --ocean-hover: #0A2C63; --navy: #001B48; --navy-deep: #001336;
  --teal: #001B48; --teal-text: #001B48;
  --oak: #8A6A2F; --oak-text: #001B48; --champagne: #C4A35A; --gold: #C4A35A; --gold-deep: #8A6A2F;
  --ink: #001B48; --muted: #3D4A5C; --line: #D5DAE3;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --letter: "Lora", Georgia, serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); color: var(--ocean); font-weight: 500; line-height: 1.15; margin: 0 0 .75rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h1.wordmark { margin: 0; font-size: 1.45rem; font-weight: 500; line-height: 1; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 60; }
.skip:focus, .skip:focus-visible { top: 1rem; }


/* ===== Mobile-first app shell (ledorly.app) ===== */
:root { --col: 480px; --dock-h: 120px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
html { scroll-padding-top: calc(64px + var(--safe-t)); scroll-padding-bottom: calc(var(--dock-h) + var(--safe-b) + 12px); }
body { font-size: 1.125rem; overflow-x: hidden; max-width: 100%; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; font: 600 1.125rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn-outline:hover { background: var(--ocean); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--ocean); border-color: var(--sand-deep); }
.btn-quiet:hover { border-color: var(--ocean); }
.btn-small { min-height: 48px; padding: .55rem 1rem; font-size: 1rem; }
.btn-block { width: 100%; min-height: 56px; font-size: 1.125rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Top bar */
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .55rem;
  max-width: var(--col); margin-inline: auto; min-height: calc(56px + var(--safe-t));
  padding: var(--safe-t) calc(1rem + var(--safe-r)) 0 calc(1rem + var(--safe-l));
  background: #001B48; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; min-height: 48px; min-width: 0; flex: 1 1 auto; }
.brand picture { flex: 0 0 44px; width: 44px; height: 44px; display: block; line-height: 0; }
.brand-mark { width: 100%; height: 100%; border-radius: 0; }
.wordmark { font-family: var(--display); color: #fff; font-size: 1.45rem; text-decoration: none; line-height: 1; }
.m-top :focus-visible { outline-color: #fff; }
.pill { font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .25rem .6rem; white-space: normal; flex: 0 1 auto; min-width: 0; text-align: center; line-height: 1.2; }
.icon-btn { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.icon-btn:active { background: rgba(255,255,255,.12); }

/* Single column */
.m-flow { max-width: var(--col); margin-inline: auto; display: grid; gap: 1rem;
  padding: 1rem calc(1rem + var(--safe-r)) calc(var(--dock-h) + var(--safe-b) + 1.5rem) calc(1rem + var(--safe-l)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1rem 1.25rem; scroll-margin-top: calc(68px + var(--safe-t)); }
.card:focus { outline: none; }
.step { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); line-height: 1.4; margin: 0 0 .7rem; }
.step > span:first-child { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ocean); color: #fff; font-size: 1rem; letter-spacing: 0; }
.hint { color: var(--muted); font-size: 1.125rem; line-height: 1.5; margin-bottom: .8rem; }
.mini, .small { font-size: 1rem; color: var(--muted); margin: .6rem 0 0; }
.badge { display: inline-block; font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--sand); color: var(--oak-text); border: 1px solid var(--sand-deep); vertical-align: middle; }
.badge.real { background: var(--sand); color: var(--ocean); border-color: var(--sand-deep); }

/* Lock screen notification */
.lock { position: relative; border-radius: 22px; overflow: hidden; padding: 1.6rem 1rem 1.1rem; color: #fff;
  background: linear-gradient(180deg, rgba(0,27,72,.88), rgba(0,19,54,.94)), url("../img/samples/thumb/porch-bg-720.webp") center/cover; }
.lock-logo { display: block; width: 88px; height: 88px; margin: 0 auto .85rem; }
.lock-logo img { width: 100%; height: 100%; border-radius: 8px; }
.lock-time { text-align: center; font-family: var(--display); font-size: 3.4rem; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.lock-date { text-align: center; font-size: 1.125rem; margin: .25rem 0 1.25rem; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.notif { display: flex; gap: .8rem; width: 100%; text-align: left; background: rgba(255,255,255,.95); color: var(--ink); border: 0; border-radius: 18px; padding: .95rem 1rem; cursor: pointer; font: inherit; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: drop .6s ease-out both; min-height: 72px; -webkit-tap-highlight-color: transparent; }
.notif:active { transform: scale(.99); }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.notif-text { flex: 1; min-width: 0; }
.app-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--navy-deep); padding: 0; overflow: hidden; display: grid; place-items: center; }
.app-icon img { width: 100%; height: 100%; border-radius: 10px; }
.notif-head { display: flex; justify-content: space-between; gap: .5rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.notif-body { display: block; font-size: 1.125rem; line-height: 1.4; margin-top: .15rem; }
.lock-hint { text-align: center; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: .75rem 0 .6rem; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.lock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn-glass { background: var(--navy-deep); color: #fff; border-color: rgba(255,255,255,.7); font-size: 1rem; padding-inline: .5rem; }
.btn-glass:hover { background: var(--ocean); color: #fff; }
.lock .btn:focus-visible, .lock .notif:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lock-status { font-size: 1rem; text-align: center; margin: .5rem 0 0; min-height: 0; }
.lock-status:empty { display: none; }

/* Big tappable question card */
.q-card { display: block; position: relative; cursor: pointer; border-radius: var(--radius); padding: 1.4rem 1.2rem 1.1rem; min-height: 190px;
  background: linear-gradient(160deg, var(--ivory), var(--sand)); border: 1px solid var(--sand-deep); border-left: 4px solid var(--champagne);
  -webkit-tap-highlight-color: transparent; transition: transform .1s, box-shadow .2s; }
.q-card:active { transform: scale(.99); box-shadow: inset 0 0 0 2px var(--ocean); }
.q-card:focus-within { outline: 3px solid var(--ocean); outline-offset: 2px; }
.question { display: block; font-family: var(--display); font-style: italic; color: var(--ocean); font-size: clamp(1.6rem, 7vw, 1.95rem); line-height: 1.25; margin: 0 0 1.1rem; }
.q-cta { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.1rem; border-radius: 999px; background: var(--ocean); color: #fff; font-weight: 600; font-size: 1.125rem; }

/* Photo */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .45rem; }
.sample { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1/1; min-height: 64px; }
.sample img { width: 100%; height: 100%; object-fit: cover; }
.sample[aria-pressed="true"] { border-color: var(--ocean); box-shadow: 0 0 0 2px var(--paper) inset; }
.photo-preview { margin-top: .9rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.photo-preview img { width: 100%; max-height: 62vh; object-fit: cover; }

/* Words */
textarea, input[type="text"] { width: 100%; font: 1.125rem/1.55 var(--body); color: var(--ink); background: var(--ivory); border: 1px solid var(--sand-deep); border-radius: 12px; padding: .8rem 1rem; min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: 2px solid var(--ocean); outline-offset: 1px; }
audio { width: 100%; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.125rem; color: var(--muted); margin-bottom: .6rem; min-height: 48px; }
.check input { width: 24px; height: 24px; margin-top: .1rem; accent-color: var(--ocean); flex: 0 0 auto; }
.live { font-style: italic; color: var(--teal-text); font-size: 1.125rem; margin: 0; }
.live:empty { display: none; }
#recStatus:empty { display: none; }
#recStatus { margin-bottom: .6rem; }

/* Tags */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .5rem; }
.chips:empty { display: none; }
.chip { min-height: 48px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--sand-deep); background: var(--ivory); color: var(--muted); font: 500 1rem var(--body); cursor: pointer; text-decoration: line-through; -webkit-tap-highlight-color: transparent; }
.chip[aria-pressed="true"] { background: var(--sand); border-color: var(--champagne); color: var(--ocean); text-decoration: none; }
.chip .conf { font-size: 1rem; margin-left: .3rem; }
.chip.mine[aria-pressed="true"] { background: #E8EDF5; border-color: var(--line); color: var(--ocean); }
.add-tag { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .25rem; }
details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--ocean); font-weight: 600; font-size: 1.125rem; min-height: 48px; display: flex; align-items: center; }
pre { background: #F3F5F8; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; font-size: 1rem; line-height: 1.5; overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-word; }
.colors { display: flex; gap: .3rem; margin-top: .4rem; }
.colors span { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); }

/* Story */
#storyWrap { margin-top: 1rem; }
.story { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--champagne); border-radius: var(--radius); padding: 1.25rem 1.05rem; }
.story h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.story-body { font-family: var(--letter); font-size: 1.125rem; line-height: 1.8; color: var(--ink); }
.story-body .s { border-bottom: 2px solid transparent; padding-bottom: 1px; }
.show-src .s[data-src="you"] { border-bottom-color: var(--oak); }
.show-src .s[data-src="question"] { border-bottom-color: var(--ocean); }
.show-src .s[data-src="tags"], .show-src .s[data-src="you-tags"] { border-bottom-color: var(--teal); }
.show-src .s[data-src="date"] { border-bottom-color: var(--champagne); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: 1rem; color: var(--muted); margin: .9rem 0 .25rem; }
.legend i { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin-right: .3rem; }
.provenance { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; font-size: 1rem; }
.provenance li { display: grid; gap: .2rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.provenance b { font-weight: 600; color: var(--teal-text); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.check-ok { color: var(--teal-text); font-size: 1rem; font-weight: 600; }
.check-bad { color: #8a3b2e; font-size: 1rem; font-weight: 600; }
.edit-title { font-family: var(--display); font-size: 1.3rem; color: var(--ocean); margin-bottom: .6rem; }
.edit-body { font-family: var(--letter); font-size: 1.05rem; min-height: 240px; }
.pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: .9rem; }
.pair .btn { min-height: 56px; }
.status { font-size: 1rem; color: var(--teal-text); margin-top: .75rem; }
.status:empty { display: none; }
.status code, code { font-size: 1rem; background: var(--sand); padding: .1rem .35rem; border-radius: 6px; word-break: break-all; }

/* About + footer */
.about { background: var(--sand); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 0 1rem .5rem; margin: 0; }
.about ul { padding-left: 1.1rem; margin: 0 0 .5rem; font-size: 1.125rem; color: var(--muted); }
.about li { margin-bottom: .35rem; }
.footer { text-align: center; color: var(--muted); font-size: 1rem; padding: .5rem 0 0; }

/* Thumb-zone dock */
.dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin-inline: auto; max-width: var(--col);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem;
  padding: .7rem calc(1.1rem + var(--safe-r)) calc(.7rem + var(--safe-b)) calc(1.1rem + var(--safe-l));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,27,72,.08); }
.dock-btn { position: relative; overflow: hidden; justify-self: start; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-width: 72px; min-height: 72px; width: 72px; height: 72px; border-radius: 20px; background: var(--ocean); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dock-btn:active { background: var(--ocean-hover); transform: scale(.97); }
.dock-btn:focus-within { outline: 3px solid var(--ocean); outline-offset: 3px; }
.dock-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.rec { min-width: 96px; min-height: 96px; width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  background: var(--paper); color: var(--ocean); border: 2.5px solid var(--ocean); font: 600 1rem/1.15 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-shadow: 0 4px 14px rgba(15,31,61,.18); }
.rec:active { transform: scale(.96); }
.rec .dot { width: 22px; height: 22px; border-radius: 50%; background: #b5523f; transition: border-radius .2s; }
.rec.recording { background: #8a3b2e; border-color: #8a3b2e; color: #fff; }
.rec.recording .dot { background: #fff; border-radius: 4px; width: 18px; height: 18px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.dock-timer { justify-self: end; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 1.125rem; min-width: 64px; text-align: right; }
/* Hide the dock only while the on-screen keyboard is open (set by js/app.js via visualViewport) */
body.kb .dock { display: none; }
@media (prefers-reduced-motion: reduce) { .notif, .rec.recording .dot { animation: none; } * { scroll-behavior: auto !important; } }

/* Wider screens: keep the phone column, centered, with a soft frame */
@media (min-width: 700px) {
  body.m { background: var(--sand); }
  .m-flow { background-color: var(--ivory); border-inline: 1px solid var(--line); min-height: 100vh; }
  .m-top { background: #001B48; }
  .dock { border-inline: 1px solid var(--line); }
}

/* Admin */
.admin-wrap { max-width: var(--col); margin: 0 auto; padding: 1rem calc(1rem + var(--safe-r)) calc(2rem + var(--safe-b)) calc(1rem + var(--safe-l)); }
.m-back { margin-left: auto; }
.ribbon { max-width: var(--col); margin-inline: auto; background: var(--paper); color: var(--ink); font-size: 1rem; text-align: center; padding: .55rem 1rem; border-bottom: 1px solid var(--line); }
.ribbon strong { color: var(--ocean); font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1rem; }
.admin-wrap + .footer { max-width: var(--col); margin-inline: auto; padding: 1rem 1rem calc(1.5rem + var(--safe-b)); }
@media (min-width: 700px) { .admin-wrap, .ribbon, .admin-wrap + .footer { background-color: var(--ivory); border-inline: 1px solid var(--line); } }
.entry { display: grid; gap: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }

.entry img { border-radius: 10px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.entry h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: .35rem .75rem; font-size: 1rem; margin: .75rem 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem; }
.kv dd { margin: 0; }
table.objects { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.objects th, table.objects td { text-align: left; padding: .45rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
table.objects th { color: var(--muted); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
table.objects td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.wordmark small { white-space: normal; }


.photo-error { color: #8a1c12; background: #fdecea; border: 1.5px solid #e2a59f; border-radius: 8px; padding: .75rem 1rem; font-weight: 600; margin: .75rem 0 0; }
.photo-error[hidden] { display: none; }

/* Accessibility: senior typography, 390px overflow, focus, record control */
label.field { display: block; font-weight: 600; font-size: 1.125rem; margin: .75rem 0 .4rem; color: var(--ink); font-family: var(--body); }
.rec:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }
.rec-label { font-size: 1rem; font-weight: 600; line-height: 1.15; max-width: 5.5rem; text-align: center; }
img, video, audio, svg { max-width: 100%; }
.m-top, .m-flow, .dock, .admin-wrap, .ribbon, .footer, .card, .lock { max-width: 100%; }
.add-tag { grid-template-columns: minmax(0, 1fr) auto; }
.add-tag input { min-width: 0; }
@media (max-width: 430px) {
  .m-top { flex-wrap: wrap; row-gap: .35rem; width: 100%; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .wordmark { min-width: 0; }
  .pill { flex: 1 1 100%; }
  .m-back { margin-left: 0; }
  .lock-actions { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
}

/* L'dor V'dor brand signature (Dec 2026). Champagne gold #C4A35A only on navy (7.2:1) or as decoration;
   on white, gold text uses --gold-deep #8A6A2F (4.8:1). */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wordmark small.signature-line { color: #C4A35A; text-transform: none; letter-spacing: .04em; font-family: var(--display); font-style: italic; font-size: 1rem; }
.btn-gold { background: #C4A35A; color: #001B48; border-color: #C4A35A; }
.btn-gold:hover { background: #D4B771; border-color: #D4B771; color: #001B48; }
.btn-gold:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.m-top .wordmark { display: flex; flex-direction: column; }
.m-top .wordmark small.signature-line { margin-top: .25rem; line-height: 1.2; white-space: normal; }
.welcome { background: #001B48; color: #fff; border-radius: 22px; padding: 1.6rem 1.15rem 1.3rem; text-align: center; border-bottom: 3px solid #C4A35A; }
.welcome-sig { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #C4A35A; line-height: 1.4; margin: 0 0 .9rem; }
.welcome-title { color: #fff; font-size: 2.1rem; margin: 0 0 .75rem; }
.welcome-lede { font-family: var(--letter); font-style: italic; font-size: 1.125rem; line-height: 1.6; color: #fff; margin: 0 0 1rem; }
.welcome-steps { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .35rem; font-size: 1.125rem; }
.welcome-steps li::before { content: "·"; color: #C4A35A; font-weight: 700; margin-right: .45rem; }
.welcome-note { font-size: 1rem; line-height: 1.55; color: #fff; opacity: 1; margin: 1rem 0 0; }
.welcome :focus-visible { outline-color: #fff; }
.heritage-line { text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.55; margin: .5rem 0 0; }

/* ---- Family archive (backend-v1) ---- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fam-pick { position: relative; margin-bottom: .9rem; }
.fam-pick:focus-within label { outline: 3px solid var(--ocean); outline-offset: 3px; }
.fam-mode { font-size: 1.125rem; color: var(--ink); margin: 0 0 .8rem; }
.fam-h { font-family: var(--display); font-size: 1.25rem; margin: 1.25rem 0 .6rem; }
.fam-form { display: grid; gap: .5rem; margin-bottom: .75rem; }
.fam-form .btn { margin-top: .35rem; }
#family input[type="email"] { width: 100%; font: 1.125rem/1.55 var(--body); color: var(--ink); background: var(--ivory); border: 1px solid var(--sand-deep); border-radius: 12px; padding: .8rem 1rem; min-height: 48px; }
#family input[type="email"]:focus { outline: 2px solid var(--ocean); outline-offset: 1px; }
.fam-msg, .fam-code { font-size: 1rem; color: var(--ink); margin: .5rem 0 0; min-height: 0; overflow-wrap: anywhere; }
.fam-code { font-size: 1.125rem; font-weight: 600; }
.fam-rec { margin-top: 1rem; padding: 1rem; border: 1px solid var(--sand-deep); border-left: 4px solid var(--champagne); border-radius: var(--radius); background: var(--ivory); }
.fam-thumb-media { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; margin-bottom: .8rem; }
.fam-consent { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem .2rem; margin-bottom: .8rem; }
.fam-consent p { font-size: 1rem; line-height: 1.5; margin: 0 0 .6rem; color: var(--ink); }
.fam-consent .check { color: var(--ink); }
.fam-rec-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.fam-rec-btn { min-height: 64px; min-width: 64px; padding-inline: 1.5rem; }
.fam-rec-btn.recording { background: #8a1c1c; color: #fff; }
.fam-time { font-variant-numeric: tabular-nums; font-size: 1.125rem; color: var(--ink); }
#family audio { width: 100%; min-height: 48px; margin: .4rem 0; }
.fam-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.fam-item { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; background: var(--paper); }
.fam-media { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.fam-item-h { font-weight: 600; font-size: 1.125rem; margin: .6rem 0 0; color: var(--ink); overflow-wrap: anywhere; }
.fam-voices { padding-left: 0; list-style: none; margin: .6rem 0; display: grid; gap: .5rem; }
.fam-voice-who { font-size: 1rem; color: var(--muted); margin: 0; }
.fam-empty { font-size: 1.125rem; color: var(--muted); }
.fam-extra .pair { margin-bottom: .4rem; }
#famSignOut { margin-top: 1.25rem; }

/* Storyteller recording page */
.st-title { font-size: 1.8rem; }
.st-q { font-size: 1.5rem; margin: .25rem 0 1rem; }
.st-photo { margin-bottom: 1rem; }
.st-flow { padding-bottom: 2rem; }
.st-rec { font-size: 1.25rem; min-height: 72px; }
.st-foot { text-align: center; }
.fam-share { margin-top: .6rem; padding: .75rem; border: 1px dashed var(--sand-deep); border-radius: 12px; display: grid; gap: .4rem; }
.fam-share-url { font-size: 1rem; overflow-wrap: anywhere; color: var(--ink); background: var(--ivory); padding: .5rem; border-radius: 8px; }

/* audit-staging (Dec 1 2026): early-access block, pronunciation */
.early-list { width: min(1120px, calc(100% - 2rem)); margin: 0 auto 2.5rem; }
.early-list h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.early-list p { color: var(--muted); font-size: 1.125rem; margin: 0 0 .75rem; }
.early-actions { margin-top: 1rem !important; }
.early-note { font-size: 1rem !important; }
.say { font-size: 1rem; color: var(--muted); font-style: normal; }
/* Your data: download + delete account (shown only when the family archive is switched on and you're signed in) */
.fam-account { margin-top: 1.25rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.btn.is-disabled { opacity: .55; pointer-events: none; }
.fam-danger { margin-top: .8rem; padding: 1rem; border: 1px solid #c9a3a0; border-left: 4px solid #9b2c22; border-radius: var(--radius); background: #fdf6f5; display: grid; gap: .6rem; }
.fam-del-choice { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fam-del-choice legend { font-weight: 600; margin-bottom: .4rem; }
.fam-radio { display: flex; gap: .55rem; align-items: flex-start; font-size: 1.05rem; line-height: 1.45; }
.fam-radio input { width: 22px; height: 22px; margin-top: .15rem; accent-color: #9b2c22; flex: 0 0 auto; }
.fam-radio select { font: inherit; min-height: 40px; border: 1px solid var(--sand-deep); border-radius: 8px; padding: .2rem .4rem; max-width: 100%; }
.fam-del-summary { font-size: 1.05rem; margin: 0; }
.fam-label { font-size: 1.05rem; }
.btn-danger { background: #9b2c22; color: #fff; border-color: #9b2c22; min-height: 52px; }
.btn-danger:hover { background: #7f2119; border-color: #7f2119; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.demo-reset { margin: .4rem 0 0; }
.demo-reset-msg { display: block; font-size: 1rem; margin-top: .3rem; }
