/* =========================================================================
   VINTERTEMA OCH ISKARTING
   Laddas i vinterläge (alla sidor) och alltid på /iskarting/.
   Allt som ändrar sajtens utseende ligger under .theme-winter, så att
   sommarläget är orört. Idé: samma varumärke (navy, gult, Big Shoulders),
   men kallare. Navy drar mot polarnatt, cream blir isvit, gult behålls som
   "varselgult i snön". Signaturen är plogvallen i nederkant av heron.
   ========================================================================= */

.theme-winter {
  --navy: #07121f;
  --navy-2: #0e2033;
  --navy-3: #15304a;
  --navy-deep: #040b14;
  --surface: #0f243a;
  --surface-2: #163352;
  --line: #2b5276;
  --cream: #eaf2f7;
  --cream-soft: #c3d4e0;
  --text-muted: #86a0b8;
  --text-dim: #4d6683;
  --yellow: #ffcc00;
  --ice: #9ad7f2;
  --ice-deep: #4fa9d6;
  --snow: #f4f8fb;
}

/* ---------- Isbanan stängd (banner överst på alla sidor) ---------- */
.ice-banner {
  background: #b3261e;
  color: #fff;
  position: relative;
  z-index: 60;
}
.ice-banner-inner {
  display: flex; align-items: flex-start; gap: 14px;
  padding-top: 14px; padding-bottom: 14px;
}
.ice-banner-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #fff; color: #b3261e;
  font: 800 16px/1 'Big Shoulders Display', sans-serif;
  margin-top: 1px;
}
.ice-banner p { margin: 0; font-size: 15px; line-height: 1.5; }
.ice-banner strong { font-weight: 700; }
@media (max-width: 600px) {
  .ice-banner-inner { gap: 10px; padding-top: 11px; padding-bottom: 11px; }
  .ice-banner p { font-size: 14px; }
}

/* ---------- Förhandsvisning ---------- */
.preview-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 9999;
  background: #fff; color: #0b1929;
  font: 600 13px/1 'Instrument Sans', system-ui, sans-serif;
  padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.preview-badge a { color: #0b1929; text-decoration: underline; margin-left: 8px; }

/* ---------- Hero: kallt ljus + snö bakom innehållet ---------- */
.theme-winter .hero::before {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(154,215,242,0.13), transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(255,204,0,0.05), transparent 55%);
  left: 0; right: 0; top: 0; width: auto; height: 100%; transform: none;
}
.theme-winter .hero { padding-bottom: clamp(64px, 7vw, 110px); }
.theme-winter .hero .wrap { position: relative; z-index: 2; }
.snow-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .snow-canvas { display: none; }
}

/* Plogvallen: heron slutar i en mjuk snövall som det rullande bandet ligger under. */
.theme-winter .hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(34px, 4vw, 58px);
  z-index: 3;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f4f8fb' d='M0 38 C60 30 110 22 180 27 C260 33 300 14 390 18 C470 22 520 36 610 31 C700 26 740 10 830 14 C930 19 960 34 1060 30 C1150 27 1190 12 1280 17 C1350 21 1400 30 1440 26 L1440 60 L0 60 Z'/%3E%3Cpath fill='%23c9e2ef' opacity='.55' d='M0 50 C120 44 240 47 360 45 C520 42 640 50 800 47 C980 44 1100 51 1260 47 C1350 45 1400 48 1440 47 L1440 60 L0 60 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
/* Rullande bandet blir isvitt med navy text, som en plogad kant. */
.theme-winter .status { background: var(--snow); color: var(--navy); }
.theme-winter .status em { color: var(--ice-deep); }

/* Hero-bilden: frostkant + kall bildtext */
.theme-winter .hero-image {
  box-shadow: 0 0 0 1px rgba(154,215,242,0.35), 0 30px 70px -24px rgba(0,0,0,0.75);
}
.theme-winter .hero-image::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(234,242,247,0.18);
}
.theme-winter .hero-image-caption { background: rgba(7,18,31,0.92); border-top-color: var(--ice); }
/* Vinterfotot är liggande men rutan stående (4:5). Kartingen kör åt höger, så
   beskärningen ligger till höger: kartingen hamnar till vänster med luft framför sig. */
.theme-winter .hero-image img { object-position: 80% 50%; }
/* Rutflaggan är sommarens signatur. På vintern bär plogvallen formen. */
.theme-winter .hero-image .checker-corner { display: none; }
.theme-winter .hero-image-caption em { color: var(--ice); }

/* Nav: iskarting-länken lyfts fram */
.nav-link-ice {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--snow, #f4f8fb) !important;
}
.nav-link-ice svg { width: 13px; height: 13px; color: var(--ice, #9ad7f2); }

/* Prisgriden: gula ramen blir is, gult sparas till knapparna. Paketen tonas ned. */
.theme-winter .prices-grid { background: var(--line); border-color: var(--line); }
.theme-winter #priser .prices-grid { opacity: .72; }
.summer-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  color: var(--cream);
  border-left: 3px solid var(--ice);
  background: rgba(154,215,242,0.07);
  padding: 12px 16px; margin: 0 auto 22px;
  max-width: 780px;
}

/* ---------- Iskarting-sektionen på startsidan ---------- */
.race-num-ice { background: var(--ice); color: var(--navy); }
#iskarting .section-head { margin-bottom: 18px; }
#iskarting .sect-title { margin-bottom: 22px; }

/* ---------- Gemensamt: två sätt att köra ---------- */
.ice-section-intro { color: var(--cream-soft); max-width: 60ch; line-height: 1.6; margin: 0 0 34px; }
.ice-offers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--line); border: 2px solid var(--line);
}
@media (max-width: 820px) { .ice-offers { grid-template-columns: 1fr; } }
.ice-offer {
  background: var(--surface);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex; flex-direction: column;
  color: var(--cream);
}
.ice-offer-link { text-decoration: none; transition: background .2s; }
.ice-offer-link:hover, .ice-offer-link:focus-visible { background: var(--surface-2); }
.ice-offer-kind {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--ice); margin-bottom: 14px;
}
.ice-offer h3 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(38px, 4vw, 60px); line-height: .9;
  color: var(--snow); margin: 0 0 16px;
}
.ice-offer p { color: var(--cream-soft); line-height: 1.6; margin: 0 0 22px; max-width: 46ch; }
.ice-offer .price-list { margin-bottom: 26px; }
.ice-offer .btn { margin-top: auto; align-self: flex-start; }
.ice-offer-group { background: var(--surface-2); }
.ice-offer-group.ice-offer-link:hover { background: var(--navy-3); }

/* =========================================================================
   ISKARTING-SIDAN (/iskarting/)
   ========================================================================= */
/* Cliento-widgeten: samma färger som på /boka/. Bottenfältet renderas utanför
   sidinnehållet och ärver body-färgen, därför navy på body och cream på main. */
body.subpage-iskarting {
  color: var(--navy);
  --cb-color-primary: #0b1929;
  --cb-color-primary-hover: #142842;
  --cb-color-secondary: #0b1929;
  --cb-color-warning-40: #0b1929;
  --cb-color-warning-50: #0b1929;
  --cb-color-warning-100: #f2ede0;
  --cb-border-radius-medium: 4px;
  --cb-border-radius-small: 2px;
}
.ice-page { color: var(--cream); }

.ice-hero {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 6vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(154,215,242,0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
}
.ice-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(34px, 4vw, 58px); z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%2307121f' d='M0 38 C60 30 110 22 180 27 C260 33 300 14 390 18 C470 22 520 36 610 31 C700 26 740 10 830 14 C930 19 960 34 1060 30 C1150 27 1190 12 1280 17 C1350 21 1400 30 1440 26 L1440 60 L0 60 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.ice-hero .wrap { position: relative; z-index: 2; }
/* Snabbfakta direkt under toppen. Toppen har redan luft för plogvallen. */
.ice-facts-sect { padding-top: 0; }
.ice-faq { max-width: 900px; }
.ice-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .ice-hero-grid { grid-template-columns: 1fr; } }

.ice-crumb {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--text-muted); margin-bottom: 26px;
}
.ice-crumb a { color: var(--text-muted); text-decoration: none; }
.ice-crumb a:hover { color: var(--cream); }

.ice-hero .hero-meta { margin-bottom: 28px; }

.ice-h1 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(64px, 10.5vw, 168px);
  /* Luft nog för ringen i Å ("PÅ") under O:et i "GOKART". Uppmätt: Å når ca 1,05 em
     över baslinjen i Big Shoulders 900, så radavståndet måste vara större än så. */
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--snow);
  margin: 0;
}
.ice-kicker {
  display: block;
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2;
  color: var(--ice);
  margin-bottom: .35em;
}
/* "is" i isblått med en prickad linje under, som spåren efter dubbdäck. */
.ice-h1 .ice-word { color: var(--ice); display: inline-block; position: relative; }
.ice-h1 .ice-word::after {
  content: '';
  position: absolute; left: 2%; right: 4%; bottom: -.06em;
  height: .055em;
  background: radial-gradient(circle, var(--ice) 45%, transparent 50%) 0 0 / .11em 100% repeat-x;
  opacity: .8;
}
.ice-sub {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--cream);
  margin: 30px 0 14px;
  max-width: 30ch;
}
.ice-lede {
  color: var(--cream-soft);
  font-size: 17px; line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 30px;
}

.ice-figure {
  position: relative; margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(154,215,242,0.35), 0 30px 70px -24px rgba(0,0,0,0.75);
}
.ice-figure img { width: 100%; height: 100%; object-fit: cover; }
.ice-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  background: rgba(7,18,31,0.92);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--cream);
}
.ice-figure figcaption em { color: var(--ice); font-style: normal; }

/* ---------- Bantavlan: snabbfakta ---------- */
.ice-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--navy-2);
  margin: 0;
}
.ice-board > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.ice-board > div:first-child { border-left: 0; }
.ice-board dt {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--text-muted); margin-bottom: 10px;
}
.ice-board dd {
  margin: 0;
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1;
  color: var(--snow);
}
@media (max-width: 900px) {
  .ice-board { grid-template-columns: 1fr 1fr; }
  .ice-board > div:nth-child(3) { border-left: 0; }
  .ice-board > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Bra att veta ---------- */
.ice-good {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  background: rgba(255,204,0,0.05);
}
.ice-good-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--yellow);
}
.ice-good ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ice-good li { color: var(--cream); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.ice-good li::before { content: ''; width: 6px; height: 6px; background: var(--ice); border-radius: 50%; }

/* ---------- Rubriker ---------- */
.ice-h2 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 72px); line-height: .95; color: var(--snow); margin: 0 0 18px;
}
.ice-h2 .it { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; text-transform: none; color: var(--cream-soft); }

/* ---------- Boka ---------- */
.ice-book { background: var(--navy-2); }
.ice-book-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------- Klädsel och kiosk ---------- */
.ice-gear { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
@media (max-width: 820px) { .ice-gear { grid-template-columns: 1fr; } }
.ice-gear ul { list-style: none; padding: 0; margin: 0; }
.ice-gear li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.ice-gear li span:last-child { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--text-muted); text-align: right; }
.ice-gear h3 {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  font-size: 24px; color: var(--cream); margin: 0 0 12px;
}
.ice-gear h3 + ul + h3 { margin-top: 28px; }

/* ---------- Film (laddas först vid klick) ---------- */
.ice-video {
  position: relative; max-width: 900px; aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.ice-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ice-video-play {
  display: grid; place-items: center; gap: 14px;
  background: none; border: 0; color: var(--cream); cursor: pointer;
  font: 600 16px/1.4 'Instrument Sans', sans-serif; padding: 24px;
}
.ice-video-play-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-size: 28px; padding-left: 5px;
}
.ice-video-play small { color: var(--text-muted); font-weight: 400; font-size: 13px; max-width: 46ch; }
.ice-video-is-empty { aspect-ratio: auto; justify-items: start; text-align: left; }
.ice-video-is-empty .ice-video-empty { justify-items: start; padding: 28px 32px; }
.ice-video-empty { padding: 24px; display: grid; gap: 16px; justify-items: center; color: var(--cream-soft); max-width: 52ch; }

/* ---------- Kör med gänget ---------- */
.ice-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 820px) { .ice-groups { grid-template-columns: 1fr; } }
.ice-groups a {
  background: var(--navy-2); padding: 28px; text-decoration: none; color: var(--cream);
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s;
}
.ice-groups a:hover, .ice-groups a:focus-visible { background: var(--surface-2); }
.ice-groups strong {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800;
  font-size: 30px; text-transform: uppercase; color: var(--snow);
}
.ice-groups span { color: var(--cream-soft); font-size: 15px; line-height: 1.5; }
