/* The Party Carty — brand tokens. Swap these when the real brand kit arrives. */
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1E1B3A;          /* deep plum-navy — text, dark surfaces */
  --ink-2: #4A4668;
  --mid: #7A7694;
  --cream: #FFF8EE;        /* page */
  --paper: #FFFFFF;
  --coral: #E8436B;        /* the party color — primary actions */
  --coral-d: #C92F57;
  --sun: #FFB627;          /* confetti gold — highlights */
  --teal: #16A394;         /* fresh mint — good/confirmed */
  --lilac: #EFEAFF;
  --blush: #FFE7EC;
  --border: #E9E2D6;
  --ghost: #FBF6EE;
  --amber: #C88020;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(30,27,58,.04), 0 10px 30px -12px rgba(30,27,58,.18);
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16.5px; line-height: 1.55; }
h1, h2, h3, h4, .display { font-family: 'Bricolage', 'DM Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
h3 { font-size: 1.25rem; }
a { color: var(--coral-d); }
a:hover { color: var(--ink); }
.muted { color: var(--mid); }
.small-caps { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mid); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn-party { background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.5rem; font-weight: 700; box-shadow: 0 6px 0 -1px var(--coral-d); transition: transform .08s, box-shadow .08s; }
.btn-party:hover, .btn-party:focus { background: var(--coral-d); color: #fff; }
.btn-party:active { transform: translateY(3px); box-shadow: 0 3px 0 -1px var(--coral-d); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .7rem 1.3rem; font-weight: 700; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .92rem; }
.btn-quiet:hover { border-color: var(--ink); }

/* Nav */
.site-nav { padding: 14px 0; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-word { font-family: 'Bricolage', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1; }
.logo-word small { display: block; font-family: 'DM Sans'; font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--coral-d); }

/* Flash */
.flash-stack { position: sticky; top: 0; z-index: 50; padding-top: 10px; }
.flash { border-radius: 14px; padding: .8rem 1rem; margin-bottom: 8px; font-weight: 600; box-shadow: var(--shadow); }
.flash-success { background: #E4F7F4; color: #0C6A60; }
.flash-error { background: var(--blush); color: #9C1C3D; }
.flash-info { background: var(--lilac); color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 70px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .kicker { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 700; border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; transform: rotate(-2deg); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.confetti { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.hero-card { background: var(--ink); color: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-card h3 { color: #fff; }
.hero-card .q-why { background: rgba(255,255,255,.08); color: #E9E6FF; }

/* Sections */
.band { padding: 60px 0; }
.band-ink { background: var(--ink); color: #EDEAFF; }
.band-ink h2, .band-ink h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .num { font-family: 'Bricolage'; font-weight: 800; font-size: 2.2rem; color: var(--coral); line-height: 1; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* Cards */
.card-pc { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-pc + .card-pc { margin-top: 16px; }
.card-pc h3 { margin-bottom: .4rem; }

/* ---------- The interview ---------- */
.interview { padding-top: 20px; padding-bottom: 60px; }
.progress-pc { height: 10px; background: #EFE7DA; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress-pc > span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--sun)); border-radius: 999px; }
.q-section { color: var(--coral-d); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.q-prompt { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .4rem 0 1rem; }
.q-why { background: var(--lilac); border-radius: 16px; padding: 14px 16px 14px 48px; position: relative; color: var(--ink-2); margin-bottom: 22px; }
.q-why::before { content: "?"; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; font-family: 'Bricolage'; }
.q-why strong { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choices.cols-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .face { display: block; height: 100%; background: var(--paper); border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px 14px 48px; transition: border-color .12s, transform .12s, box-shadow .12s; }
.choice .face::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CFC6B6; background: #fff; }
.choice.is-multi .face::before { border-radius: 6px; }
.choice .face b { display: block; font-weight: 700; font-size: 1.02rem; }
.choice .face small { display: block; color: var(--mid); margin-top: 2px; font-size: .88rem; }
.choice:hover .face { border-color: var(--ink-2); transform: translateY(-1px); }
.choice input:checked + .face { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232,67,107,.15); background: #FFF5F7; }
.choice input:checked + .face::before { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + .face { outline: 3px solid var(--sun); outline-offset: 2px; }
.choice .icon { font-size: 1.6rem; display: block; margin-bottom: 4px; }

.type-choice .face { padding: 18px 16px; text-align: left; }
.type-choice .face::before { display: none; }
.type-choice svg { width: 36px; height: 36px; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: .5rem 1rem; border: 2px solid var(--border); border-radius: 999px; background: var(--paper); font-weight: 700; cursor: pointer; }
.chip-radio input:checked + span { border-color: var(--coral); background: #FFF5F7; color: var(--coral-d); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--sun); }

.big-input { font-size: 1.3rem; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--border); background: var(--paper); width: 100%; max-width: 360px; }
.big-input:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(232,67,107,.15); }
.form-control, .form-select { border-radius: 12px; border: 2px solid var(--border); padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232,67,107,.15); }
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.q-error { background: var(--blush); color: #9C1C3D; border-radius: 12px; padding: .6rem .9rem; font-weight: 600; margin-bottom: 14px; }
.venue-city { margin: 18px 0 8px; font-weight: 800; font-family: 'Bricolage'; }
.venue-note { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; margin-left: .3rem; }
.venue-note.ok { background: #E4F7F4; color: #0C6A60; }
.venue-note.unv { background: #FFF1D6; color: #8A5A00; }
.known-list { background: #E4F7F4; border-radius: 14px; padding: 12px 16px; color: #0C4F48; }

/* ---------- Event page ---------- */
.ev-head { padding: 18px 0 8px; }
.status-pill { display: inline-block; border-radius: 999px; padding: .25rem .8rem; font-weight: 700; font-size: .85rem; }
.st-draft { background: #EEE; color: #555; } .st-submitted { background: var(--lilac); color: var(--ink); }
.st-proposed { background: #FFF1D6; color: #8A5A00; } .st-negotiating { background: var(--blush); color: #9C1C3D; }
.st-accepted { background: #E4F7F4; color: #0C6A60; } .st-completed { background: #E4F7F4; color: #0C6A60; } .st-cancelled { background: #EEE; color: #777; }
.ev-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .ev-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--ghost); border-radius: 14px; padding: 12px 14px; }
.fact .v { font-family: 'Bricolage'; font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.fact .l { font-size: .8rem; color: var(--mid); font-weight: 600; }
.fact.hot { background: #FFE9D6; } .fact.cool { background: #E6F2FF; }

.insight { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--border); }
.insight:first-child { border-top: 0; }
.insight .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex: none; background: #CCC; }
.insight .dot.ok { background: var(--teal); } .insight .dot.running, .insight .dot.queued { background: var(--sun); animation: pulse 1.2s infinite; } .insight .dot.failed { background: var(--coral); }
@keyframes pulse { 50% { opacity: .35; } }

.flag { border-radius: 14px; padding: 12px 14px 12px 16px; border-left: 5px solid var(--mid); background: var(--ghost); margin-bottom: 10px; }
.flag.sev-high { border-left-color: var(--coral); background: #FFF3F5; }
.flag.sev-medium { border-left-color: var(--sun); background: #FFF9EC; }
.flag.sev-low { border-left-color: var(--teal); background: #F1FBF9; }
.flag b { display: block; }
.flag .plan { color: var(--ink-2); font-size: .93rem; margin-top: 4px; }
.flag .plan::before { content: "Our plan: "; font-weight: 700; color: var(--ink); }

.rule { padding: 10px 0; border-top: 1px solid var(--border); }
.rule:first-child { border-top: 0; }
.rule .tag { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; margin-right: .35rem; text-transform: uppercase; letter-spacing: .06em; }
.tag-required { background: var(--blush); color: #9C1C3D; } .tag-conditional { background: #FFF1D6; color: #8A5A00; } .tag-info { background: #EEE; color: #555; }
.tag-verified { background: #E4F7F4; color: #0C6A60; } .tag-unverified { background: #FFF1D6; color: #8A5A00; }
.rule.dim { opacity: .55; }

.curve { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.curve .bar { flex: 1; background: linear-gradient(180deg, var(--coral), #F49AAF); border-radius: 8px 8px 3px 3px; position: relative; min-height: 4px; }
.curve .bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .75rem; font-weight: 700; }
.curve-labels { display: flex; gap: 6px; } .curve-labels div { flex: 1; text-align: center; font-size: .75rem; color: var(--mid); }

.clause { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; background: var(--paper); }
.clause-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.clause h4 { font-size: 1.05rem; margin: 0; }
.mode { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; }
.mode-locked { background: #EEE; color: #555; } .mode-self { background: #E4F7F4; color: #0C6A60; } .mode-staff { background: var(--lilac); color: var(--ink); }
.clause .why-added { font-size: .82rem; color: var(--amber); font-weight: 600; }
.clause p { margin: .5rem 0 0; }
.clause details { margin-top: 10px; }
.clause summary { cursor: pointer; font-weight: 700; color: var(--coral-d); font-size: .92rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.quote-table { width: 100%; font-size: .95rem; }
.quote-table td { padding: 6px 0; border-top: 1px solid var(--border); vertical-align: top; }
.quote-table td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-table .grp td { border-top: 0; padding-top: 14px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mid); }
.quote-total { font-family: 'Bricolage'; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.sticky-side { position: sticky; top: 16px; }
.lever { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); font-size: .93rem; }
.lever b { color: var(--teal); white-space: nowrap; }

.ai-read { background: var(--ink); color: #EDEAFF; border-radius: var(--radius); padding: 22px; }
.ai-read h3 { color: #fff; } .ai-read .small-caps { color: #B8B2E6; }
.ai-read li { margin-bottom: 6px; }
.ai-read .q { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ai-read .q small { display: block; color: #B8B2E6; }

.sign-box { border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.sig-font { font-family: 'Bricolage'; font-size: 1.6rem; }

footer.site-foot { padding: 40px 0; color: var(--mid); font-size: .9rem; border-top: 1px solid var(--border); margin-top: 40px; }

/* ---------- Admin (spine rows — see memory feedback_spine_row_table_style) ---------- */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar a { color: #EDEAFF; text-decoration: none; font-weight: 600; margin-right: 16px; }
.admin-bar a.on, .admin-bar a:hover { color: var(--sun); }
.schools-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.schools-table th { text-align: left; padding: .8rem 1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); font-weight: 600; background: var(--ghost); }
.schools-table td { padding: .8rem 1rem; vertical-align: top; background: var(--paper); }
.schools-table.spine-rows { border-collapse: separate; border-spacing: 0 6px; }
.schools-table.spine-rows thead th { border-bottom: 1px solid var(--border); }
.schools-table.spine-rows tbody td { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.schools-table.spine-rows tbody td:last-child { border-right: 1px solid var(--border); border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.schools-table.spine-rows tbody tr td:first-child { border-left: 4px solid var(--mid); border-top-left-radius: 6px; border-bottom-left-radius: 6px; padding-left: .8rem; }
.schools-table.spine-rows tbody tr.bar-sb-gray td:first-child { border-left-color: #b0b6bd; }
.schools-table.spine-rows tbody tr.bar-sb-blue td:first-child { border-left-color: #5a7891; }
.schools-table.spine-rows tbody tr.bar-sb-amber td:first-child { border-left-color: #c88020; }
.schools-table.spine-rows tbody tr.bar-sb-teal td:first-child { border-left-color: var(--teal); }
.schools-table.spine-rows tbody tr.bar-sb-coral td:first-child { border-left-color: var(--coral); }
.schools-table .row-title { color: var(--ink); font-weight: 700; text-decoration: none; }
.schools-table .row-title:hover { color: var(--coral-d); }

@media print {
  .site-nav, footer.site-foot, .no-print, .flash-stack { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 600px) {
  .logo-word small { display: none; }
  .logo-word { font-size: 1.1rem; }
  .logo svg { width: 36px; height: 36px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn-party), .nav-logout { font-size: .88rem; }
  .nav-links .btn-party { padding: .4rem .8rem !important; font-size: .88rem; }
  .q-actions .muted.ms-2 { display: none; }
}

/* Place type-ahead */
.ta-list { position: absolute; z-index: 20; left: 0; right: 0; top: 88px; list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; }
.ta-list li { padding: 9px 10px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.ta-list li.on, .ta-list li:hover { background: var(--lilac); }
.ta-kind { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
