:root {
  --primary: #DA001A;
  --primary-dark: #B00015;
  --primary-light: #FF1A34;
  --secondary: oklch(0.5589 0.2275 26.63);
  --white: #FFFFFF;
  --text: oklch(0 0 0);
  --shadow: 0 1rem 2rem oklch(0.2409 0.1151 276.66 / 0.16);
  --container: min(1220px, calc(100vw - 2rem));
  --header-offset: 6rem;
  --banner-aspect: 2.28;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  interpolate-size: allow-keywords;
}

section[id],
article[id].guideline-block {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Open Sans", sans-serif;
  background: var(--white);
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

.page-pre-event p {
  margin-bottom: 1rem;
}

p {
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

.section {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.left-align {
  margin-bottom: 1.25rem;
  text-align: left;
}

.kicker {
  margin: 0;
  color: var(--primary-light);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 5rem;
  border: 0;
  border-radius: 62.4375rem;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    padding 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button-pink {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 0.875rem 1.5rem oklch(from var(--primary) l c h / 0.28);
}

.button-pink:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--white);
  background: var(--secondary);
  box-shadow: 0 0.875rem 1.5rem oklch(0.172 0.0888 277.08 / 0.22);
}

.button-secondary:hover {
  background: var(--primary-dark);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding: 1rem 0;
  color: var(--white);
  background: transparent;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  background: oklch(0.5589 0.2275 26.63);
  box-shadow: 0 0.5rem 1.25rem oklch(0.2409 0.1151 276.66 / 0.18);
}

.site-header.scrolled .menu a,
.site-header.scrolled .menu a.is-active,
.site-header.scrolled .menu-dropdown-trigger {
  color: #FFFFFF !important;
}

.site-header.scrolled .menu-toggle span {
  background-color: #FFFFFF !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--container);
  margin: 0 auto;
}

.brand img {
  width: 11rem;
  transition: width 180ms ease;
}

.site-header.scrolled .brand img {
  width: 10rem;
}

.site-header.scrolled .menu .button {
  padding: 0.5rem 2rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu a.is-active {
  color: var(--primary-light);
  font-weight: 600;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1rem;
}

.menu-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: default;
  background: transparent;
  border: 0;
}

.menu-dropdown-trigger i {
  font-size: 1rem;
  line-height: 1;
}

.menu-dropdown-trigger.is-active {
  color: var(--primary-light);
  font-weight: 600;
}

.menu-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 17rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: var(--primary);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem oklch(0.2409 0.1151 276.66 / 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-0.5rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.menu-dropdown:hover .menu-dropdown-panel,
.menu-dropdown:focus-within .menu-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.menu-dropdown-panel a {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  font-size: 0.85rem;
  line-height: 1.3;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.menu-dropdown-panel a:hover,
.menu-dropdown-panel a:focus-visible,
.menu-dropdown-panel a.is-active {
  color: var(--primary-light);
  background: oklch(1 0 89.88 / 0.08);
  outline: 0;
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  margin: 0.3125rem 0;
  background: var(--white);
}

.hero,
.content-hero {
  position: relative;
  max-width: 100%;
  color: var(--white);
  overflow-x: clip;
}

.content-hero {
  background-color: oklch(0.18 0.06 25);
}

.content-hero {
  padding-top: var(--header-offset);
  background-image: url("https://cdn-azure.searix.net/searixcdn/2026/10-modellscape-cimbsports/microsite/cimb-sports-day-microsite-banner.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: max(
    calc(var(--header-offset) + 22rem),
    calc(var(--header-offset) + (100vw / var(--banner-aspect)))
  );
}

.hero-countdown {
  padding: 0;
}

.hero-countdown .section-heading {
  margin-bottom: 1rem;
}

.countdown-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: var(--container);
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  color: var(--secondary);
  background: oklch(1 0 89.88 / 0.98);
  border-radius: 2rem;
  box-shadow: 0 1.125rem 2.625rem oklch(0.172 0.0888 277.08 / 0.28);
}

.content-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.25);
  pointer-events: none;
  z-index: 0;
}

.content-hero-copy h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.95;
}

.content-hero-copy p {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.countdown-grid {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: space-between;
  text-align: center;
}

.countdown-item {
  position: relative;
  flex: 1 1 0;
  padding: 0 1.75rem;
}

.countdown-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 0;
  bottom: 0.25rem;
  border-right: 0.125rem dotted oklch(0.3179 0.1531 277.35 / 0.4);
}

.countdown-grid strong {
  display: block;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 0.95;
}

.countdown-grid span {
  display: block;
  color: var(--secondary);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 500;
}

.countdown-card .button-pink {
  flex-shrink: 0;
  white-space: nowrap;
}


.content-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: max(16rem, calc(100vw / var(--banner-aspect)));
}

@media (min-width: 1081px) {
  .content-hero {
    box-sizing: border-box;
    height: calc(100vw / var(--banner-aspect));
    min-height: 0;
    padding-top: 0;
    background-size: 100% auto;
    background-position: center top;
    overflow: hidden;
  }

  .content-hero-inner {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding-top: var(--header-offset);
  }
}

.content-breadcrumbs {
  padding: 0.5rem 0;
  color: oklch(0.7059 0 0);
  font-size: 1rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: oklch(0.78 0 0);
}

.breadcrumb-list a {
  transition: color 180ms ease;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--secondary);
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

.two-col > * {
  flex: 1 1 0;
}

.text-block {
  display: flex;
  flex-direction: column;
}

.intro {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.intro-media {
  position: relative;
  z-index: 1;
}

#help .story-copy > p {
  padding-bottom: 1.5rem;
}

#help .button-secondary {
  background-color: oklch(0.5589 0.2275 26.63);
  color: #ffffff;
}

.story-copy > p {
  font-size: 1rem;
  line-height: 1.5;
}

.video-embed {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.story-copy {
  position: relative;
  z-index: 1;
  gap: 0;
  padding-left: 0;
}

.intro-heading {
  margin-bottom: 1.5rem;
}

.story-copy .section-heading {
  margin-bottom: 0;
  gap: 0;
}

.story-copy h2 {
  color: var(--secondary);
  font-size: 2rem;
  line-height: 1;
}

.story-copy a {
  color: var(--secondary);
  text-decoration: underline;
}

.story-copy a:hover {
  color: var(--primary);
}

.story-copy > p + p {
  margin-top: 1.2rem;
}


.story-copy .button {
  align-self: flex-start;
}
.text-center .story-copy .button {
  align-self: center;
}
.venue-showcase {
  background: var(--white);
}

.venue-showcase-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.venue-map-card,
.venue-content {
  flex: 1 1 0;
  min-width: 18rem;
}

.venue-map-card {
  overflow: hidden;
  min-height: 21rem;
  background: var(--white);
  border: 0.3125rem solid var(--white);
  border-radius: 2rem;
  box-shadow: 0 0.25rem 0.25rem oklch(0 0 0 / 0.15);
}

.venue-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 21rem;
  border: 0;
}

.venue-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.venue-heading {
  gap: 0;
  margin-bottom: 1.5rem;
}

.venue-heading h2 {
  color: var(--secondary);
  font-size: 2rem;
  line-height: 1;
}

.venue-copy {
  display: flex;
  flex-direction: column;
}

.venue-description {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.venue-address {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text);
}

.venue-address i {
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
}

.venue-address p {
  font-size: 1rem;
  line-height: 1.5;
}

.venue-button {
  align-self: flex-start;
  gap: 0.5rem;
}

.venue-button i {
  font-size: 1.25rem;
  line-height: 1;
}

.venue-directions {
  padding-top: 1rem;
}

.venue-directions-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.venue-directions-copy {
  max-width: 60rem;
}

.venue-direction-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1rem;
}

.venue-direction-card {
  display: flex;
  flex: 1 1 calc((100% - 4rem) / 3);
  flex-direction: column;
  min-width: 18rem;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 2rem;
  box-shadow: 0 0.25rem 0.25rem oklch(0 0 0 / 0.15);
}

.venue-direction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.venue-direction-icon i {
  font-size: 3.5rem;
  line-height: 1;
}

.venue-direction-card h3 {
  margin-top: 1.25rem;
  color: var(--secondary);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
}

.venue-direction-card > p {
  margin-top: 1rem;
  color: oklch(0.1454 0 0);
  font-size: 1rem;
  line-height: 1.5;
}

.venue-direction-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: oklch(0.2115 0 0);
  font-size: 1rem;
  line-height: 1.5;
}

.about-two-col {
  align-items: stretch;
  gap: 2rem;
}

.about-media-card {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 2;
  background: var(--white);
  border: 0.25rem solid var(--white);
  border-radius: 2rem;
  box-shadow: 0 0.25rem 0.25rem oklch(0 0 0 / 0.15);
  flex: 1;
}

.about-media-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  color: var(--white);
  background: var(--secondary);
}

.footer-main {
  padding: 4rem 0;
  background: oklch(0 0 0 / 0.2);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand img {
  width: min(17.5rem, 100%);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-social i {
  font-size: 1.5rem;
  line-height: 1;
}

.footer-social a:hover {
  color: var(--primary-light);
  transform: translateY(-0.125rem);
}

.footer-divider {
  height: 0.0625rem;
  margin: 1.5rem auto;
  background: oklch(0.934 0 89.88 / 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  position: relative;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.03125rem;
  height: 0.9rem;
  background: oklch(1 0 89.88 / 0.75);
  transform: translateY(-50%);
}

.copyright {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.9;
}

@media (max-width: 1080px) {
:root {
    --header-offset: 5rem;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .site-header.scrolled .brand img {
    width: 8rem;
  }

  .content-hero {
    background-position: center top;
    background-size: cover;
  }

  .page-home .hero-countdown {
    position: static;
    padding: 0;
    background-color: transparent;
  }


  .page-home .countdown-heading {
    font-size: 2.25rem;
  }
  .page-home .countdown-card {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 1.25rem;
    gap: 0.625rem;
    transform: none;
    box-shadow: 0 0.75rem 1.75rem oklch(0.172 0.0888 277.08 / 0.22);
  }

  .page-home .countdown-item {
    padding: 0 0.35rem;
  }

  .page-home .countdown-grid strong {
    font-size: clamp(1.125rem, 3.5vw, 3rem);
  }

  .page-home .countdown-grid span {
    font-size: clamp(0.625rem, 1.4vw, 1rem);
  }

  .page-home .countdown-card .button-pink {
    width: 100%;
    white-space: normal;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }

  .page-home .intro {
    padding-top: 3rem;
  }

  .content-hero-copy p {
    margin-top: 0.5rem;
  }


  .countdown-card,
  .footer-top,
  .footer-bottom,
  .two-col {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .countdown-card {
    flex-direction: column;
    align-items: stretch;
  }

  .two-col > * {
    width: 100%;
  }

  .about-intro .about-media-card {
    order: 2;
  }

  .about-intro .story-copy {
    order: 1;
  }

  .topbar {
    position: relative;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: calc(100% + 1.25rem);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.125rem;
    background: oklch(0.5589 0.2275 26.63);
    border-radius: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem) scaleY(0.92);
    transform-origin: top center;
    pointer-events: none;
    backdrop-filter: blur(0.75rem);
  }

  .menu-dropdown,
  .menu-dropdown-panel {
    width: 100%;
  }

  .menu-dropdown-trigger {
    justify-content: center;
    width: 100%;
    cursor: pointer;
  }

  .menu-dropdown-trigger i {
    display: inline-block;
    transition: transform 180ms ease;
  }

  .menu-dropdown.is-open .menu-dropdown-trigger i {
    transform: rotate(180deg);
  }

  .menu-dropdown-panel {
    position: static;
    left: auto;
    min-width: 0;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      visibility 180ms ease,
      margin-top 180ms ease,
      padding 180ms ease;
  }

  .menu-dropdown.is-open .menu-dropdown-panel {
    opacity: 1;
    visibility: visible;
    max-height: 12rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    pointer-events: auto;
    transform: none;
  }

  .menu-dropdown:hover .menu-dropdown-panel,
  .menu-dropdown:focus-within .menu-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    pointer-events: none;
    transform: none;
  }

  .menu-dropdown.is-open:hover .menu-dropdown-panel,
  .menu-dropdown.is-open:focus-within .menu-dropdown-panel {
    opacity: 1;
    visibility: visible;
    max-height: 12rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    pointer-events: auto;
  }

  .menu-dropdown-panel a {
    text-align: center;
  }

  .menu.menu-animate {
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 220ms ease;
  }

  .menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
  }

  .content-breadcrumbs {
    display: none;
  }

  .story-copy {
    padding-left: 0;
  }

  

  

  

  

  

  

  

  .venue-map-card,
  .venue-content {
    min-width: 0;
  }

  .venue-direction-card {
    flex-basis: calc((100% - 2rem) / 2);
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .menu a.is-active,
  .menu-dropdown-trigger.is-active,
  .menu-dropdown-panel a.is-active {
    color: #FFFFFF !important;
    font-weight: 700;
  }
}

@media (max-width: 760px) {
:root {
    --container: min(100vw - 2rem, 100%);
  }

  .section {
    padding: 3rem 0;
  }

  .intro {
    padding-top: 6rem;
  }

  .page-home .intro {
    padding-top: 3rem;
  }
  .page-home .countdown-heading {
    font-size: 1.9rem !important;
  }

  

  

  .content-hero-copy h1 {
    font-size: 2.5rem;
  }

  .content-hero-copy p {
    background-color: rgba(244, 182, 182, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .venue-showcase-inner {
    gap: 1.5rem;
  }

  .venue-content {
    gap: 1.5rem;
  }

  .venue-heading h2 {
    font-size: 1.75rem;
  }

  .venue-map-card,
  .venue-content {
    flex-basis: 100%;
  }

  .venue-content {
    order: -1;
  }

  .venue-map-card,
  .venue-map-frame {
    min-height: 18rem;
  }

  .venue-direction-grid {
    gap: 1.5rem;
  }

  .venue-direction-card {
    flex-basis: 100%;
    min-width: 0;
  }

  .venue-direction-card h3 {
    font-size: 1.75rem;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  .footer-main {
    padding: 3rem 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-links a {
    padding: 0;
  }

  .footer-links a + a::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .countdown-item {
    padding: 0 0.25rem;
  }

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

  .countdown-grid span {
    font-size: 0.625rem;
  }
}

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

.house-flags-intro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 80%;
  margin: 2.5rem auto 0;
}

.house-flag-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.house-flag-btn:hover {
  transform: scale(1.05);
}

.house-flag-btn img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
.house-flags-intro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 100%;
  }

  .house-flag-btn:hover {
    transform: none;
  }
}

@media (max-width: 576px) {
.house-flags-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 100%;
  }

  .house-flags-intro-grid .house-flag-btn:last-child {
    grid-column: 1 / span 2;
    width: calc(50% - 0.375rem);
    justify-self: center;
  }
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 2rem;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}

.image-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.is-open .image-modal-backdrop {
  opacity: 1;
}

.image-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-modal.is-open .image-modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.image-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  margin: 0 auto;
}

.image-modal-copy {
  color: white;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.image-modal-close-btn {
  position: absolute;
  top: -3rem;
  right: -1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

@media (max-width: 768px) {
.image-modal-close-btn {
    top: -3.5rem;
    right: 0;
  }
}

/* Standardize h2 font size for about and houses pages */
.page-about h2,
.page-houses h2 {
  font-size: 2rem !important;
  color: var(--secondary);
}

.notice-block p + p {
  margin-top: 1rem;
}

.section-heading h1,
.section-heading h2 {
  color: var(--secondary);
  font-size: 2rem;
  font-weight: 700;
}

.section-heading .countdown-heading {
  font-size: 2.7rem;
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid oklch(0.9 0 0);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.35s ease,
    content-visibility 0.35s ease allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
.faq-item::details-content {
    transition: none;
  }
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  background: var(--white);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "\ea4e"; /* RemixIcon ri-add-line */
  font-family: "remixicon";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-item[open] summary {
  background: oklch(from var(--primary) l c h / 0.05);
  border-bottom: 1px solid oklch(0.9 0 0);
}

.faq-item[open] summary::after {
  content: "\f1ae"; /* RemixIcon ri-subtract-line */
  transform: rotate(180deg);
}

.faq-item-content {
  padding: 1.5rem;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.faq-section-title {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.faq-section-title-first {
  margin-top: 1.5rem;
}

.faq-guidelines-heading {
  margin-bottom: 1.5rem;
}

.faq-guidelines-heading h2 {
  font-size: 2.25rem;
}

.guideline-block {
  margin-bottom: 2rem;
}

.guideline-block:last-child {
  margin-bottom: 0;
}

.guideline-title {
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.guideline-block > p {
  margin: 0;
  line-height: 1.6;
}

.faq-item-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq-item-content a:hover {
  color: var(--primary-dark);
}

.spec-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.spec-table th,
.spec-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 0.0625rem solid oklch(0.9 0 0);
}

.spec-table th {
  color: var(--secondary);
  font-weight: 600;
}

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


#strava-move-challenge .spec-table tbody tr:last-child th,
#strava-move-challenge .spec-table tbody tr:last-child td {
  border-bottom: 0.0625rem solid oklch(0.9 0 0);
}
#strava-move-challenge .spec-table a {
  color: oklch(0.5589 0.2275 26.63);
}

#milestones .spec-table th:first-child {
  min-width: 15rem;
}

#milestones .spec-table th:first-child {
  padding-left: 2.25rem;
}

#milestones .spec-table td.milestone-activity {
  position: relative;
  padding-left: 2.25rem;
}

.milestone-num {
  position: absolute;
  left: 1rem;
  top: 0.875rem;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.event-detail-item strong {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-message {
  margin-top: 1.5rem;
}

.leaderboard-updated-note {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.coming-soon-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.375rem 0.875rem;
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: oklch(0.9532 0 0);
  border-radius: 62.4375rem;
}

.content-subsection {
  margin-top: 2.5rem;
}

.content-subsection h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 1.25rem;
}

.house-flag-label {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: clamp(0.625rem, 2.5vw, 0.875rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.house-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
}

.house-lookup-field {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.house-lookup-field span {
  font-size: 0.875rem;
  font-weight: 500;
}

.house-lookup-field input {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 0.0625rem solid oklch(0.85 0 0);
  border-radius: 0.5rem;
  font: inherit;
}

.house-lookup-form .button {
  width: 100%;
}

@media (min-width: 40rem) {
.house-lookup-field {
    flex: 1 1 16rem;
  }

  .house-lookup-form .button {
    width: auto;
  }
}

.house-lookup-result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: oklch(0.9532 0 0);
  border-radius: 0.75rem;
}

.story-copy > ul,
.story-copy > ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.story-copy > ul li + li,
.story-copy > ol li + li {
  margin-top: 0.5rem;
}

.text-custom-hyperlink {
  color: oklch(0.5589 0.2275 26.63);
  text-decoration: underline;
}

.mt-1rem {
  margin-top: 1rem !important;
}
    .mt-2rem {
      margin-top: 2rem !important;
    }

/* House Display Section */
.house-display-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 2rem;
  margin-top: 2rem;
}

.house-display-card {
  width: calc((100% - 4rem) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.house-display-card .button {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.house-display-card img {
  width: 25%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.house-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.house-card-leaders {
  display: flex;
  gap: 1.5rem;
  text-align: left;
}

.house-card-leader-item p {
  margin: 0;
  line-height: 1.2;
  font-size: 0.85rem;
}

.leader-title {
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.2rem !important;
}

.leader-name {
  font-weight: 600;
}

.house-card-leaders.has-border {
  border-bottom: 0.0625rem solid oklch(0.9 0 0);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.participating-bus {
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

.participating-bus strong {
  font-weight: 700;
}
@media (max-width: 1199px) {
  .house-card-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .house-display-card img {
    width: 80px;
    flex-shrink: 0;
  }
  
  .house-card-leaders {
    text-align: left;
    flex-direction: column;
    gap: 1rem;
  }
  .participating-bus {
    text-align: left;
  }
}

@media (max-width: 991px) {
  .house-display-card {
    width: calc((100% - 2rem) / 2);
  }
}

@media (max-width: 576px) {
  .house-display-card {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .hide-mobile {
    display: none;
  }
}
