/*
Theme Name: Windsor Academy Family Portal
Theme URI: https://inside.waknights.com/
Author: Windsor Academy
Description: A custom family portal theme inspired by the Windsor Academy Knights visual identity: royal blue, white, charcoal, athletic typography, shield-style accents, and a clean card-based portal layout.
Version: 1.0.5
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: windsor-family-portal
*/
:root {
  --wa-blue: #0082f8;
  --wa-blue-dark: #005fbd;
  --wa-navy: #07111f;
  --wa-ink: #101820;
  --wa-gray: #66717d;
  --wa-light: #f4f7fb;
  --wa-white: #fff;
  --wa-border: #dfe6ee;
  --wa-shadow: 0 14px 35px rgba(7, 17, 31, .10);
  --wa-radius: 14px;
  --wa-max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--wa-ink);
  background: var(--wa-light);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--wa-blue-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { color: var(--wa-blue); }

button,
input,
select,
textarea { font: inherit; }

.container {
  width: min(calc(100% - 36px), var(--wa-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--wa-border);
  box-shadow: 0 4px 18px rgba(7,17,31,.06);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.header-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 15px;
  color: var(--wa-ink);
  text-decoration: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-header .brand img {
  display: block;
  width: auto;
  height: 112px;
  max-width: none;
  align-self: flex-end;
  margin-bottom: -32px;
  filter: drop-shadow(0 8px 18px rgba(7, 17, 31, 0.22));
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--wa-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--wa-ink);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--wa-blue-dark);
  background: #edf6ff;
}

.portal-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--wa-blue);
  color: var(--wa-white) !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0,130,248,.25);
}

.portal-login:hover {
  background: var(--wa-blue-dark);
  transform: translateY(-1px);
}

.header-rule {
  position: relative;
  z-index: 1;
  height: 5px;
  background: linear-gradient(90deg, var(--wa-navy) 0 15%, var(--wa-blue) 15% 85%, var(--wa-navy) 85%);
}

.site-back,
.wak-mobile-back {
  position: absolute;
  z-index: 3;
  top: 0;
  right: max(18px, calc((100% - var(--wa-max)) / 2));
  height: 88px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--wa-navy);
  font-size: 0; /* hide mangled ‹ from a Latin-1 PHP file */
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.site-back::before,
.wak-mobile-back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.site-back::after,
.wak-mobile-back::after {
  content: "Back";
  font-size: 0.95rem;
  font-weight: 800;
}

.site-back:hover,
.wak-mobile-back:hover {
  background: #edf6ff;
  color: var(--wa-blue-dark);
}

/* Hero */
.portal-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(0,130,248,.45), transparent 28%),
    linear-gradient(135deg, #050b13, #0b1c31 58%, #07111f);
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: var(--wa-blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7fc4ff;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portal-hero h1,
.entry-title,
.page-title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.portal-hero h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

.hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: #dbe8f5;
  font-size: 1.1rem;
}

.hero-badge {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: end;
  width: min(380px, 100%);
  text-align: center;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 280px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.10) 42%,
    transparent 70%
  );
  animation: hero-halo-pulse 2.4s ease-in-out infinite;
}

.hero-badge img {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  height: auto;
  transform-origin: center;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
  animation: hero-logo-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-halo-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes hero-logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 16px 48px rgba(255, 255, 255, 0.28));
  }
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--wa-blue);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

.button:hover,
.wp-block-button__link:hover {
  background: #fff;
  color: var(--wa-navy) !important;
}

/* Portal content */
.portal-section {
  text-align: center;
  padding: 12px 0 40px;
}

.portal-section .content-card {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.portal-section .portal-card {
  text-align: left;
}

.portal-section .section-heading h3 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.portal-section .button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  color: var(--wa-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--wa-gray);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portal-card {
  position: relative;
  display: flex;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--wa-border);
  border-top: 5px solid var(--wa-blue);
  border-radius: var(--wa-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(7,17,31,.04);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.portal-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--wa-shadow);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background: #eaf5ff;
  color: var(--wa-blue-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.portal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.portal-card-header .card-icon {
  margin: 0;
}

.portal-card-header h3 {
  margin: 0;
}

.portal-card h3 {
  margin: 0 0 4px;
  color: var(--wa-navy);
  font-size: 1.06rem;
  line-height: 1.2;
}

/* When icon + title are siblings (no .portal-card-header wrapper), put them on one line */
.portal-card > .card-icon {
  float: left;
  margin: 0 12px 8px 0;
}

.portal-card > .card-icon + h3 {
  margin-top: 8px;
  margin-bottom: 4px;
  overflow: hidden; /* clear the float context for title line */
}

.portal-card::after {
  content: "";
  display: table;
  clear: both;
}

.portal-card p {
  margin: 0;
  color: var(--wa-gray);
  font-size: .88rem;
}

.card-arrow {
  margin-top: 14px;
  color: var(--wa-blue-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Content / WordPress */
.content-wrap { padding: 28px 0 64px; }

.content-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  background: #fff;
  box-shadow: var(--wa-shadow);
}

.entry-title,
.page-title {
  color: var(--wa-navy);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.home .entry-title {
  display: none;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content h2,
.entry-content h3 {
  color: var(--wa-navy);
  font-family: Georgia, "Times New Roman", serif;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 11px 13px;
  border: 1px solid var(--wa-border);
  text-align: left;
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 14px 20px;
  border-left: 5px solid var(--wa-blue);
  background: #f2f8ff;
  color: #35414e;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  color: #c8d5e2;
  background: var(--wa-navy);
}

.footer-top {
  padding: 46px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 36px;
}

.footer-brand img {
  width: 165px;
  height: auto;
  margin-bottom: 0;
  filter: none;
}

.footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.site-footer a { color: #d8eaff; }

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li { margin-top: 6px; }

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cdd7e1;
  border-radius: 8px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(0,130,248,.18);
  border-color: var(--wa-blue);
}

button,
input[type="submit"] {
  cursor: pointer;
}

/* WordPress utility */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.alignwide { max-width: 1180px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }

@media (max-width: 980px) {
  .header-main { min-height: 76px; }
  .site-back,
  .wak-mobile-back { height: 76px; }
  .site-header .brand img {
    height: 92px;
    margin-bottom: -24px;
  }
  .primary-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { justify-self: center; }
  .hero-badge img { width: min(260px, 100%); }
  .hero-badge::before { width: min(100%, 260px); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--wa-max)); }
  .brand-copy { display: none; }
  .portal-hero { padding: 48px 0 44px; }
  .portal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge::before,
  .hero-badge img {
    animation: none;
  }
}

  /* —— TH@W: This Week @ Windsor —— */
  .thaw-section {
    background: var(--off-white, #F7F9FC);
    padding: 32px 0 48px;
  }

  .thaw-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.5rem;
  }

  .thaw-title-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .thaw-title-mark .thaw-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy, #0A2540);
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
  }

  .thaw-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--text-light, #4A5B6C);
  }

  .thaw-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .thaw-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .thaw-swatch.events { background: #2563eb; }
  .thaw-swatch.athletics { background: #16a34a; }
  .thaw-swatch.lunchroom { background: #ea580c; }

  .thaw-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-gray, #6B7C8F);
    min-height: 1.3em;
    margin-bottom: 0.85rem;
  }

  .thaw-status.error { color: #b91c1c; }

  .thaw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .thaw-nav-btn {
    appearance: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy, #0A2540);
    background: var(--white, #fff);
    border: 1px solid var(--border, #D0D9E4);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .thaw-nav-btn:hover:not(:disabled) {
    border-color: var(--navy, #0A2540);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.1);
  }

  .thaw-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
  }

  .thaw-nav-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy, #0A2540);
    min-width: 7rem;
    text-align: center;
  }

  .thaw-week {
    background: var(--white, #fff);
    border: 1px solid var(--border, #D0D9E4);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 37, 64, 0.08));
    overflow: hidden;
  }

  .thaw-week-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.95rem 1.25rem;
    background: var(--navy, #0A2540);
    color: #fff;
  }

  .thaw-week-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
  }

  .thaw-week-range {
    font-size: 0.85rem;
    opacity: 0.85;
  }

  .thaw-days {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border, #D0D9E4);
  }

  .thaw-day {
    background: var(--white, #fff);
    min-height: 120px;
    padding: 0.65rem 0.55rem;
  }

  .thaw-day.is-today {
    background: #f0f7ff;
    box-shadow: inset 0 0 0 2px var(--navy, #0A2540);
  }

  .thaw-day-head {
    margin-bottom: 0.45rem;
  }

  .thaw-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--medium-gray, #6B7C8F);
    margin-bottom: 0.15rem;
  }

  .thaw-day-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy, #0A2540);
  }

  .thaw-day.is-today .thaw-day-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--navy, #0A2540);
    color: #fff;
    font-size: 0.85rem;
  }

  .thaw-day-body {
    display: block;
  }

  .thaw-event {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.28rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-weight: 500;
    word-break: break-word;
  }

  .thaw-event.events {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #2563eb;
  }

  .thaw-event.athletics {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #16a34a;
  }

  .thaw-event.lunchroom {
    background: #ffedd5;
    color: #9a3412;
    border-left: 3px solid #ea580c;
  }

  .thaw-event-time {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 0.1rem;
  }

  .thaw-empty {
    font-size: 0.78rem;
    color: var(--medium-gray, #6B7C8F);
    font-style: italic;
  }

  .thaw-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
  }

  .thaw-footer a {
    font-weight: 600;
    color: var(--navy, #0A2540);
  }

  /* Tablet: 3 columns */
  @media (max-width: 900px) {
    .thaw-days {
      grid-template-columns: repeat(3, 1fr);
    }

    .thaw-day {
      min-height: 110px;
      padding: 0.75rem 0.65rem;
    }

    .thaw-event {
      font-size: 0.78rem;
      padding: 0.35rem 0.45rem;
    }
  }

  /* Phone: stacked list — readable, full-width day rows */
  @media (max-width: 640px) {
    .thaw-header {
      margin: 0 auto 1.15rem;
      padding: 0 0.25rem;
    }

    .thaw-header h2 {
      font-size: 1.45rem;
    }

    .thaw-header p {
      font-size: 0.95rem;
    }

    .thaw-legend {
      gap: 0.65rem 1rem;
      font-size: 0.8rem;
    }

    .thaw-nav {
      gap: 0.5rem;
      margin-bottom: 0.85rem;
      padding: 0 0.15rem;
    }

    .thaw-nav-btn {
      flex: 0 0 auto;
      min-height: 44px;
      min-width: 44px;
      padding: 0.55rem 0.9rem;
      font-size: 0.88rem;
    }

    .thaw-nav-label {
      flex: 1 1 auto;
      min-width: 0;
      font-size: 0.88rem;
    }

    .thaw-week {
      border-radius: 10px;
    }

    .thaw-week-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.2rem;
      padding: 0.9rem 1rem;
    }

    .thaw-week-header h3 {
      font-size: 1rem;
    }

    .thaw-week-range {
      font-size: 0.82rem;
    }

    .thaw-days {
      display: flex;
      flex-direction: column;
      gap: 0;
      background: transparent;
    }

    .thaw-day {
      display: grid;
      grid-template-columns: 4.25rem 1fr;
      gap: 0.65rem;
      align-items: start;
      min-height: 0;
      padding: 0.85rem 1rem;
      border-bottom: 1px solid var(--border, #D0D9E4);
      box-shadow: none;
    }

    .thaw-day:last-child {
      border-bottom: none;
    }

    .thaw-day.is-today {
      background: #f0f7ff;
      box-shadow: inset 3px 0 0 var(--navy, #0A2540);
    }

    .thaw-day-head {
      margin-bottom: 0;
    }

    .thaw-day-label {
      font-size: 0.75rem;
      margin-bottom: 0.2rem;
    }

    .thaw-day-date {
      font-size: 1.15rem;
    }

    .thaw-day.is-today .thaw-day-date {
      min-width: 1.75rem;
      height: 1.75rem;
      font-size: 0.9rem;
    }

    .thaw-event {
      font-size: 0.88rem;
      line-height: 1.4;
      padding: 0.45rem 0.55rem;
      margin-bottom: 0.4rem;
    }

    .thaw-event:last-child {
      margin-bottom: 0;
    }

    .thaw-event-time {
      font-size: 0.75rem;
      margin-bottom: 0.15rem;
    }

    .thaw-empty {
      font-size: 0.85rem;
      padding: 0.25rem 0;
    }

    .thaw-footer {
      margin-top: 1rem;
      font-size: 0.92rem;
    }
  }

  @media (max-width: 400px) {
    .thaw-day {
      grid-template-columns: 3.6rem 1fr;
      padding: 0.75rem 0.85rem;
      gap: 0.5rem;
    }

    .thaw-event {
      font-size: 0.84rem;
    }

    .thaw-nav-btn {
      padding: 0.5rem 0.7rem;
      font-size: 0.82rem;
    }
  }

.raffle-band {
  background: linear-gradient(160deg, #3a1f12 0%, var(--navy-dark) 55%, var(--navy) 100%);
  color: var(--paper);
  text-align: center;
  padding: 3.5rem 1.25rem 4rem;
}
.raffle-band h2 { color: var(--paper); font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.raffle-price {
  margin: 0.75rem auto 0;
  font-weight: 600;
  color: #f3d19a;
}
.kicker {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}
.raffle-price {
  margin: 0.75rem auto 0;
  font-weight: 600;
  color: #f3d19a;
}
.raffle-ticket-link,
.raffle-ticket-wrap {
  display: block;
  margin: 1.75rem auto 0;
  max-width: 1100px;
  border-radius: var(--radius-md);
  overflow: auto;
  box-shadow: var(--shadow-lift);
  outline: 1px solid rgba(255,255,255,0.12);
}
.raffle-ticket-wrap img,
.raffle-ticket-link img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 560px;
}