/* ==========================================================================
   Udaan Alumni Scholarship - design system
   Parul University
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
   /* Brand */
   --brand-900: #290a1f;
   --brand-800: #3d1529;
   --brand-700: #522033;
   --brand-600: #68303e;
   --brand-500: #85455a;
   --brand-100: #f6ecef;
   --brand-050: #fdf8f9;

   /* Accent - merit / scholarship gold */
   --gold-600: #a8801b;
   --gold-500: #c9a227;
   --gold-400: #e0bc4e;
   --gold-100: #fbf3dc;

   /* Neutrals, warm-tinted to sit with the maroon */
   --ink-900: #1a1417;
   --ink-700: #443c40;
   --ink-500: #6b6165;
   --ink-400: #8d8388;
   --ink-300: #c8c0c3;
   --ink-200: #e5dfe1;
   --ink-100: #f1ecee;
   --paper: #faf8f7;
   --surface: #ffffff;

   /* Status */
   --ok-600: #1f7a4d;
   --ok-100: #e6f5ed;
   --warn-600: #9a6700;
   --warn-100: #fdf5e2;
   --err-600: #b3261e;
   --err-100: #fceceb;
   --info-600: #1f5f8b;
   --info-100: #e8f2f9;

   /* Type */
   --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
   --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;

   /* Space / shape */
   --r-sm: 8px;
   --r-md: 12px;
   --r-lg: 18px;
   --r-xl: 26px;
   --r-pill: 999px;

   --shadow-xs: 0 1px 2px rgba(41, 10, 31, .06);
   --shadow-sm: 0 2px 8px rgba(41, 10, 31, .07);
   --shadow-md: 0 8px 24px rgba(41, 10, 31, .09);
   --shadow-lg: 0 20px 48px rgba(41, 10, 31, .14);

   --ring: 0 0 0 3px rgba(104, 48, 62, .18);
   --header-h: 68px;
}

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
   box-sizing: border-box;
}

html {
   -webkit-text-size-adjust: 100%;
   scroll-behavior: smooth;
}

body {
   margin: 0;
   font-family: var(--font-body);
   font-size: 15px;
   line-height: 1.6;
   color: var(--ink-900);
   background: var(--paper);
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

h1,
h2,
h3,
h4,
h5 {
   margin: 0 0 .5em;
   font-weight: 600;
   line-height: 1.25;
   letter-spacing: -.01em;
}

p {
   margin: 0 0 1em;
}

p:last-child {
   margin-bottom: 0;
}

a {
   color: var(--brand-600);
   text-decoration-thickness: 1px;
   text-underline-offset: 2px;
}

a:hover {
   color: var(--brand-800);
}

:focus-visible {
   outline: 2px solid var(--brand-600);
   outline-offset: 2px;
   border-radius: 4px;
}

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

/* ------------------------------------------------------------------ header */
.site-header {
   position: sticky;
   top: 0;
   z-index: 60;
   height: var(--header-h);
   display: flex;
   align-items: center;
   background: rgba(255, 255, 255, .88);
   backdrop-filter: saturate(180%) blur(12px);
   -webkit-backdrop-filter: saturate(180%) blur(12px);
   border-bottom: 1px solid var(--ink-200);
}

.site-header .container {
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
}

.uni-logo {
   height: 38px;
   width: auto;
}

.header-nav {
   display: flex;
   align-items: center;
   gap: .35rem;
}

/* Secondary header action - outlined so it reads as a button, not as text. */
.header-link {
   font-size: .84rem;
   font-weight: 600;
   color: var(--brand-700);
   text-decoration: none;
   padding: .5rem 1rem;
   border-radius: var(--r-pill);
   background: var(--brand-050);
   border: 1px solid var(--brand-100);
   transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.header-link:hover {
   background: var(--brand-100);
   border-color: var(--brand-500);
   color: var(--brand-800);
   box-shadow: var(--shadow-xs);
}

.header-link.is-primary {
   background: var(--brand-600);
   border-color: var(--brand-600);
   color: #fff;
}

/* "Check Result" - a clear call to action. It turns solid (is-primary) on its own
   when registration is closed, so it is the one button the visitor sees. */
.header-link.is-result {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   font-weight: 700;
}

.header-link.is-result::after {
   content: "\2192";
   font-size: 1em;
   line-height: 1;
   transition: transform .15s;
}

.header-link.is-result:hover::after {
   transform: translateX(3px);
}

.header-link.is-primary.is-result {
   padding: .55rem 1.15rem;
   box-shadow: var(--shadow-sm);
}

.header-link.is-primary:hover {
   background: var(--brand-800);
   border-color: var(--brand-800);
   color: #fff;
   box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------- hero */
/* The hero and the awardees band under it are one surface. The gradient lives
   here rather than on each block, because two blocks each starting their own
   gradient - even the same one - restart its light spot and draw a visible
   seam across the page. Clipping happens here too, so the hero's gold bloom
   spills into the band instead of being cut off at the hero's own edge. */
.hero-stack {
   position: relative;
   overflow: hidden;
   background:
      radial-gradient(120% 90% at 12% 0%, var(--brand-700) 0%, var(--brand-900) 58%);
   color: #fff;
}

.hero-stack .hero,
.hero-stack .awardees {
   background: none;
   color: inherit;
}

/* Let the bloom through to the wrapper, which does the clipping now. */
.hero-stack .hero {
   overflow: visible;
}

.hero {
   position: relative;
   overflow: hidden;
   background:
      radial-gradient(120% 140% at 12% 0%, var(--brand-700) 0%, var(--brand-900) 62%);
   color: #fff;
   padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(3rem, 7vw, 5.25rem);
}

.hero::after {
   /* soft gold bloom, purely decorative */
   content: "";
   position: absolute;
   inset: auto -10% -55% 55%;
   height: 130%;
   background: radial-gradient(circle at center, rgba(201, 162, 39, .30), transparent 62%);
   pointer-events: none;
}

.hero .container {
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
   position: relative;
   z-index: 1;
}

.hero-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: .5rem;
   font-size: .72rem;
   font-weight: 600;
   letter-spacing: .14em;
   text-transform: uppercase;
   color: var(--gold-400);
   background: rgba(255, 255, 255, .08);
   border: 1px solid rgba(224, 188, 78, .34);
   padding: .34rem .85rem;
   border-radius: var(--r-pill);
   margin-bottom: 1rem;
}

.hero h1 {
   font-family: var(--font-display);
   font-weight: 600;
   font-size: clamp(2rem, 5.2vw, 3.4rem);
   line-height: 1.08;
   letter-spacing: -.02em;
   margin-bottom: .5rem;
   max-width: 16ch;
}

.hero h1 em {
   font-style: italic;
   color: var(--gold-400);
}

.hero-sub {
   font-size: clamp(.95rem, 1.6vw, 1.08rem);
   color: rgba(255, 255, 255, .82);
   max-width: 56ch;
   margin-bottom: 1.5rem;
}

.hero-facts {
   display: flex;
   flex-wrap: wrap;
   gap: .5rem;
   list-style: none;
   padding: 0;
   margin: 0;
}

.hero-facts li {
   display: flex;
   align-items: baseline;
   gap: .45rem;
   font-size: .84rem;
   background: rgba(255, 255, 255, .10);
   border: 1px solid rgba(255, 255, 255, .16);
   padding: .5rem .9rem;
   border-radius: var(--r-pill);
   backdrop-filter: blur(4px);
}

.hero-facts b {
   font-weight: 600;
   color: #fff;
}

.hero-facts span {
   color: rgba(255, 255, 255, .70);
   font-size: .78rem;
}

/* ------------------------------------------------------------------ layout */
.page {
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
}

.layout {
   display: grid;
   grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
   gap: clamp(1.25rem, 3vw, 2.5rem);
   align-items: start;
   margin-top: clamp(-3.5rem, -4vw, -2.5rem);
   padding-bottom: 4rem;
   position: relative;
   z-index: 2;
}

.layout > * {
   min-width: 0;
}

/* The form is the primary action: it leads on small screens. */
.col-form {
   position: sticky;
   top: calc(var(--header-h) + 1.25rem);
}

/* ------------------------------------------------------------------- cards */
.card {
   background: var(--surface);
   border: 1px solid var(--ink-200);
   border-radius: var(--r-xl);
   box-shadow: var(--shadow-md);
}

.card-pad {
   padding: clamp(1.25rem, 3vw, 1.9rem);
}

.panel {
   background: var(--surface);
   border: 1px solid var(--ink-200);
   border-radius: var(--r-lg);
   padding: clamp(1.1rem, 2.5vw, 1.6rem);
   box-shadow: var(--shadow-xs);
   margin-bottom: 1rem;
}

.panel-title {
   font-family: var(--font-display);
   font-size: 1.22rem;
   font-weight: 600;
   color: var(--brand-800);
   margin-bottom: .9rem;
   display: flex;
   align-items: center;
   gap: .55rem;
}

.panel-title::before {
   content: "";
   width: 3px;
   height: 1.05em;
   border-radius: 2px;
   background: linear-gradient(var(--gold-500), var(--brand-600));
   flex: none;
}

/* --------------------------------------------------------------- form card */
.form-card__head {
   padding: 1.35rem clamp(1.25rem, 3vw, 1.9rem) 1.1rem;
   border-bottom: 1px solid var(--ink-200);
   background: linear-gradient(var(--brand-050), var(--surface));
   border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.form-card__head h2 {
   font-family: var(--font-display);
   font-size: 1.5rem;
   color: var(--brand-800);
   margin-bottom: .15rem;
}

.form-card__head p {
   font-size: .86rem;
   color: var(--ink-500);
}

.form-card__body {
   padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------------------------------------------------------------- stepper */
.stepper {
   display: flex;
   align-items: center;
   gap: .4rem;
   margin-bottom: 1.35rem;
}

.stepper li {
   display: flex;
   align-items: center;
   gap: .4rem;
   font-size: .74rem;
   font-weight: 500;
   color: var(--ink-400);
   white-space: nowrap;
}

.stepper ol,
.stepper {
   list-style: none;
   padding: 0;
   margin: 0 0 1.35rem;
}

.stepper .dot {
   width: 22px;
   height: 22px;
   flex: none;
   border-radius: 50%;
   display: grid;
   place-items: center;
   font-size: .7rem;
   font-weight: 600;
   background: var(--ink-100);
   color: var(--ink-400);
   border: 1px solid var(--ink-200);
   transition: .2s;
}

.stepper li.is-active {
   color: var(--brand-700);
}

.stepper li.is-active .dot {
   background: var(--brand-600);
   border-color: var(--brand-600);
   color: #fff;
}

.stepper li.is-done .dot {
   background: var(--ok-600);
   border-color: var(--ok-600);
   color: #fff;
}

.stepper li.is-done {
   color: var(--ok-600);
}

.stepper .bar {
   flex: 1;
   height: 1px;
   background: var(--ink-200);
   min-width: 10px;
}

/* ------------------------------------------------------------------ fields */
.field {
   margin-bottom: 1.05rem;
}

.form-label,
.field > label {
   display: block;
   font-size: .8rem;
   font-weight: 600;
   color: var(--ink-700);
   margin-bottom: .4rem;
}

.field-hint {
   font-size: .76rem;
   color: var(--ink-500);
   margin-top: .35rem;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
   width: 100%;
   font: inherit;
   font-size: .92rem;
   color: var(--ink-900);
   background: var(--surface);
   border: 1px solid var(--ink-300);
   border-radius: var(--r-md);
   padding: .68rem .85rem;
   transition: border-color .15s, box-shadow .15s;
   -webkit-appearance: none;
   appearance: none;
}

textarea {
   min-height: 90px;
   resize: vertical;
}

.form-select,
select {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6165' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right .85rem center;
   padding-right: 2.3rem;
}

.form-control::placeholder {
   color: var(--ink-400);
}

.form-control:focus,
.form-select:focus,
select:focus,
input:focus,
textarea:focus {
   outline: none;
   border-color: var(--brand-600);
   box-shadow: var(--ring);
}

.form-control:disabled,
select:disabled {
   background: var(--ink-100);
   color: var(--ink-400);
   cursor: not-allowed;
}

.input-group {
   display: flex;
   gap: .5rem;
}

.input-group .form-control {
   flex: 1;
}

@media (max-width: 400px) {
   .input-group {
      flex-direction: column;
   }
}

/* ----------------------------------------------------------------- buttons */
.btn {
   --btn-bg: var(--brand-600);
   --btn-fg: #fff;
   --btn-bd: var(--brand-600);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: .5rem;
   font: inherit;
   font-size: .89rem;
   font-weight: 600;
   line-height: 1.2;
   padding: .72rem 1.15rem;
   border-radius: var(--r-md);
   border: 1px solid var(--btn-bd);
   background: var(--btn-bg);
   color: var(--btn-fg);
   cursor: pointer;
   text-decoration: none;
   white-space: nowrap;
   transition: transform .08s, box-shadow .15s, background .15s, opacity .15s;
}

.btn:hover:not(:disabled) {
   box-shadow: var(--shadow-sm);
   color: var(--btn-fg);
}

.btn:active:not(:disabled) {
   transform: translateY(1px);
}

.btn:disabled {
   opacity: .55;
   cursor: not-allowed;
}

.btn-primary {
   --btn-bg: var(--brand-600);
   --btn-bd: var(--brand-600);
}

.btn-primary:hover:not(:disabled) {
   --btn-bg: var(--brand-700);
}

.btn-dark {
   --btn-bg: var(--brand-900);
   --btn-bd: var(--brand-900);
}

.btn-gold {
   --btn-bg: var(--gold-500);
   --btn-bd: var(--gold-500);
   --btn-fg: var(--brand-900);
}

.btn-gold:hover:not(:disabled) {
   --btn-bg: var(--gold-400);
}

.btn-success {
   --btn-bg: var(--ok-600);
   --btn-bd: var(--ok-600);
}

.btn-danger {
   --btn-bg: var(--err-600);
   --btn-bd: var(--err-600);
}

.btn-outline,
.btn-outline-primary {
   --btn-bg: transparent;
   --btn-fg: var(--brand-700);
   --btn-bd: var(--ink-300);
}

.btn-outline:hover:not(:disabled),
.btn-outline-primary:hover:not(:disabled) {
   --btn-bg: var(--brand-100);
   --btn-bd: var(--brand-500);
}

.btn-ghost {
   --btn-bg: transparent;
   --btn-fg: var(--ink-700);
   --btn-bd: transparent;
}

.btn-ghost:hover:not(:disabled) {
   --btn-bg: var(--ink-100);
}

.btn-link {
   background: none;
   border: 0;
   padding: .35rem .1rem;
   font: inherit;
   font-size: .82rem;
   font-weight: 500;
   color: var(--brand-600);
   cursor: pointer;
   text-decoration: underline;
   text-underline-offset: 2px;
}

.btn-link:disabled {
   color: var(--ink-400);
   cursor: not-allowed;
   text-decoration: none;
}

.btn-sm {
   font-size: .8rem;
   padding: .48rem .8rem;
}

.btn-lg {
   font-size: .96rem;
   padding: .88rem 1.4rem;
}

.w-100 {
   width: 100%;
}

/* Spinner shown while a button is busy */
.btn.is-busy {
   position: relative;
   color: transparent !important;
   pointer-events: none;
}

.btn.is-busy::after {
   content: "";
   position: absolute;
   width: 16px;
   height: 16px;
   border: 2px solid rgba(255, 255, 255, .45);
   border-top-color: #fff;
   border-radius: 50%;
   animation: spin .6s linear infinite;
}

.btn-outline.is-busy::after,
.btn-gold.is-busy::after {
   border-color: rgba(41, 10, 31, .25);
   border-top-color: var(--brand-800);
}

@keyframes spin {
   to {
      transform: rotate(360deg);
   }
}

/* ------------------------------------------------------------------- steps */
.step {
   display: none;
}

.step.active {
   display: block;
   animation: stepIn .28s ease-out;
}

@keyframes stepIn {
   from {
      opacity: 0;
      transform: translateY(6px);
   }

   to {
      opacity: 1;
      transform: none;
   }
}

.step-title {
   font-family: var(--font-display);
   font-size: 1.2rem;
   color: var(--brand-800);
   margin-bottom: .2rem;
}

.step-lede {
   font-size: .84rem;
   color: var(--ink-500);
   margin-bottom: 1.15rem;
}

/* ------------------------------------------------------------ student card */
.student-card {
   background: var(--brand-050);
   border: 1px solid var(--brand-100);
   border-radius: var(--r-lg);
   padding: 1rem 1.1rem;
   margin: 1rem 0;
}

.student-card__name {
   font-family: var(--font-display);
   font-size: 1.12rem;
   font-weight: 600;
   color: var(--brand-800);
   margin-bottom: .15rem;
}

.student-card__meta {
   font-size: .8rem;
   color: var(--ink-500);
   margin-bottom: .85rem;
}

.dl {
   display: grid;
   grid-template-columns: auto 1fr;
   gap: .4rem .9rem;
   margin: 0;
   font-size: .84rem;
}

.dl dt {
   color: var(--ink-500);
   font-weight: 500;
}

.dl dd {
   margin: 0;
   color: var(--ink-900);
   font-weight: 500;
   word-break: break-word;
}

/* ------------------------------------------------------------ radio cards */
.choice-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
   gap: .6rem;
}

.choice-grid--2 {
   grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice {
   position: relative;
   display: block;
   cursor: pointer;
   margin: 0;
}

.choice input {
   position: absolute;
   opacity: 0;
   width: 0;
   height: 0;
}

.radio-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: .15rem;
   text-align: center;
   min-height: 62px;
   padding: .7rem .6rem;
   font-size: .87rem;
   font-weight: 500;
   color: var(--ink-700);
   background: var(--surface);
   border: 1.5px solid var(--ink-200);
   border-radius: var(--r-md);
   transition: .16s;
}

.choice:hover .radio-card {
   border-color: var(--brand-500);
   background: var(--brand-050);
}

.choice input:checked + .radio-card {
   border-color: var(--brand-600);
   background: var(--brand-100);
   color: var(--brand-800);
   box-shadow: var(--ring);
   font-weight: 600;
}

.choice input:focus-visible + .radio-card {
   outline: 2px solid var(--brand-600);
   outline-offset: 2px;
}

.choice input:disabled + .radio-card,
.radio-card.disabled-date {
   opacity: .55;
   cursor: not-allowed;
   background: var(--ink-100);
   border-color: var(--ink-200);
   color: var(--ink-400);
   box-shadow: none;
}

.radio-card small {
   font-size: .7rem;
   font-weight: 500;
   color: var(--ink-400);
}

/* ------------------------------------------------------------------ alerts */
.alert {
   font-size: .86rem;
   padding: .8rem 1rem;
   border-radius: var(--r-md);
   border: 1px solid transparent;
   margin-bottom: 1rem;
}

.alert-success {
   background: var(--ok-100);
   border-color: rgba(31, 122, 77, .25);
   color: var(--ok-600);
}

.alert-danger {
   background: var(--err-100);
   border-color: rgba(179, 38, 30, .22);
   color: var(--err-600);
}

.alert-warning {
   background: var(--warn-100);
   border-color: rgba(154, 103, 0, .25);
   color: var(--warn-600);
}

.alert-info {
   background: var(--info-100);
   border-color: rgba(31, 95, 139, .22);
   color: var(--info-600);
}

/* Floating toast used by the enrolment form.
   Above .modal (300): "Invalid OTP" is answered inside the change-number box,
   and a toast behind the backdrop is a toast nobody reads. */
#alert {
   position: fixed;
   left: 50%;
   bottom: 1.25rem;
   transform: translateX(-50%);
   z-index: 400;
   width: min(520px, calc(100% - 2rem));
   margin: 0;
   box-shadow: var(--shadow-lg);
   background: var(--surface);
}

/* ------------------------------------------------- payment processing veil */
.pay-processing {
   position: fixed;
   inset: 0;
   z-index: 100000;
   display: grid;
   place-items: center;
   padding: 1.5rem;
   background: rgba(26, 20, 23, .72);
   backdrop-filter: blur(3px);
   -webkit-backdrop-filter: blur(3px);
}

.pay-processing__box {
   width: min(360px, 100%);
   text-align: center;
   background: var(--surface);
   border-radius: var(--r-lg);
   padding: 1.75rem 1.5rem;
   box-shadow: var(--shadow-lg);
}

.pay-processing__spinner {
   width: 34px;
   height: 34px;
   margin: 0 auto 1rem;
   border: 3px solid var(--brand-100);
   border-top-color: var(--brand-600);
   border-radius: 50%;
   animation: spin .7s linear infinite;
}

.pay-processing__text {
   font-size: .95rem;
   font-weight: 600;
   color: var(--brand-800);
   margin-bottom: .35rem;
}

.pay-processing__hint {
   font-size: .8rem;
   color: var(--ink-500);
}

/* ------------------------------------------------------------------ notice */
.notice {
   display: flex;
   gap: .7rem;
   font-size: .84rem;
   line-height: 1.55;
   background: var(--gold-100);
   border: 1px solid rgba(201, 162, 39, .3);
   border-radius: var(--r-md);
   padding: .8rem .95rem;
   color: #6b5410;
}

.notice svg {
   flex: none;
   margin-top: .15rem;
}

/* -------------------------------------------------------------------- tabs */
.tabs {
   display: flex;
   gap: .25rem;
   padding: .3rem;
   background: var(--ink-100);
   border-radius: var(--r-pill);
   margin-bottom: 1.1rem;
   overflow-x: auto;
   scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
   display: none;
}

.tab-btn {
   flex: 1;
   min-width: max-content;
   font: inherit;
   font-size: .8rem;
   font-weight: 600;
   color: var(--ink-500);
   background: transparent;
   border: 0;
   border-radius: var(--r-pill);
   padding: .55rem 1rem;
   cursor: pointer;
   transition: .16s;
}

.tab-btn:hover {
   color: var(--brand-700);
}

.tab-btn.active {
   background: var(--surface);
   color: var(--brand-800);
   box-shadow: var(--shadow-xs);
}

.tab-pane {
   display: none;
}

.tab-pane.active {
   display: block;
   animation: stepIn .25s ease-out;
}

/* ------------------------------------------------------------ tier / grid */
.tier-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: .7rem;
}

.tier {
   position: relative;
   background: linear-gradient(var(--surface), var(--brand-050));
   border: 1px solid var(--ink-200);
   border-radius: var(--r-md);
   padding: .95rem 1rem;
   overflow: hidden;
}

.tier::before {
   content: "";
   position: absolute;
   inset: 0 auto 0 0;
   width: 3px;
   background: linear-gradient(var(--gold-500), var(--brand-600));
}

.tier__band {
   font-size: .72rem;
   font-weight: 600;
   letter-spacing: .06em;
   text-transform: uppercase;
   color: var(--ink-500);
   margin-bottom: .2rem;
}

.tier__value {
   font-family: var(--font-display);
   font-size: 1.55rem;
   font-weight: 700;
   color: var(--brand-700);
   line-height: 1;
   margin-bottom: .2rem;
}

.tier__note {
   font-size: .76rem;
   color: var(--ink-500);
}

/* ------------------------------------------------------------- timeline */
.timeline {
   list-style: none;
   margin: 0;
   padding: 0 0 0 1.4rem;
   position: relative;
}

.timeline::before {
   content: "";
   position: absolute;
   left: 5px;
   top: .4rem;
   bottom: .4rem;
   width: 1.5px;
   background: linear-gradient(var(--gold-400), var(--brand-500));
}

.timeline li {
   position: relative;
   padding-bottom: 1.05rem;
}

.timeline li:last-child {
   padding-bottom: 0;
}

.timeline li::before {
   content: "";
   position: absolute;
   left: -1.4rem;
   top: .42rem;
   width: 11px;
   height: 11px;
   border-radius: 50%;
   background: var(--surface);
   border: 2.5px solid var(--brand-600);
}

.timeline h4 {
   font-size: .9rem;
   margin-bottom: .12rem;
   color: var(--brand-800);
}

.timeline p {
   font-size: .83rem;
   color: var(--ink-500);
   margin: 0;
}

/* ---------------------------------------------------------------- content */
.prose {
   font-size: .88rem;
   color: var(--ink-700);
}

.prose ul {
   margin: 0 0 .9rem;
   padding-left: 1.1rem;
}

.prose li {
   margin-bottom: .32rem;
}

.prose li::marker {
   color: var(--brand-500);
}

.meta-row {
   display: flex;
   flex-wrap: wrap;
   gap: .5rem;
   margin-top: .9rem;
}

.chip {
   display: inline-flex;
   align-items: center;
   gap: .35rem;
   font-size: .78rem;
   font-weight: 500;
   color: var(--brand-800);
   background: var(--brand-100);
   border: 1px solid rgba(104, 48, 62, .16);
   padding: .35rem .75rem;
   border-radius: var(--r-pill);
}

.chip--gold {
   background: var(--gold-100);
   border-color: rgba(201, 162, 39, .3);
   color: #6b5410;
}

/* ---------------------------------------------------------------- announce
   The one line that has to be read before anything else, directly under the
   header. Gold rather than a tinted notice box: it sits above the hero, where
   a quiet panel would simply be scrolled past. */
.announce {
   background: linear-gradient(90deg, var(--gold-500), var(--gold-400) 55%, var(--gold-500));
   color: #3a2c04;
   border-bottom: 3px solid var(--brand-800);
}

.announce .container {
   /* Deliberately not flex. The message is one sentence, and a flex gap makes
      a separate item of every text node around an inline <strong> - which
      opens a space before the full stop that follows the emphasised date. */
   padding-block: .85rem;
   font-size: 1.05rem;
   font-weight: 600;
   line-height: 1.4;
   text-align: center;
}

/* A soft light sweep across the bar every few seconds, so a new notice is
   noticed without a blinking banner. Switched off for reduced-motion users. */
.announce {
   position: relative;
   overflow: hidden;
}

.announce::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
   transform: translateX(-100%);
   animation: announce-sweep 4s ease-in-out 1s infinite;
   pointer-events: none;
}

@keyframes announce-sweep {
   0%        { transform: translateX(-100%); }
   45%, 100% { transform: translateX(100%); }
}

/* Flash: the bar pulses brighter, the headline text blinks, and the button
   sends out a ring - all on the same 1.6s beat. */
.announce {
   animation: announce-flash 1.6s ease-in-out infinite;
}

.announce strong,
.announce b {
   animation: announce-blink 1.6s ease-in-out infinite;
}

.announce a {
   animation: announce-ring 1.6s ease-out infinite;
}

@keyframes announce-flash {
   0%, 100% { filter: brightness(1); }
   50%      { filter: brightness(1.22); }
}

@keyframes announce-blink {
   0%, 100% { opacity: 1; }
   50%      { opacity: .55; }
}

@keyframes announce-ring {
   0%   { box-shadow: 0 0 0 0 rgba(61, 21, 41, .6); }
   70%  { box-shadow: 0 0 0 9px rgba(61, 21, 41, 0); }
   100% { box-shadow: 0 0 0 0 rgba(61, 21, 41, 0); }
}

@media (prefers-reduced-motion: reduce) {
   .announce,
   .announce::after,
   .announce strong,
   .announce b,
   .announce a,
   .announce .container::before {
      animation: none;
   }
}

.announce strong,
.announce b {
   /* Authored copy can emphasise the date itself; keep it in the same ink so
      it reads as weight rather than as a second colour on gold. */
   color: inherit;
   font-weight: 800;
}

/* A link inside the bar reads as a button - e.g. "Check Your Result". */
.announce a {
   display: inline-block;
   margin-left: .65rem;
   padding: .42rem 1.15rem;
   border-radius: var(--r-pill);
   background: var(--brand-800);
   color: #fff;
   font-size: .95rem;
   font-weight: 700;
   line-height: 1.3;
   text-decoration: none;
   white-space: nowrap;
   box-shadow: 0 1px 3px rgba(58, 44, 4, .3);
   transition: background .15s, transform .15s;
}

.announce a:hover {
   background: var(--brand-700);
   color: #fff;
   transform: translateY(-1px);
}

/* A pulsing red dot ahead of the message - the "live" cue. */
.announce .container::before {
   content: "";
   display: inline-block;
   width: .7em;
   height: .7em;
   margin-right: .55em;
   border-radius: 50%;
   background: #d92d20;
   vertical-align: .05em;
   animation: announce-dot 1.2s ease-out infinite;
}

@keyframes announce-dot {
   0%   { box-shadow: 0 0 0 0 rgba(217, 45, 32, .75); }
   70%  { box-shadow: 0 0 0 .6em rgba(217, 45, 32, 0); }
   100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}

@media (max-width: 560px) {
   .announce .container {
      font-size: .92rem;
      padding-block: .7rem;
   }

   .announce a {
      display: block;
      width: fit-content;
      margin: .5rem auto 0;
   }
}

/* ------------------------------------------------------------------ ticker */
.ticker {
   overflow: hidden;
   background: var(--brand-900);
   color: rgba(255, 255, 255, .9);
   font-size: .8rem;
   padding: .55rem 0;
   border-radius: var(--r-pill);
   margin-bottom: 1rem;
}

.ticker__track {
   display: flex;
   gap: 3rem;
   width: max-content;
   animation: ticker 26s linear infinite;
   padding-left: 1rem;
}

.ticker:hover .ticker__track {
   animation-play-state: paused;
}

@keyframes ticker {
   from {
      transform: translateX(0);
   }

   to {
      transform: translateX(-50%);
   }
}

@media (prefers-reduced-motion: reduce) {

   .ticker__track {
      animation: none;
      width: auto;
      padding: 0 1rem;
   }

   .ticker__track span:nth-child(n+2) {
      display: none;
   }

   *,
   *::before,
   *::after {
      animation-duration: .01ms !important;
      transition-duration: .01ms !important;
   }
}

/* ------------------------------------------------------------------ result */
.result-hero {
   text-align: center;
   padding: 1.6rem 0 .6rem;
}

.result-badge {
   width: 62px;
   height: 62px;
   margin: 0 auto 1rem;
   border-radius: 50%;
   display: grid;
   place-items: center;
   background: var(--ok-100);
   color: var(--ok-600);
}

.result-badge.is-error {
   background: var(--err-100);
   color: var(--err-600);
}

.result-badge.is-warn {
   background: var(--warn-100);
   color: var(--warn-600);
}

.data-table {
   width: 100%;
   border-collapse: collapse;
   font-size: .86rem;
}

.data-table th,
.data-table td {
   text-align: left;
   padding: .7rem .85rem;
   border-bottom: 1px solid var(--ink-200);
   vertical-align: top;
}

.data-table th {
   width: 42%;
   font-weight: 500;
   color: var(--ink-500);
}

.data-table td {
   font-weight: 600;
   color: var(--ink-900);
   word-break: break-word;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
   border-bottom: 0;
}

.table-wrap {
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
   background: var(--brand-900);
   color: rgba(255, 255, 255, .62);
   font-size: .8rem;
   padding: 1.6rem 0;
   margin-top: auto;
}

.site-footer .container {
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
   display: flex;
   flex-wrap: wrap;
   gap: .6rem 1.5rem;
   align-items: center;
   justify-content: space-between;
}

.site-footer a {
   color: rgba(255, 255, 255, .82);
   text-decoration: none;
}

.site-footer a:hover {
   color: #fff;
   text-decoration: underline;
}

/* -------------------------------------------------------------- shell/util */
.shell {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

.shell > main {
   flex: 1;
}

.centered-page {
   width: min(680px, 100% - 2.5rem);
   margin: clamp(2rem, 6vw, 4rem) auto;
}

.text-muted {
   color: var(--ink-500);
}

.text-center {
   text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.stack > * + * {
   margin-top: 1rem;
}

.row-between {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: .75rem;
   flex-wrap: wrap;
}

.countdown {
   font-variant-numeric: tabular-nums;
   font-weight: 600;
   font-size: .82rem;
   color: var(--err-600);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
   .layout {
      grid-template-columns: 1fr;
      margin-top: -2rem;
   }

   /* On phones the form is what people came for - put it first. */
   .col-form {
      position: static;
      order: -1;
   }

   .hero {
      padding-bottom: 3.5rem;
   }
}

@media (max-width: 560px) {
   :root {
      --header-h: 58px;
   }

   body {
      font-size: 14.5px;
   }

   .site-header .container,
   .hero .container,
   .page,
   .site-footer .container {
      width: calc(100% - 1.75rem);
   }

   .uni-logo {
      height: 26px;
   }

   /* Keep the header on one line - the logo is wide, so the nav has to be
      compact rather than wrapping "Check Result" onto two rows. */
   .site-header .container {
      gap: .5rem;
   }

   .header-nav {
      flex: none;
      gap: .15rem;
   }

   .header-link {
      font-size: .76rem;
      padding: .42rem .6rem;
      white-space: nowrap;
   }

   .card {
      border-radius: var(--r-lg);
   }

   .form-card__head {
      border-radius: var(--r-lg) var(--r-lg) 0 0;
   }

   .stepper li span:not(.dot) {
      display: none;
   }

   .hero-facts li {
      font-size: .78rem;
      padding: .42rem .75rem;
   }
}

/* --------------------------------------------------- modal (change mobile) */
.modal {
   position: fixed;
   inset: 0;
   z-index: 300;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 1rem;
}

/* The base reset only hides [hidden] elements that are not display:flex. */
.modal[hidden] {
   display: none;
}

.modal__backdrop {
   position: absolute;
   inset: 0;
   background: rgba(41, 10, 31, .55);
   -webkit-backdrop-filter: blur(2px);
   backdrop-filter: blur(2px);
}

.modal__panel {
   position: relative;
   width: 100%;
   max-width: 420px;
   max-height: calc(100vh - 2rem);
   overflow-y: auto;
   padding: 1.6rem 1.4rem 1.3rem;
   background: var(--surface);
   border: 1px solid var(--ink-200);
   border-radius: var(--r-lg);
   box-shadow: var(--shadow-lg);
   animation: modal-in .18s ease-out;
}

@keyframes modal-in {
   from {
      opacity: 0;
      transform: translateY(10px) scale(.985);
   }

   to {
      opacity: 1;
      transform: none;
   }
}

@media (prefers-reduced-motion: reduce) {
   .modal__panel {
      animation: none;
   }
}

.modal__x {
   position: absolute;
   top: .6rem;
   right: .6rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
   padding: 0;
   background: transparent;
   border: 0;
   border-radius: var(--r-pill);
   color: var(--ink-400);
   cursor: pointer;
}

.modal__x:hover {
   background: var(--ink-100);
   color: var(--ink-700);
}

/* Which address the code went to. */
.cm-to {
   margin: 0 0 1rem;
   padding: .6rem .8rem;
   background: var(--brand-050);
   border: 1px solid var(--brand-100);
   border-radius: var(--r-md);
   font-size: .85rem;
   color: var(--ink-700);
   word-break: break-all;
}

.cm-to strong {
   color: var(--brand-700);
}

/* Stops the page behind the panel scrolling under a touch drag. */
body.modal-open {
   overflow: hidden;
}

/* ================================================================ awardees
   Last year's winners, laid out the way the 2026-27 deck lays them out: one
   band per award, a yellow pill naming it, and the count of everyone who
   did not fit turned on its side against the right-hand edge.

   Desktop is a still four-by-two grid - the slide, essentially. A phone has no
   room for four columns, so the same cards become one scrolling row there and
   the duplicate set (.aw--dupe, hidden on desktop) comes out of hiding to
   cover the loop. The track slides 0 to -50%, which lands the copy exactly
   where the original started, so there is no seam. Cards are spaced with
   margin-right rather than the track's `gap`: a gap leaves half a gap
   unaccounted for at the -50% mark and the row jumps once per lap.

   Note the aw- prefix on the per-award rows. `.tier` is already the info
   panel's percentile card - a white box with a border and a gold spine - and
   an unprefixed .tier here inherited every bit of it, which is what turned
   this band white.
   ========================================================================== */
.awardees {
   /* The deck's layout, the site's colours. The tile is what shows while a
      photograph is still loading and behind any that does not fill its frame,
      so it is tinted out of the brand rather than left near-white - a white
      rectangle flashing on a maroon band reads as a broken image. */
   --aw-tile: #6b4553;

   position: relative;
   overflow: hidden;
   background: var(--brand-900);
   color: #fff;
   /* Inside .hero-stack the band eats most of the hero's bottom padding, and
      carries enough of its own below the faces for the registration card -
      which pulls up over it - to land on the surface rather than on a name. */
   padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(4rem, 7vw, 5.5rem);
   margin-top: clamp(-3.5rem, -5vw, -2rem);
}

.awardees__wrap {
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
}

/* ------------------------------------------------------------------- head */
.awardees__head {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 1rem 1.5rem;
   margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.awardees__title {
   margin: 0;
   font-family: var(--font-body);
   font-size: clamp(1.45rem, 3.2vw, 2.35rem);
   font-weight: 800;
   line-height: 1.15;
   letter-spacing: -.02em;
   color: #fff;
}

/* The way down to the form, for a visitor who never scrolls. */
.awardees__cta {
   display: inline-flex;
   align-items: center;
   gap: .5rem;
   flex: none;
   padding: .78rem 1.5rem;
   font-size: .92rem;
   font-weight: 700;
   text-decoration: none;
   color: #3a2c04;
   background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
   border-radius: var(--r-pill);
   box-shadow: 0 6px 18px rgba(41, 10, 31, .35);
   transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.awardees__cta:hover,
.awardees__cta:focus-visible {
   color: #3a2c04;
   transform: translateY(-2px);
   box-shadow: 0 10px 26px rgba(41, 10, 31, .45);
   filter: brightness(1.04);
}

.awardees__cta svg {
   transition: transform .2s ease;
}

.awardees__cta:hover svg {
   transform: translateY(2px);
}

/* ------------------------------------------------------------------ tiers */
.aw-tier {
   margin-bottom: clamp(1.3rem, 3vw, 1.9rem);
}

.aw-tier__head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   margin-bottom: .75rem;
}

.aw-tier__pill {
   background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
   color: #3a2c04;
   font-size: .78rem;
   font-weight: 800;
   letter-spacing: .06em;
   text-transform: uppercase;
   padding: .42rem 1rem;
   border-radius: 8px;
}

.aw-tier__pill--plain {
   background: rgba(255, 255, 255, .14);
   color: #fff;
}

.aw-tier__more {
   color: var(--gold-400);
   font-weight: 800;
   white-space: nowrap;
}

/* On the slide this sits on its side against the right edge, reading upwards.
   The inline twin is for the phone, where there is no right edge to spare. */
.aw-tier__more--side {
   writing-mode: vertical-rl;
   transform: rotate(180deg);
   font-size: clamp(1.1rem, 2.2vw, 1.75rem);
   letter-spacing: -.01em;
   align-self: stretch;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0 .35rem;
}

.aw-tier__more--inline {
   display: none;
   font-size: .95rem;
}

/* ------------------------------------------------------ desktop: the slide */
.aw-tier__body {
   display: flex;
   align-items: stretch;
   gap: clamp(.75rem, 2vw, 1.5rem);
   width: min(1240px, 100% - 2.5rem);
   margin-inline: auto;
}

.aw-tier__body .marquee {
   flex: 1 1 auto;
   min-width: 0;
}

.marquee__track {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: clamp(.9rem, 2vw, 1.5rem) clamp(.75rem, 1.6vw, 1.25rem);
}

/* Only the marquee needs a second set of cards. */
.aw--dupe {
   display: none;
}

/* ------------------------------------------------------------------- card */
.aw {
   /* Capped and centred in its grid column rather than stretched to fill it.
      The deck sets small portraits in a lot of air; a card that grows to a
      quarter of a 1240px container is nearly 400px tall and reads as a poster
      instead of a row of faces. */
   max-width: 180px;
   margin: 0 auto;
   text-align: center;
}

.aw__photo {
   aspect-ratio: 5 / 6;
   border-radius: 14px;
   overflow: hidden;
   background: var(--aw-tile);
   margin-bottom: .55rem;
}

.aw__photo img {
   width: 100%;
   height: 100%;
   /* Portraits arrive at every size and crop; centre a little high so the
      face stays in frame rather than the shoulders. */
   object-fit: cover;
   object-position: center 20%;
}

.aw__name,
.aw__course {
   display: block;
}

.aw__name {
   /* Two lines at a fixed height - full names run to 37 characters, and one
      clipped line loses most of them. Fixed, so every card in the row is the
      same height however short the name. */
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   height: 2.5em;
   font-size: .8rem;
   font-weight: 700;
   line-height: 1.25;
   color: #fff;
}

.aw__course {
   font-size: .7rem;
   line-height: 1.35;
   color: rgba(255, 255, 255, .62);
   margin-top: .15rem;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

/* -------------------------------------------------- phone: one moving row */
@media (max-width: 760px) {
   .awardees__wrap,
   .aw-tier__body {
      width: calc(100% - 1.75rem);
   }

   .aw-tier__body {
      display: block;
   }

   .awardees__cta {
      width: 100%;
      justify-content: center;
   }

   .aw-tier__more--side {
      display: none;
   }

   .aw-tier__more--inline {
      display: inline;
   }

   /* Full bleed, so the row runs off both edges of the screen. */
   .aw-tier__body {
      width: 100%;
   }

   .marquee {
      overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
   }

   .marquee__track {
      display: flex;
      width: max-content;
      animation: awardees-scroll var(--marquee-speed, 70s) linear infinite;
      will-change: transform;
   }

   .marquee--reverse .marquee__track {
      animation-direction: reverse;
   }

   /* Let someone stop the row to read a name. */
   .marquee:active .marquee__track,
   .marquee:focus-within .marquee__track {
      animation-play-state: paused;
   }

   .aw {
      flex: 0 0 auto;
      width: clamp(116px, 33vw, 148px);
      max-width: none;
      margin: 0 clamp(.55rem, 2vw, .9rem) 0 0;
   }

   .aw--dupe {
      display: block;
   }
}

@keyframes awardees-scroll {
   from {
      transform: translate3d(0, 0, 0);
   }

   to {
      transform: translate3d(-50%, 0, 0);
   }
}

/* Someone who has asked for less movement gets a row they scroll themselves,
   with the duplicated cards - which exist only to cover the loop - removed. */
@media (prefers-reduced-motion: reduce) {
   .marquee {
      overflow-x: auto;
      scroll-snap-type: x proximity;
      padding-bottom: .5rem;
      -webkit-mask-image: none;
      mask-image: none;
   }

   .marquee__track {
      animation: none;
   }

   .aw--dupe {
      display: none;
   }

   .aw {
      scroll-snap-align: start;
   }
}

@media print {

   .site-header,
   .site-footer,
   .awardees,
   .btn,
   #alert {
      display: none !important;
   }

   body {
      background: #fff;
   }

   .card {
      box-shadow: none;
      border: 1px solid #ccc;
   }
}
