/* ============================================================
   weather-of-the-week.css
   Mobile-first breakpoints:
     base   : 240px  (allow quirks)
     360px  : mobile perfect
     768px  : tablet
     1280px : desktop
   ============================================================ */

/* ─── Reset / Base ──────────────────────────────────────────── */

body {
  margin: 0;
  min-height: auto;
  align-content: start;
  justify-content: start;
  font-family: "Dosis", sans-serif;
  background-color: var(--colourA-light);
}

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

/* ─── Hidden elements ───────────────────────────────────────── */

#toggleRightSidebar,
.button-weather-leaderboard,
.button-three {
  display: none;
}

/* ─── Banner ────────────────────────────────────────────────── */

#page-banner {
  display: contents;
}

.banner-content {
  background-color: var(--backgroundPrimary);
  font-family: "Dosis", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.home-icon svg {
  fill: white;
  width: 25px;
  height: 25px;
  margin-left: 20px;
  position: relative;
  top: 4px;
  stroke: none;
}

.sidebar-aligned a {
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.page-header {
  background: var(--backgroundPrimary);
  color: white;
  width: 100vw;
  padding: 0 24px 32px;
}

.page-header p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
  font-family: "Dosis", sans-serif;
}

/* ─── H1 ────────────────────────────────────────────────────── */

h1 {
  color: var(--svgText);
  font-family: "Dosis", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 1200px;
  background: transparent;
  text-wrap: auto;
  margin: 8px 0;
}

h1::after {
  display: block;
  font-size: 14px;
  opacity: 0.8;
}

/* ─── Table wrapper ─────────────────────────────────────────── */

.table-wrapper {
  width: 100vw;
  justify-content: start;
  align-content: center;
  /* overflow-x: auto; */
  -webkit-overflow-scrolling: touch;
}

.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* ─── Table ─────────────────────────────────────────────────── */

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  font-size: 10px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
  animation: tableSlideIn 0.6s ease-out;
}

@keyframes tableSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 360px) {
  table {
    font-size: 11px;
    margin: 20px auto;
  }
}

@media (min-width: 768px) {
  table {
    width: 95%;
    font-size: 13px;
    margin: 30px auto;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 1280px) {
  table {
    font-size: 14px;
    margin: 40px auto;
  }
}

/* ─── th / td ───────────────────────────────────────────────── */

th,
td {
  /* padding: 8px 6px; */
  text-align: center;
  vertical-align: middle;
  padding: 8px clamp(2px, 1vw, 8px);
}

th {
  background-color: var(--svgPrimary);
  font-family: "Dosis", sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
  font-weight: 500;
}

@media (min-width: 768px) {
  th,
  td {
    padding: 14px 12px;
  }

  th {
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

@media (min-width: 1280px) {
  th,
  td {
    padding: 18px 14px;
  }

  th {
    font-size: 14px;
  }
}

/* ─── Table class overrides ─────────────────────────────────── */

.weather-of-the-week-table {
  line-height: 1.2;
  text-align: center;
  border: 0;
  width: 100%;
}

.weather-of-the-week-table td,
.weather-of-the-week-table th {
  border-bottom: 1px solid rgba(202, 178, 164, 0.2);
}

.weather-of-the-week-table tbody tr:last-child td {
  border-bottom: none;
}

.weather-of-the-week-table tr {
  color: #2c3e50;
}

.weather-of-the-week-table th {
  color: white;
}

.weather-of-the-week-table tbody tr {
  transition: background-color 0.2s ease;
}

/* ─── Destination column ────────────────────────────────────── */

.destination-column {
  width: 120px;
  white-space: normal;
  text-wrap: wrap;
}

@media (min-width: 768px) {
  .destination-column {
    width: auto;
    white-space: nowrap;
  }
}

/* ─── City links ────────────────────────────────────────────── */

.weather-of-the-week-table a {
  color: #323288 !important;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

/* ─── Weather column ────────────────────────────────────────── */

.leaderboard-weather-column {
  white-space: nowrap;
  min-width: clamp(1rem, 13vw, 10rem);
}

/* ─── Weather icons ─────────────────────────────────────────── */

.card-svg-icon {
  display: inline-block;
}

.card-svg-icon svg {
  width: 28px !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

@media (min-width: 360px) {
  .card-svg-icon svg {
    width: 32px !important;
  }
}

@media (min-width: 768px) {
  .card-svg-icon svg {
    width: 40px !important;
  }
}

/* ─── Top 3 medal rows ──────────────────────────────────────── */

table.weather-of-the-week-table > tbody:nth-child(2) > tr:nth-child(1) {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.15) 50%,
    rgba(255, 215, 0, 0.1) 100%
  );
  font-weight: 700;
  animation: goldPulse 3s ease-in-out infinite;
}

table.weather-of-the-week-table > tbody:nth-child(2) > tr:nth-child(2) {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.3) 0%,
    rgba(192, 192, 192, 0.15) 50%,
    rgba(192, 192, 192, 0.1) 100%
  );
  font-weight: 600;
}

table.weather-of-the-week-table > tbody:nth-child(2) > tr:nth-child(3) {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.3) 0%,
    rgba(205, 127, 50, 0.15) 50%,
    rgba(205, 127, 50, 0.1) 100%
  );
  font-weight: 600;
}

@keyframes goldPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 20px rgba(255, 215, 0, 0.15),
      0 2px 10px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow:
      inset 0 0 30px rgba(255, 215, 0, 0.25),
      0 2px 14px rgba(255, 215, 0, 0.45);
  }
}

/* ─── Medal emoji badges ────────────────────────────────────── */

table.weather-of-the-week-table tbody tr:nth-child(1) td:first-child::after {
  content: " 🥇";
  font-size: 12px;
  display: inline-block;
  animation: medalBounce 2s ease-in-out infinite;
}

table.weather-of-the-week-table tbody tr:nth-child(2) td:first-child::after {
  content: " 🥈";
  font-size: 12px;
  display: inline-block;
  animation: medalBounce 2s ease-in-out infinite 0.2s;
}

table.weather-of-the-week-table tbody tr:nth-child(3) td:first-child::after {
  content: " 🥉";
  font-size: 12px;
  display: inline-block;
  animation: medalBounce 2s ease-in-out infinite 0.4s;
}

@media (min-width: 768px) {
  table.weather-of-the-week-table tbody tr:nth-child(1) td:first-child::after {
    font-size: 20px;
  }
  table.weather-of-the-week-table tbody tr:nth-child(2) td:first-child::after {
    font-size: 18px;
  }
  table.weather-of-the-week-table tbody tr:nth-child(3) td:first-child::after {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  table.weather-of-the-week-table tbody tr:nth-child(1) td:first-child::after {
    font-size: 24px;
  }
  table.weather-of-the-week-table tbody tr:nth-child(2) td:first-child::after {
    font-size: 22px;
  }
  table.weather-of-the-week-table tbody tr:nth-child(3) td:first-child::after {
    font-size: 20px;
  }
}

@keyframes medalBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

/* ─── SEO / FAQ section ─────────────────────────────────────── */

p {
  text-wrap: wrap;
  white-space: wrap;
  max-width: 98vw;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.wotw-seo-content {
  max-width: 1200px;
  padding: 0 1rem;
  font-family: "Dosis", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--svgText);
}

.wotw-seo-content__intro-heading,
.wotw-seo-content__section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--svgText);
  margin: 1.5rem 0 0.5rem;
}

.wotw-seo-content__intro {
  margin-bottom: 1rem;
}

.wotw-faq {
  margin-top: 0.75rem;
  border-top: 1px solid var(--textPrimary);
}

.wotw-faq__item {
  border-bottom: 1px solid var(--textPrimary);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.wotw-faq__question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0rem 0.85rem 0rem;
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--svgText);
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-wrap: wrap;
  width: 90vw;
}

.wotw-faq__question::-webkit-details-marker {
  display: none;
}

.wotw-faq__question > * {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wotw-faq__question::after {
  flex-shrink: 0; /* already there — keep it */
}
.wotw-faq__question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.wotw-faq__item[open] > .wotw-faq__question::after {
  transform: rotate(45deg);
}

.wotw-faq__answer {
  padding: 0 0.25rem 1rem;
  font-family: "Dosis", sans-serif;
  font-size: 0.88rem;
  color: var(--backgroundPrimary);
}

@media (min-width: 768px) {
  .wotw-seo-content {
    padding: 0 2rem;
    font-size: 1rem;
    margin: 0 auto;
  }

  .wotw-seo-content__intro-heading,
  .wotw-seo-content__section-heading {
    font-size: 1.15rem;
  }

  .wotw-faq__question {
    font-size: 1rem;
  }

  .wotw-faq__answer {
    font-size: 0.95rem;
  }
}

@media (min-width: 1280px) {
  .wotw-seo-content__intro-heading,
  .wotw-seo-content__section-heading {
    font-size: 1.25rem;
  }
}

/* ─── Jump to rankings button ───────────────────────────────── */

/* ─── Jump to rankings button ───────────────────────────────── */

.wotw-jump-btn {
  background: white;
  color: var(--brand-primary);
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: clamp(0.65rem, 2.2vh, 1rem);
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 3px 3px var(--backgroundPrimary);
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.wotw-jump-btn:hover {
  background: #c8eaff;
  color: #0b5259;
  box-shadow: 3px 3px var(--svgPrimary);
}

/* ── Banner ── */
.about-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: var(--backgroundPrimary);
  height: clamp(40px, 40px + 0.5vw, 6vh);
  width: 100%;
  gap: 4px;
}

.about-banner-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  min-width: 0;
  font-size: clamp(20px, 20px + 0.5vw, 1.7em);
  font-family: "Bebas Neue", sans-serif;
  font-weight: bold;
}

.about-banner-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 10px;
  background-color: var(--brand-bg-light);
  border-radius: 23px;
}

.about-banner-logo span {
  display: none;
}

.about-banner-cta {
  background: white;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 3px 3px #ffca9c;
  font-size: clamp(0.65rem, 2.2vh, 1rem);
  margin: 0px 10px;
}

.about-banner-cta:hover {
  background: #c8eaff;
  color: #0b5259;
  box-shadow: 3px 3px #ffefda;
}
.fff-brand-name {
  font-size: clamp(20px, 20px + 0.5vw, 1.7em);
  font-family: "Dosis", sans-serif;
}

@media only screen and (min-width: 360px) {
  .about-banner {
    padding: 0 14px;
    gap: 6px;
  }

  .about-banner-logo img {
    width: 30px;
    height: 30px;
  }

  .about-banner-logo span {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.wotw-faq__question h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
