/* ==========================================================================
   InfraBit Alumni Reunion Portal — design system
   Palette sampled from the live portal: navy #132b4c, gold #e0b351.
   Layers: tokens → base → components → pages → responsive.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root{
  /* Brand */
  --navy-900:#0b1c33;
  --navy-800:#0f2441;
  --navy-700:#132b4c;
  --navy-600:#173258;
  --navy-500:#1e3f6b;
  /* Dashboard header gradient ends. Settings overrides these from the
     chosen primary colour; they are separate from --navy-500 so the body
     link colour never gets dragged along. */
  --dash-a:#0b1c33;
  --dash-b:#1e3f6b;
  --gold-600:#a8812f;
  --gold-500:#c39844;
  --gold-400:#e0b351;
  --gold-200:#f0ddb5;
  --gold-100:#f5e7cc;
  --gold-050:#fbf4e6;

  /* Accent tints for stat tiles */
  --tint-gold:#f5e7cc;
  --tint-blue:#d5e2f7;
  --tint-green:#c8ecd0;
  --ink-gold:#c39844;
  --ink-blue:#2e62a7;
  --ink-green:#1f8a46;

  /* Neutrals */
  --ink:#0e2247;
  --ink-2:#33486a;
  --muted:#5c7089;
  --muted-2:#78859f;
  --line:#e4e8ef;
  --line-warm:#ece2cf;
  --surface:#ffffff;
  --page:#fbfbfb;
  --page-warm:#fdfaf4;

  /* Status */
  --ok-bg:#e7f4ec;   --ok-ink:#1b6b3f;   --ok-line:#2f8a55;
  --warn-bg:#fdf3e0; --warn-ink:#8a5c14;  --warn-line:#c9932e;
  --err-bg:#fceceb;  --err-ink:#9c2f27;   --err-line:#c0453a;

  /* Type */
  --font-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --font-ui:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;

  /* Shape */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-pill:999px;
  --shadow-xs:0 1px 2px rgba(14,34,71,.06);
  --shadow-sm:0 1px 3px rgba(14,34,71,.07), 0 1px 2px rgba(14,34,71,.04);
  --shadow-md:0 4px 16px rgba(14,34,71,.08), 0 1px 3px rgba(14,34,71,.05);
  --shadow-lg:0 12px 36px rgba(14,34,71,.11), 0 2px 8px rgba(14,34,71,.06);
  --ring:0 0 0 3px rgba(224,179,81,.32);

  --wrap:1180px;
  --gutter:20px;
}

/* ------------------------------------------------------------------- base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  background:var(--page);
  color:var(--ink);
  font-family:var(--font-ui);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--navy-500);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--gold-600)}

h1,h2,h3{font-family:var(--font-display);font-weight:700;color:var(--ink);letter-spacing:-.01em;margin:0}
h1{font-size:clamp(32px,7vw,54px);line-height:1.08}
h2{font-size:clamp(24px,4.4vw,34px);line-height:1.18}
h3{font-size:19px;line-height:1.3;font-weight:600}

p{margin:0 0 14px}
p:last-child{margin-bottom:0}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.wrap-narrow{max-width:680px;margin:0 auto;padding:0 var(--gutter)}

.eyebrow{
  font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold-600);margin:0 0 10px;
}
.eyebrow-light{color:var(--gold-400)}
.lede{color:var(--muted);font-size:16px;max-width:64ch}
.muted{color:var(--muted)}
.small{font-size:13.5px}
.center{text-align:center}

/* Gold rule that sits above display headings */
.rule-gold{width:52px;height:3px;background:var(--gold-400);border-radius:2px;margin:0 0 18px}
.rule-gold.is-center{margin-left:auto;margin-right:auto}

.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--gold-400);color:var(--navy-900);
  padding:10px 16px;z-index:100;border-radius:0 0 var(--r-sm) 0;font-weight:600;
}
.skip-link:focus{left:0}

:focus-visible{outline:2px solid var(--gold-400);outline-offset:2px}

/* ----------------------------------------------------------------- header */
.site-header{
  background:var(--navy-700);
  background-image:linear-gradient(100deg,var(--navy-800) 0%,var(--navy-700) 46%,var(--navy-600) 100%);
  color:#fff;position:sticky;top:0;z-index:40;
  box-shadow:0 1px 0 rgba(255,255,255,.06), var(--shadow-sm);
}
.site-header::after{
  content:"";display:block;height:2px;
  background:linear-gradient(90deg,var(--gold-600),var(--gold-400) 38%,var(--gold-200) 62%,var(--gold-500));
  opacity:.85;
}
.header-inner{
  max-width:var(--wrap);margin:0 auto;padding:12px var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}

.lockup{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff;min-width:0}
.crest{
  width:46px;height:46px;flex:0 0 auto;border-radius:50%;
  background:var(--gold-100);color:var(--navy-800);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.02em;
  border:2px solid var(--gold-400);
  box-shadow:0 0 0 3px rgba(224,179,81,.18);
  overflow:hidden;
}
.crest img{width:100%;height:100%;object-fit:contain;border-radius:50%}
.lockup-text{min-width:0}
.lockup-name{
  font-family:var(--font-display);font-size:19px;font-weight:700;line-height:1.15;
  color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;
}
.lockup-sub{
  font-size:9.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-200);
  font-weight:500;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.site-nav{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.site-nav a{
  color:rgba(255,255,255,.86);text-decoration:none;font-size:14.5px;font-weight:500;
  padding:8px 13px;border-radius:var(--r-sm);position:relative;white-space:nowrap;
}
.site-nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.site-nav a.is-active{color:var(--gold-400)}
.site-nav a.is-active::after{
  content:"";position:absolute;left:13px;right:13px;bottom:2px;height:2px;
  background:var(--gold-400);border-radius:2px;
}
/* .site-nav a (0,1,1) outranks .btn (0,1,0) — restate at matching weight so
   header buttons keep their own colours. */
.site-nav a.btn{color:var(--navy-900)}
.site-nav a.btn:hover{color:var(--navy-900);background:var(--gold-500)}
.site-nav a.btn-outline{color:#fff}
.site-nav a.btn-outline:hover{color:var(--navy-900);background:var(--gold-400)}

.nav-toggle{display:none}

/* ---------------------------------------------------------------- buttons */
.btn{
  --btn-bg:var(--navy-700); --btn-ink:#fff; --btn-bg-hover:var(--navy-800);
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:var(--btn-bg);color:var(--btn-ink);
  font-family:var(--font-ui);font-size:15px;font-weight:600;line-height:1.2;
  padding:13px 26px;border:0;border-radius:var(--r-pill);cursor:pointer;
  text-decoration:none;text-align:center;box-shadow:var(--shadow-sm);
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover{background:var(--btn-bg-hover);color:var(--btn-ink);box-shadow:var(--shadow-md)}
.btn:active{transform:translateY(1px)}
.btn svg{width:17px;height:17px;flex:0 0 auto}

.btn-gold{--btn-bg:var(--gold-400);--btn-ink:var(--navy-900);--btn-bg-hover:var(--gold-500)}
.btn-outline{
  --btn-bg:transparent;--btn-ink:#fff;--btn-bg-hover:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.35);box-shadow:none;
}
.btn-ghost{
  --btn-bg:#fff;--btn-ink:var(--ink-2);--btn-bg-hover:#f4f6fa;
  border:1px solid var(--line);box-shadow:var(--shadow-xs);
}
.btn-sm{padding:9px 18px;font-size:13.5px}
.btn-lg{padding:16px 34px;font-size:16.5px}
.btn-block{display:flex;width:100%}

/* ------------------------------------------------------------- page bands */
/* The cream band with the campus photograph bleeding in from the right. */
.page-band{
  position:relative;overflow:hidden;
  background:linear-gradient(103deg,var(--page-warm) 0%,var(--gold-050) 42%,#f6efe1 100%);
  border-bottom:1px solid var(--line-warm);
}
.page-band__photo{
  position:absolute;top:0;right:0;bottom:0;width:62%;
  background-size:cover;background-position:center;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.55) 34%,rgba(0,0,0,.92) 100%);
          mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.55) 34%,rgba(0,0,0,.92) 100%);
  opacity:.85;
}
.page-band__swash{
  position:absolute;left:-60px;bottom:-70px;width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,rgba(224,179,81,.28),rgba(224,179,81,0) 68%);
  pointer-events:none;
}
.page-band__inner{position:relative;max-width:var(--wrap);margin:0 auto;padding:40px var(--gutter) 44px}
.page-band h1{color:var(--ink)}
.page-band .lede{color:var(--ink-2)}
.page-band__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* ------------------------------------------------------------------- hero */
.hero{position:relative;background:var(--navy-900);overflow:hidden;isolation:isolate}
.hero__photo{
  position:absolute;inset:0;background-size:cover;background-position:center 58%;
  opacity:.46;filter:saturate(.9) contrast(1.02);z-index:-2;
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(120% 90% at 50% 0%,rgba(11,28,51,.34) 0%,rgba(11,28,51,.72) 55%,rgba(11,28,51,.93) 100%),
    linear-gradient(180deg,rgba(11,28,51,.28),rgba(11,28,51,.86));
}
.hero__inner{position:relative;max-width:900px;margin:0 auto;padding:68px var(--gutter) 64px;text-align:center}
.hero h1{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.hero__college{
  display:block;margin-top:16px;color:var(--gold-400);
  font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
}
.hero__tagline{color:rgba(255,255,255,.88);margin:18px auto 0;max-width:40ch;font-size:17px}
.hero__meta{
  margin:24px auto 0;display:flex;flex-direction:column;align-items:center;gap:8px;
  color:rgba(255,255,255,.92);font-size:14.5px;
}
.hero__meta span{display:inline-flex;align-items:center;gap:8px}
.hero__cta{margin-top:30px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}
.hero__note{color:rgba(255,255,255,.66);font-size:13.5px;margin:0}
.hero__divider{
  width:64px;height:1px;margin:0 auto;
  background:linear-gradient(90deg,transparent,var(--gold-400),transparent);
}

/* --------------------------------------------------------------- sections */
.section{padding:52px 0}
.section-tight{padding:34px 0}
.section-paper{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{margin-bottom:26px}

/* ------------------------------------------------------------ stat tiles */
.stats{display:grid;grid-template-columns:1fr;gap:14px}
.stat{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:20px 22px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow-sm);
}
.stat__icon{
  width:52px;height:52px;border-radius:50%;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  background:var(--tint-gold);color:var(--ink-gold);
}
.stat__icon svg{width:24px;height:24px}
.stat--blue  .stat__icon{background:var(--tint-blue); color:var(--ink-blue)}
.stat--green .stat__icon{background:var(--tint-green);color:var(--ink-green)}
.stat__value{font-family:var(--font-display);font-size:32px;font-weight:700;line-height:1.05;color:var(--ink)}
.stat__label{font-size:13.5px;color:var(--muted);margin-top:1px}
.stat__bar{width:34px;height:3px;border-radius:2px;background:var(--gold-400);margin-top:7px}
.stat--blue  .stat__bar{background:var(--ink-blue)}
.stat--green .stat__bar{background:var(--ink-green)}

/* ------------------------------------------------------------------ cards */
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:24px;box-shadow:var(--shadow-sm);
}
.card + .card{margin-top:16px}
.card-head{margin-bottom:14px}
.card-flush{padding:0;overflow:hidden}

.panel-cta{
  background:linear-gradient(115deg,var(--navy-800),var(--navy-600));
  color:#fff;border-radius:var(--r-lg);padding:38px 26px;text-align:center;
  box-shadow:var(--shadow-lg);position:relative;overflow:hidden;
}
.panel-cta::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(90% 120% at 12% 0%,rgba(224,179,81,.2),transparent 62%);
}
.panel-cta > *{position:relative}
.panel-cta h2{color:#fff}
.panel-cta p{color:rgba(255,255,255,.82);max-width:46ch;margin:12px auto 22px}

/* ------------------------------------------------------------ photo grid */
.photo-grid{display:grid;grid-template-columns:1fr;gap:16px}
.photo-card{
  margin:0;border-radius:var(--r-lg);overflow:hidden;background:var(--surface);
  border:1px solid var(--line);box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease;
}
.photo-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.photo-card img{width:100%;aspect-ratio:3/2;object-fit:cover}
.photo-card figcaption{
  padding:12px 16px;font-size:13px;color:var(--muted);
  border-top:1px solid var(--line);letter-spacing:.02em;
}

/* -------------------------------------------------------------- timeline */
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;padding:0 0 26px 30px;border-left:2px solid var(--line-warm)}
.timeline li:last-child{padding-bottom:0;border-left-color:transparent}
.timeline li::before{
  content:"";position:absolute;left:-8px;top:4px;width:14px;height:14px;border-radius:50%;
  background:var(--surface);border:2px solid var(--gold-400);box-shadow:0 0 0 3px rgba(224,179,81,.14);
}
.timeline li.is-done::before{background:var(--gold-400)}
.t-time{
  font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-600);margin:0 0 3px;
}
.t-title{font-family:var(--font-display);font-size:18px;font-weight:600;margin:0 0 3px;color:var(--ink)}
.t-meta{font-size:14px;color:var(--muted);margin:0}

/* ------------------------------------------------------------------ forms */
.field{margin-bottom:18px}
.field:last-child{margin-bottom:0}
label{display:block;font-size:13.5px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
label .req{color:var(--gold-600)}
.hint{font-size:12.5px;color:var(--muted-2);margin:6px 0 0;line-height:1.5}

input[type=text],input[type=tel],input[type=email],input[type=number],
input[type=password],input[type=search],select,textarea{
  width:100%;padding:12px 14px;font-family:var(--font-ui);font-size:16px;color:var(--ink);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  transition:border-color .15s ease, box-shadow .15s ease;
}
input::placeholder,textarea::placeholder{color:var(--muted-2)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold-400);box-shadow:var(--ring)}
textarea{min-height:96px;resize:vertical;line-height:1.6}
select{
  appearance:none;-webkit-appearance:none;padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7089' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:17px;
}
fieldset{border:0;margin:0;padding:0}
legend{font-size:13.5px;font-weight:600;color:var(--ink-2);margin-bottom:8px;padding:0}

.choice-row{display:flex;gap:10px;flex-wrap:wrap}
.choice{
  display:inline-flex;align-items:center;gap:9px;margin:0;font-weight:500;font-size:14.5px;
  color:var(--ink-2);background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-pill);padding:11px 17px;cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.choice:hover{border-color:var(--gold-400)}
.choice input{margin:0;accent-color:var(--gold-500)}
.choice:has(input:checked){border-color:var(--gold-400);background:var(--gold-050)}

.search-bar{display:flex;gap:10px;align-items:center}
.search-bar .search-input{position:relative;flex:1}
.search-bar .search-input svg{
  position:absolute;left:15px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:var(--muted-2);pointer-events:none;
}
.search-bar input{padding-left:44px;border-radius:var(--r-pill)}

/* ----------------------------------------------------------------- alerts */
.alert{
  border-radius:var(--r-md);padding:16px 18px;margin:0 0 20px;font-size:14.5px;
  border:1px solid transparent;border-left-width:4px;
}
.alert strong{font-weight:600}
.alert ul{margin:8px 0 0;padding-left:20px}
.alert li{margin-bottom:3px}
.alert p{margin:6px 0 0}
.alert-err {background:var(--err-bg); border-color:var(--err-line); color:var(--err-ink)}
.alert-ok  {background:var(--ok-bg);  border-color:var(--ok-line);  color:var(--ok-ink)}
.alert-warn{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}

/* ----------------------------------------------------------------- ticket */
.ticket{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow-md);overflow:hidden;
}
.ticket__head{
  background:linear-gradient(115deg,var(--navy-800),var(--navy-600));
  color:#fff;padding:24px 26px;position:relative;
}
.ticket__head::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,var(--gold-600),var(--gold-400),var(--gold-200));
}
.ticket__head h2{color:#fff;font-size:22px;margin:0 0 4px}
.ticket__head p{margin:0;color:var(--gold-200);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.ticket__body{padding:8px 26px 22px}

.kv{margin:0}
.kv > div{
  display:flex;justify-content:space-between;align-items:baseline;gap:18px;
  padding:13px 0;border-bottom:1px solid var(--line);
}
.kv > div:last-child{border-bottom:0}
.kv dt{color:var(--muted);font-size:13.5px;margin:0}
.kv dd{margin:0;font-weight:600;font-size:14.5px;text-align:right;color:var(--ink)}

.pill{
  display:inline-block;padding:5px 13px;border-radius:var(--r-pill);
  font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
}
.pill-pending  {background:var(--warn-bg);color:var(--warn-ink)}
.pill-confirmed{background:var(--ok-bg);  color:var(--ok-ink)}
.pill-cancelled{background:var(--err-bg); color:var(--err-ink)}

.copy-link{
  display:flex;gap:10px;align-items:center;margin-top:10px;
  background:var(--gold-050);border:1px solid var(--line-warm);
  border-radius:var(--r-md);padding:12px 14px;
}
.copy-link code{
  font-size:12px;word-break:break-all;color:var(--ink-2);flex:1;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.5;
}

/* ------------------------------------------------------------ empty state */
.empty{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:56px 24px;text-align:center;box-shadow:var(--shadow-sm);
}
.empty__icon{
  width:74px;height:74px;border-radius:50%;margin:0 auto 20px;
  background:var(--gold-100);color:var(--gold-600);
  display:flex;align-items:center;justify-content:center;
}
.empty__icon svg{width:34px;height:34px}
.empty h3{font-size:22px;margin-bottom:8px}
.empty p{color:var(--muted);margin:0}

/* ----------------------------------------------------------------- tables */
.table-wrap{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow-x:auto;-webkit-overflow-scrolling:touch;box-shadow:var(--shadow-sm);
  /* Right-edge fade so it is obvious the table scrolls sideways. The fade is
     painted by a fixed-attachment gradient that disappears once scrolled to
     the end. */
  background-image:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,0)),
                   linear-gradient(to left,rgba(14,34,71,.09),rgba(14,34,71,0));
  background-position:left center,right center;
  background-repeat:no-repeat;
  background-size:20px 100%,28px 100%;
  background-attachment:local,scroll;
}
table.data{border-collapse:collapse;width:100%;font-size:14px;min-width:820px}
table.data th,table.data td{padding:13px 16px;text-align:left;white-space:nowrap}
table.data th{
  background:var(--gold-050);color:var(--muted);font-size:11px;font-weight:600;
  letter-spacing:.11em;text-transform:uppercase;border-bottom:1px solid var(--line-warm);
}
table.data td{border-bottom:1px solid var(--line);color:var(--ink-2)}
table.data tbody tr:last-child td{border-bottom:0}
table.data tbody tr:hover td{background:#fbfcfe}
table.data .cell-name{font-weight:600;color:var(--ink)}

/* ----------------------------------------------------------------- footer */
.site-footer{
  background:var(--navy-700);
  background-image:linear-gradient(100deg,var(--navy-800),var(--navy-600));
  color:#fff;margin-top:auto;position:relative;overflow:hidden;
}
.site-footer::before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,var(--gold-600),var(--gold-400) 40%,var(--gold-200) 60%,var(--gold-500));
}
/* Decorative gold swash bottom-left, mirroring the live design. */
.site-footer::after{
  content:"";position:absolute;left:-90px;bottom:-130px;width:330px;height:330px;
  border-radius:48% 52% 44% 56%;
  background:radial-gradient(circle at 40% 40%,rgba(224,179,81,.22),rgba(224,179,81,0) 70%);
  pointer-events:none;
}
.footer-inner{position:relative;max-width:var(--wrap);margin:0 auto;padding:40px var(--gutter) 30px;text-align:center}

/* College name flanked by gold flourish rules */
.footer-name{
  display:flex;align-items:center;justify-content:center;gap:18px;
  font-family:var(--font-display);font-size:21px;font-weight:700;color:#fff;margin:0 0 8px;
}
.footer-name::before,.footer-name::after{
  content:"";height:1px;width:clamp(28px,9vw,90px);flex:0 0 auto;
  background:linear-gradient(90deg,transparent,var(--gold-400));
}
.footer-name::after{background:linear-gradient(90deg,var(--gold-400),transparent)}
.footer-institute{
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold-200);margin:0 0 18px;
}
.footer-contact{color:rgba(255,255,255,.72);font-size:14px;margin:0 0 6px}
.footer-contact a{color:var(--gold-200);text-decoration:none}
.footer-contact a:hover{color:var(--gold-400);text-decoration:underline}
.footer-note{color:rgba(255,255,255,.5);font-size:13px;margin:0}

.footer-powered{
  margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);
  font-size:12.5px;color:rgba(255,255,255,.55);letter-spacing:.02em;
}
.footer-powered a{
  color:var(--gold-200);text-decoration:none;font-weight:600;
  border-bottom:1px solid rgba(224,179,81,.35);padding-bottom:1px;
}
.footer-powered a:hover{color:var(--gold-400);border-bottom-color:var(--gold-400)}

/* ------------------------------------------------------------ page layout */
body{display:flex;flex-direction:column;min-height:100vh}
main{flex:1 0 auto}

/* -------------------------------------------------------------- admin bar */
.admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.result-note{color:var(--muted);font-size:13px;margin-top:12px}

/* ------------------------------------------------------------ responsive */
@media (min-width:560px){
  .stats{grid-template-columns:repeat(3,1fr)}
  .hero__cta{flex-direction:row}
  .hero__meta{flex-direction:row;justify-content:center;gap:26px}
  .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
}
@media (min-width:860px){
  :root{--gutter:28px}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
  .hero__inner{padding:104px var(--gutter) 96px}
  .page-band__inner{padding:54px var(--gutter) 58px}
  .section{padding:72px 0}
  .panel-cta{padding:52px 44px}
  .ticket__body{padding:10px 32px 26px}
  .card{padding:28px}
}
@media (max-width:640px){
  .lockup-name{font-size:15.5px;max-width:46vw}
  .lockup-sub{font-size:8.5px;letter-spacing:.16em}
  .crest{width:38px;height:38px;font-size:12.5px}
  .site-nav a:not(.btn){display:none}
  .header-inner{padding:10px var(--gutter)}
  .page-band__photo{width:100%;opacity:.28}
  .footer-name{font-size:17px;gap:12px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .photo-card:hover{transform:none}
}

@media print{
  .site-header,.site-footer,.hero__cta,.btn{display:none !important}
  body{background:#fff}
  .ticket{box-shadow:none;border:1px solid #999}
}

/* ----------------------------------------------------------- entry pass */
.ticket-qr{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow-md);padding:24px;margin-top:18px;text-align:center;
  position:relative;overflow:hidden;
}
.ticket-qr::before{
  content:"";position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--gold-600),var(--gold-400),var(--gold-200));
}
.ticket-qr__code{
  display:inline-block;padding:10px;background:#fff;border-radius:var(--r-md);
  border:1px solid var(--line);line-height:0;
}
.ticket-qr__code svg{width:min(216px,62vw);height:auto}
.ticket-qr__text{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:19px;font-weight:600;letter-spacing:.18em;color:var(--ink);
  margin:14px 0 0;
}

/* ------------------------------------------------------------- scanner */
.scan-shell{max-width:520px;margin:0 auto}
.scan-video{
  width:100%;aspect-ratio:1;object-fit:cover;background:#0b1c33;
  border-radius:var(--r-lg);border:1px solid var(--line);display:block;
}
/* A class selector outranks the browser's [hidden] rule, so the preview box
   would sit there dark before the camera starts. Restate it. */
.scan-video[hidden]{display:none}
.scan-status{
  border-radius:var(--r-lg);padding:18px 20px;margin:16px 0;text-align:center;
  border:1px solid var(--line);background:var(--surface);
}
.scan-status.is-ok   {background:var(--ok-bg);  border-color:var(--ok-line);  color:var(--ok-ink)}
.scan-status.is-warn {background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}
.scan-status.is-err  {background:var(--err-bg); border-color:var(--err-line); color:var(--err-ink)}
.scan-status h3{font-size:22px;margin:0 0 4px;color:inherit}
.scan-status p{margin:2px 0 0;font-size:14.5px}
.scan-meta{
  display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
  font-size:12.5px;color:var(--muted);margin-top:10px;
}
.scan-chip{
  background:var(--cream,#faf7f2);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:4px 12px;
}
.scan-chip.is-live{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok-ink)}
.scan-chip.is-offline{background:var(--warn-bg);border-color:var(--warn-line);color:var(--warn-ink)}

/* The tick box the gate team marks by hand. Visible on screen too, so the
   printed and on-screen lists look the same. */
.print-tick{
  width:26px;height:16px;border:1.5px solid var(--muted);border-radius:3px;
  display:inline-block;vertical-align:middle;
}

/* --------------------------------------------------------- print sheet */
@media print{
  .no-print{display:none !important}
  .ticket-qr{box-shadow:none;border:2px solid #000;page-break-inside:avoid}
  .ticket-qr__code{border:0}
  table.print-list{width:100%;border-collapse:collapse;font-size:11pt}
  table.print-list th,table.print-list td{border:1px solid #666;padding:4px 6px;text-align:left}
  table.print-list thead{display:table-header-group}
  table.print-list tr{page-break-inside:avoid}
  .print-tick{width:26px;height:16px;border:1px solid #000;display:inline-block}
}

/* ------------------------------------------------------------- gallery */
.gallery{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:10px;
}
@media (min-width:640px){ .gallery{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px} }
@media (min-width:1024px){ .gallery{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px} }
.gallery__item{
  position:relative;padding:0;border:1px solid var(--line);background:var(--surface);
  border-radius:var(--r-md);overflow:hidden;cursor:zoom-in;display:block;
  box-shadow:var(--shadow-xs);transition:transform .18s ease, box-shadow .18s ease;
}
.gallery__item:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.gallery__item img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
.gallery__cap{
  position:absolute;left:0;right:0;bottom:0;padding:16px 10px 7px;
  background:linear-gradient(transparent,rgba(11,28,51,.82));
  color:#fff;font-size:11.5px;text-align:left;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

.lightbox{
  position:fixed;inset:0;z-index:90;background:rgba(6,15,28,.94);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;
}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(96vw,1100px);max-height:80vh;object-fit:contain;border-radius:var(--r-md)}
.lightbox__cap{color:#d7dee6;font-size:14px;text-align:center;margin:0;max-width:70ch}
.lightbox__close{
  position:absolute;top:14px;right:16px;width:44px;height:44px;border-radius:50%;
  border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);
  color:#fff;font-size:26px;line-height:1;cursor:pointer;
}
.lightbox__close:hover{background:rgba(255,255,255,.18)}

input[type=file]{
  width:100%;padding:11px 12px;font-size:15px;font-family:inherit;color:var(--ink-2);
  background:var(--surface);border:1px dashed var(--line);border-radius:var(--r-md);
}
input[type=file]:focus{outline:none;border-color:var(--gold-400);box-shadow:var(--ring)}

/* ------------------------------------------------------ settings layout */
.settings-shell{display:grid;grid-template-columns:1fr;gap:18px}
.settings-nav{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:8px;box-shadow:var(--shadow-sm);align-self:start;
}
.settings-nav__item{
  display:block;padding:11px 14px;border-radius:var(--r-md);text-decoration:none;
  color:var(--ink-2);font-size:14.5px;font-weight:500;
}
.settings-nav__item:hover{background:var(--gold-050);color:var(--ink)}
.settings-nav__item.is-active{
  background:var(--navy-700);color:#fff;font-weight:600;
}
.settings-nav__item.is-active:hover{background:var(--navy-800);color:#fff}
.settings-nav__foot{padding:12px 14px 6px;border-top:1px solid var(--line);margin-top:8px}

@media (min-width:860px){
  .settings-shell{grid-template-columns:230px 1fr;gap:24px}
  .settings-nav{position:sticky;top:86px}
}

/* ---------------------------------------------------------------------------
   Dashboard header
   One gradient card at the top of every signed-in page: identity on the left,
   actions on the right, section tabs along the bottom. Colours come from the
   brand variables, so a college that changes its primary colour in Settings
   gets this too without touching CSS.
--------------------------------------------------------------------------- */
.dash-head{
  position:relative;
  margin:20px 0 24px;
  padding:22px;
  border-radius:var(--r-lg);
  color:#fff;
  background:linear-gradient(135deg,var(--dash-a) 0%,var(--navy-700) 55%,var(--dash-b) 100%);
  box-shadow:0 10px 30px rgba(11,28,51,.22);
  overflow:hidden;
}
/* The gold hairline ties it to the site header without shouting. */
.dash-head::before{
  content:"";position:absolute;inset:0 0 auto 0;height:3px;
  background:linear-gradient(90deg,var(--gold-600),var(--gold-400) 38%,var(--gold-200) 62%,var(--gold-500));
}
.dash-head__top{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.dash-head__id{display:flex;align-items:center;gap:14px;min-width:0}
.dash-head h1{
  color:#fff;font-size:clamp(21px,4.4vw,30px);line-height:1.15;margin:0;
  overflow-wrap:anywhere;
}
.dash-head p{
  margin:5px 0 0;font-size:14px;color:rgba(255,255,255,.82);
  overflow-wrap:anywhere;
}
.dash-avatar{
  width:64px;height:64px;flex:0 0 64px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:var(--navy-700);
  font-family:var(--font-display);font-size:23px;font-weight:700;letter-spacing:.02em;
  border:3px solid rgba(255,255,255,.85);
  box-shadow:0 4px 14px rgba(0,0,0,.2);
}
.dash-head__actions{display:flex;gap:10px;flex-wrap:wrap}

/* Actions are white-on-dark pills. Specificity beats the generic `a` rules. */
.dash-head a.dash-action{
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 16px;border-radius:var(--r-md);
  background:rgba(255,255,255,.94);color:var(--navy-800);
  font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap;
  box-shadow:0 4px 14px rgba(0,0,0,.14);
  transition:background .16s ease,transform .16s ease;
}
.dash-head a.dash-action:hover{background:#fff;color:var(--navy-900);transform:translateY(-2px)}
.dash-head a.dash-action svg{width:16px;height:16px;flex:none}


/* A one-line prompt for work waiting in bulk, under the dashboard header. */
.bulk-bar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin:-8px 0 20px;padding:12px 16px;
  background:var(--gold-050);border:1px solid var(--line-warm);
  border-radius:var(--r-md);font-size:14px;color:var(--ink-2);
}

@media (max-width:560px){
  .dash-head{padding:18px 16px;border-radius:var(--r-md)}
  .dash-avatar{width:52px;height:52px;flex-basis:52px;font-size:19px}
  .dash-head__actions{width:100%}
  .dash-head a.dash-action{flex:1;justify-content:center}
}

/* ---------------------------------------------------------------------------
   Left sidebar (signed-in pages)
   Fixed rail down the left, with the page content offset by a margin. The
   offset is driven by a class on <body>, set server-side, so the layout is
   correct on the first paint rather than jumping once JavaScript runs.
--------------------------------------------------------------------------- */
:root{ --side-w:264px; --side-rail:78px; --side-icon:54px; }

.sidebar{
  position:fixed;top:0;left:0;bottom:0;width:var(--side-rail);
  display:flex;flex-direction:column;
  background:linear-gradient(160deg,var(--dash-a) 0%,var(--navy-700) 58%,var(--dash-b) 100%);
  color:#fff;z-index:60;
  border-right:1px solid rgba(255,255,255,.12);
  box-shadow:4px 0 28px rgba(11,28,51,.14);
  overflow-y:auto;overflow-x:hidden;
  transition:width .2s ease,transform .22s ease;
}
body.has-sidebar{background:var(--page)}
/* A dashboard uses the width it has. The public pages keep the 1180px measure
   because they are mostly prose; these are tables and forms, and centring them
   inside a fixed column leaves a dead margin on the right that grows every
   time the menu collapses. */
body.has-sidebar .wrap{max-width:none;padding:0 26px}
body.has-sidebar .wrap-narrow{max-width:900px;padding:0 26px}
body.has-sidebar .shell{margin-left:var(--side-rail);transition:margin-left .2s ease}

/* --- expand ---------------------------------------------------------------
   The rail widens when the pointer is over it, and the content area follows.
   Gated on a real pointer: on a touchscreen there is no hover, so :hover
   sticks after a tap and the menu would jam open. Touch gets the drawer
   below instead. :focus-within is there so the keyboard can open it too.
-------------------------------------------------------------------------- */
@media (hover:hover) and (pointer:fine){
  .sidebar:hover,
  .sidebar:focus-within{width:var(--side-w)}
  .sidebar:hover ~ .shell,
  .sidebar:focus-within ~ .shell{margin-left:var(--side-w)}
}

/* Everything that is text fades rather than reflowing, so the icons hold
   still while the panel widens. overflow-x on .sidebar clips the rest. */
.sidebar__brandtext,
.sidebar__usertext,
.sidebar__label,
.sidebar__badge{
  opacity:0;transition:opacity .16s ease;
}
@media (hover:hover) and (pointer:fine){
  .sidebar:hover .sidebar__brandtext,
  .sidebar:hover .sidebar__usertext,
  .sidebar:hover .sidebar__label,
  .sidebar:hover .sidebar__badge,
  .sidebar:focus-within .sidebar__brandtext,
  .sidebar:focus-within .sidebar__usertext,
  .sidebar:focus-within .sidebar__label,
  .sidebar:focus-within .sidebar__badge{opacity:1}
}

/* Brand lockup */
.sidebar__brand{
  display:flex;align-items:center;
  padding:15px 12px;text-decoration:none;color:#fff;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.sidebar__brand:hover{color:#fff;background:rgba(255,255,255,.06)}
/* 40 + 7 + 7 = the icon column, so the crest sits on the rail's centre line
   and does not shift when the panel widens. */
.sidebar__brand .crest{flex:0 0 40px;width:40px;height:40px;font-size:13px;margin:0 7px}
.sidebar__brandtext{display:flex;flex-direction:column;min-width:0;padding-left:4px}
.sidebar__name{
  font-family:var(--font-display);font-weight:700;font-size:15px;line-height:1.15;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.sidebar__sub{
  font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold-200);margin-top:3px;white-space:nowrap;
}

/* Who is signed in */
.sidebar__user{
  display:flex;align-items:center;padding:13px 12px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.dash-avatar--sm{
  width:38px;height:38px;flex:0 0 38px;font-size:14px;border-width:2px;margin:0 8px;
}
.sidebar__usertext{
  display:flex;flex-direction:column;min-width:0;font-size:13px;padding-left:4px;
}
.sidebar__usertext strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar__usertext span{color:rgba(255,255,255,.7);font-size:11.5px;margin-top:1px}

/* Links */
.sidebar__nav{display:flex;flex-direction:column;gap:2px;padding:12px 8px;flex:1}
.sidebar__foot{
  display:flex;flex-direction:column;gap:2px;padding:10px 8px 16px;
  border-top:1px solid rgba(255,255,255,.14);
}
.sidebar a.sidebar__link{
  display:flex;align-items:center;
  padding:10px 4px;border-radius:var(--r-md);
  color:rgba(255,255,255,.88);text-decoration:none;
  font-size:14px;font-weight:600;font-family:inherit;
  background:none;border:0;border-left:3px solid transparent;
  width:100%;text-align:left;cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.sidebar a.sidebar__link:hover{
  background:rgba(255,255,255,.15);border-left-color:rgba(255,255,255,.55);color:#fff;
}
.sidebar a.sidebar__link.is-active{
  background:rgba(255,255,255,.24);border-left-color:var(--gold-400);color:#fff;
}
/* The icon column is the fixed part. Everything else slides out from behind it. */
.sidebar__icon{
  display:flex;align-items:center;justify-content:center;
  flex:0 0 var(--side-icon);position:relative;
}
.sidebar__icon svg{width:20px;height:20px}
.sidebar__label{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.sidebar__badge{
  flex:none;min-width:20px;height:20px;padding:0 6px;margin-right:10px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--r-pill);background:var(--gold-400);color:var(--navy-900);
  font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;
}
/* Collapsed, the count has nowhere to sit — so the icon gets a dot instead.
   Waiting work should never be invisible just because the menu is narrow. */
.sidebar__link.has-badge .sidebar__icon::after{
  content:"";position:absolute;top:-1px;right:12px;
  width:8px;height:8px;border-radius:50%;
  background:var(--gold-400);box-shadow:0 0 0 2px var(--navy-700);
  transition:opacity .16s ease;
}
@media (hover:hover) and (pointer:fine){
  .sidebar:hover .sidebar__link.has-badge .sidebar__icon::after,
  .sidebar:focus-within .sidebar__link.has-badge .sidebar__icon::after{opacity:0}
}

/* The hamburger and the scrim exist only on narrow screens. */
.sidebar-open{display:none}
.sidebar-scrim{display:none}

@media (max-width:900px){
  .sidebar{transform:translateX(-100%);width:min(280px,84vw);box-shadow:none}
  body.has-sidebar .shell{margin-left:0}
  body.nav-open .sidebar{transform:none;box-shadow:0 0 40px rgba(11,28,51,.45)}
  /* In a drawer everything is always readable, and pinning is meaningless. */
  .sidebar__brandtext,
  .sidebar__usertext,
  .sidebar__label,
  .sidebar__badge{opacity:1}
  .sidebar__link.has-badge .sidebar__icon::after{opacity:0}

  /* Once the drawer is open it covers this corner, so get the button out of
     the way rather than stacking it on top of the brand. */
  body.nav-open .sidebar-open{display:none}
  .sidebar-open{
    display:inline-flex;align-items:center;justify-content:center;
    position:fixed;top:12px;left:12px;z-index:70;
    width:44px;height:44px;border:0;border-radius:var(--r-md);
    background:var(--navy-700);color:#fff;cursor:pointer;
    box-shadow:0 4px 16px rgba(11,28,51,.3);
  }
  .sidebar-open__bars,
  .sidebar-open__bars::before,
  .sidebar-open__bars::after{
    display:block;width:18px;height:2px;background:#fff;border-radius:2px;content:"";
  }
  .sidebar-open__bars{position:relative}
  .sidebar-open__bars::before{position:absolute;top:-6px}
  .sidebar-open__bars::after{position:absolute;top:6px}

  .sidebar-scrim{
    display:block;position:fixed;inset:0;z-index:55;
    background:rgba(11,28,51,.5);
  }
  .sidebar-scrim[hidden]{display:none}

  /* Make room for the hamburger. */
  body.has-sidebar .dash-head{margin-top:64px}
}

/* Someone who asked for less motion should not have a panel sliding at them. */
@media (prefers-reduced-motion:reduce){
  .sidebar,
  body.has-sidebar .shell,
  .sidebar__label,
  .sidebar__brandtext,
  .sidebar__usertext,
  .sidebar__badge{transition:none}
}

.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* Tables want the whole width; a text field does not. A 1500px-wide input is
   harder to use than a 700px one, so the settings form keeps a sane measure
   even though the page around it is full width. */
body.has-sidebar .settings-body{max-width:780px}

/* ---------------------------------------------------------------------------
   Dashboard footer
   One line of credit. It lives inside .shell, so it starts where the content
   starts and moves with the menu.
--------------------------------------------------------------------------- */
.dash-footer{
  margin-top:40px;padding:18px 26px 22px;
  border-top:1px solid var(--line);
  background:var(--surface);
  text-align:center;
}
.dash-footer p{
  margin:0;font-size:13px;color:var(--muted);
}
.dash-footer a{
  color:var(--ink-2);font-weight:600;text-decoration:none;
  border-bottom:1px solid var(--gold-400);
}
.dash-footer a:hover{color:var(--gold-600);border-bottom-color:var(--gold-600)}
@media (max-width:900px){
  .dash-footer{padding:16px 20px 20px}
}

/* A choice that carries an explanation, not just a word. The pill shape only
   works for one-liners. */
.choice--block{
  display:flex;align-items:flex-start;width:100%;
  border-radius:var(--r-md);padding:13px 15px;text-align:left;
}
.choice--block input{margin-top:3px;flex:none}
.choice--block strong{color:var(--ink);font-weight:600}
