/* Shared type and the calmer, full-width site frame. */
html { scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #fff; font-family: Roboto, Arial, sans-serif; }
button, input, select, textarea { font-family: Roboto, Arial, sans-serif; }
h1, h2, h3, .brand, .header-brand-title, .archive-preview-year, .archive-year-number, .count-card > strong, .reference-box > strong, .notice-icon { font-family: Roboto, Arial, sans-serif; }
main { flex: 1 0 auto; }
.page[hidden] { display: none; }

.site-header { background: #123b68; border: 0; }
.header-inner.wrap { width: 100%; max-width: none; min-height: 88px; margin: 0; padding: 10px clamp(18px, 3vw, 48px); gap: 28px; }
.header-brand { flex: 0 1 auto; gap: 12px; color: #fff; }
.brand-logo { position: static; display: block; flex: 0 0 62px; width: 62px; height: 62px; object-fit: contain; overflow: visible; background: transparent; border-radius: 0; }
.header-brand-title { color: #fff; font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; line-height: 1.12; letter-spacing: 0; white-space: nowrap; }
#main-nav { margin-left: auto; padding: 0; gap: clamp(18px, 2.6vw, 38px); border-radius: 0; background: none; box-shadow: none; }
#main-nav > a:not(.button) { padding: 10px 0; border-radius: 0; color: #fff; background: none; font-size: 16px; font-weight: 500; letter-spacing: .01em; }
#main-nav > a:not(.button)::after { height: 2px; margin-top: 3px; }
#main-nav > a:not(.button):hover, #main-nav > a[aria-current='page'] { color: #fff; background: none; }
.menu-toggle { color: #fff; border-color: #ffffff77; background: transparent; }

/* A simple opening view, followed by spaced sections. */
.home-page { padding: 0; background: #fff; }
.home-hero { background: #123b68; color: #fff; }
.home-hero .hero { min-height: calc(100svh - 88px); display: grid; place-items: center; padding: 84px 0 48px; }
.hero-copy { max-width: 850px; margin: 0 auto; text-align: center; }
.home-hero .eyebrow { color: #cfdfec; font-size: 13px; letter-spacing: .16em; }
.home-hero h1 { margin: 18px 0 22px; color: #fff; font-size: clamp(54px, 8vw, 100px); font-weight: 800; letter-spacing: -.045em; }
.home-hero .hero-description { max-width: 700px; margin-inline: auto; color: #e5edf4; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.home-hero .hero-actions { justify-content: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; }
.home-hero .button { border-color: #fff; background: #fff; color: #123b68 !important; font-size: 16px; padding: 13px 22px; }
.home-hero .button:hover { background: #e8f0f7; }
.home-hero .text-link { color: #fff; font-size: 16px; }
.home-hero .hero-status { color: #d9e6f0; font-size: 14px; }
.home-hero .status-dot { background: #f2ca62; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(65px, 11vh, 130px); border: 0; background: none; color: #e5edf4; font-size: 14px; cursor: pointer; }
.scroll-cue span { font-size: 21px; }
.scroll-cue:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.home-details-section, .news-preview, .archive-preview { min-height: 70svh; padding-block: clamp(90px, 13vh, 150px); }
.home-details-section { display: flex; align-items: center; }
.home-section-inner { width: min(1080px, calc(100% - 48px)); }
.home-section-heading { max-width: 680px; margin-bottom: 46px; }
.home-section-heading h2 { margin: 0 0 16px; font-size: clamp(38px, 4.4vw, 60px); }
.home-section-heading p { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.home-page .details-strip { width: 100%; margin-bottom: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-page .details-strip > div { padding-block: 24px; }
.home-section-link { font-size: 16px; }
.news-preview { width: min(1080px, calc(100% - 48px)); padding-bottom: clamp(90px, 13vh, 150px); }
.news-preview .section-heading { margin-bottom: 34px; }
.news-preview .section-heading h2 { margin-top: 0; }
.news-preview .news-grid { grid-template-columns: minmax(0, 720px); }
.news-preview .news-card { min-height: 0; padding: 30px; }
.archive-preview { width: min(1080px, calc(100% - 48px)); margin-bottom: 0; border-top: 1px solid var(--line); border-bottom: 0; grid-template-columns: auto 1fr; gap: 48px; }
.archive-preview-year { font-size: clamp(64px, 9vw, 120px); }
.archive-preview-copy { max-width: 650px; }
.archive-preview-copy h2 { font-size: clamp(34px, 4vw, 54px); }
.archive-preview-copy p { font-size: 18px; }

/* Competition information reads as one section at a time. */
.competition-page { max-width: 900px; padding-block: clamp(48px, 6vw, 80px) 100px; }
.competition-page .page-heading { max-width: none; margin-bottom: 28px; padding: 0 0 0 20px; border: 0; border-left: 3px solid #9bb5ca; }
.competition-page .page-heading h1 { margin: 0 0 8px; font-family: Roboto, Arial, sans-serif; font-size: clamp(42px, 5vw, 64px); }
.competition-page .page-heading h1:focus { outline: none; }
.competition-page .page-heading p { color: var(--muted); font-size: 18px; font-weight: 500; }
.competition-page .event-notice { margin-bottom: 36px; border-width: 1px; border-color: #e5cb7e; box-shadow: none; }
.competition-page .competition-grid,
.competition-page .competition-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.competition-page .competition-info { margin-top: 28px; }
.competition-page .competition-info .rounds-panel { grid-column: auto; }
.competition-page .content-panel,
.competition-page .steps-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid #dce4eb; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #123b6809; }
.competition-page .steps-panel,
.competition-page .competition-info > .content-panel:nth-child(2) { background: #f8fafc; }
.competition-page .content-panel h2,
.competition-page .steps-panel h2 { margin: 0 0 22px; color: #123b68; font-size: clamp(27px, 3vw, 34px); }
.competition-page .content-panel h3 { color: #183c5d; }
.competition-page .event-details { margin: 0 0 26px; }
.competition-page .event-details > div { grid-template-columns: 175px minmax(0, 1fr); gap: 18px; padding: 15px 0; }
.competition-page .event-details dt { font-weight: 500; }
.competition-page .event-details dd { overflow-wrap: anywhere; }
.competition-page .team-formation { max-width: 680px; }
.competition-page .steps { max-width: 680px; margin: 0 0 24px; }
.competition-page .steps li { gap: 16px; padding: 18px 0; }
.competition-page .steps li > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #e8f0f6; }
.competition-page .steps h3 { margin: 1px 0 5px; }
.competition-page .rounds-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.competition-page .round-item { padding: 24px 0; }
.competition-page .round-item:first-child { padding-top: 18px; }
.competition-page .round-item h3 { margin-bottom: 6px; font-size: 22px; }
.competition-page .round-item p { max-width: 720px; margin: 7px 0 0; }
.competition-page .round-summary { color: #315d7b; }
.competition-page #schedule-list { margin-bottom: 0; }
.competition-page #schedule-list > div { grid-template-columns: 135px minmax(0, 1fr); align-items: center; }
.competition-page #schedule-list dt { width: fit-content; padding: 4px 10px; border-radius: 5px; background: #e9f0f6; color: #123b68; font-weight: 700; }
.competition-page .award-item { padding: 20px 0; }
.competition-page .award-item:first-child { padding-top: 15px; }
.competition-page .scoring-list { max-width: 680px; }

/* Keep the secondary registration action legible on hover and keyboard focus. */
#donation-link:hover, #donation-link:focus-visible { background: #e8f0f6; border-color: #123b68; color: #123b68 !important; }

/* The footer is part of the page flow and reaches the viewport bottom on short routes. */
.site-footer { display: block; width: 100%; margin-top: auto; padding: 16px 0; border: 0; background: #123b68; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-identity { display: flex; flex-direction: column; gap: 1px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.footer-subtitle { color: #d8e5ef; font-size: 14px; line-height: 1.2; }
.footer-email { color: #fff; font-size: 14px; line-height: 1.2; text-underline-offset: 3px; }
.footer-links { justify-content: flex-end; max-width: 470px; gap: 6px 18px; }
.footer-links a { color: #fff; font-size: 14px; }
.footer-links a:hover { color: #fff; }

@media (min-width: 901px) {
  .menu-toggle { display: none; }
  .header-inner nav, .header-inner nav.open { position: static; display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; border: 0; box-shadow: none; }
}
@media (max-width: 900px) {
  .header-inner { position: relative; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 3; padding: 14px 22px; border: 0; background: #123b68; box-shadow: 0 8px 20px #17243424; }
  .header-inner nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  #main-nav > a:not(.button) { font-size: 17px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .header-inner.wrap { min-height: 76px; padding-inline: 16px; }
  .brand-logo { flex-basis: 50px; width: 50px; height: 50px; }
  .header-brand-title { font-size: clamp(13px, 3.6vw, 17px); white-space: normal; }
  .home-hero .hero { min-height: calc(100svh - 76px); padding: 62px 0 35px; }
  .home-hero h1 { font-size: clamp(47px, 13vw, 68px); }
  .home-hero .hero-description { font-size: 17px; }
  .home-hero .hero-actions { align-items: center; gap: 20px; }
  .scroll-cue { margin-top: 70px; }
  .home-section-inner, .news-preview, .archive-preview { width: calc(100% - 32px); }
  .home-section-heading p { font-size: 17px; }
  .home-page .details-strip { grid-template-columns: 1fr; }
  .home-page .details-strip > div { padding-inline: 0; }
  .archive-preview { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { padding: 16px 0; }
  .competition-page { padding-bottom: 70px; }
  .competition-page .event-details > div,
  .competition-page #schedule-list > div { grid-template-columns: 1fr; gap: 5px; }
}
