/* =====================================================================
   IU Convocation — shared styles (public site, graduate portal, admin)
   The theme colours (Settings → Branding) are set again in partials/head.php
   by ThemeService; every other shade below is worked out from them.
   ===================================================================== */
:root {
    --brand: #0a6b3d;      /* primary */
    --accent: #c9a227;
    --dark: #13241a;       /* admin sidebar, website footer */
    --paper: #f5f8f4;      /* page background */
    --ink: #18241d;        /* text */
    --on-accent: #28200f;  /* text on the accent colour */
    --radius: 14px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px -12px rgba(17, 24, 39, .12);
}
/* .theme-scope: a colour preview (Settings → Branding) works out its own shades */
:root, .theme-scope {
    --brand-dark: color-mix(in srgb, var(--brand) 62%, #04100a);
    --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
    --brand-tint: color-mix(in srgb, var(--brand) 12%, #fff);    /* light text on the primary colour */
    --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
    --accent-tint: color-mix(in srgb, var(--accent) 30%, #fff);  /* accent text on the primary colour */
    --accent-line: color-mix(in srgb, var(--accent) 45%, #fff);
    --accent-dark: color-mix(in srgb, var(--accent) 89%, #000);
    --dark-2: color-mix(in srgb, var(--dark) 89%, #000);         /* website footer */
    --on-dark: color-mix(in srgb, var(--brand) 12%, #d6d6d6);    /* text on the dark colour */
    --on-dark-2: color-mix(in srgb, var(--on-dark) 65%, var(--dark));
    --muted: color-mix(in srgb, var(--ink) 64%, var(--paper));
    --line: color-mix(in srgb, var(--ink) 9%, var(--paper));
    --line-2: color-mix(in srgb, var(--ink) 15%, var(--paper));
    --paper-1: color-mix(in srgb, var(--paper) 60%, #fff);
    --paper-2: color-mix(in srgb, var(--ink) 3%, var(--paper));
    --paper-3: color-mix(in srgb, var(--ink) 6%, var(--paper));
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-variant-numeric: lining-nums; /* figures of one height everywhere (the heading font would otherwise use old-style ones) */
}
/* Bangla text: Latin letters and figures inside it stay in the page font, Bangla letters come from Hind Siliguri */
.bn, [lang="bn"] { font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif; letter-spacing: 0; }
h1, h2, h3, h4, .display-font { font-family: 'Playfair Display', Georgia, 'Hind Siliguri', serif; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
h1 .bn, h2 .bn, h3 .bn, h4 .bn { font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* SweetAlert uses <h2> titles — keep them in the UI font */
.swal2-popup, .swal2-title, .swal2-html-container { font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif !important; letter-spacing: 0 !important; }
.swal2-toast .swal2-title { font-size: .95rem !important; font-weight: 600 !important; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 500; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn-soft { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-soft:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: var(--radius) var(--radius) 0 0 !important; padding: .85rem 1.1rem; }
.card-header .bi { color: var(--brand); }
.card-footer { background: #fff; border-top: 1px solid var(--line); }

/* Forms */
.form-label { font-weight: 500; font-size: .9rem; margin-bottom: .3rem; }
.form-label .req { color: #c0392b; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line-2); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 12%, transparent); }
.form-text { font-size: .8rem; }
@media (max-width: 575.98px) { .form-control-sm, .form-select-sm, .input-group-sm > .form-control, .input-group-sm > .form-select { font-size: 1rem; } } /* under 16px, iPhones zoom the page on focus */
.input-group-text { border-color: var(--line-2); background: var(--paper-2); }
.locked-field { background: var(--paper-3) !important; color: color-mix(in srgb, var(--ink) 85%, var(--paper)); }

/* Tables */
.table { --bs-table-hover-bg: color-mix(in srgb, var(--accent) 7%, #fff); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom-width: 1px; background: var(--paper-1); white-space: nowrap; }
.table td { vertical-align: middle; }
.table-sm td, .table-sm th { padding: .45rem .55rem; }

.badge { font-weight: 600; letter-spacing: .01em; }
.badge-level { font-size: .7rem; }
.text-bg-warning { color: #3d2a00 !important; }

/* Stat tiles */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); height: 100%; }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 1.55rem; font-weight: 700; line-height: 1.2; margin-top: .15rem; font-variant-numeric: lining-nums tabular-nums; }
.stat .icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat .foot { font-size: .75rem; color: var(--muted); margin-top: .35rem; }

/* Empty states */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .bi { font-size: 2.4rem; color: var(--line-2); display: block; margin-bottom: .6rem; }

/* Avatar / photo */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--brand); color: #fff; font-size: .85rem; flex-shrink: 0; }
.photo-thumb { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-2); }
.photo-lg { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); }
.sign-img { max-width: 180px; max-height: 60px; object-fit: contain; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 2.1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 4px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline .when { font-size: .75rem; color: var(--muted); }

/* Key/value lists */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .35rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* Alerts */
.alert { border-radius: 12px; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: .9rem 1.1rem; border-radius: 10px; }
.callout-brand { border-left-color: var(--brand); background: var(--brand-soft); }

/* =====================================================================
   Public site
   ===================================================================== */
.topstrip { background: var(--brand-dark); color: var(--brand-tint); font-size: .8rem; }
.topstrip a { color: #fff; }
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand { white-space: normal; min-width: 0; } /* the title may wrap on very narrow phones instead of widening the page */
.site-nav .navbar-brand img { width: 46px; height: 46px; flex-shrink: 0; }
@media (max-width: 991.98px) { .site-nav .navbar-brand { flex: 1 1 0; } } /* title and menu button share the first row */
@media (max-width: 379.98px) {
    .site-nav .navbar-brand img { width: 36px; height: 36px; }
    .site-nav .brand-title { font-size: 1rem; }
    .site-nav .brand-sub { font-size: .62rem; letter-spacing: .03em; }
}
.brand-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--brand); font-size: 1.12rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .72rem; line-height: 1.35; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.site-nav .nav-link { white-space: nowrap; color: color-mix(in srgb, var(--ink) 85%, #fff); font-weight: 500; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); background: var(--brand-soft); }
/* a long menu (ten pages) on a desktop: keep the title on its own lines and the menu on one row */
@media (min-width: 1200px) {
    .site-nav .navbar-brand { flex-shrink: 0; max-width: 420px; }
    .site-nav .brand-title, .site-nav .brand-sub { white-space: nowrap; }
    .site-nav .navbar-nav { flex-wrap: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .site-nav .nav-link { font-size: .84rem; padding: .45rem .5rem !important; }
    .site-nav .navbar-brand { max-width: 360px; }
    .site-nav .brand-title { font-size: 1.08rem; line-height: 1.15; }
    .site-nav .brand-sub { font-size: .68rem; letter-spacing: .03em; }
    .site-nav .btn { padding-left: .7rem; padding-right: .7rem; font-size: .86rem; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .site-nav .nav-link { font-size: .8rem; padding: .4rem .38rem !important; }
    .site-nav .navbar-brand { max-width: 320px; }
    .site-nav .brand-title { font-size: 1rem; }
    .site-nav .brand-sub { font-size: .64rem; letter-spacing: .01em; }
}

.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1100px 420px at 85% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(255, 255, 255, .08), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px);
}
.hero .container { position: relative; z-index: 1; }
/* home banner with a photo behind it (Settings → Branding): darkened with the primary colour so the text stays readable */
.hero.has-photo {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--brand-dark) 92%, transparent) 0%, color-mix(in srgb, var(--brand-dark) 74%, transparent) 45%, color-mix(in srgb, var(--brand-dark) 46%, transparent) 100%),
        linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--brand-dark) 70%, transparent) 100%),
        var(--hero-img) center 38% / cover no-repeat,
        var(--brand-dark);
}
.hero.has-photo::after { opacity: .04; }
.hero.has-photo h1, .hero.has-photo .lead, .hero.has-photo .meta { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
@media (max-width: 991.98px) {
    .hero.has-photo { background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand-dark) 80%, transparent) 0%, color-mix(in srgb, var(--brand-dark) 88%, transparent) 100%),
        var(--hero-img) center top / cover no-repeat, var(--brand-dark); }
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.08; }
.hero .lead { color: var(--brand-tint); font-weight: 400; font-size: 1.15rem; line-height: 1.6; max-width: 38rem; }
.hero .eyebrow .badge { font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.hero .hero-bn { font-size: 1.5rem; font-weight: 500; line-height: 1.4; color: var(--accent-tint); }
.hero .meta { font-size: .98rem; font-weight: 500; }
.hero-card .glance-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--brand); }
.hero-card .kv dt { font-weight: 500; }
.hero-card .kv dd { font-weight: 600; }
.hero .meta { color: var(--accent-tint); }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .45); }
/* home banner: the countdown as a glass panel with gold numerals */
.cd-panel { display: inline-block; max-width: 100%; margin-top: .6rem; padding: 1rem 1.15rem 1.15rem; border-radius: 20px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cd-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.cd-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.cd-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; color: var(--on-accent); background: var(--accent); }
.cd-k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.cd-date { margin-left: auto; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; color: var(--accent-tint); background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .16); }
.cd-tiles { display: flex; align-items: stretch; gap: .5rem; }
.cd-tile { min-width: 84px; padding: .7rem .5rem .6rem; border-radius: 14px; text-align: center; position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .2)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.cd-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .07); }
.cd-tile b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2.35rem; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.cd-tile span { display: block; margin-top: .45rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-tint); }
.cd-tile.is-days { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent-dark)); border-color: color-mix(in srgb, var(--accent) 60%, #fff); }
.cd-tile.is-days b { color: var(--on-accent); text-shadow: none; }
.cd-tile.is-days span { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.cd-tile.is-days::after { background: rgba(0, 0, 0, .08); }
.cd-tile.is-sec b { color: var(--accent); }
.cd-sep { align-self: center; width: 4px; height: 22px; flex-shrink: 0; background: radial-gradient(circle, rgba(255, 255, 255, .6) 0 2px, transparent 2.5px) center top / 4px 11px repeat-y; animation: live-pulse 1s steps(2, jump-none) infinite; }
.cd-tile b.tick { animation: cd-tick .32s ease-out; }
@keyframes cd-tick { 0% { transform: translateY(-18%); opacity: .35; } 100% { transform: none; opacity: 1; } }
@media (max-width: 575.98px) {
    .cd-panel { display: block; padding: .9rem .9rem 1rem; }
    .cd-head { flex-wrap: wrap; }
    .cd-date { margin-left: 0; }
    .cd-tiles { gap: .3rem; }
    .cd-tile { flex: 1 1 0; min-width: 0; padding: .6rem .2rem .5rem; }
    .cd-tile b { font-size: 1.7rem; }
    .cd-tile span { font-size: .54rem; letter-spacing: .1em; }
    .cd-sep { width: 3px; }
}
@media (prefers-reduced-motion: reduce) { .cd-sep, .cd-tile b.tick { animation: none; } }
.countdown { display: flex; gap: .6rem; }
.countdown div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: .55rem .4rem; min-width: 66px; text-align: center; }
.countdown b { display: block; font-size: 1.5rem; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.countdown span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-tint); }

.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; }
.section-kicker { color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .75rem; text-transform: uppercase; }

.date-card { position: relative; height: 100%; padding: 1.35rem 1.35rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px -22px rgba(16, 24, 40, .32); transition: transform .2s ease, box-shadow .2s ease; }
.date-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-line)); opacity: 0; }
.date-card.next::before, .date-card.today::before { opacity: 1; }
.date-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 24px 44px -24px rgba(16, 24, 40, .38); }
.date-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
    background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); }
.date-day { font-family: 'Playfair Display', Georgia, serif; font-size: 3rem; font-weight: 700; line-height: .95; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.date-month { margin-top: .45rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.date-weekday { font-size: .85rem; color: var(--muted); }
.date-label { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px dashed var(--line-2); font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.date-venue { margin-top: .35rem; font-size: .82rem; }
.date-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap;
    background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.date-chip.soon { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-line); }
.date-chip.urgent { background: #fdf0e1; color: #9a4b07; border-color: #f4c99a; }
.date-chip.today { background: #e7f6ec; color: #13703a; border-color: #b9e2c7; }
.date-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 1.4s infinite; }
.date-card.done { background: var(--paper-1); box-shadow: none; }
.date-card.done .date-day, .date-card.done .date-month, .date-card.done .date-icon { opacity: .5; }
.date-card.done .date-label { color: var(--muted); }
/* the ceremony is the main event */
.date-card.is-event { color: #fff; border-color: transparent;
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%), linear-gradient(150deg, var(--brand), var(--brand-dark)); }
.date-card.is-event .date-day { color: var(--accent); }
.date-card.is-event .date-month { color: var(--accent-tint); }
.date-card.is-event .date-weekday, .date-card.is-event .date-venue { color: var(--brand-tint); }
.date-card.is-event .date-label { border-top-color: rgba(255, 255, 255, .2); }
.date-card.is-event .date-icon { background: rgba(255, 255, 255, .1); color: var(--accent); border-color: rgba(255, 255, 255, .2); }
.date-card.is-event .date-chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.date-card.is-event::before { background: linear-gradient(90deg, var(--accent), transparent); }
/* the timeline above the cards (large screens): one dot per milestone, filled up to today */
.date-rail { margin-bottom: .75rem; }
.date-rail .row { position: relative; height: 54px; align-items: flex-end; padding-bottom: 6px; }
.date-rail .rail-line { position: absolute; bottom: 13px; height: 3px; left: calc(100% / (2 * var(--n))); right: calc(100% / (2 * var(--n))); border-radius: 3px; background: var(--line-2); overflow: hidden; width: auto; padding: 0; }
.date-rail .rail-fill { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--accent-line), var(--accent)); }
.date-rail .rail-node { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); }
.date-rail .rail-node.done { background: var(--accent); border-color: var(--accent); }
.date-rail .rail-node.next, .date-rail .rail-node.today { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.date-rail .rail-today { position: absolute; bottom: 10px; left: calc(100% / (2 * var(--n)) + (100% - 100% / var(--n)) * var(--p)); width: 9px; height: 9px; margin-left: -4.5px; padding: 0; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 3px #fff; z-index: 2; }
.date-rail .rail-today span { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: var(--brand); color: #fff;
    font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 575.98px) { /* phones: the day beside its month and weekday */
    .date-card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: 1.1rem 1.15rem 1rem; }
    .date-card > :first-child { grid-column: 1 / -1; margin-bottom: .75rem !important; }
    .date-day { grid-column: 1; grid-row: 2 / span 2; align-self: center; font-size: 2.7rem; }
    .date-month { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; }
    .date-weekday { grid-column: 2; grid-row: 3; align-self: start; }
    .date-label, .date-venue { grid-column: 1 / -1; }
    .date-label { margin-top: .8rem; padding-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .date-card, .date-card:hover { transition: none; transform: none; } .date-chip .dot { animation: none; } }

.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; height: 100%; position: relative; }
.step-card .num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--accent-line); }
.fee-table td, .fee-table th { padding: .8rem 1rem; }
.fee-table .amount { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

.notice-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.notice-item:last-child { border-bottom: 0; }
.notice-item .date { flex-shrink: 0; width: 54px; text-align: center; color: var(--brand); font-weight: 700; line-height: 1.1; }
.notice-item .date small { display: block; color: var(--muted); font-weight: 500; font-size: .7rem; text-transform: uppercase; }

.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

.site-footer { background: var(--dark-2); color: var(--on-dark); font-size: .9rem; }
.site-footer h6 { color: #fff; font-weight: 600; letter-spacing: .02em; }
.site-footer a { color: color-mix(in srgb, var(--on-dark) 60%, #fff); }
.site-footer a:hover { color: #fff; }
.site-footer .credit { border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark-2); font-size: .8rem; }

.auth-wrap { min-height: calc(100vh - 220px); display: flex; align-items: center; padding: 3rem 0; }
.auth-card { max-width: 460px; margin: 0 auto; }
.signup-steps li { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.signup-steps .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: .74rem; font-weight: 700; background: var(--paper-3); color: var(--muted); }
.signup-steps .now { color: var(--ink); }
.signup-steps .now .n { background: var(--brand); color: #fff; }
.signup-steps .done .n { background: #d9f2e3; color: #137a3b; }

/* ---- Sign-up page (/register): navy side panel + form card ----------------------- */
.reg-page { position: relative; padding: 2.75rem 0 4rem;
    background:
        radial-gradient(900px 380px at 0% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        radial-gradient(800px 380px at 100% 100%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
        var(--paper); }
.reg-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1080px; margin: 0 auto; background: #fff; border-radius: 26px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(16, 24, 40, .04), 0 34px 70px -36px rgba(16, 24, 40, .38); }

.reg-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.6rem 2.4rem 2.2rem; color: #fff;
    background:
        radial-gradient(520px 300px at 105% -5%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%),
        radial-gradient(420px 320px at -15% 105%, rgba(255, 255, 255, .07), transparent 60%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); }
.reg-aside::after { content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px); }
.reg-aside > * { position: relative; z-index: 1; }
.reg-brand { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.reg-crest { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px var(--accent), 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent), 0 12px 24px -10px rgba(0, 0, 0, .5); }
.reg-crest img { width: 76%; height: 76%; object-fit: contain; }
.reg-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
    color: var(--accent-tint); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.reg-eyebrow .bi { color: var(--accent); }
.reg-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.12; color: #fff; margin: 0 0 .7rem; }
.reg-lead { color: var(--brand-tint); font-size: .96rem; margin-bottom: 2rem; }

.reg-steps { list-style: none; padding: 0; margin: 0 0 2rem; }
.reg-steps li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.35rem; }
.reg-steps li:last-child { padding-bottom: 0; }
.reg-steps li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 2px; border-radius: 2px;
    background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .1)); }
.reg-steps .n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
    color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.reg-steps .now .n { color: var(--on-accent); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent); }
.reg-steps .t { padding-top: .3rem; }
.reg-steps b { display: block; font-weight: 600; color: #fff; line-height: 1.25; }
.reg-steps small { display: block; margin-top: .2rem; font-size: .8rem; line-height: 1.45; color: var(--brand-tint); opacity: .85; }
.reg-steps li:not(.now) b { color: color-mix(in srgb, #fff 82%, var(--brand)); }

.reg-ceremony { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.75rem; padding: 1rem 1.1rem; border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(2px); }
.reg-ceremony .d { flex-shrink: 0; min-width: 74px; padding-right: 1rem; border-right: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.reg-ceremony .day { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.reg-ceremony .mon { display: block; margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-tint); }
.reg-ceremony .i { min-width: 0; font-size: .82rem; line-height: 1.4; color: var(--brand-tint); }
.reg-ceremony .k { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.reg-ceremony b { display: block; margin: .15rem 0 .1rem; font-size: .95rem; font-weight: 600; color: #fff; }
.reg-facts { margin: auto 0 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: .7rem; font-size: .84rem; color: var(--brand-tint); }
.reg-facts li { display: flex; gap: .65rem; align-items: flex-start; }
.reg-facts .bi { color: var(--accent); font-size: 1rem; line-height: 1.3; }
.reg-facts b { color: #fff; font-weight: 600; }

.reg-main { padding: 2.4rem 2.6rem 2.2rem; }
.reg-section { margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px dashed var(--line-2); }
.reg-section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.reg-head { float: none; width: 100%; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.15rem; font-size: inherit; line-height: inherit; }
.reg-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .92rem;
    color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 80%, #000); }
.reg-h { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.22rem; color: var(--brand); line-height: 1.15; }
.reg-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.reg-form .form-label { font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.reg-input { position: relative; }
.reg-input > .bi, .reg-prefix { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 3; font-size: 1.02rem; line-height: 1; }
.reg-prefix { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; }
.reg-prefix::after { content: ''; width: 1px; height: 18px; background: var(--line-2); margin-left: .2rem; }
.reg-input > .form-control, .reg-input > .form-select { min-height: 3.05rem; padding-left: 2.65rem; border-radius: 12px; border-color: var(--line-2); background-color: var(--paper-1);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.reg-input.has-prefix > .form-control { padding-left: 5.15rem; }
.reg-input > .form-control:hover, .reg-input > .form-select:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line-2)); }
.reg-input > .form-control:focus, .reg-input > .form-select:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.reg-input:focus-within > .bi, .reg-input:focus-within .reg-prefix { color: var(--brand); }
.reg-input > .form-control::placeholder { color: color-mix(in srgb, var(--muted) 70%, #fff); }
.reg-hint { font-size: .78rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }
.reg-note { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1.1rem; padding: .7rem .9rem; border-radius: 12px; font-size: .8rem; line-height: 1.5;
    color: color-mix(in srgb, var(--ink) 80%, var(--paper)); background: var(--brand-soft); }
.reg-note .bi { color: var(--brand); font-size: .95rem; line-height: 1.35; }

.reg-key { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin: 1.6rem 0 1rem; border-radius: 16px; font-size: .86rem; line-height: 1.55;
    background: linear-gradient(135deg, var(--accent-soft), #fff 85%); border: 1px solid var(--accent-line); }
.reg-key .ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.reg-key b { color: var(--ink); }
.reg-agree { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; margin-bottom: 1.25rem; border-radius: 14px; cursor: pointer; font-size: .84rem; line-height: 1.5;
    background: var(--paper-1); border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.reg-agree:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.reg-agree:has(input:checked) { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.reg-agree .form-check-input { flex-shrink: 0; width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; cursor: pointer; }
.reg-agree .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.reg-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .95rem 1.25rem; border: 0; border-radius: 15px;
    font-weight: 600; font-size: 1.06rem; letter-spacing: .01em; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--brand) 85%, #000); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.reg-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 20px 36px -16px color-mix(in srgb, var(--brand) 90%, #000); }
.reg-submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.reg-submit:disabled { opacity: .85; transform: none; }
.reg-submit .go { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent); background: var(--accent);
    transition: transform .15s ease; }
.reg-submit:hover .go { transform: translateX(3px); }
.reg-signin { text-align: center; margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }
.reg-signin a { font-weight: 600; }

/* sign-in (/login) in the same shell */
.login-shell { max-width: 1040px; }
.login-main { display: flex; flex-direction: column; justify-content: center; padding: 2.8rem 3rem 2.4rem; }
.login-head { margin-bottom: 1.6rem; }
.login-badge { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.35rem;
    color: var(--accent); background: linear-gradient(150deg, var(--brand), var(--brand-dark)); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--brand) 80%, #000); }
.login-h { margin: 0 0 .35rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--brand); }
.login-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.reg-input.has-eye > .form-control { padding-right: 3rem; }
.reg-eye { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); z-index: 3; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.reg-eye:hover, .reg-eye[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.login-perks { display: grid; gap: 1rem; margin: 0 0 2rem; }
.login-perks li { display: flex; gap: .85rem; align-items: flex-start; }
.login-perks .i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
    color: var(--accent); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.login-perks b { display: block; font-weight: 600; color: #fff; line-height: 1.3; }
.login-perks small { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.45; color: var(--brand-tint); opacity: .9; }
.login-or { display: flex; align-items: center; gap: .9rem; margin: 1.6rem 0 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-new { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 16px; color: var(--ink); background: linear-gradient(135deg, var(--accent-soft), #fff 85%);
    border: 1px solid var(--accent-line); transition: transform .15s ease, box-shadow .15s ease; }
.login-new:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 28px -20px rgba(16, 24, 40, .45); }
.login-new .i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
    color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.login-new b { display: block; font-weight: 600; color: var(--brand); }
.login-new small { display: block; font-size: .8rem; color: var(--muted); }
.login-new .bi-chevron-right { color: var(--accent-dark); }

@media (max-width: 991.98px) {
    .reg-page { padding: 1.75rem 0 3rem; }
    .reg-shell { grid-template-columns: 1fr; max-width: 680px; }
    .reg-aside { padding: 1.6rem 1.6rem 1.4rem; }
    .reg-brand { margin-bottom: 1rem; }
    .reg-crest { width: 52px; height: 52px; }
    .reg-lead { margin-bottom: 1.25rem; }
    .reg-steps { display: flex; gap: .75rem; margin-bottom: 1.1rem; }
    .reg-steps li { flex: 1 1 0; min-width: 0; flex-direction: column; gap: .45rem; padding-bottom: 0; }
    .reg-steps li:not(:last-child)::before { left: 42px; right: -6px; top: 16px; bottom: auto; width: auto; height: 2px; }
    .reg-steps .n { width: 32px; height: 32px; font-size: .85rem; }
    .reg-steps .t { padding-top: 0; }
    .reg-steps b { font-size: .8rem; }
    .reg-steps small { display: none; }
    .reg-ceremony { display: none; }
    .reg-facts { padding-top: .9rem; gap: .5rem; font-size: .8rem; }
    .reg-facts li:not(.when) { display: none; }
    .reg-main { padding: 1.75rem 1.6rem 1.6rem; }
    .login-perks { display: none; }
}
@media (max-width: 575.98px) {
    .reg-page { padding: 0 0 2rem; background: var(--paper); }
    .reg-page > .container { padding-left: 0; padding-right: 0; }
    .reg-shell { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
    .reg-aside { padding: 1.4rem 1rem 1.2rem; }
    .reg-main { padding: 1.4rem 1rem 1.5rem; }
    .reg-steps { gap: .4rem; }
    .reg-steps b { font-size: .74rem; }
    .reg-key, .reg-agree { padding: .85rem .9rem; }
}

/* ---- FAQ (/faq): full-width help centre ------------------------------------------- */
.faq-wrap { max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.faq-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5.5vw, 5rem);
    background:
        radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
        radial-gradient(700px 380px at -8% 110%, rgba(255, 255, 255, .08), transparent 60%),
        linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%); }
.faq-hero::after, .faq-cta::after { content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px); }
.faq-hero > *, .faq-cta > * { position: relative; z-index: 1; }
.faq-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
    color: var(--accent-tint); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.faq-kicker .bi { color: var(--accent); }
.faq-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; margin: 1rem 0 .9rem; }
.faq-lead { color: var(--brand-tint); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 46rem; margin-bottom: 1.75rem; }
.faq-search { position: relative; max-width: 46rem; }
.faq-search > .bi-search { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; font-size: 1.15rem; color: var(--brand); }
.faq-search input { width: 100%; height: 3.6rem; padding: 0 5.5rem 0 3.4rem; border: 0; border-radius: 16px; font-size: 1.05rem; color: var(--ink); background: #fff; outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 18px 40px -18px rgba(0, 0, 0, .55); transition: box-shadow .15s ease; }
.faq-search input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent), 0 18px 40px -18px rgba(0, 0, 0, .55); }
.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.faq-search input::placeholder { color: var(--muted); }
.faq-kbd { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-family: inherit; font-size: .78rem; font-weight: 600; color: var(--muted);
    background: var(--paper-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px; padding: .12rem .5rem; }
.faq-search:has(.faq-clear:not([hidden])) .faq-kbd { display: none !important; }
.faq-clear { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 12px; background: var(--paper-2); color: var(--muted); }
.faq-clear:hover { background: var(--brand-soft); color: var(--brand); }
.faq-topics { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--brand-tint); }
.faq-topics > span { margin-right: .15rem; }
.faq-topic { padding: .3rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.faq-topic:hover { background: rgba(255, 255, 255, .16); }
.faq-topic.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq-glance { padding: 1.5rem 1.6rem; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.faq-glance-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.faq-glance-top .big { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.faq-glance-top b { display: block; font-size: 1.05rem; font-weight: 600; color: #fff; }
.faq-glance-top small { display: block; margin-top: .15rem; font-size: .8rem; color: var(--brand-tint); }
.faq-glance li { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; font-size: .88rem; color: var(--brand-tint); }
.faq-glance li .bi { color: var(--accent); font-size: 1.05rem; line-height: 1.3; }
.faq-glance b { color: #fff; font-weight: 600; }
.faq-glance a { color: #fff; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }

.faq-body { padding: 3rem 0 4rem; background: var(--paper); }
.faq-side { position: sticky; top: 92px; }
.faq-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.faq-side-head .count { min-width: 1.8rem; height: 1.5rem; padding: 0 .45rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
    background: var(--brand-soft); color: var(--brand); }
.faq-index { margin: 0 0 1.25rem; padding: .4rem; max-height: calc(100vh - 290px); overflow-y: auto; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-index a { position: relative; display: flex; gap: .7rem; padding: .6rem .75rem; border-radius: 12px; font-size: .86rem; line-height: 1.35; color: color-mix(in srgb, var(--ink) 78%, var(--paper));
    transition: background-color .15s ease, color .15s ease; }
.faq-index a:hover { background: var(--paper-2); color: var(--ink); }
.faq-index .n { flex-shrink: 0; padding-top: .12rem; font-size: .72rem; font-weight: 700; color: var(--accent-dark); font-variant-numeric: lining-nums tabular-nums; }
.faq-index li.active a { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.faq-index li.active a::before { content: ''; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; background: var(--accent); }
.faq-side-help { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; font-size: .84rem; line-height: 1.5;
    background: linear-gradient(135deg, var(--accent-soft), #fff 85%); border: 1px solid var(--accent-line); }
.faq-side-help .bi { font-size: 1.2rem; color: var(--accent-dark); }
.faq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.faq-status { font-size: .9rem; color: var(--muted); }
.faq-status b { color: var(--ink); }
.faq-list { display: grid; gap: .85rem; }
.faq-item { position: relative; overflow: hidden; scroll-margin-top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -20px rgba(16, 24, 40, .28); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.faq-item:hover { border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); transform: translateY(-1px); }
.faq-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--accent), var(--accent-line)); opacity: 0; transition: opacity .2s ease; }
.faq-item.open { border-color: var(--accent-line); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 24px 46px -28px rgba(16, 24, 40, .38); }
.faq-item.open::before { opacity: 1; }
.faq-q { margin: 0; font-size: inherit; line-height: inherit; }
.faq-btn { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; border: 0; background: transparent; text-align: left; color: var(--ink); }
.faq-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 18px; }
.faq-n { flex-shrink: 0; width: 2rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-dark); font-variant-numeric: lining-nums tabular-nums; }
.faq-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
    background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent); transition: background-color .2s ease, color .2s ease; }
.faq-item.open .faq-ico { background: linear-gradient(150deg, var(--brand), var(--brand-dark)); color: var(--accent); border-color: transparent; }
.faq-text { flex: 1 1 auto; min-width: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.35; color: var(--brand); }
.faq-chev { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper-2); color: var(--muted);
    border: 1px solid var(--line); transition: transform .25s ease, background-color .2s ease, color .2s ease; }
.faq-item.open .faq-chev { transform: rotate(180deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq-a { padding: 0 1.35rem 1.25rem calc(1.35rem + 2rem + 1rem + 44px + 1rem); }
.faq-a-text { max-width: 74ch; font-size: .98rem; line-height: 1.75; color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.faq-a-foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
.faq-link { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: transparent; font-size: .8rem; font-weight: 600; color: var(--muted); }
.faq-link:hover { color: var(--brand); }
.faq-link.ok { color: #13703a; }
.faq-item mark { padding: 0 .12em; border-radius: 4px; background: color-mix(in srgb, var(--accent) 35%, #fff); color: inherit; }
.faq-none, .faq-empty { padding: 3rem 1.5rem; text-align: center; border-radius: 20px; background: #fff; border: 1px dashed var(--line-2); }
.faq-none > .bi, .faq-empty > .bi { font-size: 2.2rem; color: var(--accent); }
.faq-none h3, .faq-empty h2 { margin: .75rem 0 .4rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; color: var(--brand); }
.faq-none p, .faq-empty p { margin-bottom: 1.25rem; color: var(--muted); }
.faq-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem; margin-top: 3.5rem;
    padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: 26px; color: #fff;
    background: radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%), linear-gradient(140deg, var(--brand), var(--brand-dark));
    box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--brand) 80%, #000); }
.faq-cta h2 { margin: .85rem 0 .4rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; }
.faq-cta p { margin-bottom: 1rem; color: var(--brand-tint); }
.faq-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; font-size: .9rem; color: var(--brand-tint); }
.faq-contact li { display: flex; gap: .5rem; align-items: center; }
.faq-contact .bi { color: var(--accent); }
.faq-contact a { color: #fff; }
.faq-cta-text { flex: 1 1 28rem; min-width: 0; }
.faq-cta-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 992px) {
    .faq-cta-actions { flex: 0 0 19rem; flex-direction: column; }
    .faq-cta-actions .btn { width: 100%; }
}
.btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.btn-glass:hover, .btn-glass:focus { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
@media (max-width: 991.98px) {
    .faq-glance { padding: 1.2rem 1.25rem; }
    .faq-glance-top .big { font-size: 2.6rem; }
    .faq-body { padding-top: 2rem; }
}
@media (max-width: 575.98px) {
    .faq-glance { display: none; }
    .faq-topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .faq-topics::-webkit-scrollbar { display: none; }
    .faq-topic, .faq-topics > span { flex-shrink: 0; white-space: nowrap; }
    .faq-search input { height: 3.25rem; padding-right: 3.2rem; font-size: 1rem; }
    .faq-btn { gap: .75rem; padding: .95rem 1rem; }
    .faq-n { display: none; }
    .faq-ico { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
    .faq-chev { width: 30px; height: 30px; }
    .faq-a { padding: 0 1rem 1.1rem; }
    .faq-cta { border-radius: 20px; }
    .faq-cta-actions, .faq-cta-actions .btn { width: 100%; }
}

.verify-result { max-width: 620px; margin: 0 auto; }
.verify-seal { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; }

/* =====================================================================
   Graduate portal
   ===================================================================== */
.portal-nav { background: var(--brand); }
.portal-nav .navbar-brand, .portal-nav .nav-link { color: #fff !important; }
.portal-nav .nav-link { opacity: .85; font-weight: 500; }
.portal-nav .nav-link.active, .portal-nav .nav-link:hover { opacity: 1; }
.portal-nav .navbar-brand img { width: 38px; height: 38px; background: #fff; border-radius: 50%; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li a { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 12px; color: var(--ink); font-weight: 500; }
.steps li a:hover { background: var(--brand-soft); }
.steps li.active a { background: var(--brand); color: #fff; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; background: var(--paper-3); color: var(--muted); flex-shrink: 0; }
.steps li.done .n { background: #d9f2e3; color: #137a3b; }
.steps li.active .n { background: rgba(255, 255, 255, .2); color: #fff; }
.steps small { display: block; font-weight: 400; font-size: .74rem; opacity: .75; }

.status-hero { border-radius: 18px; padding: 1.4rem 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); position: relative; overflow: hidden; }
.status-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.progress-track { display: flex; justify-content: space-between; position: relative; margin: 1.2rem 0 .2rem; }
.progress-track::before { content: ''; position: absolute; left: 16px; right: 16px; top: 15px; height: 3px; background: var(--line); }
.progress-track .pt { position: relative; text-align: center; flex: 1; font-size: .74rem; color: var(--muted); }
.progress-track .pt i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: color-mix(in srgb, var(--ink) 35%, var(--paper)); position: relative; z-index: 1; }
.progress-track .pt.done i { background: #198754; border-color: #198754; color: #fff; }
.progress-track .pt.current i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.progress-track .pt.bad i { background: #dc3545; border-color: #dc3545; color: #fff; }
.progress-track .pt div { margin-top: .35rem; font-weight: 500; }
@media (max-width: 575.98px) { /* six steps on a phone: smaller labels that may hyphenate, never touching */
    .progress-track .pt { padding: 0 2px; font-size: .64rem; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; }
}

.degree-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; }
.degree-card .official { font-size: .72rem; color: #137a3b; font-weight: 600; }
.prior-cert { margin-top: .85rem; padding-top: .7rem; border-top: 1px dashed var(--line-2); }
.prior-cert.is-open { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: .7rem .8rem; }
.prior-opt { display: flex; gap: .55rem; align-items: flex-start; height: 100%; margin: 0; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.prior-opt:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.prior-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent); }
.prior-opt .form-check-input { flex-shrink: 0; margin-top: .15rem; }
.upload-box { border: 2px dashed var(--line-2); border-radius: 14px; padding: 1.1rem; text-align: center; background: var(--paper-1); }
.upload-box img { max-height: 170px; border-radius: 8px; }
/* Live photo: the camera in a passport-shaped (4:5) frame with an oval face guide */
.camera-stage { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; margin: 0 auto; background: #111; border-radius: 12px; overflow: hidden; }
.camera-stage video, .camera-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-stage video { transform: scaleX(-1); } /* a mirror while posing; the photo itself is not mirrored */
.camera-guide { position: absolute; inset: 0; pointer-events: none; }
.camera-guide span { position: absolute; left: 21%; top: 11%; width: 58%; height: 60%; border: 3px dashed rgba(255, 255, 255, .9); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); }
.camera-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.camera-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ddd; font-size: .9rem; }

.pay-option { border: 2px solid var(--line); border-radius: 14px; padding: 1.1rem; cursor: pointer; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pay-option:hover { border-color: color-mix(in srgb, var(--brand) 30%, #fff); }
.pay-option.selected { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 8%, transparent); }
.pay-logos span { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin: 2px; border: 1px solid var(--line); }

/* Demo gateway */
.gw-shell { max-width: 520px; margin: 2.5rem auto; }
.gw-head { background: #1b2a4a; color: #fff; border-radius: 16px 16px 0 0; padding: 1rem 1.25rem; }
.gw-channel { border: 2px solid var(--line); border-radius: 12px; padding: .7rem; text-align: center; cursor: pointer; font-weight: 700; font-size: .85rem; background: #fff; }
.gw-channel input { display: none; }
.gw-channel:has(input:checked) { border-color: #1b2a4a; background: #eef2fb; }

/* =====================================================================
   Admin back office
   ===================================================================== */
.admin-body { background: var(--paper-2); }
/* Admin sidebar: navy gradient with a gold glow; head and foot stay, the menu scrolls between them */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 262px; z-index: 1035; display: flex; flex-direction: column; overflow: hidden; color: var(--on-dark); transition: transform .2s;
    background:
        radial-gradient(320px 220px at 110% -4%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(260px 260px at -20% 104%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--dark) 82%, var(--brand)) 0%, var(--dark) 55%, color-mix(in srgb, var(--dark) 88%, #000) 100%);
    box-shadow: 1px 0 0 rgba(255, 255, 255, .04), 8px 0 30px -18px rgba(0, 0, 0, .55); }
.sidebar::after { content: ''; position: absolute; inset: 0; opacity: .035; pointer-events: none; background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 20px); }
.sidebar > * { position: relative; z-index: 1; }
.sb-head { flex-shrink: 0; padding: 1rem .9rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: .1rem .2rem .9rem; color: inherit; }
.sb-crest { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff;
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent), 0 8px 18px -8px rgba(0, 0, 0, .6); }
.sb-crest img { width: 78%; height: 78%; object-fit: contain; }
.sidebar .brand b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; line-height: 1.1; color: #fff; }
.sidebar .brand small { display: block; margin-top: .2rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-tint); }
.sb-search { position: relative; }
.sb-search .bi { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--on-dark-2); pointer-events: none; }
.sb-search input { width: 100%; height: 2.25rem; padding: 0 .75rem 0 2.1rem; border-radius: 10px; font-size: .84rem; color: #fff; outline: none;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s ease, background-color .15s ease; }
.sb-search input::placeholder { color: var(--on-dark-2); }
.sb-search input:focus { background: rgba(255, 255, 255, .1); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.sb-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.sb-nav { flex: 1 1 auto; overflow-y: auto; padding: .4rem .6rem 1rem; overscroll-behavior: contain; }
.sb-group { margin-top: .35rem; }
.sidebar .sec { width: 100%; display: flex; align-items: center; gap: .45rem; padding: .7rem .6rem .35rem; border: 0; background: transparent; text-align: left;
    font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-2); }
.sidebar .sec:hover { color: var(--accent-tint); }
.sidebar .sec .n { min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; font-size: .6rem; letter-spacing: 0; text-align: center; background: rgba(255, 255, 255, .07); }
.sidebar .sec .bi { margin-left: auto; font-size: .7rem; transition: transform .2s ease; }
.sb-group.closed .sec .bi { transform: rotate(-90deg); }
.sb-group.closed:not(.searching) .sb-items { display: none; }
.sb-group.here .sec { color: var(--accent-tint); }
.sidebar a.nav-link { position: relative; display: flex; align-items: center; gap: .65rem; margin: 1px 0; padding: .42rem .55rem; border-radius: 11px;
    font-size: .86rem; color: color-mix(in srgb, var(--on-dark) 78%, #fff); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.sidebar a.nav-link .sb-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); transition: background-color .15s ease, color .15s ease; }
.sidebar a.nav-link .sb-lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar a.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.sidebar a.nav-link:hover .sb-ic { color: var(--accent-tint); }
.sidebar a.nav-link.active { color: #fff; font-weight: 600; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.sidebar a.nav-link.active::before { content: ''; position: absolute; left: -.6rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar a.nav-link.active .sb-ic { color: var(--on-accent); border-color: transparent; background: linear-gradient(135deg, var(--accent-tint), var(--accent)); box-shadow: 0 6px 14px -8px var(--accent); }
.sidebar a.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sidebar .count { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: .66rem; font-weight: 700; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sb-none { padding: 1.5rem .5rem; text-align: center; font-size: .84rem; color: var(--on-dark-2); }
.sb-none .bi { display: block; margin-bottom: .35rem; font-size: 1.2rem; color: var(--accent); }
.sb-foot { flex-shrink: 0; display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .14); }
.sb-foot .avatar { width: 34px; height: 34px; font-size: .78rem; background: linear-gradient(135deg, var(--accent-tint), var(--accent)); color: var(--on-accent); }
.sb-foot .who { min-width: 0; line-height: 1.2; }
.sb-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 600; color: #fff; }
.sb-foot .who small { font-size: .7rem; color: var(--on-dark-2); }
.sb-out { margin-left: auto; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.sb-out:hover { color: var(--on-accent); background: var(--accent); }
/* the menu's scrollbar: a slim gold thumb on the dark side */
.sb-nav::-webkit-scrollbar { width: 8px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-nav::-webkit-scrollbar-thumb { border-radius: 8px; border: 2px solid transparent; background: linear-gradient(var(--accent-tint), var(--accent)) padding-box; }
.sb-nav::-webkit-scrollbar-thumb:hover { background: var(--accent) padding-box; }
@supports (-moz-appearance: none) {
    .sb-nav { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
}
/* Backups */
.bk-stat { display: flex; gap: .85rem; align-items: center; height: 100%; padding: .95rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bk-stat .i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--brand); background: var(--brand-soft); }
.bk-stat small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-stat b { display: block; color: var(--ink); }
.bk-stat em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); }
.bk-card { display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bk-card h3 { margin: .8rem 0 .35rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.bk-card p { font-size: .85rem; color: var(--muted); }
.bk-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; }
.bk-ic.full { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.bk-ic.incr { color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.bk-ic.keep { color: var(--brand); background: var(--brand-soft); }
.bk-code { display: block; margin-top: .35rem; padding: .35rem .6rem; border-radius: 8px; font-size: .78rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); }
.bk-list { max-height: 640px; overflow-y: auto; }
.bk-item { border-top: 1px solid var(--line); }
.bk-item:first-child { border-top: 0; }
.bk-item summary { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.bk-item summary::-webkit-details-marker { display: none; }
.bk-item summary:hover { background: var(--paper-1); }
.bk-type { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.bk-item.incremental .bk-type { color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.bk-item.tables .bk-type { color: var(--brand); background: var(--brand-soft); }
.bk-main { min-width: 0; flex: 1 1 auto; }
.bk-main small { display: block; font-size: .78rem; color: var(--muted); }
.bk-size { flex-shrink: 0; font-size: .8rem; font-weight: 600; color: var(--ink); }
.bk-detail { padding: 0 1rem 1rem 3.8rem; }
.bk-tables { display: flex; flex-wrap: wrap; gap: .3rem; }
.bk-t { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-family: ui-monospace, Menlo, monospace; font-size: .7rem; border: 1px solid var(--line); background: var(--paper-2); color: var(--muted); }
.bk-t em { font-style: normal; font-weight: 700; }
.bk-t.full { color: #fff; border-color: transparent; background: var(--brand); }
.bk-t.changes { color: var(--on-accent); border-color: transparent; background: var(--accent); }
.bk-t.unchanged { opacity: .65; }
.bk-table-list { max-height: 520px; overflow-y: auto; padding: .5rem .75rem; }
.bk-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 10px; cursor: pointer; font-size: .84rem; }
.bk-row:hover { background: var(--paper-1); }
.bk-row:has(input:checked) { background: var(--brand-soft); }
.bk-row .form-check-input { margin: 0; flex-shrink: 0; }

/* Roles & permissions grid */
.role-card { height: 100%; padding: .9rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.role-card b { color: var(--brand); }
.role-card.top { color: #fff; border-color: transparent; background: linear-gradient(150deg, var(--brand), var(--brand-dark)); }
.role-card.top b { color: #fff; }
.role-card.top .text-muted { color: var(--brand-tint) !important; }
.role-n { flex-shrink: 0; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.roles-wrap { max-height: calc(100vh - 260px); }
.roles-table thead th { position: sticky; top: 0; z-index: 2; background: var(--paper-1); vertical-align: bottom; }
.roles-table .perm-col { min-width: 290px; position: sticky; left: 0; z-index: 1; background: #fff; }
.roles-table thead .perm-col { z-index: 3; background: var(--paper-1); }
.roles-table .role-col { min-width: 112px; font-size: .74rem; white-space: normal; }
.col-tools { margin-top: .25rem; font-size: .68rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.col-tools button { padding: 0; border: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.roles-table tr.grp td { padding: .5rem .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); position: sticky; left: 0; }
.perm-code { font-size: .68rem; opacity: .7; }
.perm-tick { display: inline-flex; cursor: pointer; margin: 0; }
.perm-tick input { position: absolute; opacity: 0; pointer-events: none; }
.perm-tick span { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; color: transparent;
    background: #fff; border: 1.5px solid var(--line-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.perm-tick:hover span { border-color: var(--brand); transform: scale(1.06); }
.perm-tick input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.perm-tick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.perm-tick.changed span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.perm-tick.sample span { width: 18px; height: 18px; font-size: .7rem; color: #fff; background: var(--brand); vertical-align: middle; }
.perm-lock { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }

/* Premium buttons for admin lists: .btn-pro (main action), .act-btn row actions (.act-edit, .act-del) */
.btn-pro { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.1rem; padding: .35rem 1rem; text-align: center; line-height: 1.2; border: 0; border-radius: 10px; font-size: .86rem; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 85%, #000);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn-pro:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--brand) 90%, #000); }
.btn-pro .bi { color: var(--accent); }
.btn-pro.ghost { width: 2.1rem; padding: 0; color: var(--muted); background: #fff; border: 1px solid var(--line-2); box-shadow: none; }
.btn-pro.ghost .bi { color: inherit; }
.btn-pro.ghost:hover { color: var(--brand); border-color: var(--brand); filter: none; }
.act-group { display: inline-flex; align-items: center; gap: .4rem; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.act-btn:hover { transform: translateY(-1px); }
.act-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.act-edit { padding: 0 .85rem 0 .25rem; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.act-edit .ai { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.act-edit:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--brand) 85%, #000); }
.act-edit:hover .ai { color: var(--on-accent); background: var(--accent); }
.act-del { width: 2rem; padding: 0; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.act-del:hover { color: #fff; background: #d92d20; border-color: #d92d20; box-shadow: 0 8px 16px -10px #d92d20; }
.act-lock { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .8rem; color: var(--muted); background: var(--paper-2); cursor: help; }

.admin-main { margin-left: 262px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 1rem; }
.admin-top .page-title { font-size: 1.15rem; margin: 0; font-weight: 700; font-family: 'Inter', sans-serif; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-foot { padding: 1rem 1.5rem; font-size: .78rem; color: var(--muted); }
.conv-switch { max-width: 290px; }
.role-pill { font-size: .68rem; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; }
/* Gallery (back office): photo tiles with their buttons */
.gal-tile { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper-2); }
.gal-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gal-tile.is-cover { border-color: var(--accent); }
.gal-tile.is-cover::after { content: "Cover"; position: absolute; top: 6px; left: 6px; background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.gal-tools { position: absolute; inset: auto 0 22px 0; display: flex; justify-content: center; gap: 2px; padding: 4px; opacity: .92; }
.gal-tools .btn { padding: 1px 5px; font-size: .78rem; }
.gal-cap { padding: 2px 6px; min-height: 22px; background: #fff; }

/* Gallery, people and live broadcast (public site) */
.album-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.album-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.album-card .cover { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card .cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--line-2); font-size: 2.6rem; }
.album-card .cover .count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .72rem; border-radius: 999px; padding: 2px 9px; }
.album-card .cover .vid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.photo-grid a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-3); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-grid.home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 575.98px) {
    .photo-grid, .photo-grid.home { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .photo-grid a { border-radius: 6px; }
    .photo-grid.home a:nth-child(n+7) { display: none; }
}
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.video-box iframe, .video-box video, .video-box .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box .poster { display: flex; align-items: center; justify-content: center; padding: 0; background: #16161a center / cover no-repeat; color: #fff; }
.video-box .poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .5)); }
.video-box .play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 2rem; padding-left: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s; }
.video-box .poster:hover .play, .video-box .poster:focus-visible .play { transform: scale(1.08); }
.video-box .poster .via { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; opacity: .85; }
.gal-tabs { gap: .4rem; }
.gal-tabs .nav-link { border-radius: 999px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); padding: .35rem .95rem; font-size: .88rem; }
.gal-tabs .nav-link.active, .gal-tabs .nav-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 8, 10, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px 12px; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 4px; }
.lb-fig figcaption { color: #e9e9ee; font-size: .88rem; padding-top: .6rem; text-align: center; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; }
.lb-fig figcaption a { color: var(--accent-tint); }
.lb-count { color: #a3a3ad; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .13); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .3); }
.lb-close { top: 8px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } .lb { padding-bottom: 66px; } }
.person-card { height: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1rem 1.3rem; }
.person-card .portrait { width: 136px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 1rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--accent-line), var(--shadow); background: var(--paper-3); }
.person-card .portrait.ph { display: flex; align-items: center; justify-content: center; color: var(--line-2); font-size: 3.4rem; }
.person-card .role { color: var(--accent-dark); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.person-card .name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.1rem; margin: .25rem 0 .2rem; }
.person-card.draft { border-style: dashed; opacity: .8; }
/* Home: dignitaries — navy band, portrait in a gold ring, the message one click away */
.dig-card { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -28px rgba(16, 24, 40, .35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.dig-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 30px 54px -30px rgba(16, 24, 40, .45); }
.dig-cover { position: relative; height: 104px; padding-top: .9rem;
    background: radial-gradient(260px 140px at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), linear-gradient(150deg, var(--brand), var(--brand-dark)); }
.dig-cover::after { content: ''; position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 18px); }
.dig-role { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.dig-photo { position: relative; z-index: 1; width: 132px; height: 132px; margin: -58px auto 0; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--accent-tint), var(--accent), var(--accent-dark));
    box-shadow: 0 14px 28px -14px rgba(16, 24, 40, .6); }
.dig-photo img, .dig-photo .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--paper-3); display: flex; align-items: center; justify-content: center; }
.dig-photo .ph { color: var(--line-2); font-size: 3.2rem; }
.dig-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: 1rem 1.25rem 1.4rem; }
.dig-name { margin: 0 0 .35rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--brand); }
.dig-desc { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.dig-msg { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-1);
    font-size: .82rem; font-weight: 600; color: var(--brand); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.dig-desc + .dig-msg, .dig-name + .dig-msg { margin-top: 1rem; }
.dig-msg .go { transition: transform .2s ease; }
.dig-msg:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.dig-msg:hover .go { transform: translateX(3px); }
@media (max-width: 575.98px) {
    .dig-cover { height: 84px; padding-top: .7rem; }
    .dig-role { font-size: .6rem; padding: .25rem .6rem; letter-spacing: .06em; }
    .dig-photo { width: 98px; height: 98px; margin-top: -44px; }
    .dig-body { padding: .8rem .7rem 1.1rem; }
    .dig-name { font-size: .98rem; }
    .dig-desc { font-size: .76rem; }
    .dig-msg { padding: .4rem .75rem; font-size: .74rem; }
    .dig-msg .go { display: none; }
}

/* Notice board (/notices) — shares the FAQ hero and side styles */
.nt-feature { position: relative; display: block; overflow: hidden; margin-bottom: 1.5rem; padding: 1.6rem 1.75rem 1.5rem; border-radius: 22px; color: #fff;
    background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 65%), linear-gradient(145deg, var(--brand), var(--brand-dark));
    box-shadow: 0 26px 50px -32px color-mix(in srgb, var(--brand) 85%, #000); transition: transform .25s ease, box-shadow .25s ease; }
.nt-feature::after { content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px); }
.nt-feature > * { position: relative; z-index: 1; }
.nt-feature:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 32px 60px -32px color-mix(in srgb, var(--brand) 90%, #000); }
.nt-feature-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .9rem; }
.nt-pin { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.nt-feature .nt-meta { color: var(--brand-tint); }
.nt-feature-title { margin: 0 0 .6rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; color: #fff; }
.nt-feature-text { margin: 0 0 1.1rem; max-width: 70ch; color: var(--brand-tint); line-height: 1.65; }
.nt-read { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--accent); }
.nt-read .bi, .nt-go .bi { transition: transform .2s ease; }
.nt-feature:hover .nt-read .bi, .nt-card:hover .nt-go .bi { transform: translateX(3px); }
.nt-new { display: inline-flex; align-items: center; padding: .12rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #13703a; background: #e7f6ec; border: 1px solid #b9e2c7; vertical-align: middle; }
.nt-meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.nt-month { margin-bottom: 1.25rem; }
.nt-month-title { display: flex; align-items: center; gap: .9rem; margin: 0 0 .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.nt-month-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.nt-timeline { position: relative; display: grid; gap: .85rem; margin: 0; padding-left: 0; }
.nt-card { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.1rem 1.25rem; border-radius: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -24px rgba(16, 24, 40, .35); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nt-card:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 22px 40px -26px rgba(16, 24, 40, .45); }
.nt-date { flex-shrink: 0; width: 62px; padding: .55rem 0 .5rem; border-radius: 14px; text-align: center; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent); }
.nt-date b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; line-height: 1; color: var(--brand); font-variant-numeric: lining-nums; }
.nt-date small { display: block; margin-top: .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.nt-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.nt-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--brand); }
.nt-text { font-size: .9rem; line-height: 1.6; color: color-mix(in srgb, var(--ink) 75%, var(--paper)); }
.nt-go { flex-shrink: 0; align-self: center; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--paper-2);
    border: 1px solid var(--line); transition: background-color .2s ease, color .2s ease; }
.nt-card:hover .nt-go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nt-side-card { margin-bottom: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.nt-dates { margin: 0; display: grid; gap: .1rem; }
.nt-dates li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .86rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.nt-dates li:last-child { border-bottom: 0; }
.nt-dates b { color: var(--ink); white-space: nowrap; }
.nt-dates li.hi b { color: var(--brand); }
.nt-links { display: grid; gap: .6rem; }
.nt-links a { display: flex; align-items: center; gap: .8rem; padding: .8rem .95rem; border-radius: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.nt-links a:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-1px); }
.nt-links a > .bi:first-child { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); background: var(--brand-soft); }
.nt-links a.go > .bi:first-child { color: var(--on-accent); background: linear-gradient(135deg, var(--accent-tint), var(--accent)); }
.nt-links b { display: block; font-size: .9rem; font-weight: 600; color: var(--brand); }
.nt-links small { display: block; font-size: .78rem; color: var(--muted); }
.nt-links .bi-chevron-right { margin-left: auto; color: var(--accent-dark); }
@media (max-width: 575.98px) {
    .nt-feature { padding: 1.3rem 1.2rem; border-radius: 18px; }
    .nt-card { gap: .8rem; padding: .95rem 1rem; }
    .nt-date { width: 52px; }
    .nt-date b { font-size: 1.35rem; }
    .nt-go { display: none; }
}

/* Guidelines: fee cards per degree level */
.fee-section { padding: 3rem 0 .5rem; }
.fee-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.fee-legend { display: flex; gap: 1.1rem; font-size: .82rem; color: var(--muted); }
.fee-legend span, .fee-lines li { display: inline-flex; align-items: center; gap: .45rem; }
.fee-legend i, .fee-lines i.reg, .fee-lines i.cert { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
i.reg { background: var(--brand); }
i.cert { background: var(--accent); }
.fee-card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.4rem 1.35rem 1.25rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 36px -28px rgba(16, 24, 40, .4); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fee-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.fee-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 28px 50px -30px rgba(16, 24, 40, .5); }
.fee-level { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.12rem; line-height: 1.25; color: var(--brand); }
.fee-bn { font-size: .85rem; color: var(--muted); }
.fee-total { margin-top: 1rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(2rem, 2.6vw, 2.5rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.fee-total .cur { font-family: inherit; font-size: .55em; color: var(--accent-dark); margin-right: .15rem; vertical-align: .55em; }
.fee-once { margin-top: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.fee-split { display: flex; height: 8px; margin: 1.1rem 0 .9rem; border-radius: 99px; overflow: hidden; background: var(--accent); }
.fee-split span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); border-right: 2px solid #fff; }
.fee-lines { margin: auto 0 0; display: grid; gap: .45rem; font-size: .84rem; color: var(--muted); }
.fee-lines li { display: flex; }
.fee-lines b { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.fee-lines li.add { padding-top: .45rem; border-top: 1px dashed var(--line-2); }
.fee-lines li.add .bi { color: var(--accent-dark); }
.fee-extras { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.fee-extras span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font-size: .84rem; color: color-mix(in srgb, var(--ink) 80%, var(--paper));
    background: #fff; border: 1px solid var(--line); }
.fee-extras .bi { color: var(--accent-dark); }
.fee-extras b { color: var(--ink); }
@media (max-width: 575.98px) {
    .fee-section { padding-top: 2rem; }
    .fee-extras span { border-radius: 14px; }
}

/* Home: the five registration steps as a connected path */
.flow-card { position: relative; height: 100%; padding: 1.4rem 1.3rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 32px -26px rgba(16, 24, 40, .35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.flow-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 26px 48px -28px rgba(16, 24, 40, .45); }
.flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.flow-num { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.flow-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--brand); background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent); }
.flow-step { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .3rem; }
.flow-title { margin: 0 0 .5rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--brand); }
.flow-text { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.flow-card.last { color: #fff; border-color: transparent;
    background: radial-gradient(240px 160px at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(150deg, var(--brand), var(--brand-dark)); }
.flow-card.last .flow-title { color: #fff; }
.flow-card.last .flow-text { color: var(--brand-tint); }
.flow-card.last .flow-step { color: var(--accent-tint); }
.flow-card.last .flow-ico { color: var(--accent); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
@media (min-width: 992px) {
    /* the dashed gold path between the cards, at the height of the numbers */
    .flow > li:not(:last-child) .flow-card::after { content: ''; position: absolute; top: 2.45rem; left: 100%; width: var(--bs-gutter-x); height: 0; border-top: 2px dashed var(--accent-line); }
    .flow > li:not(:last-child) .flow-card::before { content: ''; position: absolute; z-index: 1; top: calc(2.45rem - 4px); left: calc(100% + var(--bs-gutter-x) / 2 - 5px); width: 10px; height: 10px;
        border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
}
.flow-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; margin-top: 2.25rem; }

.live-bar { background: #b3131d; color: #fff; }
.live-bar a { color: #fff; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; animation: live-pulse 1.4s infinite; }
@keyframes live-pulse { 50% { opacity: .2; } }
.staff-hint { border: 2px dashed var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); padding: 1rem 1.2rem; font-size: .9rem; }

/* Feedback survey: stars */
.star-input { display: inline-flex; gap: .1rem; font-size: 1.75rem; line-height: 1; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input label { color: var(--line-2); cursor: pointer; padding: 0 .08rem; transition: color .1s, transform .1s; }
.star-input:has(input:checked) label { color: var(--accent); }
.star-input input:checked ~ input + label { color: var(--line-2); }
.star-input.star-input:hover label { color: var(--accent); }
.star-input.star-input label:hover ~ label { color: var(--line-2); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.stars-static { color: var(--accent); letter-spacing: .05em; white-space: nowrap; }
.stars-static .off { color: var(--line-2); }
.dist-row { display: grid; grid-template-columns: 2.6rem 1fr 3.2rem; gap: .5rem; align-items: center; font-size: .8rem; }
.dist-row .bar { height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.dist-row .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.avatar-initials { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Message formats: the filled-in preview */
.fmt-preview { background: var(--paper-2); border: 1px dashed var(--line-2); }

/* Distribution sheet builder: the columns in print order */
.sheet-cols { display: flex; flex-direction: column; gap: .35rem; counter-reset: col; }
.sheet-col { display: flex; align-items: center; gap: .55rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; }
.sheet-col::before { counter-increment: col; content: counter(col); min-width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.sheet-col.is-blank { border-style: dashed; color: var(--muted); }
.sheet-col .btn { line-height: 1; }
.bulk-bar { display: none; }
.bulk-bar.show { display: flex; }
.chart-box { position: relative; height: 280px; }
.scan-box { background: #111; border-radius: 14px; overflow: hidden; min-height: 260px; }
.checkin-result { border-radius: 16px; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 1rem; }
}

@media print {
    .no-print, .sidebar, .admin-top, .site-nav, .topstrip, .site-footer, .portal-nav { display: none !important; }
    .admin-main { margin-left: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* ---- Venue & seating ------------------------------------------------------------- */
.blk-code { --c: var(--brand); display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .5rem; border-radius: 10px; font-weight: 800; color: #fff; background: var(--c); text-decoration: none; box-shadow: 0 4px 12px -4px var(--c); }
.blk-code:hover { color: #fff; filter: brightness(1.08); }
.blk-code.lg { min-width: 3.2rem; height: 3.2rem; font-size: 1.3rem; border-radius: 14px; }
.blk-bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.blk-bar span { display: block; height: 100%; border-radius: 99px; }
.blk-switch { display: flex; flex-wrap: wrap; gap: .3rem; }
.blk-switch a { --c: var(--brand); min-width: 2rem; padding: .25rem .5rem; border-radius: 8px; text-align: center; font-weight: 700; font-size: .82rem; text-decoration: none; color: var(--c); border: 1.5px solid var(--c); background: #fff; }
.blk-switch a.on, .blk-switch a:hover { color: #fff; background: var(--c); }
.seat-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.seat-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.seat-legend .seat { width: 1rem; height: 1rem; min-width: 0; padding: 0; cursor: default; }
.seat-stage { margin: 0 auto 1rem; max-width: 60%; text-align: center; padding: .45rem; border-radius: 0 0 40px 40px; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--brand), #0b3a2c); }
.seat-scroll { overflow-x: auto; padding-bottom: .4rem; }
.seat-grid { display: flex; flex-direction: column; gap: 4px; width: max-content; margin: 0 auto; }
.seat-row { display: flex; align-items: center; gap: 4px; }
.seat-rl { width: 1.6rem; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.seat { width: 1.75rem; height: 1.75rem; border-radius: 6px 6px 3px 3px; border: 1px solid var(--line-2); background: #fff; font-size: .62rem; line-height: 1; color: var(--muted); padding: 0; cursor: pointer; transition: transform .1s; }
.seat:hover { transform: translateY(-2px); border-color: var(--brand); }
.seat.graduate { background: #2f7d5b; border-color: #2f7d5b; color: #fff; }
.seat.guest { background: #c9a227; border-color: #c9a227; color: #fff; }
.seat.held { background: repeating-linear-gradient(45deg, #e5e7eb 0 4px, #f8fafc 4px 8px); color: #9ca3af; }
.seat.in { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #16a34a; }
.seat.pick { outline: 3px solid #2563eb; outline-offset: 1px; transform: translateY(-2px); }
.seat-panel { position: sticky; top: 1rem; }
.sp-who { padding: .75rem; border-radius: 12px; background: var(--brand-soft); margin-bottom: .75rem; }
.seat-panel .btn-pro.sp-danger { background: linear-gradient(135deg, #dc2626, #991b1b); }
@media (max-width: 575.98px) { .seat { width: 1.5rem; height: 1.5rem; } .seat-stage { max-width: 90%; } }
/* full venue map */
.vm-wrap { --sz: 14px; }
.vm-wrap:fullscreen { background: var(--bg, #f4f6f9); padding: 1.25rem; overflow: auto; }
.vm-find { position: relative; display: flex; align-items: center; gap: .5rem; flex: 1 1 220px; max-width: 360px; }
.vm-find .bi { position: absolute; left: .6rem; color: var(--muted); font-size: .85rem; }
.vm-find input { padding-left: 1.9rem; }
.vm-scroll { overflow-x: auto; padding-bottom: .5rem; }
.vm-blocks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5rem 2rem; min-width: min-content; }
.vm-block { --c: var(--brand); border: 1.5px solid var(--c); border-radius: 12px; padding: .5rem .6rem .6rem; background: #fff; }
.vm-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; text-decoration: none; color: inherit; }
.vm-head .blk-code { min-width: 1.8rem; height: 1.8rem; font-size: .85rem; border-radius: 8px; }
.vm-name { display: flex; flex-direction: column; line-height: 1.15; max-width: 22rem; }
.vm-name b { font-size: .82rem; color: var(--ink); }
.vm-name small { font-size: .7rem; color: var(--muted); }
.vm-head:hover b { color: var(--c); }
.vm-grid { display: flex; flex-direction: column; gap: 2px; }
.vm-row { display: flex; align-items: center; gap: 2px; }
.vm-rl { width: 1.1rem; font-size: .62rem; font-weight: 700; color: var(--muted); text-align: center; flex-shrink: 0; }
.vs { width: var(--sz); height: var(--sz); border-radius: 3px; border: 1px solid #c5ccd6; background: #fff; font-size: 0; line-height: var(--sz); text-align: center; color: var(--muted); text-decoration: none; flex-shrink: 0; }
.vm-wrap.nums .vs { font-size: calc(var(--sz) * .42); }
.vs.graduate { background: #2f7d5b; border-color: #2f7d5b; color: #fff; }
.vs.guest { background: #c9a227; border-color: #c9a227; color: #fff; }
.vs.held { background: repeating-linear-gradient(45deg, #e5e7eb 0 3px, #f8fafc 3px 6px); }
.vs.in { box-shadow: 0 0 0 1.5px #16a34a; }
.vs:hover { outline: 2px solid var(--brand); outline-offset: 1px; position: relative; z-index: 1; }
.vm-wrap.finding .vs { opacity: .25; }
.vm-wrap.finding .vs.hit { opacity: 1; outline: 3px solid #2563eb; outline-offset: 1px; position: relative; z-index: 2; animation: vmPulse 1.2s ease-in-out 3; }
@keyframes vmPulse { 50% { outline-color: #93c5fd; } }
.vm-find #vmFound { position: absolute; right: .6rem; pointer-events: none; font-size: .72rem; background: #fff; padding-left: .3rem; }
/* field layout editor */
.ly-num { width: 4.2rem; }
.ly-scroll { overflow-x: auto; }
.ly-field { display: grid; gap: 10px; min-width: min-content; }
.ly-cell { border: 2px dashed var(--line-2, #d6dbe3); border-radius: 12px; display: flex; align-items: flex-end; justify-content: flex-end; padding: .35rem .5rem; color: var(--muted); font-size: .68rem; cursor: pointer; transition: background .15s; }
.ly-cell:hover { background: var(--brand-soft); border-color: var(--brand); }
.ly-slot { display: flex; }
.ly-tile { --c: var(--brand); flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: .15rem .5rem; padding: .5rem .6rem; border-radius: 12px; background: #fff; border: 2px solid var(--c); box-shadow: 0 6px 16px -10px var(--c); cursor: grab; user-select: none; min-height: 100px; }
.ly-tile.sel { outline: 3px solid #2563eb; outline-offset: 2px; }
.ly-code { grid-row: 1; font-weight: 800; color: #fff; background: var(--c); border-radius: 7px; padding: 0 .45rem; font-size: .85rem; align-self: start; }
.ly-name { grid-row: 1; font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ly-shape { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 38px; }
.ly-shape i { display: block; background: repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 5px), repeating-linear-gradient(0deg, transparent 0 3px, #fff 3px 5px); opacity: .35; border-radius: 3px; min-height: 8px; }
.ly-meta { grid-column: 1 / -1; font-size: .66rem; color: var(--muted); }
.ly-tray { display: grid; gap: .6rem; }
.ly-tray .ly-tile { min-height: 92px; }
.ly-span { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.ly-span span { width: 4.5rem; color: var(--muted); }
.ly-span b { min-width: 1.4rem; text-align: center; }
/* full map on a field grid */
.vm-field { display: grid; gap: 1.5rem 2rem; justify-content: center; align-items: start; justify-items: center; min-width: min-content; }
.vm-field > .vm-block { align-self: start; }
.vm-loose { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line-2, #d6dbe3); }
.vm-sub { display: grid; gap: .9rem 1rem; justify-items: center; align-items: start; padding: .6rem; border: 1.5px dashed var(--line-2, #d6dbe3); border-radius: 14px; }
.ly-cell.sel, .ly-split.sel { border-color: #2563eb; border-style: solid; background: #eff6ff; }
.ly-split { border: 2px dashed #94a3b8; border-radius: 14px; padding: .4rem; background: #f8fafc; display: flex; flex-direction: column; gap: .4rem; }
.ly-split-head { align-self: flex-start; border: 0; background: #e2e8f0; color: #334155; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .15rem .6rem; cursor: pointer; }
.ly-split-head:hover { background: var(--brand); color: #fff; }
.ly-split-grid { display: grid; gap: 6px; }
.ly-cell.sub { min-height: 96px; border-width: 1.5px; }
.ly-field > .ly-cell, .ly-field > .ly-slot, .ly-field > .ly-split { min-width: 120px; }
/* gowns & regalia */
.rg-sw { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); vertical-align: -.1rem; }
.rg-card .table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rg-actions { display: flex; flex-direction: column; gap: .6rem; }
.rg-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; background: var(--brand-soft); }
.rg-dep { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; padding: .7rem .85rem; border-radius: 12px; border: 1px dashed var(--line-2, #d6dbe3); }
.rg-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem .9rem; }
.rg-var { display: grid; grid-template-columns: 6.5rem 2.6rem 1fr; align-items: center; gap: .5rem; }
.rg-var .form-control-color { width: 2.6rem; height: 2rem; padding: .15rem; }
.rg-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--line-2, #d6dbe3); font-size: .82rem; text-decoration: none; color: var(--ink); background: #fff; }
.rg-chip b { background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 0 .45rem; font-size: .74rem; }
.rg-chip.on, .rg-chip:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.rg-chip.on b, .rg-chip:hover b { background: rgba(255,255,255,.22); color: #fff; }
.rg-group td { background: var(--brand-soft) !important; font-size: .85rem; }
.rg-gsizes { display: grid; gap: .4rem; max-width: 640px; }
.rg-gsize { display: grid; grid-template-columns: 5.5rem 1fr auto auto; gap: .5rem; align-items: center; }
/* attendance & entry */
.live-wrap:fullscreen { background: var(--bg, #f4f6f9); padding: 1.5rem; overflow: auto; }
.live-wrap:fullscreen .live-kpi b { font-size: 3.2rem; }
.live-kpi { height: 100%; padding: 1rem 1.15rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .2rem; }
.live-kpi small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live-kpi b { font-size: 2.1rem; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.live-kpi b em { font-style: normal; font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.live-kpi.main { background: linear-gradient(135deg, var(--brand), #0b3a2c); color: #fff; border: 0; }
.live-kpi.main small, .live-kpi.main .live-foot, .live-kpi.main b, .live-kpi.main b em { color: #fff; }
.live-kpi.main b em { opacity: .75; }
.live-foot { font-size: .78rem; color: var(--muted); }
.live-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; margin: .35rem 0 .2rem; }
.live-bar span { display: block; height: 100%; border-radius: 99px; background: #fbbf24; transition: width .6s; }
.live-bar.sm { background: var(--line); height: 7px; margin: 0; }
.live-bar.sm span { background: #2f7d5b; }
.live-fac { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: .75rem; align-items: center; padding: .3rem 0; font-size: .85rem; }
.live-fac b { font-variant-numeric: lining-nums tabular-nums; }
.live-dot { animation: liveDot 1.4s ease-in-out infinite; }
@keyframes liveDot { 50% { opacity: .25; } }
.gate-verdict { letter-spacing: .01em; }
.gate-pick .form-select-lg { font-size: 1.05rem; }
/* programme & stage */
.dais-front { margin: 0 auto 1rem; max-width: 420px; text-align: center; padding: .4rem; border-radius: 0 0 30px 30px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--brand), #0b3a2c); }
.dais-scroll { overflow-x: auto; display: flex; flex-direction: column-reverse; gap: .75rem; }
.dais-row { display: flex; gap: .5rem; align-items: stretch; min-width: min-content; }
.dais-rl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; }
.dais-chair { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: .3rem; padding: .5rem; border: 1.5px dashed var(--line-2, #d6dbe3); border-radius: 12px; background: #fff; }
.dais-chair.taken { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.dais-chair.chair-mid { box-shadow: 0 0 0 3px #e3b341; }
.stage-now { border: 2px solid var(--brand); }
.call-list .list-group-item::before { color: var(--muted); }
/* website: announcements bar and schedule */
.ann { padding: .55rem 0; font-size: .92rem; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,.06); }
.ann a { font-weight: 700; color: inherit; text-decoration: underline; white-space: nowrap; }
.ann-info { background: #e0f2fe; color: #075985; }
.ann-success { background: #dcfce7; color: #14532d; }
.ann-warning { background: #fef3c7; color: #78350f; }
.ann-urgent { background: #b91c1c; color: #fff; }
/* ---- Schedule page: important dates as a timeline (public/schedule.php) ---- */
.pt-focus { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem; margin-bottom: 1.75rem; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 28px 48px -26px color-mix(in srgb, var(--brand) 80%, #000); }
.pt-focus::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 14px); }
.pt-focus > * { position: relative; z-index: 1; }
.pt-focus-ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--accent); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.pt-focus-body { flex: 1 1 auto; min-width: 0; }
.pt-focus-k { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-tint); }
.pt-focus-t { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-top: .15rem; overflow-wrap: anywhere; }
.pt-focus-d { font-size: .86rem; color: var(--brand-tint); margin-top: .2rem; }
.pt-focus-n { flex-shrink: 0; text-align: center; padding: .55rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); min-width: 96px; }
.pt-focus-n b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.pt-focus-n span { display: block; margin-top: .25rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-tint); }
.pt-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: live-pulse 1.4s infinite; }

.pt-timeline { position: relative; --rail: 22px; }
.pt-timeline::before { content: ""; position: absolute; left: var(--rail); top: 10px; bottom: 10px; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, var(--accent-line), var(--line-2) 30%, var(--line-2)); border-radius: 2px; }
.pt-item { position: relative; padding: 0 0 1.15rem calc(var(--rail) * 2 + 14px); }
.pt-item:last-child { padding-bottom: 0; }
.pt-node { position: absolute; left: var(--rail); top: 22px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--brand); background: #fff; border: 2px solid var(--line-2); box-shadow: 0 0 0 5px var(--paper); z-index: 1; }
.pt-card { display: flex; gap: 1.15rem; padding: 1.15rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.pt-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); opacity: 0; }
.pt-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 22px 40px -24px rgba(16, 24, 40, .34); }
.pt-date { flex-shrink: 0; width: 86px; text-align: center; padding: .7rem .4rem; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 12%, #fff); align-self: flex-start; }
.pt-day { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.pt-mon { display: block; margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.pt-wd { display: block; margin-top: .1rem; font-size: .72rem; color: var(--muted); }
.pt-main { flex: 1 1 auto; min-width: 0; }
.pt-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.pt-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.pt-chip.now { background: #e7f6ec; color: #13703a; border-color: #b9e2c7; }
.pt-chip.next { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-line); }
.pt-chip.plain { background: var(--paper); color: var(--muted); border-color: var(--line-2); }
.pt-chip.done { background: var(--paper); color: var(--muted); border-color: var(--line); }
.pt-chip.gold { background: var(--accent); color: var(--on-accent); }
.pt-title { font-family: inherit; font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.pt-bn { font-size: .9rem; color: var(--muted); }
.pt-meta { margin: .55rem 0 0; display: flex; flex-direction: column; gap: .22rem; font-size: .86rem; color: color-mix(in srgb, var(--ink) 78%, var(--paper)); }
.pt-meta li { display: flex; gap: .5rem; align-items: baseline; }
.pt-meta i { color: var(--accent-dark); flex-shrink: 0; }
.pt-to { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 .15rem; }
.pt-note { margin: .6rem 0 0; padding-top: .55rem; border-top: 1px dashed var(--line-2); font-size: .84rem; color: var(--muted); }
.pt-bar { margin-top: .7rem; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pt-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #16a34a, #4ade80); }
.pt-foot { margin: 1.1rem 0 0 calc(22px * 2 + 14px); font-size: .82rem; color: var(--muted); }
/* states */
.pt-item.is-now .pt-node { color: #fff; background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 5px var(--paper), 0 0 0 9px rgba(22, 163, 74, .16); }
.pt-item.is-now .pt-card { border-color: #b9e2c7; }
.pt-item.is-now .pt-card::before { opacity: 1; background: linear-gradient(180deg, #16a34a, #4ade80); }
.pt-item.is-next .pt-node { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pt-item.is-next .pt-card { border-color: var(--accent-line); }
.pt-item.is-next .pt-card::before { opacity: 1; }
.pt-item.is-past .pt-node { color: var(--muted); background: var(--paper); }
.pt-item.is-past .pt-card { background: var(--paper-1, var(--paper)); box-shadow: none; }
.pt-item.is-past .pt-date, .pt-item.is-past .pt-title, .pt-item.is-past .pt-meta { opacity: .62; }
/* the ceremony itself */
.pt-item.is-event .pt-card { color: #fff; border-color: transparent; background: radial-gradient(110% 130% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.pt-item.is-event .pt-card::before { opacity: 1; }
.pt-item.is-event .pt-date { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.pt-item.is-event .pt-day { color: var(--accent); }
.pt-item.is-event .pt-mon { color: var(--accent-tint); }
.pt-item.is-event .pt-wd, .pt-item.is-event .pt-bn, .pt-item.is-event .pt-meta, .pt-item.is-event .pt-note { color: var(--brand-tint); }
.pt-item.is-event .pt-meta i { color: var(--accent); }
.pt-item.is-event .pt-note { border-top-color: rgba(255, 255, 255, .2); }
.pt-item.is-event .pt-chip.plain, .pt-item.is-event .pt-chip.done { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.pt-item.is-event .pt-node { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pt-item.is-event.is-past .pt-date, .pt-item.is-event.is-past .pt-title, .pt-item.is-event.is-past .pt-meta { opacity: .85; }
@media (max-width: 575.98px) {
    .pt-timeline { --rail: 15px; }
    .pt-item { padding-left: calc(var(--rail) * 2 + 8px); }
    .pt-node { width: 30px; height: 30px; font-size: .8rem; top: 18px; box-shadow: 0 0 0 4px var(--paper); }
    .pt-card { flex-direction: column; gap: .75rem; padding: 1rem; }
    .pt-date { width: auto; display: flex; align-items: baseline; gap: .5rem; text-align: left; padding: .45rem .7rem; align-self: stretch; }
    .pt-day { font-size: 1.6rem; }
    .pt-mon, .pt-wd { margin-top: 0; }
    .pt-foot { margin-left: calc(15px * 2 + 8px); }
    .pt-focus { flex-wrap: wrap; padding: 1.05rem 1.1rem; }
    .pt-focus-ico { width: 46px; height: 46px; font-size: 1.2rem; }
    .pt-focus-body { flex-basis: calc(100% - 46px - 1.1rem); }
    .pt-focus-n { flex: 1 1 100%; display: flex; align-items: baseline; justify-content: center; gap: .5rem; padding: .5rem .8rem; }
    .pt-focus-n b { font-size: 1.7rem; }
    .pt-focus-n span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .pt-card { transition: none; } .pt-card:hover { transform: none; } }
/* photography & media */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.ph-card.unmatched { border-color: #f59e0b; }
.ph-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e5e7eb; }
.ph-body { padding: .55rem .65rem .65rem; }
.my-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.my-photos a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.my-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.my-photos span { position: absolute; right: .4rem; bottom: .4rem; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; padding: .1rem .5rem; font-size: .72rem; }

/* ---- Committees page (public/committees.php): titles only ---- */
.cm-section { padding: 3rem 0 4rem; }
.cm-head { margin-bottom: 1.6rem; }
.cm-lead { display: flex; align-items: center; gap: 1.4rem; padding: 1.7rem 1.9rem; margin-bottom: 1.6rem; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 30px 50px -28px color-mix(in srgb, var(--brand) 80%, #000); }
.cm-lead::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 14px); }
.cm-lead > * { position: relative; z-index: 1; }
.cm-lead-ico { flex-shrink: 0; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; color: var(--on-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent-dark)); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.cm-lead .cm-no { color: var(--accent-tint); }
.cm-lead-title { margin: .35rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.2; letter-spacing: -.005em; color: #fff; }
.cm-lead-bn { margin-top: .35rem; font-family: 'Hind Siliguri', 'Inter', sans-serif; font-weight: 500; font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.cm-card { position: relative; padding: 1.3rem 1.35rem 1.4rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cm-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transform: scaleX(.18); transform-origin: left; transition: transform .25s ease; }
.cm-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 24px 44px -26px rgba(16, 24, 40, .38); }
.cm-card:hover::before { transform: scaleX(1); }
.cm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cm-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 12%, #fff); }
.cm-no { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: var(--accent-dark); font-variant-numeric: lining-nums tabular-nums; }
.cm-title { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; color: var(--brand); }
.cm-bn { margin-top: .3rem; font-family: 'Hind Siliguri', 'Inter', sans-serif; font-weight: 500; font-size: .98rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 575.98px) {
    .cm-section { padding: 2rem 0 3rem; }
    .cm-lead { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.3rem; }
    .cm-lead-ico { width: 58px; height: 58px; font-size: 1.6rem; }
    .cm-lead-title { font-size: 1.35rem; }
    .cm-title { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { .cm-card, .cm-card::before { transition: none; } .cm-card:hover { transform: none; } }
