:root {
  --navy: #0a1c2e;
  --ink: #1b2a38;
  --muted: #5b6875;
  --line: #d9dfe5;
  --soft: #f4f6f8;
  --good: #116b3c;
  --good-soft: #e5f4ea;
  --warn: #8a5a00;
  --warn-soft: #fdf3dc;
  --bad: #a3271f;
  --bad-soft: #fbe9e7;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1 { color: var(--navy); font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { color: var(--navy); font-size: 1.15rem; margin: 0 0 .5rem; }
a { color: var(--navy); }
main { padding: 16px; margin: 0 auto; }
.narrow { max-width: 520px; }
.wide { max-width: 1040px; }

.public-head { text-align: center; padding: 24px 16px 8px; }
.public-head img { display: inline-block; }
footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 24px 16px; }
.sub { color: var(--muted); margin-top: 0; }

label { display: block; font-weight: 600; }
input:not([type="radio"], [type="checkbox"], [type="file"]), select {
  display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 10px;
  border: 1px solid #8c98a4; border-radius: 6px; font: inherit; background: #fff; color: inherit;
}
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 12px; }
legend { font-weight: 600; padding: 0 4px; }
.radio, .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; padding: 6px 0; }
.radio input, .check input { margin-top: 5px; }

button, .button {
  display: inline-block; min-height: 44px; padding: 9px 16px; border: 1px solid var(--navy); border-radius: 6px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .button:hover { background: var(--soft); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--navy); color: #fff; }
button.primary:hover { background: #17324d; }
button.danger { border-color: var(--bad); color: var(--bad); }
button.danger:hover { background: var(--bad-soft); }
button.link { border: 0; background: none; min-height: 0; padding: 4px; color: #fff; text-decoration: underline; font-weight: 400; }
button.link:hover { background: none; }
:focus-visible { outline: 3px solid #3b82c4; outline-offset: 2px; }

.stack { display: grid; gap: 14px; margin: 16px 0; }
.stack .primary { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.row > label { flex: 1 1 200px; }
.row > input:not([type="file"]) { flex: 1 1 280px; margin-top: 0; }

.option { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 14px 0; }
.option h2 { display: flex; justify-content: space-between; gap: 12px; }
.option .primary { width: 100%; }
.price { white-space: nowrap; }
.terms { color: var(--muted); font-size: .9rem; margin: 10px 0; }
.choices { list-style: none; padding: 0; display: grid; gap: 10px; }
.choices .button { display: block; }

.message, .notice { background: var(--soft); border-left: 4px solid var(--navy); padding: 10px 12px; border-radius: 4px; }
.notice.warn, .message { background: var(--warn-soft); border-left-color: var(--warn); }
.paid { background: var(--good-soft); border-left: 4px solid var(--good); padding: 10px 12px; border-radius: 4px; }

.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 16px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; }
.crumb { margin: 0 0 4px; font-size: .9rem; }
.muted { color: var(--muted); font-size: .92rem; }
section { border-top: 1px solid var(--line); padding: 18px 0 8px; margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.stats div { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.stats strong { display: block; font-size: 1.4rem; color: var(--navy); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.pill.paid { background: var(--good-soft); color: var(--good); border: 0; }
.pill.unpaid { background: var(--warn-soft); color: var(--warn); }
.pill.refunded { background: var(--bad-soft); color: var(--bad); }
.suggest { position: relative; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(10, 28, 46, .12); max-height: 320px; overflow-y: auto; }
.suggestions li { padding: 10px 14px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li[role="option"]:hover { background: var(--soft); }
.suggestions li.empty { color: var(--muted); cursor: default; font-size: .95rem; }

/* Senior portrait pages: modern, elegant graduation theme in navy, gold and ivory. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }

body.public {
  --gold: #b8913a; --gold-deep: #8d6b1f; --gold-soft: #f8f1e1; --gold-line: #e3cf9e; --ivory: #fbf8f2;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  background: var(--ivory);
}
body.public h1, body.public h2, body.public .tile-price, body.public .sign, body.public caption { font-family: var(--serif); font-weight: 700; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.public-head { background: #fff; padding: 14px 16px 10px; border-bottom: 1px solid var(--gold-line); position: relative; }
.public-head::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 72px; height: 3px; margin-left: -36px; background: var(--gold); }
.public-head img { width: 72px; height: 72px; }
body.public main.narrow { max-width: 540px; padding-top: 18px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0, #1b3552 0, var(--navy) 60%);
  color: #fff; border-radius: 16px; padding: 22px 22px 20px; margin-bottom: 16px; }
.hero::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(227, 207, 158, .35); border-radius: 11px; pointer-events: none; }
.hero .cap { position: absolute; right: 18px; top: 16px; width: 54px; color: var(--gold); opacity: .9; }
.hero h1 { color: #fff; font-size: 2.1rem; line-height: 1.05; margin: 4px 0 6px; padding-right: 60px; letter-spacing: .01em; }
.hero p { margin: 0; color: #d8e0ea; position: relative; }
.hero .eyebrow { color: var(--gold-line); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.hero.compact { padding: 18px 22px 16px; }
.hero.compact h1 { font-size: 1.95rem; margin-bottom: 0; }
.hero.celebrate { text-align: center; padding: 30px 22px 26px; }
.hero.celebrate .cap { position: static; display: block; margin: 0 auto 8px; width: 64px; }
.hero.celebrate h1 { padding-right: 0; font-size: 2.3rem; }

body.public .stack { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
body.public .message, body.public .paid { border-radius: 10px; }

/* Price tiles: both visible at once, every-photo preselected and highlighted. */
.choose { margin: 0; }
.tiles { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 10px; align-items: stretch; }
.tiles.single { grid-template-columns: 1fr; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 22px 14px 14px; cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #b9c2cb; background: #fff; }
.tile:has(input:checked) { border-color: var(--navy); box-shadow: 0 8px 22px rgba(10, 28, 46, .12); }
.tile:has(input:checked)::after { border: 5px solid var(--navy); }
.tile:has(input:focus-visible) { outline: 3px solid #3b82c4; outline-offset: 2px; }
.tile.featured { background: linear-gradient(165deg, var(--gold-soft) 0, #fff 70%); border-color: var(--gold-line); }
.tile.featured:has(input:checked) { border-color: var(--gold); box-shadow: 0 10px 26px rgba(141, 107, 31, .22); }
.tile.featured:has(input:checked)::after { border-color: var(--gold); }
.tile-price { font-size: 2.5rem; line-height: 1; color: var(--navy); margin-top: 4px; }
.tile.featured .tile-price { color: var(--gold-deep); }
.tile-title { font-weight: 700; color: var(--navy); margin-top: 4px; }
.tile-note { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.badge { position: absolute; top: -11px; left: 12px; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(141, 107, 31, .3); }

button.gold { background: linear-gradient(180deg, #c49c43, var(--gold-deep)); border-color: var(--gold-deep); color: #fff; }
button.gold:hover { background: var(--gold-deep); }
body.public .cta { width: 100%; min-height: 54px; font-size: 1.08rem; border-radius: 10px; letter-spacing: .01em; }
.secure { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; margin: 8px 0 18px; }
.secure svg { width: 14px; height: 14px; }

/* Comparison */
.compare-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 2px; }
table.compare { font-size: .92rem; }
.compare caption { text-align: left; font-size: 1.3rem; color: var(--navy); padding: 12px 12px 4px; }
.compare th, .compare td { white-space: normal; padding: 9px 10px; vertical-align: middle; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { text-align: center; width: 26%; }
.compare .gold-col { background: rgba(248, 241, 225, .7); }
.compare thead .gold-col { color: var(--gold-deep); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .tick { margin: 0 auto; display: block; }
.compare .gold-col .tick { color: var(--gold-deep); }
.partial { font-size: .78rem; color: var(--muted); line-height: 1.2; display: block; }
.no { color: #b9c2cb; }

.perks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.tick { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--good); }
.perks .tick { color: var(--gold-deep); }

.fine-print { margin-top: 16px; }
body.public .terms { font-size: .82rem; }
body.public footer .sign { color: var(--navy); font-size: 1.2rem; margin: 0 0 2px; }
.choose:not(:has(input:checked)) .cta { background: #d9cfb8; border-color: #d9cfb8; color: #5e5440; }
.pill.awaiting { background: #fdf3dc; color: #8d6b1f; }
.awaiting-box { background: #fdf8ec; border: 1px solid #ecd9a8; border-radius: 8px; padding: 12px 16px; }
.ways fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; display: grid; gap: 8px; }
.ways legend { padding: 0 6px; font-weight: 700; }

/* Ways to pay */
.methods { border: 0; padding: 0; margin: 0 0 14px; }
.methods legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method { position: relative; display: flex; flex-direction: column; gap: 1px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 12px 10px 38px; cursor: pointer; font-weight: 400; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method::before { content: ""; position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b9c2cb; background: #fff; }
.method:has(input:checked) { border-color: var(--navy); background: #f5f8fb; }
.method:has(input:checked)::before { border: 5px solid var(--navy); }
.method:has(input:focus-visible) { outline: 3px solid #3b82c4; outline-offset: 2px; }
.method-name { font-weight: 700; color: var(--navy); }
.method-hint { font-size: .82rem; color: var(--muted); }

.pay-dialog { border: 0; border-radius: 16px; padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(10, 28, 46, .35); }
.pay-dialog::backdrop { background: rgba(10, 28, 46, .55); }
.pay-dialog-body { padding: 22px 20px 18px; border-top: 4px solid var(--gold); }
.pay-dialog h2 { margin: 0 0 8px; font-size: 1.6rem; }
.dialog-amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-deep); margin: 0; line-height: 1; font-variant-numeric: lining-nums; }
.copy-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ivory); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; margin: 10px 0; }
.copy-line strong { display: block; word-break: break-word; }
.copy-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.copy-line .copy { flex: none; min-height: 36px; padding: 4px 12px; }
a.gold-link { display: block; text-align: center; background: linear-gradient(180deg, #c49c43, var(--gold-deep)); border-color: var(--gold-deep);
  color: #fff; font-weight: 700; border-radius: 10px; padding: 12px; text-decoration: none; margin: 10px 0; }
.dialog-actions { display: grid; gap: 6px; margin-top: 14px; }
.dialog-actions .gold { min-height: 50px; font-size: 1.05rem; border-radius: 10px; }
.link-button { background: none; border: 0; color: var(--muted); text-decoration: underline; }

.promise { background: #fff; border: 1.5px solid var(--gold-line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.promise.fresh { box-shadow: 0 10px 26px rgba(141, 107, 31, .18); }
.promise p { margin: 0 0 8px; }
.promise-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.promise .memo { font-size: .92rem; }
.change-mind { font-size: 1.25rem; color: var(--navy); margin: 18px 0 10px; }
.secure[hidden] { display: none; }
.method::before, .tile::after { box-sizing: border-box; }
.awaiting-box .row { align-items: flex-end; }

/* Admin: navigation, tabs, tables, analytics */
.admin-head { flex-wrap: wrap; }
.admin-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.admin-nav a { color: #cfd8e2; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

.school-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.school-head h1 { margin: 0; }
.link-card { flex: 1 1 460px; max-width: 620px; background: var(--soft); border-radius: 8px; padding: 8px 12px; }
.link-card label { font-size: .85rem; color: var(--muted); }
.row.tight { margin: 4px 0 0; gap: 8px; flex-wrap: nowrap; }
.row.tight input { margin: 0; min-width: 0; }
.row.tight .button, .row.tight button { flex: none; }

.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin: 18px 0 0; overflow-x: auto; position: sticky; top: 0; background: #fff; z-index: 5; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .count { background: var(--soft); border-radius: 10px; padding: 0 7px; font-size: .8rem; margin-left: 4px; }
.tab-panel { border-top: 0; margin-top: 0; }
.table-tools { margin-top: 4px; }
.row > .grow { flex: 3 1 260px; }
.table-count { margin: 0 0 6px; }

th:has(> .sort) { padding: 0; }
button.sort { background: none; border: 0; min-height: 0; width: 100%; padding: 8px 10px; color: var(--muted); font-weight: 600; text-align: inherit; display: inline-flex; gap: 6px; align-items: center; border-radius: 0; }
th.num button.sort { justify-content: flex-end; }
button.sort:hover { background: var(--soft); color: var(--navy); }
.sort-icon::after { content: "↕"; opacity: .35; font-size: .85em; }
th[aria-sort="ascending"] .sort-icon::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .sort-icon::after { content: "↓"; opacity: 1; }
th[aria-sort="ascending"] button.sort, th[aria-sort="descending"] button.sort { color: var(--navy); }

.filters { margin-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.kpis div { background: var(--soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.kpi-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpis strong { font-size: 1.8rem; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
table.bars th { color: var(--ink); font-weight: 500; width: 34%; white-space: normal; }
table.bars td { border-bottom-color: transparent; }
table.bars th { border-bottom-color: transparent; }
table.bars td:nth-child(2) { width: 46%; }
svg.bar { width: 100%; height: 12px; display: block; }
.bar-track { fill: var(--soft); }
.bar-fill { fill: #2b5a8a; }
.funnel .bar-fill { fill: #3f6f9e; }
svg.columns { width: 100%; height: 180px; display: block; background: linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat; }
.col-fill { fill: #2b5a8a; }
.col-fill:hover, .bar-fill:hover { fill: var(--navy); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.logo-link { display: inline-block; border-radius: 8px; }
.logo-link:hover img { opacity: .85; }
a.button.outline { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 10px; padding: 11px 18px; }
.danger-zone { margin-top: 28px; border: 1px solid #f0c7c2; background: #fdf6f5; border-radius: 10px; padding: 14px 16px; }
.danger-zone h2 { color: var(--bad); }
details.archived { margin-top: 24px; }
details.archived summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.head-link { color: #cfd8e2; text-decoration: underline; padding: 4px; }
.head-link:hover, .head-link[aria-current="page"] { color: #fff; }
.narrow-form { max-width: 440px; }
.narrow-form .muted { display: block; font-weight: 400; margin-top: 4px; }
.forgot { text-align: center; }
ol.steps { padding-left: 22px; display: grid; gap: 8px; }
.not-you { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.pw-wrap { position: relative; display: block; margin-top: 4px; }
.pw-wrap input { margin-top: 0 !important; padding-right: 76px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 2px 12px; font-size: .9rem; font-weight: 600; }
.tabs { overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.awaiting-amount { color: #8d6b1f; }
button.small { min-height: 32px; padding: 3px 10px; font-size: .85rem; }
.inline-confirm { display: flex; gap: 6px; margin: 0; }
.row-actions { width: 1%; }
.flag-help { font-size: .92rem; }
