/* LegacyTeller — site styles. Light and dark are both fully styled. */
:root {
  --bg: #FAF6EE; --surface: #FFFFFF; --surface-2: #F3EDE1; --ink: #1D2433; --muted: #5B6270;
  --line: #E4DCCB; --accent: #94661C; --accent-strong: #7A5214; --accent-ink: #FFFFFF;
  --gold: #C8963E; --green: #2F5D50; --danger: #A23B2A; --ok-bg: #E7F0EA; --warn-bg: #FBF0DC;
  --shadow: 0 1px 2px rgba(29,36,51,.06), 0 8px 24px rgba(29,36,51,.06);
  --radius: 14px; --wrap: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722; --surface: #1A2130; --surface-2: #212A3B; --ink: #F3EEE4; --muted: #A9AFBB;
    --line: #2C3547; --accent: #D9A94E; --accent-strong: #E8BD66; --accent-ink: #1A1205;
    --gold: #D9A94E; --green: #8FC3AE; --danger: #F08C7A; --ok-bg: #1D3229; --warn-bg: #3A2E17;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #121722; --surface: #1A2130; --surface-2: #212A3B; --ink: #F3EEE4; --muted: #A9AFBB;
  --line: #2C3547; --accent: #D9A94E; --accent-strong: #E8BD66; --accent-ink: #1A1205;
  --gold: #D9A94E; --green: #8FC3AE; --danger: #F08C7A; --ok-bg: #1D3229; --warn-bg: #3A2E17;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.2) blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

.theme-toggle { font: 600 .85rem var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.theme-toggle .tt-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-light { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .tt-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .tt-dark { display: inline; }
}

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--text); padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
input[type=text], input[type=email] { font: 1rem var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
label { font-weight: 600; display: block; margin-bottom: 6px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--accent); margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.tree-preview { display: grid; gap: 10px; }
.tp-row { display: flex; justify-content: center; gap: 10px; }
.tp-person { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: .82rem; text-align: center; min-width: 92px; }
.tp-person b { display: block; font-family: var(--display); font-size: .95rem; }
.tp-person.you { border-color: var(--gold); }
.tp-story { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; display: flex; gap: 12px; align-items: center; }
.tp-play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* sections */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
section.band.alt { background: var(--surface-2); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon-dot { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; font-size: 1.1rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan .badge { align-self: flex-start; background: var(--gold); color: #1A1205; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.plan h3 { font-size: 1.15rem; }
.price { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.price small { font-family: var(--text); font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan .sub { font-size: .85rem; color: var(--muted); margin: 6px 0 12px; }
.plan ul { padding-left: 18px; margin: 0; font-size: .93rem; }
.plan li { margin-bottom: 4px; }
.plan .after { margin-top: auto; padding-top: 12px; font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); }

/* waitlist */
.waitlist { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.waitlist input { flex: 1; }
@media (max-width: 520px) { .waitlist { flex-direction: column; } }
.notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.notice.ok { background: var(--ok-bg); }
.notice.warn { background: var(--warn-bg); }

footer.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* owner area */
body.owner { background: var(--bg); }
.owner-shell { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }
.owner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.private-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--green); font-weight: 600; }
.private-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.signin-box { max-width: 420px; margin: 56px auto; text-align: center; }
.signin-box .card { padding: 28px; text-align: left; }
.owner-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.owner-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
.owner-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile .n { font-family: var(--display); font-size: 2rem; font-weight: 600; }
.tile .l { color: var(--muted); font-size: .9rem; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.05rem; margin: 12px 0; }
.codes span { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; text-align: center; }
.stack > * + * { margin-top: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); }
[hidden] { display: none !important; }

/* back office */
.btn-sm { padding: 6px 14px; font-size: .88rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between h3 { margin: 0; }
.coming { list-style: none; margin: 0; padding: 0; }
.coming li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.coming li:last-child { border-bottom: 0; }
.coming a { color: var(--ink); text-decoration: none; font-weight: 600; }
.coming a:hover { color: var(--accent); }
@media (max-width: 560px) { .coming li { grid-template-columns: 1fr; gap: 4px; } }
.due-badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.due-badge.soon { background: var(--warn-bg); color: var(--ink); }
.due-badge.over { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.add-task { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
@media (max-width: 560px) { .add-task { grid-template-columns: 1fr; } }
input[type=date], input[type=number], input[type=url], select, textarea { font: 1rem var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tasks li:last-child { border-bottom: 0; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); color: var(--accent-ink); font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; margin-top: 1px; }
.check:hover { border-color: var(--accent); }
.tasks li.done .check { background: var(--accent); border-color: var(--accent); }
.tasks li.done .t-title { text-decoration: line-through; color: var(--muted); }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.t-edit summary { font-size: .85rem; color: var(--muted); list-style: none; }
.t-edit summary::-webkit-details-marker { display: none; }
.t-edit[open] { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-top: 8px; }
.inline-form label { font-weight: 400; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; }
.svc-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.svc p { margin: 8px 0; }
.svc-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 12px; font-size: .92rem; }
.svc-dl dt { color: var(--muted); }
.svc-dl dd { margin: 0; }
.svc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.svc-edit { width: 100%; }
.svc-edit summary { list-style: none; display: inline-flex; }
.svc-edit summary::-webkit-details-marker { display: none; }
.svc-edit[open] summary { margin-bottom: 10px; }
.svc-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin-top: 12px; }
.svc-form .wide { grid-column: 1 / -1; }
.svc-form .f span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.svc-form .f small { display: block; margin-top: 4px; }
@media (max-width: 560px) { .svc-form { grid-template-columns: 1fr; } }

/* family sites */
.h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; margin: 0 0 .4em; }
.h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin: 0 0 .5em; }
.support-bar { background: var(--warn-bg); color: var(--ink); text-align: center; padding: 8px 16px; font-size: .9rem; font-weight: 600; }
.fam-head { background: var(--surface); border-bottom: 4px solid var(--fam-main); }
.fam-head .fam-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.fam-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.fam-brand b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.fam-brand small { color: var(--muted); font-size: .85rem; }
.crest { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.crest-blank { display: grid; place-items: center; background: var(--fam-main); color: var(--fam-main-ink); font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.fam-tools { display: flex; align-items: center; gap: 10px; }
.kids-badge { background: var(--fam-accent); color: var(--fam-accent-ink); font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: 999px; }
.fam-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; }
.fam-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.fam-nav a:hover { background: var(--surface-2); color: var(--ink); }
.fam-nav a[aria-current="page"] { background: var(--fam-main); color: var(--fam-main-ink); }
.fam-main { padding-top: 24px; padding-bottom: 48px; }
body.kids { font-size: 19px; }
.fam-hero { border-radius: 20px; background: linear-gradient(135deg, var(--fam-main), color-mix(in srgb, var(--fam-main) 70%, #000)); color: var(--fam-main-ink); padding: 48px 32px; margin-bottom: 20px; }
.fam-hero.has-banner { background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.15)), var(--banner) center / cover; color: #fff; min-height: 260px; display: flex; align-items: flex-end; }
.fam-hero h1 { margin: 0; }
.eyebrow-fam { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; opacity: .9; margin-bottom: 6px; }
.motto { font-family: var(--display); font-style: italic; font-size: 1.2rem; margin: 6px 0 0; opacity: .95; }
.fam-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 760px) { .fam-grid { grid-template-columns: 1fr; } .fam-hero { padding: 32px 20px; } }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.day-list li:last-child { border-bottom: 0; }
.day-list a { color: var(--ink); text-decoration: none; }
.day-list a:hover { color: var(--fam-main-text); }
.day-list b { color: var(--fam-main-text); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-stats b { display: block; font-family: var(--display); font-size: 1.7rem; }
.mini-stats span { color: var(--muted); font-size: .85rem; }
.people-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--branch, var(--line)); text-decoration: none; color: var(--ink); max-width: 100%; }
.person-chip:hover { border-color: var(--fam-main); color: var(--ink); }
.person-chip.hit { outline: 3px solid var(--fam-accent); }
.person-chip img, .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem; }
.person-chip b { display: block; font-size: .95rem; line-height: 1.2; }
.person-chip small { color: var(--muted); font-size: .8rem; }
.branch-key { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 14px; font-size: .9rem; }
.branch-key i, .branch-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.tree-wrap { overflow-x: auto; }
.tree-search { margin-bottom: 14px; max-width: 420px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 22px; padding-left: 18px; border-left: 2px solid var(--line); }
.tree li { margin: 10px 0; }
.tree-card { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.amp { color: var(--muted); font-family: var(--display); }
.person-head { display: flex; gap: 20px; align-items: center; border-left: 6px solid var(--branch); padding-left: 18px; margin-bottom: 18px; }
.person-photo { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; flex: none; }
.avatar-lg { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 2.2rem; font-weight: 700; }
@media (max-width: 560px) { .person-head { flex-direction: column; align-items: flex-start; } }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.bio { margin-bottom: 18px; }
.rels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .rels { grid-template-columns: 1fr; } }
.rel-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rel-group h3 { font-size: 1rem; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-weight: 600; }
.branch-list { list-style: none; padding: 0; margin: 0; }
.branch-list li { margin-bottom: 8px; }
input[type=color] { width: 52px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.svc-form input[type=color] { width: 100%; }
.upload-form label.btn { cursor: pointer; }
input[type=search] { font: 1rem var(--text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%; }

/* ---------- family sites, 1907-style flow ---------- */
body.fam { background: var(--bg); }
.fhero { background: var(--fam-main); color: var(--fam-main-ink); position: relative; overflow: hidden; }
.fhero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,.10), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0,0,0,.22), transparent 70%); }
.fhero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 70px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.fhero-home::after { height: 90px; }
.fhero > .wrap { position: relative; z-index: 1; }
.fnav { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 20px 0; }
.fbrand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.fbrand:hover { color: inherit; }
.seal { width: 38px; height: 38px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-weight: 700; font-size: 1rem; flex: none; }
.seal-img { object-fit: cover; padding: 0; }
.flinks { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.flinks a { color: inherit; opacity: .85; text-decoration: none; font-weight: 600; font-size: .95rem; }
.flinks a:hover, .flinks a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; color: inherit; }
.fhero .theme-toggle { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.fhero .kids-badge { background: var(--fam-accent); color: var(--fam-accent-ink); }
.fhero-title { padding: 18px 0 96px; }
.fhero-title h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin: 0; }
.fkicker { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; opacity: .85; margin: 0 0 10px; }
.fhero-main { padding: 36px 0 150px; max-width: 720px; }
.fhero-h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; line-height: 1.05; margin: 0 0 18px; }
.fhero-h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.flead { font-size: 1.15rem; opacity: .9; max-width: 52ch; margin: 0 0 26px; }
.fctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fbtn-light { background: var(--fam-main-ink); color: var(--fam-main); }
.fbtn-light:hover { color: var(--fam-main); transform: translateY(-1px); }
.fbtn-ghost { border: 1.5px solid currentColor; color: inherit; opacity: .9; }
.fbtn-ghost:hover { color: inherit; opacity: 1; }
.fbtn-solid { background: var(--fam-main-text); color: var(--accent-ink); }
.fbtn-solid:hover { color: var(--accent-ink); filter: brightness(1.08); }
.fam-main { position: relative; z-index: 2; padding-top: 0; }
.page-actions { display: flex; justify-content: flex-end; margin: -64px 0 18px; position: relative; z-index: 3; }
.fhero-title + * {}
.fam-main > .card:first-child, .fam-main > form:first-child, .fam-main > .person:first-child, .fam-main > .notice:first-child, .fam-main > .branch-key:first-child, .fam-main > section.card:first-child { margin-top: -56px; position: relative; }
.fstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -80px; position: relative; z-index: 2; }
.fstat { background: var(--surface); border-radius: 18px; padding: 22px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.08); border-top: 4px solid var(--fam-accent); }
.fstat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--fam-main-text); margin-bottom: 6px; }
.fstat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .fstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fsec { padding-top: 72px; }
.fsec h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin: 0 0 18px; }
.fkicker2 { letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--fam-main-text); margin: 0 0 8px; }
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .fsplit { grid-template-columns: 1fr; gap: 24px; } }
.fdays { list-style: none; margin: 0; padding: 0; }
.fdays li { border-bottom: 1px solid var(--line); }
.fdays a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; color: var(--ink); text-decoration: none; }
.fdays a:hover span { text-decoration: underline; }
.fdays b { color: var(--fam-main-text); min-width: 92px; font-weight: 700; }
.fquote { margin: 0; background: color-mix(in srgb, var(--fam-main) 9%, var(--surface)); border-radius: 20px; padding: 30px; font-family: var(--display); font-size: 1.4rem; line-height: 1.4; }
.fquote small { display: block; font-family: var(--text); font-size: .9rem; color: var(--muted); margin-top: 14px; }
.ftl { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.ftl li { position: relative; padding-top: 34px; }
.ftl li::before { content: ""; position: absolute; top: 8px; left: 0; right: -22px; height: 2px; background: var(--line); }
.ftl li::after { content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--fam-accent); box-shadow: 0 0 0 4px var(--bg); }
.ftl a { color: var(--ink); text-decoration: none; display: block; }
.ftl a:hover h3 { text-decoration: underline; }
.ftl .yr { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--fam-main-text); }
.ftl h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 600; margin: 4px 0 4px; }
.ftl p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .ftl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ftl { grid-template-columns: 1fr; } .ftl li::before { right: 0; } }
.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .fcards { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.fcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.1); color: var(--ink); }
.fcard .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--fam-main); display: grid; place-items: center; margin-bottom: 16px; }
.fcard .ic svg { width: 28px; height: 28px; stroke: var(--fam-main-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.fcard p { margin: 0; color: var(--muted); }
.fband { margin: 80px calc(50% - 50vw) -64px; background: color-mix(in srgb, var(--fam-main) 9%, var(--surface)); border-top: 4px solid var(--fam-accent); }
.fband .wrap-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.fband h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; margin: 0 0 6px; }
.fband p { margin: 0; max-width: 56ch; color: var(--muted); }
.fband-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ffoot { background: var(--fam-main); color: var(--fam-main-ink); font-size: .9rem; }
.ffoot .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; opacity: .9; }
.ffoot b { font-family: var(--display); }
.fam-main { padding-bottom: 64px; }
.fbrand .gold { color: var(--gold); }
.fhero .fbrand svg { color: currentColor; }
#plans .plans { margin-top: 28px; }
.fband .waitlist { margin: 0; min-width: min(100%, 440px); }

/* photos & videos */
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.pill-tabs a[aria-current="page"] { background: var(--fam-main); color: var(--fam-main-ink); border-color: var(--fam-main); }
.upload-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.upload-bar label.btn { cursor: pointer; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.mgrid-sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.mtile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: block; }
.mtile img, .mtile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile:hover { outline: 3px solid var(--fam-accent); }
.mbadge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.mcap { position: absolute; left: 0; right: 0; top: 0; padding: 6px 8px; font-size: .78rem; color: #fff; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.mvoice { display: grid; place-items: center; height: 100%; font-size: 2.6rem; background: color-mix(in srgb, var(--fam-main) 12%, var(--surface)); }
.mdetail img, .mdetail video { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; background: #000; }
.mdetail audio, .own-words audio { width: 100%; }
.own-words { margin: 10px 0 16px; } .own-words b { display: block; margin-bottom: 6px; }
.own-words video { width: 100%; max-height: 360px; border-radius: 12px; background: #000; }
.person-links { margin-bottom: 18px; }
select[multiple] { min-height: 140px; }
.recorder [data-rec-time] { font-variant-numeric: tabular-nums; font-weight: 600; }

/* our story */
.story-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -56px; position: relative; }
.chapter { padding-top: 56px; }
.chapter .row-between { margin-bottom: 8px; }
.story-person { border-left: 3px solid var(--fam-accent); padding: 4px 0 4px 18px; margin: 22px 0; max-width: 72ch; overflow: hidden; }
.story-person h3 { font-size: 1.25rem; margin-bottom: 6px; }
.story-person h3 a { color: var(--ink); text-decoration: none; } .story-person h3 a:hover { color: var(--fam-main-text); }
.story-person p { margin: 0 0 .7em; }
.story-photo { float: right; width: 96px; height: 96px; border-radius: 14px; object-fit: cover; margin: 0 0 8px 16px; }

/* kids' corner */
.kids-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -56px; position: relative; }
@media (max-width: 960px) { .kids-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kids-tools { grid-template-columns: 1fr; } }
.meet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.meet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; border-top: 4px solid var(--fam-accent); }
.meet-card img, .meet-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 8px; }
.meet-card h3 { font-size: 1.2rem; margin: 0; }
.report-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.report-head img { width: 130px; height: 130px; object-fit: cover; border-radius: 16px; }
.report-head h2 { font-size: 2rem; margin: 0; }
.report-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
@media (max-width: 700px) { .report-grid { grid-template-columns: 1fr; } .report-head { flex-direction: column; align-items: flex-start; } }
.report h3 { font-size: 1.15rem; margin: 18px 0 8px; color: var(--fam-main-text); }
.report-tl { padding-left: 20px; } .report-tl li { margin-bottom: 4px; }
.report-sources { border-top: 2px dashed var(--line); margin-top: 18px; padding-top: 6px; }
.report footer { margin-top: 18px; }
.worksheet { text-align: center; }
.ws-title { font-size: 1.8rem; margin: 6px 0 22px; color: var(--fam-main-text); }
.ws-row { display: grid; gap: 14px; margin-bottom: 26px; position: relative; }
.ws-4 { grid-template-columns: repeat(4, 1fr); } .ws-2 { grid-template-columns: repeat(2, 1fr); width: 60%; margin-left: auto; margin-right: auto; } .ws-1 { grid-template-columns: 1fr; width: 34%; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .ws-4 { grid-template-columns: repeat(2, 1fr); } .ws-2 { width: 100%; } .ws-1 { width: 70%; } }
.ws-box { border: 3px solid var(--fam-main); border-radius: 14px; padding: 10px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.ws-box small { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--fam-main-text); }
.ws-box b { font-family: var(--display); font-size: 1.1rem; min-height: 1.4em; border-bottom: 1px dashed var(--line); }
.ws-box span { font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.ws-me { border-color: var(--fam-accent); border-width: 4px; }
.trivia { max-width: 680px; }
.t-choices { display: grid; gap: 10px; margin: 18px 0; }
.t-choice { justify-content: flex-start; font-size: 1.05rem; padding: 14px 18px; border-radius: 14px; }
.t-choice.right { background: var(--ok-bg); border-color: var(--green); }
.t-choice.wrong { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: var(--danger); }
.t-result { font-weight: 700; font-size: 1.1rem; min-height: 1.5em; }

/* remembering */
.memorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: -56px; position: relative; }
.memorial-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.memorial-card:hover { color: var(--ink); transform: translateY(-2px); }
.memorial-card img, .mem-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: grid; place-items: center; font-size: 1.6rem; border: 3px solid var(--fam-accent); }
.memorial-card h3 { font-size: 1.15rem; margin: 0 0 2px; }
.memorial-head { display: flex; gap: 24px; align-items: center; margin-top: -56px; position: relative; }
.memorial-head img { width: 150px; height: 150px; object-fit: cover; border-radius: 18px; }
@media (max-width: 600px) { .memorial-head { flex-direction: column; align-items: flex-start; } }
.candle-lit { font-weight: 600; color: var(--fam-main-text); }
.obit { max-width: 72ch; } .obit p { margin: 0 0 1em; }
.memories { display: grid; gap: 14px; margin-top: 16px; }
.memory { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--fam-accent); border-radius: 14px; padding: 16px 18px; }
.memory p { margin: 0 0 .6em; } .memory small { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; margin-top: 6px; }
.program { display: grid; gap: 18px; }
.prog-page { background: #fff; color: #1D2433; border-radius: 12px; padding: 48px; box-shadow: var(--shadow); max-width: 8.5in; margin: 0 auto; width: 100%; }
.prog-cover { text-align: center; border-top: 10px solid var(--fam-main); }
.prog-cover img { width: 260px; height: 320px; object-fit: cover; border-radius: 12px; margin: 18px auto; display: block; border: 6px solid var(--fam-accent); }
.prog-cover h1 { font-family: var(--display); font-size: 2.6rem; margin: 10px 0 4px; color: #1D2433; }
.prog-kicker { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .85rem; color: #5B6270; }
.prog-nick { font-family: var(--display); font-style: italic; font-size: 1.3rem; margin: 0; }
.prog-dates { font-size: 1.15rem; margin: 8px 0 24px; }
.prog-service { border-top: 1px solid #ddd; padding-top: 16px; line-height: 1.7; }
.prog-page h2 { font-family: var(--display); font-size: 1.5rem; color: #1D2433; margin: 18px 0 10px; }
.prog-order { padding-left: 22px; line-height: 1.8; }
.prog-qr { display: flex; gap: 16px; align-items: center; border-top: 1px solid #ddd; margin-top: 24px; padding-top: 16px; }
.prog-qr svg { width: 110px; height: 110px; flex: none; }
.prog-qr p { margin: 0; font-size: .9rem; color: #5B6270; }
.prog-foot { text-align: center; font-family: var(--display); margin-top: 18px; color: #5B6270; }

/* printing: only the report, worksheet or program */
@media print {
  body { background: #fff !important; color: #000; font-size: 12pt; }
  .fhero, .ffoot, .no-print, .support-bar, .theme-toggle, .site-foot { display: none !important; }
  .fam-main { padding: 0 !important; max-width: none; }
  .card, .report, .worksheet { box-shadow: none !important; border: 0 !important; margin: 0 !important; }
  .prog-page { box-shadow: none; border-radius: 0; padding: .4in; page-break-after: always; max-width: none; }
  .ws-box { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* drawn family tree */
:root { --bark: #5C3A21; --leaf: #2F7D3A; --leaf-2: #4FA35A; --grass: #6FB35C; --sky: #FBF8F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bark: #B07A4F; --leaf: #5DBB6B; --leaf-2: #4FA35A; --grass: #3F7A3A; --sky: #161C28; } }
:root[data-theme="dark"] { --bark: #B07A4F; --leaf: #5DBB6B; --leaf-2: #4FA35A; --grass: #3F7A3A; --sky: #161C28; }
.tree-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: -56px; position: relative; }
.tree-find { display: flex; gap: 8px; }
.tree-find input { width: min(60vw, 220px); }
.tree-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tree-msg { flex-basis: 100%; margin: 0; color: var(--fam-main-text); font-size: .92rem; min-height: 0; }
.tree-msg:empty { display: none; }
.tree-intro { margin: 16px 0 12px; max-width: 70ch; }
.dtree-stage { position: relative; margin: 0 calc(50% - 50vw); background: var(--sky); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: min(78vh, 820px); min-height: 460px; overflow: hidden; touch-action: none; }
svg.dtree { width: 100%; height: 100%; display: block; cursor: grab; }
svg.dtree:active { cursor: grabbing; }
.dtree .branch { fill: none; stroke: var(--bark); stroke-linecap: round; }
.dtree .branch.lit { stroke: var(--fam-main-text); }
.dtree .dt-trunk { fill: var(--bark); }
.dtree .dt-grass { fill: var(--grass); opacity: .55; }
.dtree .dt-canopy { fill: var(--leaf-2); opacity: .10; }
.dtree .dt-cluster { fill: var(--leaf-2); opacity: .18; }
.dtree .dt-roots { font-family: var(--display); font-size: 20px; font-weight: 700; fill: var(--ink); }
.dtree .leaf { fill: var(--leaf); stroke: var(--sky); stroke-width: 2; }
.dtree .leaf.mine { fill: var(--fam-main-text) !important; }
.dtree .node { cursor: pointer; }
.dtree .node:focus-visible { outline: none; }
.dtree .node:focus-visible .leaf { stroke: var(--fam-accent); stroke-width: 4; }
.dtree .node text { font-family: var(--text); font-size: 15px; fill: var(--ink); paint-order: stroke; stroke: var(--sky); stroke-width: 5px; stroke-linejoin: round; }
.dtree .node.big text { font-family: var(--display); font-weight: 700; font-size: 20px; }
.dtree .node.lit text { fill: var(--fam-main-text); font-weight: 700; }
.dtree-legend { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.dtree-legend .branch-key { margin: 0; font-size: .85rem; }
.dtree-card { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 16px; width: min(320px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--fam-main); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.dtree-card h2 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 4px; padding-right: 22px; }
.dtree-card .d, .dtree-card .sp { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.dtree-card .sp:empty { display: none; }
.dtree-card .line { font-size: .9rem; margin: 0 0 12px; line-height: 1.5; }
.dtree-card .line b { color: var(--fam-main-text); }
.dtree-close { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; }
@media print { .dtree-stage { margin: 0; height: 9in; border: 0; } .tree-toolbar, .dtree-card, .tree-intro { display: none !important; } }

/* family admin */
.astats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: -56px; }
.astats .fstat b { font-size: clamp(1.5rem, 3vw, 2rem); }
.admin-alerts { margin-top: 18px; font-weight: 600; }
.admin-jump { margin: 22px 0 6px; }
.asec { margin-top: 18px; scroll-margin-top: 16px; }
.asec > .muted { max-width: 75ch; }
.alist { list-style: none; margin: 8px 0 0; padding: 0; }
.alist li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alist li:last-child { border-bottom: 0; }
.alist li > span:first-child { min-width: 0; flex: 1 1 320px; }
.alist li.new { background: color-mix(in srgb, var(--fam-accent) 10%, transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.anew { display: inline-block; background: var(--fam-accent); color: var(--fam-accent-ink); font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 8px; }
.small-h { font-size: 1rem; margin-top: 18px; }
tr.warnrow td { background: var(--warn-bg); }
tr.removed td { color: var(--muted); }
table.list select { width: auto; padding: 6px 8px; }
.melody-btn { border-color: var(--fam-accent); }

/* ---------- Getting Started, Help, Melody button in page headers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fhero .fhero-guide { background: transparent; color: var(--fam-main-ink); border: 2px solid var(--fam-accent); margin-top: 16px; }
.fhero .fctas .fhero-guide { margin-top: 0; }
.fhero .fhero-guide:hover { background: color-mix(in srgb, var(--fam-main-ink) 12%, transparent); color: var(--fam-main-ink); }
.fam-main > .start-card:first-child { margin-top: -80px; position: relative; z-index: 2; }
.start-card + .fstats { margin-top: 24px; }
.start-card { padding: 24px; }
.start-card .h2 { margin: 2px 0 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.start-meter { text-align: right; line-height: 1.1; }
.start-meter b { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--fam-main-text); }
.start-meter span { color: var(--muted); font-size: .9rem; }
.start-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--fam-main) 14%, var(--surface)); margin: 14px 0 6px; overflow: hidden; }
.start-bar span { display: block; height: 100%; background: var(--fam-accent); border-radius: 99px; transition: width .4s; }
.start-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.start-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.start-list h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--body, inherit); font-weight: 700; }
.start-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.start-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--fam-accent); display: grid; place-items: center; font-weight: 800; color: var(--fam-accent-ink); }
.start-list li.is-done .start-check { background: var(--fam-accent); }
.start-list li.is-done h3 { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--muted); }
.start-foot { margin-top: 10px; gap: 12px; flex-wrap: wrap; }
.start-foot p { margin: 0; }
@media (max-width: 600px) {
  .start-list li { grid-template-columns: 30px 1fr; }
  .start-list li .btn { grid-column: 2; justify-self: start; }
}
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.help-toc a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.help-toc a:hover { border-color: var(--fam-main); }
.help-topic { scroll-margin-top: 16px; }
.help-topic h2 { margin: 0; }
.help-q { border-top: 1px solid var(--line); padding: 4px 0; }
.help-q summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 1.05rem; list-style-position: inside; }
.help-q p { margin: 0 0 14px; max-width: 70ch; }
.ffoot a { color: inherit; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; padding: 10px 16px; background: #1D2433; color: #FAF6EE; font-size: .95rem; text-align: center; }
.demo-bar .demo-cta { background: #D9A94E; color: #1D2433; border: 0; }
.demo-bar .demo-cta:hover { background: #E8C77A; color: #1D2433; }
.pill-tabs a.pill-strong { background: var(--fam-main); color: var(--fam-main-ink); border-color: var(--fam-main); }
/* Legacy File */
.legacy-lock { max-width: 560px; text-align: center; margin-left: auto; margin-right: auto; }
.legacy-ic { font-size: 2.6rem; margin: 0; }
.legacy-sec { margin-top: 18px; }
.legacy-sec h3 { margin: 0 0 4px; font-size: 1.25rem; }
.legacy-entry { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.legacy-entry h4 { margin: 0 0 6px; font-size: 1.05rem; }
.legacy-body { white-space: pre-wrap; margin: 0 0 8px; }
.legacy-add { margin-top: 12px; }
.legacy-add summary, .t-edit summary { cursor: pointer; font-weight: 700; color: var(--fam-main-text); padding: 6px 0; }
.legacy-keepers { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.legacy-shared { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legacy-shared li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.legacy-alert { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.legacy-alert p { margin: 0; }
.legacy-demo { display: grid; gap: 8px; padding-left: 20px; }
