/* wizard.css — "Blue site" design system for the Who's Who Edits wizard.
   Navy + cream + gold, classic serif. */

:root {
  --navy:        #112441;
  --navy-2:      #16294a;
  --navy-line:   #2c3f60;
  --cream:       #ece7dd;
  --cream-2:     #f3efe6;
  --paper:       #ffffff;
  --gold:        #c39a3f;
  --gold-soft:   #d8b65f;
  --gold-deep:   #a07f2c;
  --green:       #2f6a4c;
  --green-deep:  #275a40;
  --ink:         #21262e;
  --ink-soft:    #4c4f56;
  --muted:       #7c776b;
  --line:        #e2dccb;
  --line-soft:   #ece6d8;
  --field-bg:    #f8f4ea;
  --field-border:#d8cfba;
  --field-focus: #b89a4e;
  --blue-bg:     #dde7f2;
  --blue-border: #b7cbe2;
  --danger:      #a8442e;

  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-body:    "Spectral", Georgia, "Times New Roman", serif;

  --shadow-card: 0 1px 2px rgba(17,36,65,.05), 0 10px 30px rgba(17,36,65,.06);
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--navy);
  color: #f4efe4;
  text-align: center;
  padding: 26px 24px 30px;
  border-bottom: 3px solid var(--gold);
}
.masthead .eyebrow {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 8px;
  font-weight: 600;
}
.masthead h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.1;
}
.masthead .rule {
  width: 64px; height: 2px; background: var(--gold);
  margin: 14px auto;
}
.masthead .sub {
  font-family: var(--serif-display);
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d8d2c4;
  margin: 0;
}

/* ---------- Layout shell ---------- */
.shell { max-width: 1000px; margin: 0 auto; padding: 26px 24px 70px; }

/* Biographee bar */
.bio-bar {
  background: var(--navy-2);
  color: #ede8dc;
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.bio-bar .bio-id { display: flex; flex-direction: column; gap: 3px; }
.bio-bar .bio-name {
  font-family: var(--serif-display);
  font-size: 22px; font-weight: 600; letter-spacing: .01em;
}
.bio-bar .bio-meta {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #9fb0c8;
}
.bio-bar .bio-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saved-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .04em; color: #b9c6d9;
}
.saved-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,106,76,.25); }
.saved-pill.saving .dot { background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(216,182,95,.25); }

.btn-ghost {
  font-family: var(--serif-body);
  background: transparent; color: #e7e1d4;
  border: 1px solid var(--navy-line);
  border-radius: 3px; padding: 8px 16px;
  font-size: 13px; letter-spacing: .05em; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--gold-soft); color: #fff; }

/* ---------- Progress nav (shared) ---------- */
.progress-wrap { margin: 22px 0 18px; }

/* Style: Stepper (numbered circles) */
.stepper { display: flex; align-items: flex-start; gap: 0; }
.stepper .node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1 1 0; position: relative; cursor: pointer; min-width: 0;
  background: none; border: none; font-family: inherit; padding: 0;
}
.stepper .node:disabled { cursor: not-allowed; }
.stepper .node .circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--field-border); background: var(--paper);
  color: var(--muted); font-family: var(--serif-display); font-weight: 600; font-size: 16px;
  transition: all .18s; z-index: 1;
}
.stepper .node .label {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: center; line-height: 1.25;
  transition: color .18s;
}
.stepper .node::before, .stepper .node::after {
  content: ""; position: absolute; top: 17px; height: 1.5px; background: var(--field-border);
  z-index: 0;
}
.stepper .node::before { left: 0; right: 50%; }
.stepper .node::after  { left: 50%; right: 0; }
.stepper .node:first-child::before { display: none; }
.stepper .node:last-child::after { display: none; }
.stepper .node.done .circle { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper .node.done::before, .stepper .node.done::after { background: var(--navy); }
.stepper .node.current .circle { border-color: var(--gold); color: var(--gold-deep); background: #fff; box-shadow: 0 0 0 4px rgba(195,154,63,.16); }
.stepper .node.current .label { color: var(--ink); font-weight: 600; }
.stepper .node.done .label { color: var(--ink-soft); }
.stepper .node:not(:disabled):hover .circle { border-color: var(--gold); }

/* Style: Segmented bar */
.segbar .seg-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;
}
.segbar .seg-title { font-family: var(--serif-display); font-size: 20px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segbar .seg-count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex: none; padding-left: 14px; }
.segbar .seg-track { display: flex; gap: 4px; }
.segbar .seg {
  flex: 1 1 0; height: 8px; border-radius: 2px; background: var(--line);
  cursor: pointer; transition: background .18s; border: none; padding: 0;
}
.segbar .seg:disabled { cursor: not-allowed; }
.segbar .seg.done { background: var(--navy); }
.segbar .seg.current { background: var(--gold); }
.segbar .seg-labels {
  display: flex; gap: 4px; margin-top: 8px;
}
.segbar .seg-lab {
  flex: 1 1 0; text-align: center; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.segbar .seg-lab.current { color: var(--ink); font-weight: 600; }

/* Style: Sidebar rail (set on .shell-grid) */
.rail { display: flex; flex-direction: column; gap: 2px; }
.rail .rail-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 11px 14px; border-radius: 4px; cursor: pointer;
  background: transparent; border: 1px solid transparent; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.rail .rail-item:disabled { cursor: not-allowed; opacity: .55; }
.rail .rail-item .rnum {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--serif-display); font-weight: 600;
  font-size: 14px; border: 1.5px solid var(--field-border); color: var(--muted); background: var(--paper);
  transition: all .15s;
}
.rail .rail-item .rlab { font-size: 14px; letter-spacing: .02em; color: var(--ink-soft); }
.rail .rail-item.done .rnum { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail .rail-item.current { background: #fff; border-color: var(--line); box-shadow: var(--shadow-card); }
.rail .rail-item.current .rnum { border-color: var(--gold); color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(195,154,63,.16); }
.rail .rail-item.current .rlab { color: var(--ink); font-weight: 600; }
.rail .rail-item:not(:disabled):hover { background: var(--cream-2); }
.rail-progress { margin: 8px 4px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.shell-grid { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start; }
.shell-grid .rail-col { position: sticky; top: 18px; }

/* ---------- Card / step ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-head {
  padding: 20px 30px 16px;
  border-bottom: 1px solid var(--gold);
  background: var(--cream-2);
}
.card-head .kicker {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 6px;
}
.card-head h2 {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 30px); margin: 0; letter-spacing: .01em; color: var(--navy);
}
.card-head .blurb { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 64ch; }
.card-body { padding: 28px 30px 30px; }

.section-note {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--cream-2); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  padding: 11px 14px; border-radius: 3px; margin-bottom: 22px;
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
}
.section-note .ni { color: var(--gold-deep); flex: none; font-style: italic; font-family: var(--serif-display); font-weight: 700; }

/* ---------- Form grid + fields ---------- */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field > .flabel {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.field .req { color: var(--danger); font-size: 13px; }
.field .fnote { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.field .frow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.input, .textarea, .select {
  font-family: var(--serif-body); font-size: 15.5px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border);
  border-radius: 3px; padding: 10px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--field-focus); background: #fff;
  box-shadow: 0 0 0 3px rgba(195,154,63,.15);
}
.input::placeholder, .textarea::placeholder { color: #b3aa97; font-style: italic; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168,68,46,.12);
}
.select-wrap { position: relative; }
.select { appearance: none; cursor: pointer; padding-right: 36px; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.field-err { color: var(--danger); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }

.charcount { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.charcount.warn { color: var(--gold-deep); }
.charcount.over { color: var(--danger); font-weight: 600; }

/* Tooltip */
.tip { position: relative; display: inline-flex; }
.tip .tbtn {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--field-border);
  background: var(--cream-2); color: var(--muted); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; cursor: help; font-family: var(--serif-body);
}
.tip .tbody {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #f1ece0; font-size: 12.5px; letter-spacing: .01em;
  line-height: 1.45; text-transform: none; font-weight: 400;
  padding: 9px 12px; border-radius: 4px; width: 240px; z-index: 40;
  box-shadow: 0 8px 24px rgba(17,36,65,.28);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.tip .tbody::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--navy);
}
.tip:hover .tbody, .tip:focus-within .tbody { opacity: 1; visibility: visible; }

/* ---------- Step footer ---------- */
.step-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.budget { display: flex; flex-direction: column; gap: 5px; flex: 1 1 300px; max-width: 380px; }
.budget .blab { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.budget .blab b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget .btrack { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.budget .bfill { height: 100%; background: var(--navy); transition: width .3s; }
.budget .bfill.warn { background: var(--gold); }
.budget .bfill.over { background: var(--danger); }

.nav-btns { display: flex; gap: 12px; }
.btn {
  font-family: var(--serif-body); cursor: pointer; border-radius: 3px; white-space: nowrap;
  font-size: 14px; letter-spacing: .04em; padding: 11px 24px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-back { background: #fff; color: var(--ink-soft); border-color: var(--field-border); }
.btn-back:hover { border-color: var(--muted); color: var(--ink); }
.btn-next {
  background: var(--gold); color: #3a2e0e; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.btn-next:hover { background: var(--gold-soft); }
.btn-submit {
  background: var(--green); color: #fff; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: 13.5px; padding: 13px 30px;
}
.btn-submit:hover { background: var(--green-deep); }
.btn-submit:disabled { background: #9aa79e; cursor: not-allowed; }

/* ---------- Welcome step ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 34px; align-items: start; }
.welcome-intro .w-lede { font-size: 16px; color: var(--ink); margin: 0 0 18px; }
.welcome-steps { list-style: none; counter-reset: wstep; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.welcome-steps li {
  counter-increment: wstep; position: relative; padding-left: 46px;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.55;
}
.welcome-steps li::before {
  content: counter(wstep); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #f4efe4; font-family: var(--serif-display); font-weight: 600; font-size: 16px;
}
.welcome-steps li b { color: var(--ink); }
.w-gold { color: var(--gold-deep); font-weight: 600; }
.welcome-intro .w-note { font-size: 13.5px; color: var(--muted); font-style: italic; margin: 0 0 22px; }
.deadline {
  border-top: 1px solid var(--line-soft); padding-top: 18px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.deadline span { font-size: 14px; color: var(--ink-soft); }
.deadline strong {
  font-family: var(--serif-display); font-size: clamp(22px, 3vw, 28px); font-weight: 600;
  color: var(--danger); letter-spacing: .02em;
}

.welcome-photo { display: flex; flex-direction: column; }
.seal-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  padding: 24px 20px 16px; text-align: center;
}
.seal {
  width: 180px; height: 180px; margin: 0 auto; border-radius: 50%;
  border: 2px solid var(--navy); box-shadow: 0 0 0 4px var(--cream-2), inset 0 0 0 6px var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--navy); padding: 14px;
}
.seal-arc { font-family: var(--serif-display); font-weight: 700; letter-spacing: .04em; line-height: 1.05; text-align: center; }
.seal-arc.top { font-size: 15px; max-width: 120px; }
.seal-arc.bottom { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.seal-rule { width: 80px; height: 1px; background: var(--navy); opacity: .5; }
.seal-star { font-size: 7px; letter-spacing: .3em; color: var(--gold-deep); }
.seal-year { font-family: var(--serif-display); font-weight: 700; font-size: 20px; letter-spacing: .1em; white-space: nowrap; }
.seal-photo { width: 168px; height: 200px; object-fit: cover; margin: 0 auto; border-radius: 3px; border: 3px solid var(--paper); box-shadow: 0 2px 10px rgba(17,36,65,.2); display: block; }
.seal-caption { margin: 14px 0 0; font-size: 13px; font-style: italic; color: var(--danger); }
.seal-caption.ok { color: var(--green-deep); }

.image-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.image-actions .btn-pill { padding: 10px 20px; font-size: 12px; white-space: nowrap; }
.image-fineprint { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 14px 0 0; }
.image-fineprint a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.image-fineprint b { color: var(--ink); }

.warn-band {
  margin-top: 28px; border: 1px solid #e6cfa0; background: #fbf4e3;
  border-radius: 4px; padding: 18px 24px; text-align: center;
}
.warn-head {
  margin: 0 0 10px; color: var(--danger); font-weight: 600; font-size: 15px; line-height: 1.5;
  text-align: center;
}
.warn-ico { color: #d8a72a; font-size: 18px; white-space: nowrap; }
.warn-body { margin: 0 auto 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; max-width: 78ch; }
.warn-em { color: var(--danger); font-weight: 600; }
.warn-foot { margin: 0; font-weight: 600; color: var(--ink); font-size: 14px; }

@media (max-width: 760px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Photo step ---------- */
.photo-grid { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.photo-frame {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px),
    var(--navy);
  border-radius: 3px; padding: 0; overflow: hidden; position: relative;
  aspect-ratio: 1 / 1.18; min-height: 360px; display: grid; place-items: center;
}
.photo-frame .watermark {
  position: absolute; inset: 0; opacity: .14; font-family: var(--serif-display);
  font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; overflow: hidden;
  word-break: break-all; padding: 6px; user-select: none;
}
.photo-inner {
  position: relative; width: 60%; aspect-ratio: 3/4; border-radius: 2px;
  background: linear-gradient(135deg, #6b7d92, #3c4a5e);
  display: grid; place-items: center; color: #d7ddE6; text-align: center; z-index: 2;
  border: 3px solid rgba(255,255,255,.85);
}
.photo-inner .ph-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.photo-corner { position: absolute; bottom: 10px; right: 10px; z-index: 3; text-align: right; color: #fff; font-family: var(--serif-display); font-weight: 700; line-height: 1; }
.photo-corner small { display: block; font-size: 9px; letter-spacing: .1em; opacity: .8; }
.guide h4 { font-family: var(--serif-display); font-size: 19px; color: var(--navy); margin: 0 0 10px; font-weight: 600; }
.guide h4:not(:first-child) { margin-top: 22px; }
.guide ul { margin: 0; padding-left: 18px; }
.guide li { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.photo-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-pill {
  font-family: var(--serif-body); cursor: pointer; border-radius: 999px;
  padding: 11px 26px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--gold); background: var(--gold); color: #3a2e0e; transition: all .15s;
}
.btn-pill:hover { background: var(--gold-soft); }
.btn-pill.ghost { background: transparent; color: var(--gold-deep); }
.btn-pill.ghost:hover { background: rgba(195,154,63,.1); }
.photo-status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  padding: 9px 16px; border-radius: 3px; font-size: 14px;
}
.photo-status.approved { background: rgba(47,106,76,.1); color: var(--green-deep); border: 1px solid rgba(47,106,76,.3); }
.photo-status.requested { background: rgba(195,154,63,.12); color: var(--gold-deep); border: 1px solid rgba(195,154,63,.4); }

/* ---------- Review step ---------- */
.review-block { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.review-block .rb-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; background: var(--cream-2); border-bottom: 1px solid var(--line-soft);
}
.review-block .rb-head h3 {
  font-family: var(--serif-display); font-size: 19px; font-weight: 600; color: var(--navy); margin: 0;
  flex: 1 1 auto; line-height: 1.15;
}
.rb-edit { flex: none; }
.rb-edit {
  font-family: var(--serif-body); background: none; border: none; cursor: pointer;
  color: var(--gold-deep); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.rb-edit:hover { color: var(--gold); text-decoration: underline; }
.rb-body { padding: 6px 18px 14px; }
.rb-row { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px dotted var(--line-soft); }
.rb-row:last-child { border-bottom: none; }
.rb-row dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 2px; }
.rb-row dd { margin: 0; font-size: 15px; color: var(--ink); white-space: pre-wrap; }
.rb-row dd.empty { color: #b3aa97; font-style: italic; }

.attest {
  display: flex; gap: 13px; align-items: flex-start; margin-top: 22px;
  background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 18px 20px;
}
.attest input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; cursor: pointer; }
.attest label { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.attest .fine { display: block; margin-top: 9px; font-size: 12px; color: var(--muted); }

/* ---------- Signature pad ---------- */
.sig { margin-bottom: 4px; }
.sig-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.sig-clear {
  font-family: var(--serif-body); background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px; letter-spacing: .06em;
}
.sig-clear:hover { color: var(--danger); }
.sig-pad-wrap {
  position: relative; background: var(--field-bg); border: 1px solid var(--field-border);
  border-radius: 3px; height: 130px; overflow: hidden;
}
.sig-pad { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sig-hint {
  position: absolute; left: 16px; bottom: 14px; color: #b3aa97; font-style: italic;
  font-size: 15px; pointer-events: none; border-bottom: 1px solid #cdc4ad; padding-bottom: 2px;
}

/* ---------- Footer ---------- */
.colophon {
  background: var(--navy); color: #c8cdd8; text-align: center;
  padding: 30px 24px; font-size: 12.5px; line-height: 1.7; border-top: 3px solid var(--gold);
}
.colophon h5 { font-family: var(--serif-display); color: var(--gold-soft); font-size: 15px; letter-spacing: .1em; margin: 0 0 10px; font-weight: 600; }
.colophon p { max-width: 760px; margin: 0 auto; }
.colophon .legal { margin-top: 16px; color: #8a93a4; }
.colophon a { color: var(--gold-soft); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--green); color: #fff; padding: 14px 26px; border-radius: 5px;
  font-size: 14px; letter-spacing: .03em; box-shadow: 0 12px 34px rgba(17,36,65,.3);
  opacity: 0; transition: opacity .25s, transform .25s; z-index: 60; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Confirmation screen ---------- */
.confirm { text-align: center; padding: 50px 30px; }
.confirm .seal {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  border: 2px solid var(--gold); display: grid; place-items: center; color: var(--green);
  background: rgba(47,106,76,.08); font-size: 38px;
}
.confirm h2 { font-family: var(--serif-display); font-size: 32px; color: var(--navy); margin: 0 0 12px; font-weight: 600; }
.confirm p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 8px; }

/* fade transition for step changes — transform only so content is never held hidden */
.step-anim { animation: stepIn .35s ease both; }
@keyframes stepIn { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .step-anim { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .shell-grid { grid-template-columns: 1fr; }
  .shell-grid .rail-col { position: static; }
  .rail { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .rail .rail-item { flex-direction: column; gap: 6px; min-width: 78px; text-align: center; padding: 10px 8px; }
  .rail .rail-item .rlab { font-size: 11px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .shell { padding: 18px 14px 56px; }
  .card-head, .card-body { padding-left: 18px; padding-right: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .stepper .node .label { display: none; }
  .rb-row { grid-template-columns: 1fr; gap: 4px; }
  .step-foot { flex-direction: column; align-items: stretch; }
  .nav-btns { justify-content: space-between; }
  .nav-btns .btn { flex: 1; }
}
