/* HHB Annual Dinner & Gala 2026 - /annual-dinner and the Dashboard banner. */
:root {
    --ad-navy: #0b1f3a;
    --ad-blue: var(--hhb-primary, #0066cc);
    --ad-green: var(--hhb-accent, #00b386);
    --ad-gold: #f2c14e;
    --ad-gold-dark: #d9a520;
    --ad-adult: #0066cc;
    --ad-teen: #00b386;
    --ad-child: #f2a33a;
}

.ad-wrap { max-width: 880px; margin: 0 auto; }

/* ---------- Hero ---------- */
.ad-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 179, 134, .45), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(0, 102, 204, .6), transparent 50%),
        linear-gradient(160deg, #0b1f3a 0%, #102d57 55%, #0b3b4a 100%);
    box-shadow: 0 10px 30px rgba(11, 31, 58, .25);
}
.ad-hero-inner { position: relative; padding: 2rem 1rem 1.6rem; }
.ad-pill {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(242, 193, 78, .15);
    border: 1px solid rgba(242, 193, 78, .5);
    color: var(--ad-gold);
}
.ad-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin: .8rem 0 1rem;
    letter-spacing: -.01em;
    color: #fff; /* styles.css colours every h1-h3 dark */
}
.ad-title span {
    background: linear-gradient(90deg, var(--ad-gold), #ffe9a8, var(--ad-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ad-facts { list-style: none; padding: 0; margin: 0 auto 1.2rem; max-width: 360px; text-align: left; }
.ad-facts li { display: flex; gap: .6rem; padding: .25rem 0; font-weight: 600; }
.ad-facts small { font-weight: 400; opacity: .85; }
.ad-maplink { color: var(--ad-gold); font-weight: 600; font-size: .9rem; }
.ad-maplink-sep { color: var(--ad-gold); opacity: .6; margin: 0 .45rem; }

.ad-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 360px; margin: 0 auto; }
.ad-countdown > div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .6rem;
    padding: .5rem 0 .4rem;
}
.ad-countdown b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ad-countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.ad-countdown-done { font-size: 1.4rem; font-weight: 700; color: var(--ad-gold); }
.ad-hero-count { opacity: .9; }
.ad-hero-count strong { color: var(--ad-gold); font-size: 1.15rem; }

.ad-btn-gold { background: var(--ad-gold); border-color: var(--ad-gold); color: var(--ad-navy); font-weight: 700; }
.ad-btn-gold:hover, .ad-btn-gold:focus { background: var(--ad-gold-dark); border-color: var(--ad-gold-dark); color: var(--ad-navy); }
.ad-btn-ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; font-weight: 600; }
.ad-btn-ghost:hover, .ad-btn-ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.ad-btn-primary { background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; font-weight: 700; }
.ad-btn-primary:hover, .ad-btn-primary:focus, .ad-btn-primary:disabled { background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; }
.ad-btn-primary:disabled { opacity: .45; }

/* Confetti - pure CSS, decorative only */
.ad-confetti { position: absolute; inset: 0; pointer-events: none; }
.ad-confetti span {
    position: absolute;
    top: -10%;
    width: 7px;
    height: 12px;
    border-radius: 2px;
    opacity: .75;
    animation: ad-fall 9s linear infinite;
}
.ad-confetti span:nth-child(3n)   { background: var(--ad-gold); }
.ad-confetti span:nth-child(3n+1) { background: var(--ad-green); }
.ad-confetti span:nth-child(3n+2) { background: #6fb6ff; }
.ad-confetti span:nth-child(1)  { left: 4%;  animation-delay: 0s; }
.ad-confetti span:nth-child(2)  { left: 10%; animation-delay: 3.2s; animation-duration: 11s; }
.ad-confetti span:nth-child(3)  { left: 16%; animation-delay: 6.1s; }
.ad-confetti span:nth-child(4)  { left: 22%; animation-delay: 1.4s; animation-duration: 12s; }
.ad-confetti span:nth-child(5)  { left: 28%; animation-delay: 4.7s; }
.ad-confetti span:nth-child(6)  { left: 34%; animation-delay: 7.5s; animation-duration: 10s; }
.ad-confetti span:nth-child(7)  { left: 40%; animation-delay: 2.3s; }
.ad-confetti span:nth-child(8)  { left: 46%; animation-delay: 5.6s; animation-duration: 13s; }
.ad-confetti span:nth-child(9)  { left: 52%; animation-delay: .8s; }
.ad-confetti span:nth-child(10) { left: 58%; animation-delay: 3.9s; animation-duration: 11s; }
.ad-confetti span:nth-child(11) { left: 64%; animation-delay: 6.8s; }
.ad-confetti span:nth-child(12) { left: 70%; animation-delay: 1.9s; animation-duration: 12s; }
.ad-confetti span:nth-child(13) { left: 76%; animation-delay: 5.1s; }
.ad-confetti span:nth-child(14) { left: 82%; animation-delay: 8.2s; animation-duration: 10s; }
.ad-confetti span:nth-child(15) { left: 88%; animation-delay: 2.7s; }
.ad-confetti span:nth-child(16) { left: 94%; animation-delay: 4.3s; animation-duration: 11s; }
.ad-confetti span:nth-child(17) { left: 7%;  animation-delay: 7.9s; }
.ad-confetti span:nth-child(18) { left: 61%; animation-delay: 9s; animation-duration: 13s; }
@keyframes ad-fall {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(520px) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) {
    .ad-confetti { display: none; }
}

/* ---------- Sections ---------- */
.ad-h2 { font-size: 1.3rem; font-weight: 800; color: var(--ad-navy); margin-bottom: .75rem; }
.ad-panel {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: .8rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(11, 31, 58, .05);
}

.ad-champ {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border-radius: .8rem;
    background: linear-gradient(135deg, #fff8e1, #fff);
    border: 1px solid #f3dd9c;
}
.ad-champ-icon { font-size: 1.9rem; line-height: 1; }
.ad-champ-event { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #8a6a12; font-weight: 700; }
.ad-champ-name { font-size: 1.15rem; font-weight: 800; color: var(--ad-navy); }
.ad-champ-tbc { font-style: italic; color: #6c757d; }

.ad-expect {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-top: 4px solid var(--ad-green);
    border-radius: .8rem;
    padding: .8rem;
    text-align: center;
}
.ad-expect:nth-child(even), .col-6:nth-child(even) .ad-expect { border-top-color: var(--ad-blue); }
.ad-expect-ico { font-size: 1.8rem; }
.ad-expect h3 { font-size: 1rem; font-weight: 700; margin: .3rem 0 .2rem; color: var(--ad-navy); }
.ad-expect p { font-size: .85rem; color: #555; margin: 0; }

/* Roles */
.ad-roles > .ad-role { padding: .8rem 1rem; border-bottom: 1px solid #edf0f4; }
.ad-roles > .ad-role:last-child { border-bottom: 0; }
.ad-role-name { font-weight: 700; color: var(--ad-navy); }
.ad-role-holder { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: #146c43; }
.ad-role-open { color: #b45309; font-weight: 600; font-style: italic; }
.ad-role.is-open { background: #fffbeb; }
.ad-role-claim { display: flex; gap: .4rem; margin-top: .5rem; }
.ad-role-claim .form-select { min-width: 0; }

/* RSVP */
.ad-yesno { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 576px) { .ad-yesno { grid-template-columns: 1fr 1fr; } }
.ad-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid #edf0f4;
}
.ad-stepper-ctl { display: flex; align-items: center; gap: .5rem; }
.ad-stepper-ctl .btn { width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.3rem; line-height: 1; padding: 0; }
.ad-stepper-ctl output { min-width: 1.8rem; text-align: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ad-party strong { font-size: 1.2rem; color: var(--ad-blue); }

/* Who's coming */
.ad-big { font-size: 1.8rem; font-weight: 800; color: var(--ad-navy); }
.ad-progress { height: 1rem; border-radius: 999px; background: #e9eef5; }
.ad-progress .progress-bar { background: linear-gradient(90deg, var(--ad-green), var(--ad-blue)); border-radius: 999px; }
.ad-names { display: flex; flex-wrap: wrap; gap: .35rem; }
.ad-names span {
    background: #eef6ff;
    color: var(--ad-navy);
    border: 1px solid #cfe2ff;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .85rem;
    font-weight: 600;
}

/* Head count */
.ad-donut-wrap { position: relative; width: 190px; max-width: 70vw; margin: 0 auto; }
.ad-donut-wrap svg { width: 100%; height: auto; display: block; }
.ad-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-donut-center strong { font-size: 2rem; font-weight: 800; color: var(--ad-navy); line-height: 1; }
.ad-donut-center small { color: #6c757d; }
.ad-legend li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed #e3e8ef; }
.ad-legend b { margin-left: auto; font-size: 1.1rem; }
.ad-swatch { width: .9rem; height: .9rem; border-radius: 3px; flex: none; }
.ad-stat { background: #f5f8fc; border-radius: .6rem; padding: .6rem .3rem; }
.ad-stat b { display: block; font-size: 1.5rem; color: var(--ad-navy); }
.ad-stat small { color: #6c757d; }

/* Admin */
.ad-admin-role { padding: .6rem 0; border-bottom: 1px solid #edf0f4; }

/* ---------- Dashboard banner ---------- */
.ad-banner {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    padding: 1.1rem 1.1rem 1rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 179, 134, .5), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 102, 204, .65), transparent 55%),
        linear-gradient(150deg, #0b1f3a, #102d57 60%, #0b3b4a);
    box-shadow: 0 8px 24px rgba(11, 31, 58, .25);
}
.ad-banner:hover { color: #fff; }
.ad-banner-kicker { color: var(--ad-gold); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ad-banner h2 { color: #fff; font-size: clamp(1.35rem, 5.5vw, 1.9rem); font-weight: 800; margin: .15rem 0 .3rem; }
.ad-banner-meta { opacity: .9; font-weight: 600; font-size: .95rem; }
.ad-banner .ad-countdown { margin: .8rem 0 0; max-width: 320px; }
.ad-banner .ad-countdown b { font-size: 1.3rem; }
.ad-banner-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; }
.ad-banner-foot strong { color: var(--ad-gold); }

/* All RSVPs table - compact so every column fits on a phone */
.ad-rsvp-table th, .ad-rsvp-table td { padding: .35rem .2rem; }
.ad-rsvp-table thead th { font-size: .75rem; white-space: nowrap; }
.ad-rsvp-table td:first-child { word-break: break-word; }

/* ---------- Programme & Menu (/annual-dinner/programme) ---------- */
.ad-back { display: inline-block; margin-bottom: .75rem; font-weight: 600; text-decoration: none; }
.ad-prog-hero .ad-hero-inner { padding: 1.6rem 1rem 1.2rem; }
.ad-prog-hero .ad-title { font-size: clamp(1.8rem, 8vw, 2.6rem); margin: .6rem 0 .8rem; }
.ad-prog-hero .ad-facts { margin-bottom: 0; }

.ad-timeline { position: relative; }
.ad-slot {
    position: relative;
    display: grid;
    grid-template-columns: 4.6rem 1fr auto;
    gap: .6rem;
    align-items: start;
    padding: .6rem .75rem;
    background: #fff;
    border: 1px solid rgba(11, 31, 58, .08);
    border-left: 4px solid rgba(0, 102, 204, .35);
    border-radius: .6rem;
    margin-bottom: .45rem;
}
.ad-slot-time { font-weight: 800; color: var(--ad-blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-slot-title { font-weight: 700; color: var(--ad-navy); line-height: 1.25; }
.ad-slot-sub { font-size: .8rem; color: #5b6b80; margin-top: .1rem; }
.ad-slot-lead { font-size: .8rem; color: #5b6b80; margin-top: .15rem; }
.ad-slot-lead::before { content: "👤 "; }
.ad-slot-mins {
    font-size: .72rem; font-weight: 600; white-space: nowrap;
    padding: .15rem .45rem; border-radius: 999px;
    background: rgba(0, 102, 204, .08); color: var(--ad-blue);
}
.ad-slot-key { border-left-color: var(--ad-gold-dark); background: #fffaf0; }
.ad-slot-key .ad-slot-time { color: var(--ad-gold-dark); }
.ad-slot-end { border-left-color: var(--ad-navy); background: #f4f6f9; }
.ad-slot-now { border-left-color: var(--ad-green); box-shadow: 0 0 0 2px var(--ad-green); }
.ad-now-badge { background: var(--ad-green); font-size: .7rem; vertical-align: middle; margin-left: .3rem; }

.ad-menu-card { border-radius: .75rem; overflow: hidden; border-color: rgba(11, 31, 58, .1); }
.ad-menu-card .card-header { font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ad-navy), #133a6b); }
.ad-menu-card .list-group-item { padding: .5rem .9rem; }
.ad-veg { color: var(--ad-green); font-weight: 700; font-size: .85em; }

@media (max-width: 400px) {
    .ad-slot { grid-template-columns: 4.1rem 1fr; }
    .ad-slot-mins { display: none; }
}

/* One A4 sheet: schedule left, menu right, no site chrome. */
@media print {
    @page { size: A4 portrait; margin: 10mm; }
    .hhb-navbar, footer, .feedback-fab, .ad-back, .d-print-none { display: none !important; }
    body { background: #fff !important; }
    body > .container-fluid { margin: 0 !important; padding: 0 !important; }
    .ad-prog { max-width: none; font-size: 10.5pt; }
    .ad-prog-hero { box-shadow: none; border-radius: .5rem; margin-bottom: 4mm !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ad-prog-hero .ad-hero-inner { padding: 4mm 6mm; }
    .ad-prog-hero .ad-title { font-size: 20pt; margin: 2mm 0; }
    .ad-prog-hero .ad-title br { display: none; }
    .ad-prog-hero .ad-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6mm; max-width: none; }
    .ad-prog-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 6mm; }
    .ad-prog-grid section { margin-bottom: 0 !important; }
    .ad-h2 { font-size: 13pt; margin-bottom: 2mm; }
    .ad-slot { padding: 1.3mm 2.5mm; margin-bottom: 1.2mm; break-inside: avoid; gap: 2mm;
        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ad-slot-sub, .ad-slot-lead { font-size: 8pt; }
    .ad-slot-now { box-shadow: none; }
    .ad-now-badge { display: none !important; }
    .ad-menu-row > div { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .ad-menu-card { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ad-menu-card .list-group-item { padding: 1mm 3mm; }
}
.ad-prog-link { max-width: 420px; display: block; margin-left: auto; margin-right: auto; }
