:root {
  --ink: #1b1d1f;
  --muted: #687077;
  --line: #d9dde0;
  --paper: #f4f5f4;
  --soft: #f9f9f7;
  --white: #ffffff;
  --hmif-red: #d4212b;
  --hmif-red-dark: #a91620;
  --hmsi-grey: #7d8388;
  --hmsi-grey-dark: #3d4246;
  --green: #15733a;
  --blue: #246da8;
  --gold: #d6a629;
  --shadow: 0 24px 60px rgba(27, 29, 31, 0.13);
  --shadow-soft: 0 16px 42px rgba(27, 29, 31, 0.09);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(27, 29, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 29, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

::selection {
  color: var(--white);
  background: var(--hmif-red);
}

html,
body {
  width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 4.85rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(27, 29, 31, 0.045);
  transition:
    background 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease),
    transform 260ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(217, 221, 224, 0.92);
  box-shadow: 0 16px 38px rgba(27, 29, 31, 0.095);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.brand-logos,
.modal-logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
}

.brand-logos img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-logos span,
.modal-logos span {
  color: var(--hmif-red);
  font-weight: 900;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.ghost-button,
.secondary-button,
.danger-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  transition:
    border-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease),
    background 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active,
.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--hmif-red);
  color: var(--hmif-red-dark);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  background: #fff4f5;
  box-shadow: inset 0 -3px 0 var(--hmif-red);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 10% 8%, rgba(212, 33, 43, 0.18), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(125, 131, 136, 0.28), transparent 32%),
    linear-gradient(135deg, #fff1f2 0%, #f4f4f3 38%, #e4e6e7 100%),
    linear-gradient(180deg, #ffffff 0%, #f2f3f1 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 60%, rgba(125, 131, 136, 0.16) 60% 76%, transparent 76%),
    linear-gradient(0deg, rgba(212, 33, 43, 0.05), transparent 40%);
}

.hero-copy,
.registration-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: 820px;
}

.collab-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
}

.collab-card:hover {
  border-color: rgba(212, 33, 43, 0.35);
  box-shadow: 0 20px 48px rgba(27, 29, 31, 0.12);
  transform: translateY(-2px);
}

.collab-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.collab-card span {
  color: var(--hmsi-grey-dark);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--hmif-red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #34383b;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.registration-status-card {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(212, 33, 43, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.registration-status-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.registration-status-card strong {
  color: var(--hmif-red-dark);
}

.registration-status-card small {
  color: var(--muted);
  font-weight: 700;
}

.status-badge {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0f1;
  color: var(--hmif-red-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.registration-status-card[data-state="closed"],
.registration-status-card[data-state="full"] {
  border-color: rgba(125, 131, 136, 0.34);
  background: rgba(246, 247, 247, 0.9);
}

.registration-status-card[data-state="closed"] .status-badge,
.registration-status-card[data-state="full"] .status-badge {
  background: #eceeef;
  color: var(--hmsi-grey-dark);
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  min-width: 0;
}

.event-strip div,
.countdown,
.registration-panel,
.feature-grid article,
.login-panel,
.stats-grid article,
.table-wrap,
.program-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(27, 29, 31, 0.045);
}

.event-strip div {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 5px solid var(--hmsi-grey);
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}

.event-strip div:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.event-strip div:first-child {
  border-left-color: var(--hmif-red);
}

.event-strip span,
.stats-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.event-strip strong,
.event-strip a {
  font-weight: 900;
}

.event-strip a {
  color: var(--blue);
}

.map-panel {
  position: relative;
  min-height: 250px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease),
    border-color 260ms var(--ease);
}

.map-panel:hover {
  border-color: rgba(212, 33, 43, 0.35);
  box-shadow: 0 22px 54px rgba(27, 29, 31, 0.12);
  transform: translateY(-2px);
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
}

.map-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white);
  color: var(--hmif-red-dark);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(27, 29, 31, 0.18);
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.map-link:hover {
  color: var(--white);
  background: var(--hmif-red);
  transform: translateY(-1px);
}

.countdown {
  margin-top: 16px;
  padding: 18px;
  min-width: 0;
}

.countdown p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--hmsi-grey-dark);
  font-weight: 900;
}

.countdown p::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hmif-red);
  box-shadow: 0 0 0 5px rgba(212, 33, 43, 0.13);
  animation: statusPulse 1.9s var(--ease) infinite;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 10px;
}

.countdown-grid span {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5f6f5);
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}

.countdown-grid span:hover {
  border-color: var(--hmif-red);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.countdown-grid strong {
  color: var(--hmif-red-dark);
  font-size: 2.1rem;
  line-height: 1;
  transition:
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.countdown-grid strong.is-ticking {
  animation: numberPulse 420ms var(--ease);
}

.countdown-grid small {
  color: var(--muted);
}

.registration-panel,
.login-panel {
  box-shadow: var(--shadow);
}

.registration-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border-top: 6px solid var(--hmif-red);
  transition:
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.registration-panel:hover {
  box-shadow: 0 32px 72px rgba(27, 29, 31, 0.16);
  transform: translateY(-2px);
}

.form-heading h2,
.section-heading h2,
.login-panel h1,
.dashboard-heading h1 {
  font-size: 2.25rem;
}

label {
  display: grid;
  gap: 7px;
  color: #2d3236;
  font-weight: 800;
}

label span,
legend {
  font-size: 0.94rem;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd0d3;
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

input:focus,
select:focus {
  border-color: var(--hmif-red);
  box-shadow: 0 0 0 4px rgba(212, 33, 43, 0.12);
  background: #fffdfd;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented label {
  display: block;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid #cbd0d3;
  border-radius: 8px;
  background: #f8f8f7;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.segmented span:hover {
  transform: translateY(-1px);
}

.segmented input:checked + span {
  border-color: var(--hmif-red);
  background: #fff0f1;
  color: var(--hmif-red-dark);
}

.hidden-field {
  display: none;
}

.check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 650;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--hmif-red);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message[data-type="error"] {
  color: var(--hmif-red);
}

.form-message[data-type="success"] {
  color: var(--green);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--hmif-red);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.primary-button:hover {
  background: var(--hmif-red-dark);
  box-shadow: 0 12px 28px rgba(212, 33, 43, 0.22);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.content-band {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 64px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 22px;
}

.program-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.program-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hmsi-grey-dark);
  font-weight: 900;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.program-tab.is-active {
  background: var(--hmif-red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(212, 33, 43, 0.2);
}

.program-tab:hover {
  transform: translateY(-1px);
}

.program-panels {
  margin-bottom: 22px;
}

.program-panel {
  max-width: 980px;
  padding: 20px;
  border-left: 6px solid var(--hmif-red);
  animation: none;
}

.program-panel h3 {
  font-size: 1.25rem;
}

.program-panel p {
  max-width: 840px;
  margin: 10px 0 0;
  color: #42484d;
}

.program-panel[hidden] {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 220px;
  padding: 20px;
  border-top: 5px solid var(--hmif-red);
  transition:
    transform 260ms var(--ease),
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.feature-grid article:hover {
  border-color: var(--hmsi-grey-dark);
  box-shadow: 0 16px 36px rgba(27, 29, 31, 0.09);
  transform: translateY(-3px);
}

.feature-grid article:nth-child(2) {
  border-top-color: var(--hmsi-grey);
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.feature-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.feature-grid h3 {
  font-size: 1.12rem;
}

.feature-grid p {
  margin: 12px 0 0;
  color: #455159;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27, 29, 31, 0.62);
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.success-modal[hidden] {
  display: none;
}

.success-modal.is-open {
  opacity: 1;
}

.success-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms var(--ease);
}

.success-modal.is-open .success-dialog {
  transform: translateY(0) scale(1);
}

.modal-logos {
  margin-bottom: 14px;
}

.modal-logos img,
.not-found img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.success-dialog p {
  color: var(--muted);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 16px clamp(18px, 5vw, 64px);
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

footer span {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer-collab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-hmif {
  color: var(--hmif-red);
}

.footer-x,
.footer-university {
  color: var(--ink);
}

.footer-hmsi {
  color: var(--hmsi-grey);
}

.footer-event {
  margin-top: 5px;
  color: var(--hmif-red);
  background: linear-gradient(
    120deg,
    var(--hmsi-grey-dark),
    var(--hmif-red),
    var(--hmsi-grey),
    var(--hmif-red-dark),
    var(--hmsi-grey-dark)
  );
  background-size: 320% 320%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: footerGradientMove 16s ease-in-out infinite;
}

.admin-body {
  background: #f2f3f1;
}

.admin-main {
  padding: clamp(24px, 5vw, 48px) clamp(18px, 5vw, 64px);
}

.login-panel {
  width: min(100%, 420px);
  margin: 36px auto;
  padding: 26px;
  border-top: 6px solid var(--hmif-red);
}

.login-panel form {
  display: grid;
  gap: 16px;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.dashboard[hidden] {
  display: none;
}

.dashboard-heading,
.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-top: 5px solid var(--hmsi-grey);
}

.stats-grid article:first-child {
  border-top-color: var(--hmif-red);
}

.stats-grid strong {
  font-size: 2rem;
}

.settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.6fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.settings-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}

.settings-summary {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.switch-row {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.switch-row input {
  width: 46px;
  min-height: 26px;
  margin: 0;
  accent-color: var(--hmif-red);
}

.switch-row span {
  display: grid;
  gap: 2px;
}

.switch-row small {
  color: var(--muted);
  font-weight: 650;
}

.admin-toolbar label {
  width: min(100%, 420px);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--hmsi-grey-dark);
  background: #f7f7f5;
  font-size: 0.88rem;
}

.danger-button {
  border-color: #edb9bd;
  color: var(--hmif-red);
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 3.75rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 920px;
  }

  .registration-panel {
    width: min(100%, 720px);
  }

  .feature-grid,
  .stats-grid,
  .settings-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 2.12rem;
    line-height: 1.13;
  }

  .form-heading h2,
  .section-heading h2,
  .login-panel h1,
  .dashboard-heading h1 {
    font-size: 1.85rem;
  }

  .site-header,
  footer,
  .dashboard-heading,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    gap: 10px;
    text-align: left;
  }

  .brand-logos img {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.8rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    max-width: 100%;
    align-self: stretch;
    gap: 6px;
  }

  .nav-links a {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 26px;
    background:
      radial-gradient(circle at 14% 0%, rgba(212, 33, 43, 0.18), transparent 34%),
      radial-gradient(circle at 82% 28%, rgba(125, 131, 136, 0.26), transparent 36%),
      linear-gradient(180deg, #fff1f2 0%, #f0f1f1 46%, #e5e7e8 100%),
      linear-gradient(180deg, #ffffff 0%, #f2f3f1 100%);
  }

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

  .collab-card img {
    width: 36px;
    height: 36px;
  }

  .collab-card span {
    font-size: 0.95rem;
  }

  .event-strip,
  .feature-grid,
  .stats-grid,
  .settings-panel,
  .segmented {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel,
  .map-panel iframe {
    min-height: 220px;
  }

  .map-link {
    left: 12px;
    right: 12px;
    text-align: center;
  }

  .program-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-logos img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-section,
  .content-band,
  .admin-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  footer {
    gap: 3px;
    padding: 12px 14px;
  }

  footer span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  h1 {
    font-size: 1.98rem;
  }

  .lead {
    font-size: 1rem;
  }

  .nav-links a {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 0.88rem;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.82rem;
  }

  .site-header,
  .hero-section,
  .content-band,
  .admin-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .countdown-grid span {
    min-height: 76px;
  }

  .countdown-grid strong {
    font-size: 1.75rem;
  }

  .registration-panel,
  .login-panel,
  .success-dialog {
    padding: 18px;
  }
}

@keyframes footerGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 4px rgba(212, 33, 43, 0.16);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(212, 33, 43, 0);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(212, 33, 43, 0);
  }
}

@keyframes numberPulse {
  0% {
    transform: translateY(0);
  }

  42% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .footer-event {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
