/* The Start your tree questions (helper "form", 1 Dec 2026). Linked from start.html only; every class starts form-.
   Without JavaScript the questions stay hidden and the old email card shows (.form-nojs). */
.form-only { display:none; }
.form-js .form-only { display:block; }
.form-js ul.form-only { display:flex; }
.form-js .form-nojs { display:none; }
.form-vh { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.form-trap { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* at a glance, under the lede */
.form-chips { list-style:none; flex-wrap:wrap; gap:8px; margin-top:16px; }
.form-chips li { display:inline-flex; align-items:center; gap:8px; min-height:32px; padding:0 12px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:13px; font-weight:700; color:var(--ink-2); }
.form-chips li::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--c,var(--gold)); box-shadow:0 0 0 3px color-mix(in srgb, var(--c,var(--gold)) 20%, transparent); }

/* a tighter top on this page (owner, 1 Dec: "no big empty gaps; use the space") */
main.sub .phead .wrap { padding:22px 18px 22px; }
@media (min-width:880px) { main.sub .phead .wrap { padding:34px 18px 30px; } }
main.sub .phead h1 { margin:8px 0 10px; }
main section.form-sec { padding-top:16px; }
.form-layout { display:grid; gap:16px; }
@media (min-width:980px) {
  .form-layout { grid-template-columns:minmax(0,1fr) 320px; gap:22px; align-items:start; }
  .form-aside { position:sticky; top:76px; }
}

.form-card { position:relative; background:#fff; border:1px solid var(--line); border-radius:20px; padding:4px 16px 18px; box-shadow:0 1px 2px rgba(20,24,40,.05), 0 18px 40px -30px rgba(20,24,40,.45); }
@media (min-width:700px) { .form-card { padding:8px 28px 24px; } }
.form-card input, .form-card textarea, .form-errors, .form-done, .form-fail { scroll-margin-top:90px; }

/* one numbered step per part of the family */
.form-step { border:0; margin:0; padding:18px 0 18px; min-width:0; border-bottom:1px solid var(--line); }
.form-step > legend { float:left; width:100%; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; padding:0; margin:0 0 12px; font-family:var(--serif); font-size:clamp(24px,5.4vw,29px); font-weight:700; line-height:1.08; color:var(--ink); }
.form-step > legend + * { clear:both; }
.form-step > legend .form-opt { font-family:var(--sans); font-size:12px; }
.form-num { flex:none; width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:19px; font-weight:700; color:#fff; font-variant-numeric:lining-nums; background:var(--c); box-shadow:0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.form-lead { font-size:14px; color:var(--mute); margin:-4px 0 0; padding:0 0 12px; }


.form-grid { display:grid; gap:12px; }
@media (min-width:640px) { .form-grid { grid-template-columns:1fr 1fr; gap:14px; } .form-wide { grid-column:1 / -1; } }
.form-field { min-width:0; }
.form-field + .form-field, .form-field + .form-chipset, .form-chipset + .form-field { margin-top:12px; }
.form-grid .form-field + .form-field { margin-top:0; }
.form-field > label, .form-label, .form-gp > label { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:13.5px; font-weight:750; color:var(--ink); margin-bottom:6px; }
.form-need { font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-d); white-space:nowrap; }
.form-opt { font-size:12px; font-weight:600; color:var(--mute); letter-spacing:0; text-transform:none; }
.form-hint { font-size:13px; color:var(--mute); margin:-2px 0 10px; }

.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card input[type=date], .form-card textarea {
  display:block; width:100%; min-height:48px; padding:11px 13px; border:1.5px solid var(--line-2); border-radius:12px; background:#fbfcfe;
  font:16px/1.35 var(--sans); color:var(--ink); -webkit-appearance:none; appearance:none; transition:border-color .15s, box-shadow .15s, background .15s; }
.form-card input[type=date] { min-width:0; }
.form-card input[type=date]::-webkit-date-and-time-value { text-align:left; }
.form-card textarea { min-height:112px; resize:vertical; }
.form-card input::placeholder, .form-card textarea::placeholder { color:#6b7180; }
.form-card input:focus, .form-card textarea:focus { outline:none; border-color:var(--gold); background:#fff; box-shadow:0 0 0 4px rgba(214,166,26,.22); }
.form-bad input[type=text], .form-bad input[type=email], .form-bad input[type=date], .form-bad textarea { border-color:var(--red); background:#fff8f6; }
.form-err { display:flex; gap:6px; font-size:13px; font-weight:650; color:var(--red-d); margin-top:7px; }
.form-err::before { content:"!"; flex:none; width:17px; height:17px; border-radius:50%; background:var(--red); color:#fff; font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; margin-top:1px; }

/* the parents, side by side on a wide screen */
.form-duo { display:grid; gap:12px; }
@media (min-width:720px) { .form-duo { grid-template-columns:1fr 1fr; gap:14px; } }
.form-parent { min-width:0; border:1px solid var(--line); border-top:4px solid var(--c); border-radius:16px; padding:12px 14px 16px; background:linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #fff), #fff 120px); }
.form-parent h3 { font-family:var(--serif); font-size:23px; font-weight:700; color:var(--c); margin-bottom:8px; }

/* small round choices: living? DNA? who gets the cards? */
.form-chipset { border:0; margin:0; padding:0; min-width:0; }
.form-chipset > legend { float:left; width:100%; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-size:13.5px; font-weight:750; color:var(--ink); margin-bottom:6px; padding:0; }
.form-chiprow { clear:both; display:flex; flex-wrap:wrap; gap:7px; }
.form-step > .form-chipset { margin-top:14px; }
.form-chip { position:relative; display:inline-flex; }
.form-chip input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.form-chip span { display:inline-flex; align-items:center; min-height:44px; padding:0 15px; border-radius:999px; border:1.5px solid var(--line-2); background:#fff; font-size:14px; font-weight:700; color:var(--ink-2); transition:background .15s, color .15s, border-color .15s; }
.form-chip input:checked + span { background:var(--ink); border-color:var(--ink); color:#fff; }
.form-chip input:focus-visible + span { outline:2.5px solid #1b1e24; outline-offset:2px; box-shadow:0 0 0 6px rgba(214,166,26,.55); }

/* the four grandparents, in the wheel's four colours */
.form-gps { display:grid; gap:10px; }
@media (min-width:640px) { .form-gps { grid-template-columns:1fr 1fr; gap:12px; } }
.form-gp { min-width:0; border:1px solid var(--line); border-left:5px solid var(--c); border-radius:14px; padding:12px 12px 14px; background:#fff; }
.form-gp > label.form-sub { font-size:12.5px; font-weight:700; color:var(--mute); margin:10px 0 5px; }

/* photos */
.form-file-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.form-field > label.form-file-btn { display:inline-flex; justify-content:center; align-items:center; width:auto; margin:0; font-size:14px; font-weight:800; color:var(--ink); min-height:46px; cursor:pointer; }
.form-file-input:focus-visible + .form-file-btn { outline:2.5px solid #1b1e24; outline-offset:2px; box-shadow:0 0 0 6px rgba(214,166,26,.55); }
.form-file-count { margin-left:10px; font-size:13px; font-weight:700; color:var(--green-d); }
.form-files { list-style:none; display:grid; gap:6px; margin-top:10px; }
.form-files:empty { display:none; }
.form-files li { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; padding:2px 4px 2px 12px; border:1px solid var(--line); border-radius:12px; background:#fbfcfe; font-size:13.5px; color:var(--ink-2); }
.form-files li span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.form-file-x { flex:none; min-height:44px; padding:0 12px; border:0; border-radius:10px; background:transparent; color:var(--red-d); font:750 13px var(--sans); cursor:pointer; }
.form-file-x:hover { background:#fff1ee; }

/* the set, described once, then the famous-cousin question and the gift */
.form-set { display:flow-root; }
/* the main card as a print dropped on the table: white border, a slight tilt */
.form-set-img { display:block; width:min(100%, 330px); height:auto; margin:4px auto 18px; padding:7px; background:#fff; border-radius:3px; transform:rotate(-1.6deg); box-shadow:0 22px 34px -18px rgba(20,24,40,.55), 0 0 0 1px rgba(20,24,40,.07); }
@media (min-width:700px) { .form-set-img { float:right; width:250px; margin:2px 6px 12px 24px; transform:rotate(2deg); } }
.form-set-name { font-family:var(--serif); font-size:clamp(25px,5.6vw,30px); font-weight:700; line-height:1.05; color:var(--ink); }
.form-set-name b { color:var(--gold-d); white-space:nowrap; }
.form-set-sub { font-size:13.5px; color:var(--mute); margin-top:6px; }
.form-set-list { margin-top:10px !important; }
.form-set-list li { font-size:14px; }
.form-set-g { clear:both; margin-top:12px; padding:9px 12px; border-radius:11px; background:#eef6f0; border:1px solid #cfe3d5; font-size:13.5px; color:var(--green-d); }
.form-set-g b { color:var(--green-d); }

.form-tick { display:flex; align-items:flex-start; gap:12px; margin-top:10px; padding:13px 14px; min-height:48px; border:1.5px solid var(--line-2); border-radius:14px; background:#fff; font-size:14.5px; line-height:1.45; color:var(--ink-2); cursor:pointer; transition:border-color .15s, background .15s; }
.form-tick input { flex:none; width:22px; height:22px; margin:1px 0 0; accent-color:var(--gold-d); cursor:pointer; }
.form-tick b { color:var(--ink); }
.form-tick:has(input:checked) { border-color:var(--gold); background:#fffbef; }
.form-tick-famous { margin-top:16px; border-color:#ead9a6; background:linear-gradient(90deg,#fff8e6,#fff 70%); }
.form-tick a { color:var(--blue-d); }
.form-tick.form-bad { border-color:var(--red); background:#fff8f6; }
.form-tick .form-err { margin-top:6px; }
.form-tick > span { min-width:0; }
.form-gift { margin-top:10px; padding:14px; border-radius:14px; background:var(--ground); }
.form-heard { margin-top:16px !important; }
.form-never { font-size:13px; color:var(--mute); margin-top:12px; }

/* the send row: the total beside the button */
.form-send { display:grid; gap:10px; padding:20px 0 2px; }
@media (min-width:700px) { .form-send { grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:20px; } .form-private { grid-column:1 / -1; } }
.form-total { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; }
.form-total-k { font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--mute); }
.form-total b { font-family:var(--serif); font-size:36px; font-weight:700; line-height:1; color:var(--ink); font-variant-numeric:lining-nums; }
.form-total-n { flex-basis:100%; font-size:13px; color:var(--mute); }
.form-btn { width:100%; min-height:56px; font-size:16px; padding:0 30px; }
@media (min-width:700px) { .form-btn { width:auto; min-width:250px; } }
.form-btn[disabled] { opacity:.85; cursor:progress; }
.form-busy::before { content:""; width:17px; height:17px; border-radius:50%; border:2.5px solid rgba(255,255,255,.45); border-top-color:#fff; animation:form-spin .8s linear infinite; }
@keyframes form-spin { to { transform:rotate(360deg); } }
.form-private { font-size:12.5px; color:var(--mute); }
.form-private a { color:var(--blue-d); }

/* problems, the failed-send panel and the thank-you */
.form-errors { margin-top:16px; padding:14px 16px; border-radius:14px; background:#fff3f0; border:1.5px solid #e6b2a6; color:var(--red-d); font-size:14px; }
.form-errors ul { margin:6px 0 0; padding-left:18px; }
.form-errors a { display:block; padding:8px 0; color:var(--red-d); font-weight:700; }
.form-fail { margin-top:14px; padding:16px; border-radius:16px; background:#fbf3dc; border:1px solid #ead9a6; }
.form-fail p { font-size:14.5px; color:#5a4a26; }
.form-fail p b { color:#3d3214; }
.form-fail-acts, .form-done-acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.form-fail-acts .btn, .form-done-acts .btn { flex:1 1 180px; }
.form-fine { font-size:13px; color:var(--mute); margin-top:10px; }
.form-done { padding:26px 18px 22px; border-top:5px solid var(--gold); }
@media (min-width:700px) { .form-done { padding:34px 32px 28px; } }
.form-done h2 { font-family:var(--serif); font-size:clamp(32px,6.4vw,46px); font-weight:700; line-height:1.02; letter-spacing:-.01em; margin:10px 0 12px; }
.form-done h2 em { font-style:italic; font-weight:600; color:var(--gold-d); }
.form-done > p { font-size:15.5px; color:var(--ink-2); max-width:620px; }
.form-done-copy { margin-top:16px; border:1px solid var(--line); border-radius:14px; padding:0 14px; }
.form-done-copy summary { min-height:46px; display:flex; align-items:center; font-size:14px; font-weight:750; cursor:pointer; }
.form-done-copy pre { white-space:pre-wrap; word-break:break-word; font:13px/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; color:var(--ink-2); background:var(--ground); border-radius:10px; padding:12px; margin-bottom:14px; max-height:360px; overflow:auto; }

/* the side panel */
.form-aside { display:grid; gap:12px; align-content:start; }
.form-side { background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; box-shadow:0 14px 30px -26px rgba(20,24,40,.4); }
.form-side-gold { background:#fbf3dc; border-color:#ead9a6; }
.form-side h3 { font-family:var(--serif); font-size:24px; font-weight:700; line-height:1.08; }
.form-side h3 em { font-style:italic; font-weight:600; color:var(--gold-d); }
.form-side p { font-size:14px; color:var(--ink-2); margin-top:8px; }
.form-side-gold p { color:#5a4a26; }
.form-side p a { color:var(--blue-d); }
.form-side .btn { width:100%; margin-top:14px; }
@media (max-width:979px) { .form-aside { grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); } }

/* the choice at the top: the set is the hero, the First Look a small way in (owner's ladder, 1 Dec) */
.form-plan { border:1.5px solid var(--line-2); border-radius:16px; padding:12px 14px 14px; background:#fff; transition:border-color .15s, box-shadow .15s, opacity .15s; }
.form-plan + .form-plan { margin-top:10px; }
.form-plan-on { border-color:var(--gold); box-shadow:0 0 0 3px rgba(214,166,26,.16); }
.form-plan-set.form-plan-on { background:linear-gradient(180deg,#fffaf0,#fff 150px); }
.form-plan-look.form-plan-on { background:#fffbef; }
.form-plan-set:not(.form-plan-on) .form-set { opacity:.55; }
.form-plan-pick { display:flex; align-items:center; gap:12px; min-height:44px; cursor:pointer; }
.form-plan-pick input { flex:none; width:22px; height:22px; margin:0; accent-color:var(--gold-d); cursor:pointer; }
.form-plan-name { flex:1; min-width:0; font-family:var(--serif); font-size:clamp(23px,5.4vw,28px); font-weight:700; line-height:1.05; color:var(--ink); }
.form-plan-price { flex:none; font-family:var(--serif); font-size:clamp(25px,5.8vw,31px); font-weight:700; line-height:1; color:var(--gold-d); white-space:nowrap; font-variant-numeric:lining-nums; }
.form-plan-look .form-plan-name { font-size:19px; }
.form-plan-look .form-plan-price { font-size:21px; color:var(--ink-2); }
.form-plan-sub { font-size:13.5px; color:var(--mute); margin-top:4px; padding-left:34px; }
.form-plan-sub b { color:var(--ink-2); }
.form-plan .form-set { margin-top:10px; }
.form-plan .form-set-sub { margin-top:0; }
.form-plan .form-tick-famous { margin-top:12px; }
.form-pick > .form-tick { margin-top:12px; }

/* the hidden attribute always wins over a display rule above */
.form-sec [hidden] { display:none !important; }

/* every label at least 12px on a phone (blind check, 1 Dec): section labels, eyebrows, footer headings */
main.sub .eyebrow, main.sub .disc .kick, body footer.site h4, .form-nojs .card h4 { font-size:12px; }

/* the last button's promise (the quick-yes pass) */
.form-btn-note { margin:-2px 0 0; font-size:13px; font-weight:700; color:var(--ink-2); }
@media (min-width:700px) { .form-btn-note { grid-column:2; text-align:center; } }

/* THE GIFT, SPLIT IN TWO PLAIN QUESTIONS (his word, 1 Dec 2026: "what does that even mean?") and the one line about what is needed */
.form-only { margin:0 0 14px; padding:10px 14px; border-radius:12px; background:var(--ground); font-size:14px; color:var(--ink-2); }
.form-codeq { margin:12px 0 0; }
.form-linkbtn { appearance:none; border:0; background:none; padding:6px 0; font:inherit; font-size:14.5px; color:var(--ink-2); cursor:pointer; }
.form-linkbtn b { color:var(--blue-d); text-decoration:underline; text-underline-offset:3px; }
.form-code { margin-top:10px; }
.form-for { margin:0 0 6px; }
.form-lead-for { margin-top:10px; }

/* each grandparent: Born · Where · Died, three small plain boxes (his word, 1 Dec 2026: "born where died seems like a weird combination") */
.form-gp3 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr); gap:8px; margin-top:8px; }
.form-gp3 > div { display:flex; flex-direction:column; min-width:0; }
.form-gp3 .form-sub { margin-top:0; }
.form-gp3 input { min-width:0; width:100%; }
.form-gp3 .form-sub { display:block; font-size:12.5px; font-weight:700; color:var(--mute); margin:0 0 5px; }
.form-gp3 input { padding-left:10px; padding-right:8px; }

/* the parents: "highly suggested", and an "I don't know" tick that greys that parent's boxes (his word, 1 Dec 2026) */
.form-sug { font-size:11.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--mute); white-space:nowrap; }
.form-unknown { margin-top:8px; padding:9px 12px; min-height:42px; font-size:14px; }
.form-parent-off .form-field { opacity:.45; }
.form-unknown + .form-field { margin-top:14px; }
.form-unknown-note { margin:-4px 0 14px; padding:11px 14px; border-radius:12px; background:#fbf3dc; border:1px solid #ead9a6; font-size:14px; line-height:1.45; color:var(--ink-2); }
.form-unknown-note a { color:var(--blue-d); }

/* THE ADOPTED TICK AND THE DEATH BOX (1 Dec 2026): each opens only on the visitor's own answer */
.form-adopt { margin-top:6px; }
.form-tick input:disabled + span { opacity:.45; }
.form-adopt-more { margin-top:12px; }
.form-died { margin-top:12px; }
.form-died .form-hint { margin-top:5px; }
.form-adopt-note { margin:16px 0 2px; padding:12px 14px; border-radius:12px; background:#eef3f9; border:1px solid #cbdaea; font-size:14px; line-height:1.45; color:var(--ink-2); }
.form-adopt-note p { margin:0; }
.form-adopt-note .form-chipset { margin:12px 0 0; }

/* the ticks and the plan choice show the site's dark focus ring (the form's faint halo on every input had won over it) */
.form-card .form-tick input:focus-visible, .form-card .form-plan-pick input:focus-visible { outline:2.5px solid #1b1e24; outline-offset:2px; box-shadow:0 0 0 6px rgba(214,166,26,.55); }
