/* This stylesheet belongs only to the family-list editor. Portal colors are
   resolved by theme-loader; approved fonts come from /api/wedding-typography. */
:root {
  --cream: #fff4e5;
  --espresso: #23060c;
  --olive-black: #23060c;
  --fg-on-dark: #fff4e5;
  --deep-rust: var(--ct-accent-ink, #23060c);
  --warm-sienna: var(--espresso);
  --warm-khaki: var(--espresso);
  --fg-muted: var(--espresso);
  --butter: #e4e9e6;
  --taupe: color-mix(in srgb, var(--espresso) 30%, var(--cream));
  --hairline: color-mix(in srgb, var(--espresso) 26%, var(--cream));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--cream); color: var(--espresso); font: 400 18px/1.55 var(--font-body); }
a { color: inherit; text-underline-offset: 5px; }
button, input, summary, nav { font-family: var(--font-ui); font-weight: 500; }
button, input { font-size: 16px; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--espresso); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 300; padding: 12px; background: var(--cream); }
.skip-link:focus { top: 10px; }
.masthead { display: flex; align-items: center; gap: 16px; max-width: 1264px; margin: 0 auto; padding: 24px 36px; border-bottom: 1px solid var(--hairline); font: 500 11px/1.4 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; }
.masthead > :last-child { margin-left: auto; }
.brand-mark { display: block; width: 35px; height: 35px; background: currentColor; mask: url('../assets/wordmark/lang-co-tlc-ivory.svg') center/contain no-repeat; -webkit-mask: url('../assets/wordmark/lang-co-tlc-ivory.svg') center/contain no-repeat; }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; padding: 15px 24px; font-size: 12px; }
.section-nav a { padding: 10px 2px; text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }
.stack { max-width: 1192px; margin: 0 auto; padding: 0 40px 160px; }
.list-section { border-top: 1px solid var(--hairline); padding: 64px 0; scroll-margin-top: 24px; }
.list-section:first-child { border-top: 0; padding-top: 42px; }
.pg { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.6fr); gap: 28px 64px; }
#start .pg { display: block; max-width: 850px; margin: 0 auto; }
.doc-head { text-align: center; }
.eb { display: block; font: 500 11px/1.6 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(62px, 7.8vw, 104px); line-height: .97; letter-spacing: -.035em; margin: 0; }
h1 em { font-weight: 400; }
.script { display: block; font: 400 29px/1.4 var(--font-script); margin-top: 25px; }
.lede { max-width: 560px; margin: 26px auto 38px; text-align: center; font-size: 20px; line-height: 1.55; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pf label { display: block; font: 500 12px/1.5 var(--font-ui); margin-bottom: 8px; }
.fill { display: block; width: 100%; min-width: 0; min-height: 46px; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; padding: 10px 0; background: transparent; color: var(--espresso); font: 400 18px/1.5 var(--font-body); }
.fill::placeholder { color: var(--espresso); opacity: .72; font-style: italic; }
.fill:focus { background: color-mix(in srgb, var(--espresso) 4%, var(--cream)); }
.pf .fill { font-size: 24px; }
.planning-notes { margin: 26px 0; }
summary { min-height: 48px; padding: 12px 0; font-size: 14px; }
summary span { display: block; margin: 5px 0 0 18px; font: 400 17px/1.5 var(--font-body); }
.rules { border-top: 1px solid var(--hairline); margin-top: 12px; }
.rule { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.qn { font: 400 29px/1 var(--font-display); }
.rule .q { font: 500 13px/1.5 var(--font-ui); margin: 0 0 8px; }
.rule .a { margin: 0; font-size: 18px; }
.bignote { padding: 20px 24px; border: 1px solid var(--hairline); font-size: 18px; line-height: 1.6; margin: 20px 0 0; }
.sec-head { grid-column: 1; grid-row: 1 / span 5; }
.sec-head .eb { margin-bottom: 14px; }
h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.04; margin: 0 0 20px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sec-head p { margin: 0; font-size: 18px; }
.pg > :not(.sec-head) { min-width: 0; }
.pg > .combos, .pg > .more-combos, .pg > .freelines, .pg > .examples, .pg > .bignote, .pg > .signoff { grid-column: 2; }
.combos { border-top: 1px solid var(--hairline); }
.combo { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--hairline); }
.cn { padding-top: 12px; font: 500 11px/1.5 var(--font-ui); }
.prompt { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%; min-height: 44px; padding: 8px 0; background: transparent; border: 0; text-align: left; font: 400 17px/1.5 var(--font-body); }
.prompt b { font-weight: 400; }
.prompt:hover .skip-label { text-decoration: underline; text-underline-offset: 4px; }
.skip-label { flex-shrink: 0; font: 500 11px/1.5 var(--font-ui); }
.combo .fill { font-size: 18px; }
.combo.is-skipped .prompt > :first-child { text-decoration: line-through; }
.combo.is-skipped .fill { display: none; }
.more-combos { border-bottom: 1px solid var(--hairline); padding-bottom: 12px; }
.freelines { display: grid; gap: 12px; margin-top: 16px; }
.more-combos .freelines { margin-bottom: 24px; }
.examples { padding: 20px 24px; border: 1px solid var(--hairline); }
.examples h3 { font: 500 12px/1.5 var(--font-ui); margin: 0 0 12px; }
.examples ul { margin: 0; padding-left: 20px; }
.examples li { margin: 6px 0; }
.signoff { display: flex; flex-wrap: wrap; gap: 26px; align-items: end; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--hairline); }
.sig { font: 400 30px/1.5 var(--font-script); }
.role { font: 500 10px/1.6 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.toolbar { position: fixed; z-index: 100; bottom: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 10px 22px; background: var(--cream); color: var(--espresso); border-top: 1px solid var(--hairline); padding: 18px max(24px, calc((100vw - 1112px) / 2)) max(18px, env(safe-area-inset-bottom)); }
.toolbar .saved { flex: 1 1 180px; font: 500 12px/1.5 var(--font-ui); }
.toolbar button { min-height: 44px; border: 0; border-bottom: 1px solid var(--espresso); padding: 10px 0; background: transparent; color: var(--espresso); font-size: 12px; }
.toolbar button.done { padding: 14px 26px; border: 1px solid var(--olive-black); background: var(--olive-black); color: var(--fg-on-dark); }
.toolbar button:hover { text-decoration: underline; text-underline-offset: 4px; }
.viewer-state { max-width: 800px; margin: 20px auto; padding: 22px; border: 1px solid var(--espresso); background: var(--cream); color: var(--espresso); font: 500 14px/1.6 var(--font-ui); }
.viewer-state strong { display: block; margin-bottom: 6px; }
.viewer-state a { display: inline-block; margin-top: 12px; }
#viewer-loading { display: none; text-align: center; }
.viewer-loading #viewer-loading { display: block; }
.viewer-loading .stack, .viewer-loading .toolbar { visibility: hidden; }
.staff-preview-mode .fill { cursor: default; }
.staff-preview-mode .skip-label { display: none; }
.print-value { display: none; }
@media (max-width: 700px) {
  .masthead { padding: 20px; gap: 12px; font-size: 9px; }
  .brand-mark { width: 28px; height: 28px; }
  .section-nav { gap: 0 16px; padding: 8px 16px; font-size: 11px; }
  .stack { padding: 0 22px 210px; }
  .list-section { padding: 38px 0; }
  .list-section:first-child { padding-top: 30px; }
  .pg { display: block; }
  .sec-head { margin-bottom: 26px; }
  h1 { font-size: clamp(57px, 13vw, 80px); }
  h2 { font-size: 40px; }
  .script { font-size: 24px; margin-top: 22px; }
  .lede { font-size: 19px; }
  .partners { gap: 20px; }
  .pf label { font-size: 11px; }
  .pf .fill { font-size: 22px; }
  .combo { gap: 6px; grid-template-columns: 24px minmax(0, 1fr); }
  .prompt { gap: 12px; }
  .bignote, .examples { padding: 18px; }
  .toolbar { gap: 8px 18px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); }
  .toolbar .saved { flex-basis: 100%; }
  .toolbar button.done { margin-left: auto; padding: 12px 18px; }
  .viewer-state { margin: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: letter; margin: .6in; }
@media print {
  body.family-list { --cream: #fff; --espresso: #23060c; --hairline: #c9bcb8; }
  html, body { background: #fff !important; color: #23060c !important; }
  .masthead, .section-nav, .toolbar, .viewer-state, .skip-link, .planning-notes, .skip-label { display: none !important; }
  .stack { max-width: none; padding: 0; }
  .list-section, .list-section:first-child { padding: 18px 0; break-before: page; border: 0; }
  .list-section:first-child { break-before: auto; }
  .pg { display: block; }
  .doc-head, .lede { text-align: left; }
  h1 { font-size: 58pt; }
  h2 { font-size: 30pt; margin-bottom: 12px; }
  .sec-head { margin-bottom: 20px; }
  .eb { margin-bottom: 12px; }
  .script { font-size: 24pt; }
  .lede { margin: 22px 0; }
  .fill { display: none; }
  .print-value { display: block; min-height: 26px; padding: 4px 0; border-bottom: 1px solid var(--hairline); font: 400 12pt/1.5 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
  .combo { break-inside: avoid; padding: 8px 0; }
  .prompt { min-height: 0; padding: 0; font-size: 10pt; }
  .cn { padding-top: 0; }
  .combo.is-skipped { display: none; }
  .more-combos { margin-top: 22px; }
  .more-combos::details-content { display: block; content-visibility: visible; }
  .more-combos > .freelines { display: grid !important; }
  .more-combos summary { list-style: none; font-size: 11pt; }
  .more-combos summary span { display: none; }
  .freelines { gap: 8px; }
  .signoff, .examples, .bignote { break-inside: avoid; }
  .bignote { margin-top: 22px; }
}

.request-intro { grid-column: 2; margin: 0; font-size: 18px; }

/* Emilea & Colin's family-list presentation only; saved answers are unchanged. */
html.family-monochrome body.family-list {
  --cream: #ffffff;
  --espresso: #000000;
  --olive-black: #000000;
  --fg-on-dark: #ffffff;
  --deep-rust: #000000;
  --warm-sienna: #000000;
  --warm-khaki: #000000;
  --fg-muted: #000000;
  --fg-subtle: #555555;
  --butter: #f2f2f2;
  --taupe: #767676;
  --hairline: #888888;
}

/* Keep a page heading for screen readers without the oversized visual title. */
html.family-monochrome .doc-head [data-copy="pageTitle"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
html.family-monochrome .doc-head [data-copy="tagline"] { display: none; }

@media print {
  html.family-monochrome,
  html.family-monochrome body.family-list {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
