/* The supplied poster sets the visual direction. Forms retain a quiet reading surface. */
:root {
  --navy: #222832;
  --navy-soft: #414957;
  --paper: #f0eeeb;
  --line: #e4e1dc;
  --mint: #ec2638;
  --muted: #747982;
  --red: #b51c30;
  --heading: "Bahnschrift SemiCondensed", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --signal: #f22436;
  --ink: #0c1017;
}

body { background: var(--ink); }
html { scroll-padding-top: 0; }
:focus-visible { outline-color: #508cc8 !important; }
.masthead {
  max-width: none;
  height: 72px;
  padding: 12px max(24px, calc((100% - 802px) / 2));
  justify-content: flex-start;
  background: linear-gradient(180deg, #080e17b3, #0c101700);
  color: #f6f5f2;
  border-bottom: 0;
}
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.school-logo { display: block; width: 240px; max-width: 68vw; height: auto; filter: drop-shadow(0 1px 3px #0008); }
body[data-view="home"] .masthead { position: absolute; z-index: 4; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, 540px, calc(100svh * 941 / 1672)); height: 82px; padding: 9px 18px 24px; align-items: flex-start; background: linear-gradient(180deg, #07101bdb, #07101b69 62%, #07101b00); }
.service-notice { position: relative; z-index: 2; background: #1c2633; border-color: #6d89a6; color: #d0dbe6; }
.service-notice.is-error { background: #341c23; color: #ffd8dd; border-color: var(--signal); }

.poster-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #0b1019;
}
.poster-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px;
  background: linear-gradient(90deg, #090e19cf, #13151acc, #190f14dc), url("./assets/campus-poster-raised.webp") center 42% / cover;
  filter: blur(22px);
}
.poster-scene {
  position: relative;
  width: min(100%, 540px, calc(100svh * 941 / 1672));
  aspect-ratio: 941 / 1672;
  overflow: hidden;
  background: #080b10;
  box-shadow: 0 0 75px #0008;
}
.event-poster { display: block; width: 100%; height: auto; }
.poster-scene::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, #080b1026 24%, #080b10c9 77%, #080b10f5);
  pointer-events: none;
}
.poster-actions {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 11px;
  color: #fff;
}
.poster-eligibility { margin: 0 0 1px; font-size: 11px; line-height: 1.5; color: #f4eff0; text-shadow: 0 1px 7px #000; }
.poster-eligibility > span { color: #ff8391; font-size: 14px; margin-right: 2px; }
.poster-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 13px 24px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 7px;
  background: radial-gradient(ellipse at 24% 0%, #ffd4de45, transparent 58%) padding-box, linear-gradient(180deg, #d83b53 0%, #a41b35 52%, #74152c 100%) padding-box, linear-gradient(125deg, #ffb6c3 0%, #db637c 35%, #6d293b 74%, #f5a2b2) border-box;
  color: #fff;
  border: 1px solid transparent;
  clip-path: none;
  box-shadow: inset 0 1px 0 #fff3, inset 0 -1px 0 #3c071c99, 0 8px 24px #0008, 0 0 27px #f52b4226;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.poster-primary::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -55%; top: -60%; width: 42%; height: 220%; background: linear-gradient(90deg, transparent, #ffe5ec35, #fff8, #ffe5ec35, transparent); transform: translateX(-20%) skewX(-24deg); animation: button-sweep 7.6s ease-in-out infinite; }
.poster-primary::after { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid #fff2; border-bottom-color: #fff1; border-radius: 4px; }
.poster-primary strong { position: relative; z-index: 1; display: block; font-size: 24px; line-height: 1.4; letter-spacing: 3px; font-family: var(--heading); font-weight: 750; text-shadow: 0 1px 1px #5f0a2b88; }
.poster-primary svg { position: relative; z-index: 1; width: 34px; height: 24px; fill: none; stroke: #fff3f5; stroke-width: 1.35; filter: drop-shadow(0 1px 1px #4c0d24); }
.poster-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff5, inset 0 -1px 0 #3c071c99, 0 10px 28px #0009, 0 0 35px #f52b423b; }
.poster-primary:focus-visible { outline: 2px solid #fff !important; outline-offset: 4px; }
.poster-primary:active { transform: translateY(1px); }
.button-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.button-particles i { position: absolute; left: 12%; bottom: 0; width: 2px; height: 2px; border-radius: 50%; opacity: 0; background: #ffe6ec; box-shadow: 0 0 5px 1px #ffb0c3b3; animation: button-particle 5.4s ease-in-out infinite; }
.button-particles i:nth-child(2) { left: 31%; width: 1px; height: 1px; animation-delay: 1.5s; animation-duration: 6.2s; }
.button-particles i:nth-child(3) { left: 52%; animation-delay: 3.3s; animation-duration: 6.8s; }
.button-particles i:nth-child(4) { left: 73%; width: 1px; height: 1px; animation-delay: .7s; animation-duration: 5.7s; }
.button-particles i:nth-child(5) { left: 88%; animation-delay: 4.2s; animation-duration: 7.1s; }
.poster-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poster-secondary a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  background: radial-gradient(ellipse at 30% 0%, #b6c8d419, transparent 75%), linear-gradient(180deg, #303845eb, #121924f0);
  border: 1px solid #b2c0d04a;
  border-top-color: #e2e9f37d;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #ffffff0d, inset 0 -1px 0 #0005, 0 4px 14px #0005;
  color: #f5f4f0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.poster-secondary a::before { content: ""; position: absolute; z-index: -1; left: -55%; top: -70%; height: 240%; width: 35%; background: linear-gradient(90deg, transparent, #dbe6ff22, transparent); transform: translateX(-20%) skewX(-25deg); animation: button-sweep 11s ease-in-out infinite; animation-delay: 2.4s; }
.poster-secondary a+ a::before { animation-delay: 3.2s; }
.poster-secondary svg { width: 16px; height: 16px; fill: none; stroke: #c9cdd6; stroke-width: 1.5; }
.poster-secondary a:hover { border-color: #d4e0f09c; transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff18, 0 6px 18px #0008; }
.poster-secondary a:active { transform: translateY(1px); }
@keyframes button-sweep { 0%, 45% { opacity: 0; transform: translateX(-20%) skewX(-24deg); } 50% { opacity: .7; } 66% { opacity: 0; transform: translateX(410%) skewX(-24deg); } 100% { opacity: 0; transform: translateX(410%) skewX(-24deg); } }
@keyframes button-particle { 0%, 28% { opacity: 0; transform: translate3d(0, 8px, 0); } 45% { opacity: .65; } 72%, 100% { opacity: 0; transform: translate3d(13px, -73px, 0); } }
@keyframes action-arrival { from { opacity: .75; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@supports (animation-timeline: view()) { .poster-actions { animation: action-arrival both; animation-timeline: view(); animation-range: entry 0% entry 35%; } }

.content-shell { display: block; max-width: 850px; padding: 30px 24px 48px; }
.back-home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; color: #c3c8d0; margin: -7px 0 30px; }
.back-home span { font-size: 20px; font-family: var(--mono); }
.back-home:hover { color: #fff; }
.mobile-back { display: flex; margin: 0; padding: 11px 32px; min-height: 44px; color: #6b717b; background: #f1eeea; border-bottom: 1px solid #e2ddd6; font-size: 12px; }
.mobile-back:hover { color: #222832; }
.application-surface { border-color: #d9d5d0; border-radius: 2px; background: #fbfaf8; box-shadow: 0 12px 40px #0002; }
.tabs { border-color: #e4e0da; }
.tab.is-active { color: #b9182d; border-color: var(--signal); }
.eyebrow { color: #8b6b68; }
.section-title h2 { letter-spacing: .2px; }
.section-title h2:focus, .admin-topline h1:focus { outline: 0; }
.button { border-radius: 2px; }
.button-primary { background: #d92135; border-color: #d92135; }
.button-primary:hover:not(:disabled) { background: #bc1629; border-color: #bc1629; }
.button-secondary { border-color: #cfcac3; background: #fff; }
.button-secondary:hover:not(:disabled) { background: #eeebe6; }
.field input, .field select, .filter-toolbar select { border-color: #d5d0ca; background: #fff; border-radius: 2px; font-size: 16px; }
.field input:focus, .field select:focus { border-color: #8e9da9; }
.field input:disabled { background: #eeeae5; }
.field select:disabled { opacity: 1; color: #5c636e; -webkit-text-fill-color: #5c636e; background: #eeeae5; cursor: default; }
.optional-mark { margin-left: 6px; font-size: 10px; font-weight: 400; color: #8c929a; }
.field input::placeholder { color: #8a8f97; }
.major-field { position: relative; z-index: 3; }
.major-field > label { display: inline-block; }
.major-suggestions { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; padding: 5px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; background: #fffefc; border: 1px solid #cec7bd; border-radius: 4px; box-shadow: 0 12px 30px #1217212b; }
.major-suggestions > button, .major-suggestions > [role="option"] { display: block; width: 100%; min-height: 43px; border: 0; border-radius: 2px; background: transparent; color: #303945; padding: 10px 12px; text-align: left; font: 14px/1.5 var(--body); cursor: pointer; }
.major-suggestions > button:hover, .major-suggestions > [role="option"]:hover, .major-suggestions > .is-active, .major-suggestions > [aria-selected="true"] { color: #ad1c32; background: #f6e7e9; }
.major-suggestions mark { background: transparent; color: #be233b; font-weight: 700; }
.major-suggestions .major-empty { padding: 13px 12px; color: var(--muted); font-size: 12px; }
.required-mark { color: #bd1d31; }
.checkbox-row { color: #606872; }
.checkbox-row input { accent-color: #cb2034; }
.inline-message { background: #eeeae4; border-color: #b9b3aa; color: #4c535d; }
.inline-message.is-error { background: #fff0f1; color: #ab1930; border-color: #d5263c; }
.rules-list section { border-color: #ded9d2; }
.rules-list p { color: #626973; }
.rules-list section::before { background: #d92135; }
.event-schedule { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border: 1px solid #e0dcd5; background: #f0ede7; }
.event-schedule > div { min-width: 0; padding: 13px 17px; }
.event-schedule > div:nth-child(even) { border-left: 1px solid #e0dcd5; }
.event-schedule > div:nth-child(n+3) { border-top: 1px solid #e0dcd5; }
.event-schedule dt { color: var(--muted); font-size: 10px; }
.event-schedule dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.success-icon { fill: #e6f2ec; stroke: #247255; }
.receipt { border-color: #d8d1c6; background: #f0ede7; }
.receipt strong { user-select: all; -webkit-user-select: all; }
.detail-list > div { border-color: #e5e0d8; }
.success-query { margin-top: 24px; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 13px; margin: 4px 0 28px; }
.lookup-form .button { min-height: 47px; }
#lookupCode { text-transform: uppercase; font-family: var(--mono); letter-spacing: 3px; font-size: 20px; }
#lookupCode::placeholder { font-family: var(--body); letter-spacing: 0; font-size: 13px; }
.college-management { background: #151c25; border: 1px solid #ffffff20; border-radius: 4px; padding: 20px 23px; margin-bottom: 28px; }
.college-management h2 { font-size: 17px; margin-bottom: 15px; }
.college-management form { display: flex; align-items: end; gap: 12px; }
.college-management form .field { flex: 1; }
.college-management input { margin-top: 0; }
.college-management .button { min-height: 47px; white-space: nowrap; }
.college-list { display: grid; gap: 8px; margin-top: 15px; }
.college-list > div, .college-option { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #ffffff13; font-size: 12px; }
.college-list button { border: 1px solid #ffffff35; border-radius: 3px; background: #ffffff09; color: #e8edf4; padding: 7px 12px; min-height: 36px; font-size: 11px; }
.admin-shell { color: #f0efec; }
.admin-topline .eyebrow, .admin-toolbar > p, .admin-shell .text-link, .admin-shell .text-button, .table-note { color: #aeb6c1; }
.admin-login { color: var(--navy); background: #fbfaf8; border-color: #d9d5d0; border-radius: 2px; }
.stat-grid, .registration-control, .table-wrap { color: var(--navy); }
.registration-control { background: #eeebe5; border-color: #d92135; }
.stat-grid, .stat-grid > div+div, .table-wrap { border-color: #d5d0c9; }
th { background: #eeebe5; color: #676b72; }
td { border-color: #e5e0d8; }
.status-select { color: var(--navy); background: #f4f1ed; border-color: #d5d0ca; }

.pledge-dialog { width: min(calc(100% - 32px), 540px); max-height: calc(100svh - 32px); margin: auto; padding: 0; color: #222832; background: #fbfaf8; border: 1px solid #ece6df; border-radius: 10px; box-shadow: 0 24px 100px #000a; }
.pledge-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pledge-dialog::backdrop { background: #050a13c2; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.pledge-heading { padding: 25px 26px 16px; }
.pledge-heading h2 { font-size: 23px; line-height: 1.4; letter-spacing: .5px; }
.pledge-body { min-height: 0; max-height: 56svh; padding: 0 26px 24px; overflow: auto; overscroll-behavior: contain; font-size: 14px; line-height: 1.95; color: #555e69; }
.pledge-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 17px 26px 21px; border-top: 1px solid #e6e0d8; background: #f1eee8; }
.pledge-actions .button { min-height: 46px; border-radius: 5px; }
.pledge-actions .button-primary:disabled { color: #f3edef; background: #b39098; border-color: #b39098; opacity: 1; }

@media (min-width: 1500px) { .content-shell { padding-top: 36px; } }
@media (max-width: 760px) {
  .masthead { height: 68px; padding: 10px 18px; }
  body[data-view="home"] .masthead { width: min(100%, 480px); padding-left: 16px; }
  .school-logo { width: 232px; max-width: 68vw; }
  .poster-stage { min-height: 100svh; }
  .poster-stage::before { display: none; }
  .poster-scene { width: 100%; max-width: 480px; height: 100svh; min-height: max(560px, calc(min(100vw, 480px) * 1.49 + 180px)); aspect-ratio: auto; }
  .event-poster { position: absolute; top: 0; left: 0; }
  .poster-actions { left: 20px; right: 20px; bottom: max(19px, env(safe-area-inset-bottom)); gap: 10px; }
  .poster-primary { min-height: 68px; padding-left: 23px; padding-right: 23px; }
  .poster-primary strong { font-size: 23px; }
  .poster-secondary a { min-height: 47px; padding: 11px 15px; font-size: 12px; }
  .poster-eligibility { font-size: 10px; }
  .content-shell { padding: 18px 14px 35px; }
  .mobile-back { display: flex; margin: 0; padding: 10px 21px; min-height: 44px; background: #eeebe5; color: #666d76; border-bottom: 1px solid #e2ddd6; font-size: 11px; }
  .mobile-back:hover { color: #222832; }
  .tabs { gap: 26px; }
  .tab { font-size: 12px; padding: 17px 0 14px; }
  .tab-panel { padding-top: 25px; }
  .section-title h2 { font-size: 24px; }
  .field-grid { grid-template-columns: 1fr; row-gap: 18px; }
  .field { font-size: 12px; }
  .field input, .field select, .filter-toolbar select { font-size: 16px; min-height: 47px; padding: 11px 12px; }
  .field input::placeholder { font-size: 12px; }
  .form-group-title { font-size: 14px; }
  .checkbox-row { font-size: 11px; line-height: 1.85; }
  .checkbox-row input { height: 18px; width: 18px; margin-top: 2px; }
  .submit-button { min-height: 52px; font-size: 14px; }
  .rules-list p { font-size: 12px; }
  .event-schedule > div { padding: 12px 14px; }
  .event-schedule dd { font-size: 12px; }
  .lookup-form { grid-template-columns: 1fr; gap: 14px; }
  .lookup-form .button { width: 100%; }
  .college-management { padding: 17px; }
  .pledge-heading { padding: 22px 21px 15px; }
  .pledge-heading h2 { font-size: 22px; }
  .pledge-body { padding: 0 21px 21px; font-size: 14px; line-height: 1.9; }
  .pledge-actions { padding: 16px 21px 19px; gap: 11px; }
}
@media (max-width: 380px) {
  .masthead { padding-left: 14px; padding-right: 14px; }
  .poster-actions { left: 17px; right: 17px; }
  .tabs { gap: 23px; }
}
@media (prefers-reduced-motion: reduce) { .poster-primary, .poster-secondary a { transition: none; } .poster-primary::before, .poster-secondary a::before, .button-particles i, .poster-actions { animation: none; } }
