/* Santa Tour 2026, Rotary Club of Newton-le-Willows.
   Self-contained styles: nothing here depends on the Rotary website's own CSS. */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --royal-blue: #17458f;
  --gold: #f7a81b;
  --cardinal: #e02927;
  --grass: #009739;
  --charcoal: #54565a;
  --ink: #000000;
  --silver: #d0cfcd;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero :focus-visible, .detail__head :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--royal-blue); }
.btn--gold:hover { background: var(--white); color: var(--royal-blue); }
.btn--blue { background: var(--royal-blue); border-color: var(--royal-blue); color: var(--white); }
.btn--blue:hover { background: var(--white); color: var(--royal-blue); }
.btn--ghost { background: var(--white); color: var(--royal-blue); border-color: var(--royal-blue); }
.btn--ghost:hover { background: var(--royal-blue); color: var(--white); }
.btn[disabled] { opacity: 0.45; cursor: default; }

/* Hero */
.hero { position: relative; background: var(--royal-blue); color: var(--white); overflow: hidden; }
.hero__lights { position: absolute; top: 0; left: 50%; width: 100%; min-width: 760px; height: auto; transform: translateX(-50%); }
.hero__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
  padding-top: clamp(76px, 9.6vw, 108px); padding-bottom: 26px;
}
.hero__text { flex: 1 1 420px; min-width: 0; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin-top: 4px; font-size: clamp(34px, 6vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { margin-top: 10px; max-width: 34em; font-size: 18px; font-weight: 600; }

/* Section headings */
main h2 { font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--royal-blue); }
main > section { margin-top: 26px; }

.notice { margin-top: 22px; padding: 16px 18px; border: 2px solid var(--silver); border-radius: var(--radius); }

/* Street finder */
.finder { padding: 18px 20px 20px; border: 2px solid var(--silver); border-radius: var(--radius); background: var(--white); }
.finder__label { display: block; margin-top: 6px; font-weight: 600; }
.finder__row { display: flex; gap: 10px; margin-top: 10px; }
.finder__input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 10px 16px;
  border: 2px solid var(--royal-blue); border-radius: 12px; background: var(--white);
  font-size: 18px;
}
.finder__input::placeholder { color: var(--charcoal); opacity: 1; }
.finder__clear { flex: 0 0 auto; }
.finder__help { margin-top: 8px; font-size: 15px; color: var(--charcoal); }
.finder__results:empty { display: none; }
.finder__results { margin-top: 12px; }
.finder__list { display: grid; gap: 8px; }
.result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  width: 100%; min-height: 56px; padding: 10px 16px;
  border: 2px solid var(--silver); border-radius: 12px; background: var(--white);
  text-align: left; cursor: pointer;
}
.result:hover { border-color: var(--royal-blue); }
.result__street { font-weight: 800; color: var(--royal-blue); }
.result__street small { display: block; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.result__when { font-weight: 700; }
.result__go { font-size: 15px; font-weight: 700; color: var(--royal-blue); text-decoration: underline; text-underline-offset: 3px; }
.finder__none { padding: 12px 16px; border-radius: 12px; background: var(--white); border: 2px solid var(--silver); }

/* Date tiles */
.dates__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.dates__hint { font-size: 15px; color: var(--charcoal); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  width: 100%; height: 100%; min-height: 86px; padding: 10px 12px 11px;
  border: 2px solid var(--silver); border-radius: 12px; background: var(--white);
  text-align: left; cursor: pointer;
}
.tile:hover { border-color: var(--royal-blue); }
.tile__date { display: block; font-size: 14px; font-weight: 800; color: var(--royal-blue); }
.nowrap { white-space: nowrap; }
.tile__area { display: block; margin-top: 1px; font-size: 17px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.tile__sub { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--charcoal); }
.tile__done { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--charcoal); }
.tile--static { border-style: dashed; }
.tile--past .tile__date, .tile--past .tile__area { color: var(--charcoal); }
.tile[aria-pressed="true"] { background: var(--royal-blue); border-color: var(--royal-blue); border-style: solid; }
.tile[aria-pressed="true"] .tile__date { color: var(--gold); }
.tile[aria-pressed="true"] .tile__area, .tile[aria-pressed="true"] .tile__sub, .tile[aria-pressed="true"] .tile__done { color: var(--white); }
.tile__badge {
  position: absolute; top: -9px; right: 8px; padding: 1px 9px; border-radius: 999px;
  background: var(--gold); color: var(--royal-blue); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Selected date */
.detail { border: 2px solid var(--royal-blue); border-radius: var(--radius); overflow: hidden; background: var(--white); scroll-margin-top: 12px; }
.detail:empty { display: none; }
.detail__head { padding: 18px 22px 20px; background: var(--royal-blue); color: var(--white); }
.detail__date { font-size: 16px; font-weight: 700; color: var(--gold); }
.detail__head h3 { margin-top: 2px; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
.detail__start { margin-top: 6px; font-size: 19px; font-weight: 700; }
.detail__ended { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--royal-blue); font-size: 14px; font-weight: 700; }
.detail__body { display: grid; gap: 22px; padding: 22px; }
.map { min-width: 0; }
.map__link { display: block; border: 1px solid var(--silver); border-radius: 12px; overflow: hidden; background: var(--white); }
.map__img { width: 100%; }
.map--tall { max-width: 440px; margin: 0 auto; }
.map figcaption { margin-top: 8px; font-size: 14px; color: var(--charcoal); }
.info { min-width: 0; }
.info h4 { font-size: 19px; font-weight: 800; color: var(--royal-blue); }
.streets { margin-top: 8px; columns: 2; column-gap: 24px; }
.streets li { break-inside: avoid; padding: 3px 0; font-weight: 600; }
.info__note { margin-top: 10px; padding: 8px 14px; border-left: 5px solid var(--gold); font-weight: 600; }
.info__wave { margin-top: 16px; }
.info__donate { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.info__donate p { flex: 1 1 200px; font-weight: 700; }
.static { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.static__card { padding: 18px 20px; border-radius: 12px; }
.static__card strong { display: block; font-size: 22px; line-height: 1.2; font-weight: 800; }
.static__card span { display: block; margin-top: 2px; font-weight: 600; }
.static__card--red { background: var(--cardinal); color: var(--white); }
.static__card--light { background: var(--white); color: var(--ink); border: 2px solid var(--silver); }
.static__card--light strong { color: var(--royal-blue); }
.pager { display: flex; justify-content: space-between; gap: 10px; padding: 0 22px 22px; }
.pager .btn { flex: 0 1 auto; min-width: 0; font-size: 16px; padding: 10px 18px; }

/* Footer */
.footer { margin-top: 28px; border-top: 1px solid var(--silver); background: var(--white); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 22px; padding-bottom: 24px; }
.footer__text { flex: 1 1 300px; min-width: 0; }
.footer__strap { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--royal-blue); }
.footer__small { margin-top: 6px; font-size: 14px; color: var(--charcoal); }
/* The club logo is the official file, scaled in proportion only, with clear space around it. */
.footer__logo { flex: 0 0 auto; width: 250px; margin: 14px 8px; }

/* Wider screens */
@media (min-width: 640px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .detail__body--tall { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: start; }
  .detail__body--tall .map--tall { margin: 0; }
  .streets { columns: 2; }
}
@media (min-width: 900px) {
  .detail__body--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .detail__body--tall { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
  .detail__body--tall .streets { columns: 3; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 9px 9px 10px; }
  .tile__area { font-size: 16px; }
  .pager .btn { padding: 10px 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tile, .result, .btn { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
[hidden] { display: none !important; }
