:root {
  --navy: #12284c;
  --navy-2: #1d3d70;
  --blue: #2a5db0;
  --blue-light: #e8eef8;
  --gold: #c9a227;
  --ink: #23272f;
  --muted: #5f6673;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: 1.45rem; margin-top: 1.4em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.muted { color: var(--muted); font-size: .95rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Top bar + header */
.topbar { background: var(--navy); color: #dfe6f3; font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.topbar--draft { background: #b7791f; color: #fff; font-weight: 600; letter-spacing: .02em; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .04em; border-bottom: 3px solid var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-tag { font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--gold); color: var(--navy); }
.nav a.btn { border-bottom: 0; }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; font: inherit; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem; gap: .5rem; }
  .nav.open { display: flex; }
  .nav a { padding: .5rem 0; }
}

/* Buttons */
.btn { display: inline-block; padding: .65rem 1.25rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; transition: background .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-nav { padding: .5rem 1rem; }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 1rem; }
.btn-danger { color: #a32020; border-color: #e6b8b8; background: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { padding: 1.5rem 0 0; }
.hero-banner { position: relative; width: 100%; aspect-ratio: 1200 / 480; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(18, 40, 76, .15); background: var(--navy) center / cover no-repeat; overflow: hidden; display: flex; align-items: center; }
.hero-banner--sm { aspect-ratio: 1200 / 300; min-height: 220px; }
.hero-text { padding: 5%; max-width: 58%; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero-text p { margin: 0; }
.hero-kicker { text-transform: uppercase; letter-spacing: .25em; font-size: clamp(.55rem, 1.3vw, .85rem); font-weight: 700; color: #e8d48b; margin-bottom: .6em !important; }
.hero-title { color: #fff; font-size: clamp(1.1rem, 3.9vw, 2.9rem); font-weight: 800; line-height: 1.12; margin: 0 0 .35em; letter-spacing: -0.01em; }
.hero-title--sm { font-size: clamp(1rem, 3vw, 2.1rem); }
.hero-sub { font-size: clamp(.7rem, 1.7vw, 1.25rem); color: #d6e0f2; margin-bottom: .9em !important; }
.hero-when { font-weight: 600; font-size: clamp(.65rem, 1.55vw, 1.15rem); padding-top: .8em; border-top: 3px solid var(--gold); display: inline-block; }
.hero-where { font-size: clamp(.6rem, 1.4vw, 1rem); color: #d6e0f2; margin-top: .3em !important; }
@media (max-width: 600px) { .hero-banner { aspect-ratio: auto; min-height: 240px; } .hero-text { max-width: 100%; padding: 1.2rem; background: linear-gradient(90deg, rgba(13,31,60,.85), rgba(13,31,60,.55)); } }

/* Event heading */
.event-head { text-align: center; padding: 2rem 0 1rem; max-width: 860px; }
.event-head--compact { padding-top: 2.5rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .6rem; }
.kicker a { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.subtitle { font-size: 1.15rem; color: var(--muted); margin-bottom: 1rem; }
.when { font-size: 1.1rem; margin-bottom: .2rem; }
.format { color: var(--muted); margin-bottom: 1.2rem; }
.lead { font-size: 1.1rem; }
.cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding: 1rem 0 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.prose p { font-size: 1.02rem; }
.audience { background: var(--bg-soft); border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 0 8px 8px 0; }

/* Sessions */
.session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .session-grid { grid-template-columns: 1fr; } }
.session-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; background: #fff; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.session-num { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.session-time { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.session-card h3 a { color: var(--navy); text-decoration: none; }
.session-card h3 a:hover { text-decoration: underline; }
.topics { padding-left: 1.1rem; margin: 0 0 1rem; color: var(--ink); font-size: .95rem; }
.topics li { margin-bottom: .25rem; }
.session-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.agenda { padding-left: 1.3rem; }
.agenda li { margin-bottom: .4rem; }

/* Speakers */
.speaker { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.speaker:first-of-type { border-top: 0; }
@media (max-width: 520px) { .speaker { grid-template-columns: 84px 1fr; gap: .9rem; } }
.speaker-photo img, .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
@media (max-width: 520px) { .speaker-photo img, .avatar { width: 84px; height: 84px; } }
.avatar { display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.speaker-name { margin-bottom: .15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.speaker-role { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }
.speaker-bio { font-size: .97rem; margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.tag-remote { background: var(--blue-light); color: var(--blue); }
.tag-invited { background: #fff4d6; color: #8a6100; }

/* Details box */
.details-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; position: sticky; top: 90px; }
.details-box h2 { margin-top: 0; font-size: 1.15rem; }
.details-box dl { margin: 0; }
.details-box dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-top: .9rem; }
.details-box dd { margin: .15rem 0 0; }
.details-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }

/* Notices */
.notice { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; border: 1px solid; }
.notice-error { background: #fdf1f1; border-color: #f0c2c2; color: #8f1d1d; }
.notice-warn { background: #fff8e6; border-color: #f2dea6; color: #7a5300; }
.notice-info { background: var(--blue-light); border-color: #c9d7ef; color: var(--navy); }

/* Form */
.reg-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; }
.reg-form legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }
.req { color: #b42318; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #c8cdd4; border-radius: 6px; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.has-error input, .has-error textarea { border-color: #b42318; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.error { color: #b42318; font-size: .88rem; margin: .3rem 0 0; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid #c8cdd4; border-radius: 8px; padding: .8rem .9rem; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input { margin-top: .3rem; }
.choice-body { display: flex; flex-direction: column; gap: .15rem; }
.choice-title { font-weight: 600; }
.choice-desc { font-size: .87rem; color: var(--muted); }
.choice--full .choice-desc strong { color: #8a6100; }
.stack { display: flex; flex-direction: column; gap: .4rem; }
.radio-line { display: flex; gap: .55rem; align-items: baseline; }
.form-actions { margin-top: .5rem; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d3e6; margin-top: 2rem; padding: 2.5rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; font-size: .8rem; color: #9fb0cf; }

/* Admin */
.admin-main { padding: 1.5rem 0 3rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat-n { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-of { font-size: 1rem; color: var(--muted); font-weight: 500; }
.stat-l { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.inline { display: inline; }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef0f3; color: var(--muted); }
.pill-ok { background: #e3f6e8; color: #1e6b36; }
.pill-warn { background: #fff4d6; color: #8a6100; }
.pill-confirmed { background: #e3f6e8; color: #1e6b36; }
.pill-waitlist { background: #fff4d6; color: #8a6100; }
.pill-cancelled { background: #f3e4e4; color: #8f1d1d; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.reg-table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.reg-table th, .reg-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.reg-table th { background: var(--bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); position: sticky; top: 0; }
.reg-table tr.status-cancelled td { color: #9aa3ad; }
.reg-table .notes { max-width: 180px; font-size: .8rem; color: var(--muted); }
.reg-table .actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.nowrap { white-space: nowrap; }
.err { color: #b42318; font-weight: 700; }

/* Speaker links */
.speaker-name a { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.speaker-name a:hover { color: var(--blue); }
.bio-link { white-space: nowrap; font-weight: 600; text-decoration: none; font-size: .9rem; }

/* Admin content editor */
.editor-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; position: sticky; top: 72px; background: #fff; padding: .6rem 0; z-index: 5; border-bottom: 1px solid var(--line); }
.editor-nav a { font-size: .85rem; font-weight: 600; color: var(--navy); text-decoration: none; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; }
.editor-nav a:hover { background: var(--blue-light); }
.editor-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.4rem; margin-bottom: 1.5rem; background: #fff; scroll-margin-top: 130px; }
.editor-section h2 { margin-top: 0; font-size: 1.2rem; }
.editor-section h3 { font-size: 1rem; margin-top: 1.2rem; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.editor-grid .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-grid label, .field-block label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.editor-grid input[type=text], .editor-grid input[type=url], .editor-grid input[type=number], .editor-grid input[type=date], .editor-grid input[type=time], .editor-grid textarea, .editor-grid select,
.field-block input[type=text], .field-block textarea { width: 100%; font: inherit; font-size: .92rem; padding: .45rem .6rem; border: 1px solid #c8cdd4; border-radius: 6px; }
.editor-grid textarea { min-height: 4.5rem; }
.editor-grid .check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); font-weight: 500; margin-top: 1.4rem; }
.editor-actions { margin-top: .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.speaker-editor { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; scroll-margin-top: 130px; }
.speaker-editor summary { cursor: pointer; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.speaker-editor summary .muted { font-weight: 400; }
.speaker-editor[open] summary { margin-bottom: .8rem; }
.thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.media-card { border: 1px solid var(--line); border-radius: 8px; padding: .5rem; font-size: .78rem; }
.media-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; background: var(--bg-soft); }
.media-card code { display: block; word-break: break-all; margin: .3rem 0; }
.upload-box { border: 2px dashed #c8cdd4; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; background: var(--bg-soft); }
.upload-box input[type=file] { font: inherit; }
.upload-status { font-size: .85rem; margin-top: .4rem; }
.env-note { font-size: .82rem; color: #8a6100; background: #fff4d6; padding: .4rem .6rem; border-radius: 6px; margin-bottom: .8rem; }
.json-box { width: 100%; min-height: 380px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; padding: .6rem; border: 1px solid #c8cdd4; border-radius: 6px; }
.help { font-size: .82rem; color: var(--muted); margin: .2rem 0 .6rem; }

.cancel-form { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.edit-link { font-size: .75rem; white-space: nowrap; }
.photo-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.photo-row img, .photo-row .avatar-sm { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); display: inline-block; }
.photo-row input[type=file] { font: inherit; font-size: .85rem; max-width: 260px; }
.photo-row .upload-status { margin: 0; }

/* Cropper */
.cropper-overlay { position: fixed; inset: 0; background: rgba(10, 18, 34, .78); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cropper-box { background: #fff; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); max-width: 100%; }
.cropper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; flex-wrap: wrap; }
.cropper-canvas { display: block; border-radius: 8px; background: #111; max-width: 100%; }
.cropper-controls { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }
.cropper-controls label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.cropper-zoom { width: 180px; }
.cropper-spacer { flex: 1; }

/* Admin extras */
.inline-input { font: inherit; font-size: .85rem; padding: .3rem .5rem; border: 1px solid #c8cdd4; border-radius: 6px; }
.settings-form { margin-left: auto; }
.settings-form .radio-line { font-size: .88rem; }
.dup-panel { border: 1px solid #f2dea6; background: #fffaf0; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.dup-panel h2 { margin-top: 0; font-size: 1.1rem; }
.dup-group { border-top: 1px solid #f2dea6; padding: .7rem 0; }
.dup-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9rem; padding: .25rem 0; }
.deleted-bin { margin-top: 1.5rem; }
.deleted-bin summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.reg-table tr.status-deleted td { color: #7a828c; }
.pill-deleted { background: #e9ecef; color: #5f6673; }

/* Broadcast */
.bc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-count { margin: .6rem 0 0; font-size: .95rem; }
.bc-item { border-top: 1px solid var(--line); padding: .7rem 0; font-size: .9rem; }
.bc-item:first-of-type { border-top: 0; }
.bc-item-head { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.bc-item-head a { color: var(--navy); text-decoration: none; }
.bc-pre { white-space: pre-wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; font: inherit; font-size: .92rem; }
.reg-form fieldset, #bc-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.1rem; margin: 0 0 1.1rem; }
#bc-form legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }
#bc-form select { font: inherit; font-size: .92rem; padding: .4rem .5rem; border: 1px solid #c8cdd4; border-radius: 6px; width: 100%; }
