/* AUPAD Conference — shared styles (public site + staff portals)
   Brand colours are approximate matches of the supplied AUPAD logo. */
:root {
  --indigo: #302B7C;
  --indigo-dark: #221E5E;
  --blue: #0067A5;
  --orange: #F37021;
  --orange-soft: #FFE7D8;
  --navy: #17365D;
  --muted: #4A5468;
  --white: #FFFFFF;
  --pale: #F3F7FC;
  --line: #D5DAEA;
  --midnight: #080719;
  --tile-dark: #19182B;
  --ok: #146C2E;
  --ok-bg: #E7F5EC;
  --warn: #8A4B00;
  --warn-bg: #FFF3DC;
  --bad: #B3261E;
  --bad-bg: #FDECEA;
  --radius: 16px;      /* cards, panels, large boxes */
  --radius-sm: 12px;   /* small boxes inside cards, inputs */
  --shadow: 0 8px 28px rgba(23, 54, 93, 0.08);
  --header-h: 84px;
  --max: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--pale);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--indigo); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Skip link */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--white); color: var(--indigo); padding: 12px 18px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 2px solid var(--indigo);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--indigo); }
.btn-secondary:hover { background: #EEF0FA; color: var(--indigo); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-danger { background: var(--white); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-ok:hover { background: #0F5524; }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-large { min-height: 56px; padding: 14px 28px; font-size: 1.1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Announcement strip */
.announce { background: var(--indigo); color: var(--white); font-size: .95rem; border-bottom: 3px solid var(--orange); }
.announce .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce strong { color: #FFD9C2; }

/* Glass header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(48,43,124,.12);
  transition: box-shadow .18s, background-color .18s;
}
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  .site-header { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  .site-header.scrolled { background: rgba(255,255,255,.86); }
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23,54,93,.12); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo); min-width: 0; }
.brand-logo { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--white); padding: 2px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; max-width: 15em; }
.brand-name small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-dropdown > button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 10px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 8px;
  border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; font-family: inherit;
}
.nav-list a:hover, .nav-dropdown > button:hover { color: var(--indigo); background: rgba(48,43,124,.06); }
.nav-list a.active { color: var(--indigo); border-bottom-color: var(--orange); border-radius: 8px 8px 0 0; }
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; z-index: 120; }
.dropdown-menu a { display: flex; width: 100%; padding: 10px 12px; border-radius: 8px; }
.nav-dropdown > button[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,7,25,.5); z-index: 200; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); z-index: 210;
  background: var(--white); padding: 20px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  display: flex; flex-direction: column; gap: 12px;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer nav ul { list-style: none; padding: 0; margin: 0; }
.drawer nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; border-left: 4px solid transparent; }
.drawer nav a:hover { background: var(--pale); }
.drawer nav a.active { border-left-color: var(--orange); color: var(--indigo); background: #EEF0FA; }
.drawer h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; }

@media (max-width: 640px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: .9rem; }
  .brand-name small { display: none; }
  .menu-btn .menu-label { display: none; }
  .container { padding: 0 16px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--orange); }
.lead { font-size: 1.12rem; color: var(--navy); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Cards */
.card { background: var(--white); border: 1px solid rgba(48,43,124,.14); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.glass { background: rgba(255,255,255,.94); border: 1px solid rgba(48,43,124,.14); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature-card h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--navy); font-size: 1rem; }
.icon-box { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: #EAF3FA; color: var(--blue); }
.icon-box .icon { width: 26px; height: 26px; }
a.feature-card { display: block; text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s; }
a.feature-card:hover { border-color: var(--indigo); box-shadow: 0 12px 30px rgba(48,43,124,.14); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--indigo); font-size: 1rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.fact { display: flex; gap: 12px; align-items: flex-start; background: var(--pale); border-radius: var(--radius); padding: 14px 16px; }
.fact .icon { color: var(--blue); width: 26px; height: 26px; margin-top: 2px; }
.fact strong { display: block; color: var(--indigo); }
.fact span { font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.tag-list li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .98rem; }

/* Capacity cards (used by Admin → Seats) */
.cap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.cap-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.cap-card .icon { width: 30px; height: 30px; }
.cap-card .num { font-size: 2.1rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--indigo); }
.cap-card .lbl { font-weight: 700; color: var(--navy); }
.cap-card.total .icon { color: var(--indigo); }
.cap-card.booked .icon { color: var(--muted); }
.cap-card.available .icon { color: var(--ok); }
@media (max-width: 720px) { .cap-cards { grid-template-columns: 1fr; } .cap-card .num { font-size: 1.8rem; } }
.occupancy { margin: 8px 0 6px; }
.occupancy-bar { height: 16px; border-radius: 999px; background: #E3E7F2; overflow: hidden; border: 1px solid var(--line); }
.occupancy-fill { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--blue)); width: 0; transition: width .4s; }
.occupancy-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .95rem; color: var(--muted); margin-top: 6px; }
.stale { color: var(--warn); font-weight: 700; }
/* Speakers */
.speaker-card { display: flex; gap: 22px; align-items: center; }
.portrait { flex: none; width: 140px; height: 160px; border-radius: var(--radius); background: linear-gradient(160deg, #EEF0FA, #DCE8F4); display: grid; place-items: center; color: #8790B0; border: 1px solid var(--line); overflow: hidden; }
.portrait .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Presenter photo: whole photo shown (never cropped or stretched), standing on the bottom edge.
   Transparent cut-out photos sit on the soft card background. */
.portrait.has-photo { display: block; position: relative; }
.portrait.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.speaker-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.role { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--orange); }
.role strong { display: block; color: var(--navy); }
.role span { color: var(--navy); }
@media (max-width: 520px) { .speaker-card { flex-direction: column; align-items: flex-start; } .portrait { width: 120px; height: 136px; } }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-weight: 600; font-size: 1rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); color: var(--white); font-weight: 800; margin-bottom: 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Registration */
.reg-layout { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } }
.pay-card h3 { display: flex; align-items: center; gap: 8px; }
.qr-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; margin: 12px 0; }
.fee { font-size: 2rem; font-weight: 800; color: var(--indigo); }
.test-banner { background: var(--warn-bg); color: var(--warn); border: 2px dashed var(--warn); border-radius: 12px; padding: 12px 14px; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
legend { font-size: 1.2rem; font-weight: 800; color: var(--indigo); padding: 0; margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--bad); font-weight: 800; }
.help { display: block; font-size: .95rem; color: var(--muted); margin: -2px 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--navy);
  background: #FBFCFE; border: 2px solid #B9C1D6; border-radius: 12px;
}
.field textarea { min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(48,43,124,.2); outline-offset: 0; }
.field input[type="file"] { padding: 10px; background: var(--white); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); background: #FFF9F8; }
.error-text { display: flex; gap: 6px; align-items: flex-start; color: var(--bad); font-weight: 600; font-size: .98rem; margin-top: 6px; }
.error-text:empty { display: none; }
.check, .field label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check input { width: 26px; height: 26px; margin-top: 2px; flex: none; accent-color: var(--indigo); }

/* Alerts / status */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 2px solid; margin: 0 0 18px; }
.alert .icon { width: 26px; height: 26px; margin-top: 1px; }
.alert h3 { margin: 0 0 4px; font-size: 1.15rem; color: inherit; }
.alert p:last-child { margin-bottom: 0; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: #0E4F21; }
.alert-warn { background: var(--warn-bg); border-color: #C77700; color: #5E3300; }
.alert-bad { background: var(--bad-bg); border-color: var(--bad); color: #7F1A14; }
.alert-info { background: #EAF3FA; border-color: var(--blue); color: var(--navy); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 1.5px solid; white-space: nowrap; }
.st-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.st-warn { background: var(--warn-bg); color: var(--warn); border-color: #C77700; }
.st-bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.st-neutral { background: #EEF0F5; color: #3A4252; border-color: #9AA2B5; }
.st-info { background: #EAF3FA; color: var(--blue); border-color: var(--blue); }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.view-loading .spinner { border-color: rgba(48,43,124,.18); border-top-color: var(--indigo); }
@keyframes spin { to { transform: rotate(360deg); } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq-item h3 { margin: 0; font-size: 1.1rem; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 56px; background: none; border: 0; text-align: left; font: inherit; font-weight: 700; color: var(--indigo); cursor: pointer; border-radius: var(--radius); }
.faq-item button .icon { transition: transform .18s; }
.faq-item button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-panel { padding: 0 20px 18px; }
.faq-panel p { margin: 0; }



/* Tables (staff and status) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgba(23,54,93,.05); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; background: #F6F7FC; color: var(--muted); padding: 12px 14px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; position: sticky; top: 0; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 14px; border-top: 1px solid #EDEFF5; vertical-align: middle; }
table.data tbody tr:first-child td { border-top: 0; }
table.data tbody tr { transition: background-color .15s; }
table.data tbody tr:hover { background: #F7F8FD; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.dl dt { font-weight: 700; color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 8px; } }

.simple-page { min-height: 70vh; padding: 48px 0; }
.simple-page .card { max-width: 760px; margin: 0 auto; }

/* Registration page */
.page-banner {
  color: var(--white); padding: 40px 0 36px;
  background: radial-gradient(700px 300px at 90% 0%, rgba(0,103,165,.35), transparent 60%), var(--midnight);
}
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 8px; }
.page-banner .lead { color: #E6E8FF; margin-bottom: 18px; }
.breadcrumb { font-size: .95rem; color: #D8DBF5; }
.breadcrumb a { color: #CFE6FF; }
.banner-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.banner-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); font-size: 1rem; }
.banner-facts .icon { color: #FFB98F; }
.reg-page { padding-top: 40px; }
.steps-title { font-size: 1.4rem; }
.alert .alert-title { margin: 0 0 4px; font-size: 1.15rem; color: inherit; }
.pay-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.fee span { font-size: 1rem; font-weight: 600; color: var(--navy); }
/* No Refund Policy: calm information style (pale card, indigo text, small orange accent) — not a warning */
.fee-note { margin: 2px 0 12px; font-weight: 700; color: var(--navy); }
.pay-card .fee { margin-bottom: 0; }
.pay-facts { margin: 0 0 12px; padding: 0; }
.pay-facts div { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.pay-facts dt { font-weight: 700; color: var(--muted); }
.pay-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.refund-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--pale); border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.refund-notice h3 { margin: 0 0 4px; font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.refund-notice p { margin: 0; font-size: 1rem; color: var(--navy); }
.consent-help { margin: 6px 0 0 34px; }
.refund-reminder { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--pale); border-left: 4px solid var(--orange); color: var(--navy); }
.pay-steps { padding-left: 1.3em; font-size: 1rem; }
.pay-steps li { margin-bottom: 6px; }
.qr-box #qr-missing { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-weight: 600; margin: 0; }
.btn-block { width: 100%; }
.consent-field { margin: 18px 0; }
.file-chosen { color: var(--ok); font-weight: 600; font-size: .98rem; margin: 6px 0 0; }
#reg-form .alert { margin-bottom: 18px; }
#reg-form.is-closed fieldset, #reg-form.is-closed .consent-field { opacity: .6; }
.reg-success { max-width: 820px; margin: 0 auto; }
.reg-success h2 { font-size: 1.25rem; margin-top: 22px; }
.reg-no { font-size: 1.3rem; color: var(--indigo); }
.status-link { word-break: break-all; }
@media (max-width: 960px) { .reg-layout .pay-card { order: 0; } }

/* Homepage registration summary */
@media (max-width: 520px) {
  .steps { gap: 8px; }
  .steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
  .steps li::before { margin: 0; flex: none; }
}

/* ===================================================================
   Device polish: phones (Android, iOS), tablets, laptops, large screens
   =================================================================== */
:root { --gutter: 24px; }
@media (max-width: 640px) { :root { --gutter: 16px; } }

html { -webkit-tap-highlight-color: rgba(48, 43, 124, .15); }
body { overflow-wrap: break-word; overflow-x: clip; }

/* iOS safe areas (notch / home bar), portrait and landscape */
.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.drawer {
  padding-top: max(20px, env(safe-area-inset-top));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
/* Hide the floating button while typing so it never covers a field above the keyboard */
body.typing .to-top { display: none; }

/* Sticky header never covers jumped-to headings or focused form fields */
/* html { scroll-padding-top } already keeps the header height clear; these add only a little extra room.
   (Adding the header height here as well would double the offset.) */
input, select, textarea, .field, legend { scroll-margin-top: 16px; scroll-margin-bottom: 96px; }

/* Glass: solid fallback when blur is missing or the user prefers less transparency */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .98); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Touch targets: at least 44 x 44px for standalone links and buttons */
.btn-small { min-height: 44px; }
.breadcrumb a, .hero-link { display: inline-flex; align-items: center; min-height: 44px; }
.drawer nav a { min-height: 48px; }
/* Hover effects only on devices that really hover (no "stuck" hover on touch screens) */
@media (hover: none) {
  a.feature-card:hover { border-color: rgba(48,43,124,.14); box-shadow: var(--shadow); }
}

/* Short landscape phones: smaller header and hero spacing so content stays visible */
@media (orientation: landscape) and (max-height: 500px) {
  /* Header scrolls away instead of covering a third of a short landscape screen */
  .site-header { position: relative; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name small { display: none; }
  .hero { padding: 28px 0 40px; }
  .section { padding: 48px 0; }
  .page-banner { padding: 24px 0; }
}

/* Forms */
fieldset + fieldset { margin-top: 28px; }
legend { padding-top: 4px; }
.field input[type="file"] { min-height: 56px; padding: 8px; font-size: 1rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  min-height: 40px; margin-right: 12px; padding: 8px 16px; border-radius: 10px; border: 2px solid var(--indigo);
  background: var(--white); color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer;
}
.shot-preview { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: contain; }
.check span { flex: 1; min-width: 0; }

/* Official payment QR card: the whole supplied image, centred, never cropped or stretched */
/* QR only (cropped from the official card, white quiet zone kept). Sizes: desktop 340px, tablet 320px, phone full width up to 310px. */
.qr-box img { display: block; width: 100%; max-width: 340px; height: auto; object-fit: contain; margin: 6px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 1099.98px) { .qr-box img { max-width: 320px; } }
@media (max-width: 599.98px) { .qr-box img { max-width: 310px; } }
@media (min-width: 960.02px) { .pay-card .qr-box { padding: 14px 12px; } }
.qr-fee { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.qr-fee strong { color: var(--indigo); font-size: 1.2rem; }
.qr-fee span { font-weight: 700; color: var(--orange-dark, #B4501A); }
.qr-title { justify-content: center; margin: 0 0 10px; font-size: 1.1rem; color: var(--indigo); }
.qr-upi { margin: 12px 0 0; font-weight: 600; }
.qr-upi .mono { font-size: 1.1rem; font-weight: 800; color: var(--indigo); overflow-wrap: anywhere; user-select: all; }
.qr-trust { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F5C978; }
.qr-trust .icon { flex: none; margin-top: 3px; color: var(--orange); }
.qr-only { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }
.qr-open-note { margin: 8px 0 0; text-align: left; }
/* Payment order status box (registration page and after submitting) */
.pay-order { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.pay-order h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--indigo); }
.pay-order p { margin: 0 0 8px; }
.pay-order .status-badge { white-space: normal; }
.pay-order .btn { margin-top: 4px; }
.no-secrets { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--pale); font-weight: 600; }
.no-secrets .icon { flex: none; margin-top: 3px; color: var(--indigo); }
.pay-again { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pay-again .qr-box { max-width: 460px; }
.pay-again .qr-box img { display: block; width: 100%; max-width: 320px; height: auto; object-fit: contain; margin: 6px auto 0; }
.pay-again form { margin-top: 14px; display: grid; gap: 12px; }
/* Phones: less padding, so the QR is as large as possible for scanning */
@media (max-width: 599.98px) { .pay-card { padding: 16px; } .qr-box { padding: 10px 8px 14px; } }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.qr-phone-tip { font-size: 1rem; background: var(--pale); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; text-align: left; }
dialog.qr-dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); text-align: center; color: var(--navy); }
dialog.qr-dialog::backdrop { background: rgba(8, 7, 25, .7); }
dialog.qr-dialog img { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 190px); height: auto; object-fit: contain; margin: 0 auto; background: #fff; }

/* Hall map: its own scroll area on small screens */

/* Large screens: keep content centred and lines readable */
.lead, .section-head p { max-width: 70ch; }
@media (min-width: 1440px) { :root { --max: 1240px; } }

/* Status and 404 pages */
.simple-section { padding: 40px 0 64px; }
.status-card { max-width: 820px; margin: 0 auto; }
.status-help { max-width: 820px; margin: 18px auto 0; text-align: center; }
.status-help a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a { min-width: 44px; padding-right: 6px; }

/* ===================================================================
   Header layout (grid) — logo, navigation, Register Now, mobile menu
   Desktop : [brand] [Register Now]  /  [navigation]
   Tablet  : [brand] [Register Now] [Menu]
   Phone   : [brand] [Menu]
   =================================================================== */
.header-inner {
  display: grid; align-items: center; column-gap: 16px; row-gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand cta" "nav nav";
  padding-top: 10px;
}
.brand { grid-area: brand; }
.header-cta { grid-area: cta; }
.menu-btn { grid-area: menu; display: none; }
.main-nav { grid-area: nav; border-top: 1px solid rgba(48,43,124,.1); min-width: 0; }
.nav-list { justify-content: center; flex-wrap: wrap; }
.nav-list a, .nav-dropdown > button { white-space: nowrap; font-size: .95rem; padding: 8px 12px; }
.brand-name { font-size: 1.05rem; max-width: none; }

@media (max-width: 1023.98px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand cta menu";
    padding-top: 8px; padding-bottom: 8px; column-gap: 12px;
  }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand menu"; }
  .header-cta { display: none; }           /* Register Now stays in the menu and on the page */
  .menu-btn { width: 48px; min-height: 48px; padding: 0; }   /* keeps room for the organisation name */
}

/* ===================================================================
   Conference countdown section (homepage, directly below the hero)
   Desktop : one glass card — details on the left, dark countdown panel on the right
   Tablet  : details on top, four boxes in one row
   Phone   : stacked, 2 x 2 countdown grid
   =================================================================== */
.countdown-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--pale) 100%);
}
.cd-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 36px; align-items: center;
  padding: 36px; border-radius: var(--radius);
  background: rgba(255,255,255,.96); border: 1px solid rgba(48,43,124,.12);
  box-shadow: 0 18px 50px rgba(23,54,93,.10);
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .cd-card { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.cd-info .eyebrow { margin-bottom: 6px; }
.cd-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 18px; }
.cd-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cd-facts li { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.cd-facts .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #EAF3FA; color: var(--blue); }
.cd-facts li:first-child .icon { background: var(--orange-soft); color: #B4480C; }
.cd-facts strong { color: var(--indigo); }

.cd-panel {
  position: relative; overflow: hidden; color: var(--white);
  padding: 30px 24px; border-radius: var(--radius); min-height: 168px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(420px 160px at 85% 0%, rgba(0,103,165,.40), transparent 70%),
    radial-gradient(320px 140px at 0% 100%, rgba(243,112,33,.16), transparent 70%),
    linear-gradient(135deg, #1D1A55 0%, #0B0A22 100%);
  box-shadow: 0 16px 34px rgba(8,7,25,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.cd-panel::before { /* thin orange accent line */
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.cd-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 8px; min-width: 0; }
.cd-box + .cd-box { border-left: 1px solid rgba(243,112,33,.45); }
.cd-value { font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cd-label { margin-top: 10px; font-size: 1rem; font-weight: 600; color: #D5D8F5; }
.cd-loading, .cd-status { margin: 0; text-align: center; }
.cd-loading { font-size: 1.15rem; font-weight: 600; color: #D5D8F5; }
.cd-status { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.no-js .cd-loading { display: none; }
.no-js .cd-nojs { display: block; }
.cd-nojs { display: none; margin: 0; text-align: center; font-size: 1.15rem; font-weight: 700; }

@media (max-width: 1023.98px) {
  .cd-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; text-align: center; }
  .cd-facts { grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 22px; }
}
@media (max-width: 640px) {
  .countdown-section { padding: 36px 0; }
  .cd-card { padding: 22px 16px; border-radius: var(--radius); }
  .cd-facts { grid-template-columns: 1fr; justify-content: stretch; justify-items: center; }
  .cd-panel { padding: 22px 14px; }
  /* 2 x 2 grid of readable boxes on phones */
  .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd-box { padding: 16px 6px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(243,112,33,.35); }
  .cd-box + .cd-box { border-left: 1px solid rgba(243,112,33,.35); }
  .cd-value { font-size: 2.6rem; }
  .cd-label { margin-top: 6px; }
}
@media (prefers-reduced-transparency: reduce) {
  .cd-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .cd-panel { border: 2px solid CanvasText; }
}

/* Presenters: sign language presentation tag (same on both cards) */
.presentation-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px 5px 8px; border-radius: 999px; background: #EAF3FA; color: var(--blue); font-weight: 700; font-size: .92rem; }
.presentation-tag .icon { width: 1.5em; height: 1.5em; }
/* Tablet: two cards side by side are narrow, so the portrait sits above the text */
@media (min-width: 521px) and (max-width: 1023.98px) {
  .speaker-card { flex-direction: column; align-items: flex-start; }
  .portrait { width: 120px; height: 136px; }
}
.presentation-tag { max-width: 100%; border-radius: var(--radius); line-height: 1.3; }
/* Countdown section refinements */
@media (max-width: 1023.98px) {
  .cd-facts { display: flex; flex-wrap: wrap; justify-content: center; }
  .cd-facts li { white-space: nowrap; }
}
@media (max-width: 640px) {
  /* Facts as a centred block with icons aligned on the left */
  .cd-facts { display: grid; width: fit-content; max-width: 100%; margin: 0 auto; justify-items: start; text-align: left; }
  .cd-facts li { white-space: normal; }
}
@media (max-width: 360px) {
  .cd-info h2 { font-size: 1.6rem; }
}

/* ===================================================================
   Hero — "Riverside Banner": the banner fills the hero width (up to its native 1773px, centred),
   never cropped and never stretched (width 100%, height auto, fixed 1773:887 ratio).
   The artwork is in the top half of the banner; its lower half is water and soft white, so the
   Date / Time / Location cards, organiser and buttons sit on that part (negative top margin).
   The negative margin follows the banner as it scales (cqw = % of the hero width):
     banner height = 50% of width; cards start about 54% down the banner (just below "LUCKNOW").
   Phones: a version with only the outer sky and skyline trimmed (1015:575), so the title stays readable.
   =================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--navy); text-align: center;
  container-type: inline-size; /* cqw below = % of the hero (banner) width, not of the content container */
  /* Same soft blue-white as the banner's bottom edge, so the banner melts into the page */
  background: #EEF6FD;
  padding: 0 0 40px;
}
.hero-banner { margin: 0 auto; max-width: 1773px; }
/* Cards, organiser and buttons are drawn above the banner (otherwise their backgrounds paint under the image) */
.hero-inner { position: relative; z-index: 1; }
/* H1: visually hidden on tablet and desktop (the banner shows the title large); read by screen readers and search engines */
.hero-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-banner picture { display: block; }
.hero-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1773 / 887; object-fit: contain; }
/* Screens wider than the banner: fade its left and right edges into the background */
@media (min-width: 1774px) {
  .hero { background: linear-gradient(180deg, #A9D3F7 0%, #DCEEFC 40%, #EEF6FD 62%); }
  .hero-banner img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}
/* Date / Time / Location: white cards on the banner's water, 24px below the "LUCKNOW" label
   ("LUCKNOW" ends 26.4% of the width down; the banner is 50% of the width tall → -23.6% + 24px) */
.hero-info {
  position: relative; list-style: none; padding: 0;
  margin: calc(min(100vw, 1773px) * -0.236 + 24px) auto 0;
  margin: calc(min(100cqw, 1773px) * -0.236 + 24px) auto 0;
  max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.hero-info-card {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px;
  background: var(--white); border: 1px solid rgba(48,43,124,.14); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-info-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--white); }
.hero-info-icon .icon { width: 26px; height: 26px; }
.hero-info-text { display: block; min-width: 0; }
.hero-info-label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hero-info-text strong { display: block; font-size: 1.18rem; line-height: 1.25; color: var(--indigo); }
.hero-info-text > span:last-child { display: block; font-weight: 600; color: var(--navy); }
.hero-organiser {
  margin: 16px auto 0; max-width: 760px; padding: 12px 20px;
  background: var(--white); border: 1px solid rgba(48,43,124,.14); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-organiser span { display: block; font-weight: 600; color: var(--muted); }
.hero-organiser strong { display: block; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.3; color: var(--indigo); }
.hero-actions { justify-content: center; margin-top: 18px; }
.hero-actions .btn { min-width: 240px; }

/* About (centred, short) and Highlights (4 cards) */
.section-head.center p { margin-left: auto; margin-right: auto; }
.about-section .section-head { margin-bottom: 0; }
.highlight-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.highlight-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; border-bottom: 4px solid var(--blue); }
.highlight-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.highlight-card.hl-orange { border-bottom-color: var(--orange); }
.highlight-card.hl-blue { border-bottom-color: var(--blue); }
.highlight-card.hl-green { border-bottom-color: var(--ok); }
.highlight-card.hl-indigo { border-bottom-color: var(--indigo); }

/* Laptop: smaller gaps and padding, same text size */
@media (max-width: 1279.98px) {
  .hero-info { gap: 12px; }
  .hero-info-card { padding: 14px 14px; gap: 12px; }
  .hero-info-icon { width: 46px; height: 46px; }
}
/* Tablet: info cards 2 + 1, highlights 2 + 2 */
@media (max-width: 899.98px) {
  .hero-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-info-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
@media (max-width: 1023.98px) {
  .highlight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: one column, full-width cards and buttons */
@media (max-width: 599.98px) {
  .hero { padding: 0 0 36px; }
  /* Phone banner (1015:575, outer sky trimmed): "LUCKNOW" ends 46% of the width down, banner is 56.65% tall */
  .hero-banner img { aspect-ratio: 1015 / 575; }
  /* Phones: the H1 is shown just below the banner (on the plain background, not on the busy water), then the cards */
  .hero-title {
    position: relative; width: auto; height: auto; margin: 14px auto 14px;
    overflow: visible; clip: auto; white-space: normal;
    max-width: 22ch; font-size: clamp(1.35rem, 6.2vw, 1.7rem); line-height: 1.2; color: var(--indigo); text-wrap: balance;
  }
  .hero-info { margin-top: 0; }
  .hero-info { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-info-card { padding: 12px 14px; }
  .hero-info-icon { width: 44px; height: 44px; }
  .hero-info-icon .icon { width: 22px; height: 22px; }
  .hero-info-card:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .hero-organiser { padding: 12px 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .highlight-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .highlight-card { flex-direction: row; text-align: left; }
}

/* ===================================================================
   News & Updates and AUPAD Videos
   News : 3 per row (desktop) · 2 (tablet) · 1 (phone)
   Video: 4 per row (wide desktop) · 2 (laptop/tablet) · 1 (phone); 16:9 thumbnails
   =================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199.98px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid, .video-grid { grid-template-columns: 1fr; } }

.news-card, .video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card-img, .video-thumb { position: relative; aspect-ratio: 16 / 9; background: #E6ECF6; overflow: hidden; }
.news-card-img img, .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body, .video-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card.no-image .news-card-body { border-top: 5px solid var(--orange); }
.news-date { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.news-date .icon { color: var(--blue); }
.news-card h3, .video-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.news-title-link { color: var(--indigo); text-decoration: none; }
.news-title-link:hover { text-decoration: underline; }
.news-summary, .video-body p { color: var(--navy); font-size: 1rem; margin: 0 0 16px; }
.news-more, .video-watch { margin-top: auto; align-self: flex-start; }
.yt-label { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(8,7,25,.82); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.video-thumb-missing { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--indigo); font-weight: 700; }
.video-thumb-missing .icon { width: 44px; height: 44px; }
.content-empty { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px dashed #B9C1D6; text-align: center; font-size: 1.05rem; color: var(--navy); }
.content-loading { color: var(--muted); }
#news-all { margin-top: 24px; }

/* News article page */
.news-article { max-width: 820px; margin: 0 auto; padding: 28px; }
.news-article-img { margin: 8px 0 20px; border-radius: var(--radius); overflow: hidden; background: #E6ECF6; }
.news-article-img img { width: 100%; height: auto; display: block; }
.news-article-summary { font-size: 1.15rem; font-weight: 600; color: var(--indigo); }
.news-article-body p { max-width: 68ch; margin-bottom: 1.1em; }
.news-article-body a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .news-article { padding: 20px 16px; } }

/* Checkboxes inside form fields are not text boxes (keeps them aligned with their label text) */
.field input[type="checkbox"], .field input[type="radio"] { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; flex: none; }
.check { align-items: center; }
.check input { margin-top: 0; }

/* Headings and <main> receive focus from script (so screen readers announce the new page).
   They are not interactive, so no focus box is drawn on them. Links, buttons and fields keep visible focus. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main[tabindex="-1"]:focus, [id$="-alert"][tabindex="-1"]:focus, .reg-success:focus { outline: none; }
.check { min-height: 44px; }   /* the whole label is the tap target */

/* ===================================================================
   Seat availability card (homepage). Live counts — no seat map.
   Desktop: 3 numbers in a row · Tablet: 3 in a row · Phone: stacked
   =================================================================== */
.seats-card { padding: 28px; }
.seat-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.seat-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--pale); border-top: 4px solid var(--indigo); }
.seat-stat-available { border-top-color: var(--orange); background: #FFF8F2; }
.seat-stat-label { display: block; font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.seat-stat-num { display: block; margin-top: 6px; font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.seat-progress { margin: 26px 0 18px; }
.seat-progress-labels { display: flex; justify-content: space-between; font-size: .95rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.seat-bar { height: 18px; border-radius: 999px; background: #E3E7F2; border: 1px solid var(--line); overflow: hidden; }
.seat-bar-fill { height: 100%; width: 0; background: var(--indigo); border-radius: 999px; transition: width .4s; }
.seat-bar-fill.has-bookings { min-width: 4px; }   /* a few bookings still show a thin, honest sliver */
.seat-bar-text { margin: 8px 0 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.seat-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.seat-status { margin: 0 0 6px; }
.seat-status .status-badge { font-size: 1rem; padding: 6px 14px; }
.seat-note { margin: 0; max-width: 52ch; font-size: 1rem; color: var(--navy); }
.seat-updated { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.btn-disabled, .btn[aria-disabled="true"] { background: #E3E7F2; border-color: #C5CBDA; color: #4A5468; cursor: not-allowed; pointer-events: none; }
@media (max-width: 640px) {
  .seats-card { padding: 20px 16px; }
  .seat-stats { grid-template-columns: 1fr; gap: 10px; }
  .seat-stat { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
  .seat-stat-num { margin-top: 0; font-size: 2.4rem; }
  .seat-actions, .seat-actions .btn { width: 100%; }
}
.btn-disabled { opacity: 1; }   /* "Registration Closed" must stay readable (grey fill, dark text) */

/* ===================================================================
   Venue & Directions (reuses .section, .section-head, .card, .grid-3, .btn)
   Order on every screen: venue details → venue photos → nearby places → map.
   =================================================================== */
.venue-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; border-top: 4px solid var(--orange); }
.venue-card.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; padding: 28px; }
.venue-label, .landmark-label { margin: 0 0 6px; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.venue-name { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 6px; }
.venue-address { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.venue-when { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.venue-when li { display: inline-flex; align-items: center; gap: 8px; }
.venue-when .icon { width: 1.3em; height: 1.3em; color: var(--blue); flex: none; }
.venue-actions { margin-top: 22px; }
.venue-map-note { margin: 10px 0 0; font-weight: 600; color: var(--muted); }
/* Real photographs: natural colours, cropped to fill the frame (object-fit: cover), never stretched */
.venue-hero-photo { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--pale); }
.venue-hero-photo img, .venue-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--indigo); font-weight: 700; font-size: .95rem; }
.venue-block { margin-top: 36px; }
.venue-block-title { margin: 0 0 14px; font-size: 1.3rem; }
.venue-photo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.venue-photo-list.is-single { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.venue-photo { margin: 0; background: var(--white); border: 1px solid rgba(48,43,124,.14); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.venue-photo-link { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--pale); }
.venue-photo-link:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.venue-photo picture { display: block; width: 100%; height: 100%; }
.venue-photo-zoom { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--indigo); font-weight: 700; font-size: .9rem; }
.venue-photo figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 1.12rem; font-weight: 700; color: var(--indigo); }
.venue-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); color: #8A3A08; font-weight: 800; font-size: .95rem; flex: none; }
.landmark-list { list-style: none; margin: 0; padding: 0; }
.landmark-card { display: flex; flex-direction: column; border-top: 4px solid var(--orange); }
.landmark-name { font-size: 1.2rem; color: var(--indigo); margin: 0 0 12px; }
.landmark-distance { margin: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.landmark-distance strong { font-size: 2.4rem; line-height: 1; font-weight: 800; color: var(--indigo); font-variant-numeric: tabular-nums; }
.landmark-distance span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.landmarks-note { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.venue-map { padding: 0; overflow: hidden; }
.venue-map-frame { display: block; width: 100%; height: 380px; border: 0; background: var(--pale); }
.venue-map-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 16px 20px; }
.venue-map-name { margin: 0; color: var(--navy); }
.venue-map-name span { display: block; color: var(--muted); }
/* Larger photo viewer (native <dialog>, see site.js) */
dialog.photo-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--white); color: var(--navy); overflow: hidden; }
dialog.photo-dialog::backdrop { background: rgba(8, 7, 25, .82); }
.photo-dialog img { display: block; width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; background: var(--midnight); }
.photo-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.photo-dialog-bar p { margin: 0; font-weight: 700; color: var(--indigo); }
/* Tablet: details full width, photo below; gallery stays 2 columns */
@media (max-width: 1023.98px) {
  .venue-card.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .venue-map-frame { height: 320px; }
}
@media (max-width: 767.98px) {
  /* Phones: one column; the exterior photo appears once, first in the photo list */
  .venue-card.has-photo { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .venue-hero-photo { display: none; }
  .venue-photo-list { grid-template-columns: minmax(0, 1fr); }
  .venue-actions, .venue-actions .btn { width: 100%; }
  .venue-map-frame { height: 280px; }
  .venue-map-actions .btn { width: 100%; }
}

/* ===================================================================
   Need Help (WhatsApp help with the Treasurer) — reuses .card, .btn, .field, .char-count, .error-text
   Desktop: intro + contact card left, question form right. Tablet/phone: one column.
   =================================================================== */
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.help-intro .lead { margin-bottom: 18px; }
.help-contact { display: flex; gap: 16px; align-items: flex-start; border-top: 4px solid var(--orange); }
.help-contact-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: #8A3A08; }
.help-contact-icon .icon { width: 24px; height: 24px; }
.help-contact p { margin: 0; }
.help-contact-label { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.help-contact-name { font-size: 1.3rem; font-weight: 800; color: var(--indigo); line-height: 1.3; }
.help-contact-role { font-weight: 600; color: var(--navy); margin-bottom: 8px !important; }
.help-contact-phone { display: flex; align-items: center; gap: 6px; margin-bottom: 12px !important; font-weight: 700; }
.help-contact-phone a { min-height: 44px; display: inline-flex; align-items: center; }
.help-email:empty { display: none; }
.help-email { margin: 14px 0 0; }
.help-venue { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.help-venue p { margin: 0 0 8px; display: flex; gap: 8px; align-items: flex-start; }
.help-venue .icon { flex: none; margin-top: 3px; color: var(--blue); }
.help-form h3 { margin: 0 0 14px; font-size: 1.25rem; }
.quick-help { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.quick-help legend { padding: 0; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.quick-help-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-help-btn {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer;
  background: var(--white); color: var(--indigo); border: 2px solid rgba(48,43,124,.35);
}
.quick-help-btn:hover { border-color: var(--indigo); background: #EEF0FA; }
.quick-help-btn[aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.quick-help-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.help-form textarea { min-height: 140px; }
.help-send { width: 100%; margin-top: 8px; }
.help-privacy { margin: 10px 0 0; }
/* Compact help blocks (Registration page payment card, status page) */
.reg-help { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--pale); border: 1px solid var(--line); }
.reg-help h3 { margin: 0 0 6px; font-size: 1.05rem; }
.reg-help p { margin: 0 0 10px; color: var(--navy); }
@media (max-width: 1023.98px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 599.98px) {
  .quick-help-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-help-btn { border-radius: var(--radius-sm); width: 100%; }
  .help-contact .btn { width: 100%; }
}
@media (max-width: 359.98px) {
  .quick-help-options { grid-template-columns: minmax(0, 1fr); }
}
.help-form .char-count { margin-top: 4px; font-size: .9rem; color: var(--muted); text-align: right; }
.help-form textarea[aria-invalid="true"] { border-color: var(--bad); background: #FFF9F8; }
/* Comfortable touch targets for the plain links in Need Help and the footer help block */
.help-venue .venue-directions-link a { display: inline-flex; align-items: center; min-height: 44px; }
.help-venue p.venue-directions-link { margin-bottom: 0; }


/* ===================================================================
   Deaf-first public design (October 2026): clear menu, phone quick actions, official information,
   registration journey. Every important item = icon + short heading + simple words.
   =================================================================== */
/* Header: "Staff Login" stays available but quiet (it is not for participants) */
.nav-list .staff-btn { color: var(--muted); font-size: .86rem; font-weight: 600; }
.nav-list .staff-btn > .icon:first-child { width: 1em; height: 1em; }
.nav-list a:focus-visible, .nav-dropdown > button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Phone menu: slides in from the right; icons + big touch targets */
.drawer:not([hidden]) { animation: drawer-in .22s ease; }
.drawer-backdrop:not([hidden]) { animation: fade-in .2s ease; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer { padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) 18px; }
.drawer-actions { display: grid; gap: 8px; }
.drawer-nav a { gap: 12px; min-height: 52px; font-size: 1.05rem; }
.drawer-nav .icon { width: 22px; height: 22px; color: var(--blue); flex: none; }
.drawer-nav a.active .icon { color: var(--indigo); }
.drawer-help { padding: 14px; border-radius: var(--radius-sm); background: var(--pale); border: 1px solid var(--line); }
.drawer-help p { margin: 0 0 6px; color: var(--navy); font-size: .98rem; }
.drawer-help-name { font-weight: 700; }
.drawer-staff { border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }
.drawer-staff summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 600; cursor: pointer; list-style: none; }
.drawer-staff summary::-webkit-details-marker { display: none; }
.drawer-staff summary::after { content: "+"; margin-left: auto; font-weight: 800; }
.drawer-staff[open] summary::after { content: "–"; }
.drawer-staff summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.drawer-staff ul { list-style: none; margin: 4px 0 0; padding: 0; }
.drawer-staff a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); }

/* Quick actions on phones */
.mobile-actions { display: none; }
@media (max-width: 767.98px) {
  .mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(23,54,93,.10);
  }
  .mobile-actions a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px;
    color: var(--indigo); font-weight: 700; font-size: .8rem; line-height: 1.15; text-align: center; text-decoration: none;
  }
  .mobile-actions a:first-child { background: var(--indigo); color: var(--white); }
  .mobile-actions a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  .mobile-actions .icon { width: 22px; height: 22px; vertical-align: 0; }
  body:has(.mobile-actions) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.typing .mobile-actions, body.drawer-open .mobile-actions { display: none; }
}

/* About: official event information */
.official-title { text-align: center; margin: 36px 0 16px; font-size: 1.2rem; }
.official-facts { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.official-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,54,93,.05); }
.of-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #EEF0FA; color: var(--indigo); }
.of-ic .icon { width: 22px; height: 22px; vertical-align: 0; }
.official-facts strong { display: block; margin-bottom: 2px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.official-facts li > span:last-child { font-weight: 600; color: var(--navy); line-height: 1.4; min-width: 0; }
@media (max-width: 1023.98px) { .official-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .official-facts { grid-template-columns: minmax(0, 1fr); } }

/* Registration journey */
.reg-summary { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.reg-intro .lead { margin-bottom: 18px; }
.fee-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); }
.fee-card-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--orange-soft); color: #8A3A08; }
.fee-card-ic .icon { width: 24px; height: 24px; vertical-align: 0; }
.fee-card-amount { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--indigo); }
.fee-card-amount span { font-size: 1rem; font-weight: 600; color: var(--navy); }
.fee-card .fee-note { margin: 2px 0 0; }
.need-box { padding: 16px 18px; margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.need-box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.need-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.need-box li { display: flex; gap: 10px; align-items: flex-start; color: var(--navy); }
.need-box .icon { flex: none; margin-top: 3px; color: var(--blue); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.journey li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,54,93,.05); }
.j-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #EEF0FA; color: var(--indigo); }
.j-ic .icon { width: 24px; height: 24px; vertical-align: 0; }
.journey h3 { margin: 0 0 4px; font-size: 1.1rem; }
.j-num { display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #B4500F; }
.journey p { margin: 0; color: var(--navy); }
.journey li:last-child { border-color: #BFE3CB; }
.journey li:last-child .j-ic { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 1023.98px) { .reg-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 599.98px) { .journey { grid-template-columns: minmax(0, 1fr); gap: 10px; } .journey li { padding: 14px; } .fee-card-amount { font-size: 1.7rem; } }

/* Ticket & Entry: what to bring */
.bring-box { margin-top: 18px; padding: 18px 20px; background: var(--white); border: 1px solid #BFE3CB; border-left: 4px solid var(--ok); border-radius: var(--radius); }
.bring-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.1rem; }
.bring-box h3 .icon { color: var(--ok); }
.bring-box ul { margin: 0 0 8px; padding-left: 1.3em; color: var(--navy); }
.bring-box li { margin-bottom: 4px; }
.bring-box p { margin: 0; color: var(--muted); }

/* Gentle hover on cards with links (devices with a mouse); no movement for reduced-motion users */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .journey li, .official-facts li, .feature-card { transition: box-shadow .18s, border-color .18s; }
  .journey li:hover, .official-facts li:hover { box-shadow: 0 8px 24px rgba(23,54,93,.08); border-color: #C9CDE6; }
}

/* Registration action panel (below "How to Register"): status → seats → Register Now → Check My Registration */
.reg-action { max-width: 720px; margin: 36px auto 0; text-align: center; }
.reg-status {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 20px; max-width: 520px;
  padding: 18px 24px; border: 1px solid #BFE3CB; border-radius: var(--radius); background: #F2FAF5;
}
.reg-status p { margin: 0; }
.reg-status-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--ok); color: var(--white); }
.reg-status-ic .icon { width: 22px; height: 22px; stroke-width: 2.6; vertical-align: 0; }
.reg-status-title { font-size: 1.2rem; font-weight: 800; color: #0E4F21; }
.reg-status-seats { font-size: 1.05rem; color: var(--navy); }
.reg-status-few { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: .95rem; }
.reg-status-loading { color: var(--muted); font-weight: 600; }
/* Not open (opens soon, closed, full): same panel in a soft amber tone with the reason in words */
.reg-status.is-closed { border-color: #F0D49A; background: #FFF8E8; }
.reg-status.is-closed .reg-status-ic { background: var(--warn); }
.reg-status.is-closed .reg-status-title { color: var(--warn); }
.reg-action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reg-action-buttons .btn { min-width: 240px; }
.reg-action-buttons .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 599.98px) {
  .reg-action { margin-top: 28px; }
  .reg-status { padding: 16px; }
  .reg-action-buttons { flex-direction: column; align-items: stretch; }
  .reg-action-buttons .btn { width: 100%; min-width: 0; }
}

/* ===================================================================
   Footer (all public pages). Light and calm: pale blue, indigo headings, orange accents.
   Desktop: 4 columns   About+Follow | Office & Contact | Quick Links | Need Help+Staff
   Tablet:  2 columns   Phone: 1 column (About, Office, Links, Help, Staff, Follow)
   =================================================================== */
.site-footer { background: #F4F6FC; color: var(--navy); border-top: 4px solid var(--orange); padding-top: 56px; }
.footer-grid {
  display: grid; gap: 36px 40px; align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.05fr);
}
/* Desktop: two stacked columns (identity + Follow, Need Help + Staff). Tablet/phone: their children join the grid. */
.footer-stack { display: grid; gap: 32px; align-content: start; min-width: 0; }
.site-footer h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.05rem; color: var(--indigo); }
.site-footer h3::after { content: ""; flex: none; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--navy); }
.site-footer a:not(.btn):hover { color: var(--indigo); }
/* Buttons keep their own colours inside the footer */
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: var(--white); text-decoration: none; }
.site-footer a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* About */
.footer-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; color: var(--indigo); text-decoration: none; }
.footer-brand img { width: 64px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; flex-shrink: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.footer-brand strong { font-size: 1.08rem; line-height: 1.3; }
.footer-event { display: grid; gap: 8px; }
.footer-event li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.footer-event .icon { flex: none; margin-top: 3px; color: var(--blue); }

/* Office & Contact */
.footer-contact-list { display: grid; gap: 16px; }
.footer-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.fc-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: #E6EAF7; color: var(--indigo); }
.fc-ic .icon { width: 20px; height: 20px; vertical-align: 0; }
.footer-contact-list strong { display: block; margin-bottom: 2px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.footer-contact-list address { font-style: normal; line-height: 1.5; }
.footer-contact-list a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; font-weight: 700; overflow-wrap: anywhere; }

/* Quick links: tidy list with a small arrow, underline on hover/focus */
.footer-links li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.footer-links li a::before { content: ""; width: 6px; height: 6px; flex: none; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.footer-links li a:hover, .footer-links li a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Need Help: the main support action (text, not phone calls) */
.footer-help { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,54,93,.05); }
.footer-help p { margin: 0 0 12px; }
.footer-help-text { color: var(--muted); }
.footer-help-name strong { color: var(--indigo); }
.footer-help .btn { width: 100%; }
.footer-help a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-help p:last-child { margin-bottom: 0; }

.policy-links:not(:empty) { margin-top: 8px !important; }

/* Follow AUPAD */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer a.social-link {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--indigo); background: var(--white); border: 1px solid var(--line); transition: background-color .18s, border-color .18s, color .18s;
}
.social-link .icon { width: 20px; height: 20px; vertical-align: 0; }
.site-footer a.social-facebook:hover, .site-footer a.social-facebook:focus-visible { background: #1877F2; border-color: #1877F2; color: #fff; }
.site-footer a.social-instagram:hover, .site-footer a.social-instagram:focus-visible { background: #E1306C; border-color: #E1306C; color: #fff; }
.site-footer a.social-youtube:hover, .site-footer a.social-youtube:focus-visible { background: #FF0000; border-color: #FF0000; color: #fff; }
.site-footer a.social-x:hover, .site-footer a.social-x:focus-visible { background: #000; border-color: #000; color: #fff; }
.site-footer a.social-link:focus-visible { outline-offset: 3px; border-radius: 50%; }
@media (hover: hover) {
  .social-link::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    padding: 4px 10px; border-radius: 8px; background: var(--indigo); color: var(--white); font-size: .8rem; font-weight: 700;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
  }
  .social-link:hover::after, .social-link:focus-visible::after { opacity: 1; }
}

/* Bottom bar */
.footer-bottom { margin-top: 44px; border-top: 1px solid var(--line); background: #EDF0F9; font-size: .9rem; color: var(--muted); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Back to top: small round indigo button; its name is read by screen readers */
.to-top {
  position: fixed; z-index: 90; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%;
  right: max(18px, calc(env(safe-area-inset-right) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  background: var(--indigo); border-color: var(--indigo); color: var(--white); box-shadow: 0 8px 24px rgba(48,43,124,.28);
}
.to-top:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: var(--white); }
.to-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.to-top .icon { width: 22px; height: 22px; vertical-align: 0; }
.to-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Keep the floating button off the credit line */
@media (max-width: 1359.98px) { .footer-bottom .container { padding-right: max(84px, env(safe-area-inset-right)); } }

@media (max-width: 1099.98px) {
  .footer-stack { display: contents; }
  .footer-brand img { width: 60px; }
  .footer-about { grid-area: about; } .footer-office { grid-area: office; } .footer-links { grid-area: links; }
  .footer-help { grid-area: help; } .footer-social { grid-area: social; } .policy-links { grid-area: policy; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "about office" "links help" "social policy"; gap: 32px; }
}
@media (max-width: 699.98px) {
  .site-footer { padding-top: 40px; }
  .footer-brand img { width: 56px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "about" "office" "links" "help" "policy" "social"; gap: 30px; }
  .footer-bottom { margin-top: 36px; }
  .footer-bottom .container { flex-direction: column; justify-content: center; text-align: center; padding-right: 16px; padding-bottom: 124px; }
}
/* Phones: Back to top sits above the quick-action bar */
@media (max-width: 767.98px) { .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); } }
