* {
    box-sizing: border-box;
}

/* Make all the pages render the same, instead of those with enough content to
 * scroll rendering a bit to the left of those with less content.  Without this,
 we get a jump left/rigth when navigating between pages. */
html {
    /* overflow-y: scroll is an alternative that shows the scrollbar always */
    /* overflow-y: scroll; */
    scrollbar-gutter: stable;

    /* Tokens, so we can change here instead of having it coded throughout */
    --header-font-family: "MedievalSharp", serif;
    --main-font-family: "Inter", serif;

    --main-bg-color: black;
    --card-bg-color: #dcdcdc;
    --text-color: black;
    --header-color: black;

    --link-color: blue;
    --link-text-decoration: underline;

    --legend-cell-border-color: #eee;
    --color-box-border-color: #ccc;
    --boardgame-list-img-border-color: #888888;
    --boardgame-list-details-border-color: #aaaaaa;

    --countdown-body-color: white;
    --countdown-background-color: black;
    --countdown-sub-color: #ddd;

    /* Palette https://colorhunt.co/palette/432e544b4376ae445ae8bcb9 */
    /* #432E54 #4B4376 #AE445A #E8BCB9 */
    /* https://colorhunt.co/palette/17153b2e236c433d8bc8acd6 */
    /* #17153B #2E236C #433D8B #C8ACD6 */
    --main-bg-color: #17153B;
    --card-bg-color: #2E236C;
    --text-color: #C8ACD6;
    --header-color: #E8BCB9;
    --link-color: #E8BCB9;
    --link-text-decoration: none;

    /* --partner-bg-color: var(--card-bg-color); */
    --partner-bg-color: #dcdcdc;

}


body {
    font-family: var(--main-font-family);
    background: var(--main-bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 10px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font-family);
    color: var(--header-color);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.rounded-box {
    border-radius: 5px;
    padding: 10px;
    margin: 2px 0;
}

/* Common styles for gray boxes */
.gray-box {
    background: var(--card-bg-color);
    border-radius: 5px;
    padding: 10px;
    margin: 2px 0;
}

/* Common flex centering */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header-wrapper {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.logo-box {
    padding: 58px;
    height: 155px;
}

.logo-box img {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    display: block;
}

.title-box {
    padding: 1px 20px;
    flex: 1;
    min-width: 250px;
    height: 155px;
}

.title-box h1 {
    margin: 0;
    font-size: clamp(1.2rem, 5vw, 2rem);

}

/* Index logo + carousel + intro layout */
.index-header-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    margin: 20px 0;
}

.index-logo-box {
    grid-column: 1;
    grid-row: 1 / 3;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.index-logo-box img {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    display: block;
}

.index-carousel-box {
    grid-column: 2;
    grid-row: 1;
    padding: 1px 20px;
    min-width: 0;
}

.index-header-wrapper .intro-text {
    grid-column: 2;
    grid-row: 2;
}


/* Navigation */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    text-align: center;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Group the 4 game links and 3 meta links so they wrap as units,
   preventing the bad 5+2 or 6+1 splits.
   Both groups fit side by side when the nav is >= ~842px wide;
   below that, they each take their own full-width row (4+3). */
.nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.nav-games {
    flex: 4 1 480px;
    min-width: 480px;
}

.nav-meta {
    flex: 3 1 360px;
    min-width: 360px;
}

.nav-item {
    flex: 1 1 auto;
    min-width: 120px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav a {
    display: block;
    padding: 5px 15px;
}

.call-to-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    text-align: center;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}


/* Make the currently active page bold and not clickable in the nav */
/* ENDRE HER NÅR DU LEGGER TIL EN SIDE */
/* Du må også endre i index.html (for navigasjonslink) og kopiere rundt, og sette body class="<sidenavn>-page" i sidens HTML */
body.index-page .nav .index-link a,
body.about-page .nav .about-link a,
body.boardgames-page .nav .boardgames-link a,
body.rpg-page .nav .rpg-link a,
body.ttt-page .nav .ttt-link a,
body.tirsdag-page .nav .tirsdag-link a {
  text-decoration: none;
  color: var(--accent-color-1);
  font-weight: bold;
  pointer-events: none; /* makes it not clickable */
  cursor: default;      /* avoids showing link cursor */
}

/* Main content grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.standalone-box {
    margin-top: 2px;
    margin-bottom: 2px;
}

.info-box, .news-box, .schedule-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.content-header {
    margin: 0;
}


.content-header h3,
.news-box h1,
.news-box h2 {
    text-align: center;
    margin: 10px 0;
}

.content-header h3 {
    margin: 0;
}

.content-body {
    flex: 1;
}

.info-box ul, .schedule-box ul {
    padding-left: 20px;
}

.news-box h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.news-box h2 {
    font-size: clamp(1rem, 3vw, 1.3rem);
}

/* Partners section */
.partners-wrapper {
    background: transparent;
    padding: 0;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    align-items: center;
}

.partner-box {
    background: var(--partner-bg-color);
    padding: 0;
    width: 212px;
    height: 83px;
    flex: 0 0 212px;
    box-sizing: border-box;
}

.partners a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partners img {
    max-width: 200px;
    max-height: 71px;
    width: auto;
    height: auto;
    display: block;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: var(--link-text-decoration);
}

/* Strikethrough for past dates */
del {
    opacity: 0.6;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    body {
        padding: 5px;
    }

    .nav a {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .info-box ul, .schedule-box ul {
        font-size: 0.9rem;
    }

    /* On small screens, render content in the desired reading order:
       1) news-box, 2) schedule-box, 3) info-box (Om oss) */
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Explicit ordering for the three main columns when stacked */
    .news-box {
        order: 1;
    }

    .schedule-box {
        order: 2;
    }

    .info-box {
        order: 3;
    }
}

/* Misc small display styles for the date handling */
.datetime {
    white-space: nowrap;
}

.only-in-index {
  display: none;
}

.index-page .only-in-index {
  display: revert;
}

/* Countdown full-screen styles */
body.countdown-page {
    margin: 0;
    background: var(--countdown-background-color);
    color: var(--countdown-body-color);
    height: 100vh;
}

.countdown-root {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-inner {
    text-align: center;
    width: 100%;
    padding: 20px;
}

.countdown-inner h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin: 0 0 20px 0;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: clamp(3rem, 10vw, 10rem);
    line-height: 1;
    margin: 0 auto;
}

.countdown-sub { 
    margin-top: 12px;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--countdown-sub-color);
}

/* color states */
.countdown-timer.state-black { color: black; background: white; padding: 0.2em 0.6em; border-radius: 6px; }
.countdown-timer.state-green { color: #0b6623; background: #dff5e0; padding: 0.2em 0.6em; border-radius: 6px; }
.countdown-timer.state-amber { color: #6d3b00; background: #fff4d9; padding: 0.2em 0.6em; border-radius: 6px; }
.countdown-timer.state-red { color: #960000; background: #ffd8d8; padding: 0.2em 0.6em; border-radius: 6px; }

/* Make timer text readable on very small screens */
@media (max-width: 420px) {
    .countdown-timer { font-size: 6rem; }
}

/* Flags for translation */
.flags {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  font-size: 1.5rem;
  z-index: 1000;
}

.flags .flag {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.flags .flag:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Disabled state for current language */
.flags .flag.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  transform: none;
  filter: none;
}

/* Remove the Google Translate banner */
#gt-nvframe {
  display: none !important;
}
body {
  margin-top: 0 !important;
}

/* Format for details/summary used in the boardgames page */
.boardgame-list details {
  border: 1px solid var(--boardgame-list-details-border-color);
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
}

.boardgame-list summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
}

.boardgame-list details[open] {
  padding: 0.5em;
}

.boardgame-list details[open] summary {
  border-bottom: 1px solid var(--boardgame-list-details-border-color);
  margin-bottom: 0.5em;
}
.boardgame-list img {
  width: 50px;
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
  border: 1px solid var(--boardgame-list-img-border-color);
  border-radius: 4px;
}

/* Styles for the parking map legend in tirsdag.html */
.parking-legend {
  margin-top: 10px;
}

.legend-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.legend-row {
  display: table-row;
}

.legend-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 6px 8px;
  border-bottom: 1px solid var(--legend-cell-border-color);
  font-size: 1rem;
}

.color-box {
  width: 20px;
  height: 20px;
  display: inline-block; /* Allows text to flow next to it */
  vertical-align: middle; /* Aligns with text */
  border: 1px solid var(--color-box-border-color); /* Adds a subtle border */
}

@media (max-width: 767px) {
  .legend-table {
    display: block;
  }
  .legend-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--legend-cell-border-color);
    margin-bottom: 4px;
    padding-bottom: 4px;
  }
  .legend-cell {
    display: block;
    width: auto;
    border: none;
    padding: 2px 0;
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  /* Add spacing between cells in a row except the first */
  .legend-row > .legend-cell:not(:first-of-type) {
    margin-left: 15px;
  }

  /* Set minimum size for the first cell to align cell #2 if possible */
  .legend-row > .legend-cell:first-of-type {
    min-width: 10em;
  }
}

/* Styles for button-like links (e.g. "Bli medlem", "Når treffes vi?") */
.button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
}
.button-link:hover {
  background-color: #0056b3;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO CAROUSEL
   All motion is CSS transitions/layouts; JS manages state classes only.

   Class states applied by carousel.js:
     .is-active      – slide / body item / description currently on screen
     .is-enter-left  – incoming slide snapped off-screen LEFT (no transition)
     .is-exit-left   – outgoing slide animating off to the left
     .is-exit-right  – outgoing slide animating off to the right
     .no-anim        – suppresses transitions during setup (removed after 2 rAFs)
     .is-visible     – applied to #carousel-curr-desc when title text is shown

   Configurable via CSS custom properties (set on #hero-carousel or override
   the defaults on .carousel):
     --carousel-max-height  max pixel height of the image box  (default 450px)
     --carousel-max-width   max pixel/% width of the image box (default 100%)
   ═══════════════════════════════════════════════════════════════════════════ */

.carousel {
    position: relative;
    outline: none;
    font-family: var(--main-font-family);
    margin-bottom: 2px;

    /* ── Configurable sizing knobs ──────────────────────────────────────── */
    /* Override these on #hero-carousel { --carousel-max-height: 350px; } */
    --carousel-max-height: 450px;
    --carousel-max-width: 100%;
}

/* ── Title bar ─────────────────────────────────────────────────────────── */
.carousel-title-bar {
    background: var(--card-bg-color);
    padding: 10px 12px 8px;
    border-radius: 5px 5px 0 0;
}

.carousel-heading {
    margin: 0;
    font-size: clamp(1.1rem, 3.5vw, 1.7rem);
    color: var(--header-color);
    font-family: var(--header-font-family);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The swappable part of the heading ("på biblioteket", "brettspill", …).
   Starts invisible; .is-visible triggers the fade-in transition.
   TUNING: change the duration here AND change DESC_FADE_DURATION in
   carousel.js to the same value (in ms).  The JS uses it to schedule
   the text swap so the fade-in finishes exactly when the slide stops. */
#carousel-curr-desc {
    display: inline;
    opacity: 0;
    transition: opacity 0.35s ease;   /* 0.35s = 350ms = DESC_FADE_DURATION in JS */
}
#carousel-curr-desc.is-visible {
    opacity: 1;
}

/* ── Image-wrap: positions viewport + arrow buttons together ────────────── */
.carousel-image-wrap {
    /* arrow buttons are positioned relative to this wrapper */
    position: relative;
    /* honour --carousel-max-width and centre the narrowed box */
    max-width: var(--carousel-max-width, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* ── Aspect-ratio / height-capped image box ─────────────────────────────── */
/* aspect-ratio gives a natural 16:9 height; max-height caps it.
   When max-height kicks in the box becomes wider than 16:9 — images are
   letterboxed/pillarboxed by object-fit:contain on the <img>.
   The whole box (including empty space) slides as one unit so the
   animation always covers the full width cleanly. */
.carousel-aspect {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: var(--carousel-max-height, 450px);
    background: var(--main-bg-color);
}

/* ── Viewport fills the aspect box and clips the slides ─────────────────── */
/* overflow:hidden is reliable here: .carousel-viewport IS the containing
   block for .carousel-slide, so the spec guarantees clipping applies. */
.carousel-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* ── Individual slides ──────────────────────────────────────────────────── */

/* Default: snapped off-screen RIGHT — no transition (instant reposition) */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
}

/* Snap off-screen LEFT — no transition (entry point for backward slides) */
.carousel-slide.is-enter-left {
    transform: translateX(-100%);
}

/* On-screen.  Declared AFTER is-enter-left so its transform wins the
   cascade when both classes are present during a backward entry. */
.carousel-slide.is-active {
    transform: translateX(0);
    transition: transform 0.9s ease-in-out;
}

/* Forward exit: current slide leaves to the left */
.carousel-slide.is-exit-left {
    transform: translateX(-100%);
    transition: transform 0.9s ease-in-out;
}

/* Backward exit: current slide leaves to the right */
.carousel-slide.is-exit-right {
    transform: translateX(100%);
    transition: transform 0.9s ease-in-out;
}

/* Suppress all transitions during the initialisation phase */
.carousel-slide.no-anim,
.carousel-body-item.no-anim {
    transition: none !important;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /* contain = scale to fit without cropping; letterbox/pillarbox as needed */
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Arrow navigation buttons ───────────────────────────────────────────── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    /* Visual */
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 2.6rem;
    height: 3.5rem;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;

    /* Keep buttons inside the image area so they don't bleed into text */
    margin: 0 4px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    background: rgba(0, 0, 0, 0.75);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

/* ── Body-text area ─────────────────────────────────────────────────────── */
/* CSS Grid stacking: all items share cell (1, 1) → parent height = tallest
   item height; no explicit height needed. */
.carousel-body-area {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg-color);
    border-radius: 0 0 5px 5px;
    padding: 12px;
    min-height: 5.5em;
}

.carousel-body-item {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    visibility: hidden;
    /* Instant fade-out when .is-active is removed */
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    margin: 0;
}

.carousel-body-item.is-active {
    visibility: visible;
    opacity: 1;
    /* Fade-in starts at (TRANS_DURATION - fade-duration) so it FINISHES
       when the slide stops.  TUNING: delay = TRANS_DURATION(900ms) minus
       the opacity duration below.  Keep visibility delay = opacity delay. */
    transition: opacity 0.4s ease 0.5s, visibility 0s linear 0.5s;
}

.carousel-body-item p {
    margin: 0;
    line-height: 1.55;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-color);
}

/* ==========================================================================
   Redesign integration styles for live Eleventy pages
   ========================================================================== */

:root {
  --stone-light: #f4f1ea;
  --stone-dark: #2d2d2d;
  --accent-red: #e63946;
  --accent-blue: #457b9d;
  --accent-green: #2a9d8f;
  --accent-yellow: #ffb703;
  --border-width: 3px;
  --shadow-offset: 6px;
}

body:not(.countdown-page) {
  background-color: var(--stone-light);
  color: var(--stone-dark);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  padding: 0;
  padding-top: 220px;
}

body:not(.countdown-page) h1,
body:not(.countdown-page) h2,
body:not(.countdown-page) h3 {
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone-dark);
  line-height: 1.05;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--stone-light);
  border-bottom: var(--border-width) solid var(--stone-dark);
}

.main-nav__utility {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px 0;
}

.main-nav .flags {
  position: static;
  display: flex;
  gap: 10px;
  font-size: 1rem;
}

.main-nav .flags .flag {
  width: 30px;
  height: auto;
  cursor: pointer;
}

.main-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 20px 18px;
}

.logo img {
  height: 110px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-item > a,
.dropdown > a {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  color: var(--stone-dark);
  text-decoration: none;
  padding: 5px 10px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.nav-item > a:hover,
.dropdown > a:hover,
body.index-page .nav-link-home,
body.tirsdag-page .nav-link-tirsdag,
body.ttt-page .nav-link-ttt,
body.boardgames-page .nav-link-boardgames,
body.rpg-page .nav-link-rpg,
body.about-page .nav-link-about,
body.miniaturegames-page .nav-link-miniaturegames,
body.tradingcardgames-page .nav-link-tradingcardgames {
  background-color: var(--accent-yellow);
  border: 2px solid var(--stone-dark);
  box-shadow: 3px 3px 0 var(--stone-dark);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border: var(--border-width) solid var(--stone-dark);
  box-shadow: 5px 5px 0 var(--stone-dark);
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  font-size: 1rem;
  text-decoration: none;
  border: none !important;
  color: var(--stone-dark);
}

.dropdown-content a:hover {
  background: var(--stone-light);
  color: var(--accent-blue);
}

.comic-panel {
  background: white;
  border: var(--border-width) solid var(--stone-dark);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--stone-dark);
  transition: transform 0.2s ease;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.comic-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent-blue);
}

.comic-panel a:not(.card-link-overlay) {
  position: relative;
  z-index: 1;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-shell {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.page-hero {
  padding: 32px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.page-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.page-hero__lead {
  font-size: 1.1rem;
  max-width: 60ch;
}

/* markdown-it wraps kicker span and image in <p>; strip the unwanted margins */
.page-hero__grid > div > p:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

.page-hero .comic-panel > p {
  margin: 0;
  line-height: 0; /* prevents inline whitespace gap below block-level img */
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.page-grid--sidebar {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.panel-body {
  padding: 24px;
}

.panel-body > :first-child {
  margin-top: 0;
}

.panel-body > :last-child {
  margin-bottom: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--accent-yellow);
  border: 2px solid var(--stone-dark);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.muted-note {
  color: #5c5c5c;
  font-size: 0.95rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border: var(--border-width) solid var(--stone-dark);
  box-shadow: 4px 4px 0 var(--stone-dark);
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent-red);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--stone-dark);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--stone-dark);
}

.nav-btn {
  padding: 6px 15px !important;
  font-size: 1.1rem !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: white !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.cta-row p {
  margin: 0;
  display: contents;
}

.highlight-box {
  background-color: #e9f5f3;
  border-left: 5px solid var(--accent-green);
  padding: 15px;
  margin: 20px 0;
}

.highlight-box > p:first-child,
.rule-note > p:first-child,
.detail-card > p:first-child {
  margin-top: 0;
}

.highlight-box > p:last-child,
.rule-note > p:last-child,
.detail-card > p:last-child {
  margin-bottom: 0;
}

.split-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.detail-card {
  background: #fcfbf8;
  border: 2px solid var(--stone-dark);
  padding: 16px;
}

.detail-card h3,
.detail-card h4 {
  margin-top: 0;
}

.stat-list,
.link-list,
.calendar-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-list li,
.link-list li,
.calendar-list li,
.plain-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #c9c2b6;
}

.stat-list li:last-child,
.link-list li:last-child,
.calendar-list li:last-child,
.plain-list li:last-child {
  border-bottom: none;
}

.feature-list {
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: #f8f4ec;
  border: 2px solid var(--stone-dark);
  box-shadow: 3px 3px 0 var(--stone-dark);
  padding: 8px 12px;
  font-weight: 700;
}

.library-entry {
  margin: 0 0 20px;
}

.library-entry summary {
  cursor: pointer;
  list-style: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  padding: 20px 24px;
  background: var(--stone-light);
  border-bottom: 2px solid var(--stone-dark);
}

.library-entry[open] summary {
  background: #fff2d0;
}

.library-entry summary::-webkit-details-marker {
  display: none;
}

.library-meta {
  margin-top: 14px;
  color: #444;
  font-size: 0.95rem;
}

.parking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.parking-table th {
  background: var(--stone-dark);
  color: white;
  text-align: left;
  padding: 8px;
}

.parking-table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
}

.status-dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.tt-schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border: 2px solid var(--stone-dark);
}

.tt-schedule th {
  background-color: var(--accent-red);
  color: white;
  text-align: left;
  padding: 10px;
  text-transform: uppercase;
}

.tt-schedule td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.tt-schedule tr:nth-child(even) {
  background-color: #fcfbf8;
}

.rule-note {
  background: #fffbe6;
  border-left: 10px solid var(--accent-yellow);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
  border-top: 2px solid var(--stone-dark);
  border-right: 2px solid var(--stone-dark);
  border-bottom: 2px solid var(--stone-dark);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.number-grid .detail-card {
  text-align: center;
}

.embed-frame {
  width: 100%;
  height: 320px;
  border: 0;
}

.footer {
  background: var(--stone-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer .partners-wrapper {
  margin-top: 24px;
}

.footer .partners {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer .partner-box {
  min-width: 220px;
  padding: 18px;
  margin-bottom: 0;
}

.footer .partner-box img {
  max-width: 180px;
  max-height: 72px;
}

@media (max-width: 900px) {
  body:not(.countdown-page) {
    padding-top: 0;
  }

  .main-nav {
    position: static;
  }

  .main-nav__utility,
  .main-nav__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img {
    height: 90px;
  }

  .nav-links {
    gap: 12px;
  }

  .page-hero__grid,
  .page-grid--sidebar {
    grid-template-columns: 1fr;
  }
}
