:root {
  color-scheme: light;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #10264c;
  background: #f5fbff;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075a9b; text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid #008bb7; outline-offset: 3px; }
.skip { position: absolute; top: -5rem; background: white; padding: .6rem; }
.skip:focus { top: .25rem; z-index: 1; }
.wrap { width: min(77rem, calc(100% - 1rem)); margin-inline: auto; }
.masthead { color: white; background: linear-gradient(110deg,#1e6092,#418dd0); }
.brand-row { display: flex; align-items: center; gap: 1rem; padding: .4rem 1.25rem .65rem; }
.brand-row > span { font-size: 2.5rem; }
.brand { color: white; font-size: clamp(1.3rem,3vw,2rem); font-weight: bold; text-decoration: none; }
.brand-row p { margin: 0; }
.nav-bar { background: #105783; }
.top { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .15rem clamp(.3rem,3vw,2rem); }
.top a { color: white; text-decoration: none; padding: .4rem .75rem; }
.top a:hover { text-decoration: underline; }
.top [aria-current] { background: #007c9a; border-radius: 2rem; font-weight: bold; }
.hero {
  position: relative;
  margin-block: .9rem;
  aspect-ratio: 1116 / 152;
  border-radius: 1rem;
  background: #6ec9fb url("mockup-art.png") 47.06% 20.27% / 101.52% 496.05% no-repeat;
}
.hero-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
h1, h2, h3, p { margin: 0 0 .55rem; }
.layout { display: grid; grid-template-columns: minmax(12rem, 22fr) minmax(0, 78fr); gap: .8rem; }
.content, .weather-grid, .cards { display: grid; gap: .8rem; }
.weather-grid { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); }
.cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel {
  background: linear-gradient(155deg,#f8fcff,#e4f2fd);
  border: 1px solid #beddf2;
  box-shadow: inset 0 0 4px #c9e7f7;
  border-radius: .85rem;
  padding: .8rem 1rem;
  overflow-wrap: anywhere;
}
.panel h2 { font-size: clamp(1rem,1.8vw,1.4rem); line-height: 1.22; }
.side { padding: 0; overflow: hidden; }
.side a { display: block; padding: .65rem .75rem; font-weight: bold; text-decoration: none; }
.side a + a { border-top: 1px solid #d4e9f6; }
.side a:first-child, .side a:hover { background: #d3e8f8; }
.current { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem 1rem; align-items: center; }
.current > div { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.current strong { font-size: clamp(1.55rem,3.7vw,2.8rem); }
.weather-icon { font-size: clamp(1.4rem,3.5vw,2.5rem); }
.icon { float: left; font-size: 2rem; margin-right: .5rem; }
.current dl { margin: 0; }
.current dl div { display: flex; gap: .35rem; }
.current dd { margin: 0; font-weight: bold; }
.status, figcaption { font-size: .83rem; margin-top: .35rem; }
.days { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .19rem; }
.days div { padding: .25rem .08rem; background: #f4faff; border-radius: .4rem; text-align: center; font-size: .8rem; }
.days strong, .days span { display: block; }
.days .forecast-icon { font-size: 1.18rem; }
.gallery-row { grid-template-columns: minmax(0,72fr) minmax(0,28fr); margin-block: .8rem; }
figure { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; }
.gallery a { display: block; aspect-ratio: 185 / 97; border-radius: .45rem; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.more { margin-bottom: 1.25rem; }
footer { background: #e4f2fd; padding: .8rem 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .side a + a { border-top: 0; }
}
@media (max-width: 620px) {
  .weather-grid, .cards, .gallery-row { grid-template-columns: 1fr; }
  .side, .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { aspect-ratio: auto; background: #83d2fc; padding: 1rem; }
  .hero-label { position: static; width: auto; height: auto; clip-path: none; }
  .hero h1 { font-size: clamp(1.65rem,7vw,2.4rem); }
}

.today-page { max-width: 42rem; padding-block: 1rem 2rem; }
.today-page h1 { margin-top: 1rem; }

/* Illustrated icons from the approved Schools mock-up. */
.art {
  display: inline-block;
  flex: none;
  width: var(--art-width, 2rem);
  background-image: url("mockup-art.png");
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
.side a { display: flex; align-items: center; gap: .55rem; }
.art-card { float: left; margin-right: .5rem; --art-width: 2.75rem; }
.art-conditions { --art-width: clamp(2.6rem, 7vw, 5.7rem); }
.days .art { --art-width: 1.85rem; margin-inline: auto; }
.art-conditions { aspect-ratio: 102 / 82; background-size: 1110.7843% 919.5122%; background-position: 27.6431% 50.5952%; }
.art-today { aspect-ratio: 36 / 37; background-size: 3147.2222% 2037.8378%; background-position: 1.9143% 40.7252%; }
.art-data { aspect-ratio: 36 / 36; background-size: 3147.2222% 2094.4444%; background-position: 2.0055% 47.7716%; }
.art-activities { aspect-ratio: 36 / 37; background-size: 3147.2222% 2037.8378%; background-position: 2.0055% 54.2538%; }
.art-challenges { aspect-ratio: 36 / 36; background-size: 3147.2222% 2094.4444%; background-position: 2.0055% 61.0028%; }
.art-resources { aspect-ratio: 36 / 37; background-size: 3147.2222% 2037.8378%; background-position: 2.0055% 67.6430%; }
.art-seasons { aspect-ratio: 36 / 38; background-size: 3147.2222% 1984.2105%; background-position: 2.0055% 74.1620%; }
.art-learn { aspect-ratio: 62 / 53; background-size: 1827.4194% 1422.6415%; background-position: 25.5836% 67.9030%; }
.art-try { aspect-ratio: 53 / 56; background-size: 2137.7358% 1346.4286%; background-position: 52.3148% 67.3352%; }
.art-trophy { aspect-ratio: 58 / 57; background-size: 1953.4483% 1322.8070%; background-position: 78.0465% 67.4319%; }
.art-bulb { aspect-ratio: 60 / 56; background-size: 1888.3333% 1346.4286%; background-position: 77.5396% 83.9542%; }
.art-fair { aspect-ratio: 38 / 33; background-size: 2981.5789% 2284.8485%; background-position: 74.1553% 49.2372%; }
.art-cloud { aspect-ratio: 36 / 33; background-size: 3147.2222% 2284.8485%; background-position: 85.9617% 49.2372%; }
.art-rain { aspect-ratio: 37 / 33; background-size: 3062.1622% 2284.8485%; background-position: 97.3540% 49.2372%; }

.panel > h2 {
  background: linear-gradient(110deg, #d5eafa, #edf8ff);
  padding: .35rem .6rem;
  border-radius: .55rem;
}
.cards .panel > h2, .gallery-row .panel > h2 { min-height: 2rem; }
.today-page { max-width: 61rem; }
.topic-banner {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 3vw, 1.4rem);
  margin-block: .75rem;
  padding: clamp(.8rem, 3vw, 1.4rem);
  background: linear-gradient(120deg, #bfe5fc, #f4fbff);
  border: 1px solid #beddf2;
  border-radius: .85rem;
}
.topic-banner h1 { margin: 0 0 .25rem; font-size: clamp(1.5rem, 4vw, 2.35rem); }
.topic-banner p { margin: 0; }
.topic-banner .art { --art-width: clamp(2.1rem, 8vw, 4.7rem); }
.today-page > .panel { margin-bottom: .8rem; }
.today-page > .panel > a { display: inline-block; padding-block: .4rem; }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem),1fr)); gap: .8rem; margin-top: .85rem; }
@media (max-width: 480px) {
  .topic-cards { grid-template-columns: 1fr; }
  .today-page nav a { display: inline-block; padding-block: .45rem; }
}

.topic-body {
  background: radial-gradient(ellipse at top, #c6ebff, #edf9ff 52%, #f6fcff);
}
.topic-artwork { margin-bottom: .25rem; }
.topic-body .today-page { padding-top: .45rem; }
.topic-body .today-page > nav a, .topic-button {
  display: inline-block;
  padding: .48rem .85rem;
  border: 1px solid #a9d5ee;
  border-radius: 1.2rem;
  background: white;
  color: #075a9b;
  font-weight: bold;
  text-decoration: none;
}
.topic-body .today-page > nav a:hover, .topic-button:hover { background: #e1f3ff; }
.topic-body .topic-banner { box-shadow: 0 3px 0 #cce6f3; }
.topic-body .topic-banner .art { filter: saturate(1.15); }
.topic-cards .panel { background: #fff; border-top: 4px solid #75c6ef; }
.topic-cards .panel:nth-child(2) { border-top-color: #79bb78; }
.topic-cards .panel:nth-child(3) { border-top-color: #efba55; }
.card-art { --art-width: 2.5rem; float: right; margin: .15rem 0 .2rem .4rem; }
.play-panel { background: #fff9e7; border-color: #ecd48d; }
.play-panel > h2 { background: #f9e8af; }
.activity-steps { padding-inline-start: 0; list-style: none; }
.activity-steps label, .play-panel details {
  display: block;
  margin-block: .4rem;
  padding: .55rem .7rem;
  border-radius: .55rem;
  background: #fff;
}
.activity-steps input { width: 1.1rem; height: 1.1rem; accent-color: #146c98; vertical-align: middle; }
.play-panel summary { cursor: pointer; font-weight: bold; }
.play-panel details p { margin: .35rem 0 0; }
@media (max-width: 620px) {
  .topic-artwork {
    padding: 0;
    aspect-ratio: 1116 / 152;
    background: #6ec9fb url("mockup-art.png") 47.06% 20.27% / 101.52% 496.05% no-repeat;
  }
}

.worksheet-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.gauge-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .65rem; margin-block: .75rem; }
.gauge { --gauge-color: #0075b0; padding: .7rem; border: 1px solid #b8dced; border-top: 4px solid var(--gauge-color); border-radius: .65rem; background: #fff; }
.gauge-temperature { --gauge-color: #b35423; }
.gauge-wind { --gauge-color: #467557; }
.gauge-humidity { --gauge-color: #6355ac; }
.gauge-direction { --gauge-color: #835078; }
.gauge .art { float: right; --art-width: 1.9rem; }
.gauge h3 { font-size: 1rem; }
.gauge strong { display: block; font-size: 1.45rem; }
.gauge p { font-size: .88rem; margin: 0; }

.gauge-dial {
  position: relative;
  width: min(100%, 8rem);
  aspect-ratio: 1;
  margin: .55rem auto;
  border: 2px solid var(--gauge-color);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 42%, #eef8fe 100%);
  box-shadow: inset 0 0 0 .28rem white, 0 .15rem .35rem #12345220;
}
.gauge-needle {
  position: absolute;
  left: calc(50% - .14rem);
  top: 15%;
  bottom: 50%;
  width: .28rem;
  border-radius: 50% 50% .15rem .15rem;
  background: #17354c;
  transform: rotate(var(--needle-angle, -120deg));
  transform-origin: 50% 100%;
  transition: transform 720ms cubic-bezier(.2,.8,.3,1);
}
.gauge-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .72rem;
  aspect-ratio: 1;
  border: .12rem solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gauge-color);
}
.gauge meter:not([hidden]) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) {
  .gauge-needle { transition: none; }
}

.compass { --needle-angle: 0deg; }
.compass .gauge-needle { top: 24%; background: #b34e36; }
.compass > span[class^="compass-"] { position: absolute; font-size: .75rem; font-weight: bold; }
.compass-n { top: 4%; left: 50%; transform: translateX(-50%); }
.compass-e { right: 6%; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 4%; left: 50%; transform: translateX(-50%); }
.compass-w { left: 6%; top: 50%; transform: translateY(-50%); }

.worksheet-cards .worksheet-diary, .worksheet-diary > h2 { border-top-color: #dc9d45; }
.worksheet-cards .worksheet-rain, .worksheet-rain > h2 { border-top-color: #67aa7b; }
.worksheet-cards .worksheet-cloud, .worksheet-cloud > h2 { border-top-color: #70b5df; }
.worksheet-cards .worksheet-forecast, .worksheet-forecast > h2 { border-top-color: #dca741; }
.worksheet-diary > h2 { background: #fff0cf; }
.worksheet-rain > h2 { background: #d7efda; }
.worksheet-cloud > h2 { background: #d7effc; }
.worksheet-forecast > h2 { background: #ffeebd; }
.cloud-answer { width: min(100%, 16rem); margin: .55rem 0; text-align: center; }
.cloud-answer figcaption { font-weight: bold; }
.cloud-cartoon { position: relative; height: 7rem; background: linear-gradient(#8fd1fa,#e5f5ff); overflow: hidden; border-radius: .65rem; }
.cloud-cartoon i { position: absolute; display: block; background: #fff; box-shadow: 0 .16rem .1rem #7aa9ca; }
.cloud-wispy i { width: 53%; height: .6rem; border-radius: 100% 10% 100% 10%; transform: rotate(-16deg); }
.cloud-wispy i:nth-child(1) { left: 14%; top: 53%; }
.cloud-wispy i:nth-child(2) { left: 30%; top: 40%; }
.cloud-wispy i:nth-child(3) { left: 27%; top: 61%; }
.cloud-puffy i { border-radius: 50%; }
.cloud-puffy i:nth-child(1) { width: 31%; height: 43%; left: 21%; top: 39%; }
.cloud-puffy i:nth-child(2) { width: 37%; height: 62%; left: 36%; top: 17%; }
.cloud-puffy i:nth-child(3) { width: 31%; height: 43%; left: 52%; top: 39%; }
.cloud-flat i { height: 1.1rem; border-radius: 50%; background: #edf3f7; }
.cloud-flat i:nth-child(1) { width: 80%; left: 9%; top: 38%; }
.cloud-flat i:nth-child(2) { width: 91%; left: 5%; top: 47%; }
.cloud-flat i:nth-child(3) { width: 72%; left: 13%; top: 55%; }

.dial-mark, .dial-tick { position: absolute; translate: -50% -50%; }
.dial-mark { z-index: 1; font-size: .68rem; line-height: 1; color: #153653; font-weight: bold; background: #f8fcff; border-radius: .2rem; padding: .075rem; }
.dial-tick { width: 2px; height: .42rem; background: var(--gauge-color); }
.dial-range-note { color: #65331e; }
.compass-ne { top: 16%; right: 13%; }
.compass-se { bottom: 16%; right: 13%; }
.compass-sw { bottom: 16%; left: 13%; }
.compass-nw { top: 16%; left: 13%; }
.rain-activity { background: #f1faf2; border-color: #9ac9a6; }
.rain-activity > h2 { background: #d7efda; }
.history-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .35rem; margin: .8rem 0; }
.history-bars > div { display: grid; grid-template-rows: auto 5rem auto; align-items: end; text-align: center; min-width: 0; background: #edf8ff; padding: .3rem .1rem; border-radius: .45rem; font-size: .85rem; }
.history-bar { display: block; height: var(--rain-height); width: 55%; justify-self: center; background: #2684be; border-radius: .25rem .25rem 0 0; }
.history-table { overflow-x: auto; }
.history-table table { border-collapse: collapse; width: 100%; text-align: left; }
.history-table caption { text-align: left; font-weight: bold; margin: .6rem 0; }
.history-table th, .history-table td { padding: .4rem; border-bottom: 1px solid #bddded; font-size: .9rem; }
#history-lookup { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
#history-lookup input, #history-lookup button { font: inherit; color: #153653; border: 1px solid #7eacc8; padding: .4rem; border-radius: .4rem; background: white; }

.seasonal-gallery { grid-template-columns: repeat(auto-fit,minmax(min(100%,21rem),1fr)); }
.seasonal-gallery figure { margin: 0 0 .6rem; }
.seasonal-gallery img { width: 100%; height: auto; display: block; border-radius: .5rem; }
.gallery a img { object-fit: cover; }
.history-explorer { background: #f1faff; border: 1px solid #c0e1f5; border-radius: .8rem; padding: .75rem; }
#history-metric { display: flex; flex-wrap: wrap; gap: .45rem; border: 0; padding: 0; margin: 0 0 .75rem; }
#history-metric legend { font-weight: bold; margin-bottom: .4rem; }
#history-metric label { background: white; border: 1px solid #a7cce3; padding: .4rem .55rem; border-radius: .55rem; cursor: pointer; }
#history-metric label:has(input:checked) { background: #cceafa; border-color: #4186ad; }
.history-plot { position: relative; display: block; height: 100%; }
.history-mark { position: absolute; display: block; bottom: 0; left: 22%; right: 22%; height: var(--plot-level); background: #2684be; border-radius: .25rem .25rem 0 0; }
.history-gust { background: #7756ae; }
.chart-temperature .history-plot { background: linear-gradient(transparent calc(50% - 1px),#83afc9 calc(50% - 1px),#83afc9 50%,transparent 50%); }
.chart-temperature .history-mark { bottom: var(--plot-level); width: .58rem; height: .58rem; transform: translate(-50%,50%); border-radius: 50%; }
.history-high { left: 39%; background: #c95f13; }
.history-low { left: 64%; }
.history-question { background: #fff4d6; padding: .6rem .75rem; margin: .6rem 0 0; border-radius: .5rem; font-weight: bold; }
@media (max-width: 480px) {
  .history-bars { gap: .16rem; }
  .history-bars > div { font-size: .74rem; overflow-wrap: anywhere; }
  .history-table th, .history-table td { padding: .3rem; font-size: .8rem; }
}

@media print {
  .topic-body:has(#history-lookup) { background: white; color: #153653; }
  .topic-body:has(#history-lookup) :is(.masthead, .topic-artwork, .skip, nav, .play-panel, form, #history-metric, #print-history) { display: none; }
  .topic-body:has(#history-lookup) .today-page { width: 100%; padding: 0; }
  .topic-body:has(#history-lookup) .panel { box-shadow: none; background: white; }
  .topic-body:has(#history-lookup) .history-table { overflow: visible; }
  .topic-body:has(#history-lookup) :is(.history-explorer, .history-mark) { print-color-adjust: exact; }
}

.school-forecast { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: .65rem; }
.school-forecast-day { min-width: 0; }
.school-forecast-day h2 { margin-bottom: .4rem; }
.school-forecast-day > strong, .school-forecast-day > span:not(.art) { display: block; margin-top: .35rem; }
.school-forecast-day .art { --art-width: 2.4rem; }

.data-launch { background: #e9f6ff; }
.data-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.data-section { margin-block: 1.15rem; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16.5rem),1fr)); gap: .75rem; }
.data-card { border-top: .3rem solid var(--data-accent); background: var(--data-tint); }
.data-card h3 { font-size: 1.1rem; }
.data-card h3 span { margin-right: .25rem; }
.data-card h3 small { margin-left: .2rem; font-size: .8rem; font-weight: normal; }
.data-card p:last-child { margin-bottom: 0; }
.data-warm { --data-accent: #e49054; --data-tint: #fff3e7; }
.data-rain { --data-accent: #4d9fd3; --data-tint: #e9f6ff; }
.data-wind { --data-accent: #65a87e; --data-tint: #edf8ee; }
.data-direction { --data-accent: #9677c6; --data-tint: #f4edfe; }
.data-humidity { --data-accent: #489f9c; --data-tint: #e9f8f7; }
.data-puzzle p:last-child, .data-graph li + li { margin-top: .45rem; }

.cloud-activity { background: #e7f5ff; }
.cloud-clues { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .5rem; margin-block: .7rem; }
.cloud-clues > div { background: white; border: 1px solid #a9d5ee; border-radius: .55rem; padding: .55rem; }
.cloud-clues p { margin: .15rem 0 0; }
.cloud-activity li + li, .activity-extra li + li { margin-top: .4rem; }
.activity-lessons .panel:nth-child(1) > h2 { background: #d7effc; }
.activity-lessons .panel:nth-child(2) > h2 { background: #ffead4; }
.activity-lessons .panel:nth-child(3) > h2 { background: #fff0cf; }

.season-now { background: #fff3d9; border-color: #e8c581; }
.season-now > h2 { background: #fae7bd; }
.season-guide { margin-block: 1.2rem; }
.season-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); }
.season-grid .season-card { border-top: .3rem solid var(--season-accent); background: var(--season-colour); }
.season-card h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.season-months { font-weight: bold; }
.season-card p:last-child { margin-bottom: 0; }
.season-spring { --season-accent: #64a676; --season-colour: #edf9ee; }
.season-summer { --season-accent: #ddad42; --season-colour: #fff7de; }
.season-autumn { --season-accent: #db8956; --season-colour: #fff0e5; }
.season-winter { --season-accent: #699dcc; --season-colour: #ebf5ff; }
