/* Taz brand look for every public page. Colours, shapes and the soft sky come from the design reference
   (design-mockups/index.html) and match the front page (src/components/TazLanding.css) and the films. Light only.
   Loaded after each page's own styles, so it wins. */
:root { color-scheme:light; --bg:#FAF8F2; --fg:#2E2E2E; --muted:#666666; --line:#DDE5DF; --accent:#176BAE;
  --charcoal:#4A4A4A; --blue:#4BA4DF; --blue-tint:#E3F1FB; --blue-ink:#155E95; --coral-tint:#FFE6DA; --coral-ink:#A3431E;
  --sun:#FFB938; --sun-tint:#FFF1D6; --mint-tint:#E3F5EC; --mint-ink:#2F6B4F; --sage-tint:#EEF3EF; }
body { color:var(--fg); background:radial-gradient(40% 55% at 8% 20%,#E3F1FB 0%,transparent 70%),radial-gradient(35% 50% at 92% 15%,#FFE6DA 0%,transparent 70%),radial-gradient(40% 50% at 70% 95%,#FFF1D6 0%,transparent 70%),#FAF8F2; background-attachment:fixed; }
header a.home { display:inline-flex; align-items:center; gap:8px; font-size:22px; letter-spacing:-.03em; color:var(--fg); }
header a.home::before { content:""; width:36px; height:36px; background:url(/taz-elephant-icon.png) center/contain no-repeat; }
nav a, a { color:var(--accent); } nav a[aria-current] { color:var(--fg); }
h1 { font-size:34px; font-weight:700; letter-spacing:-.03em; line-height:1.08; margin-bottom:6px; }
h2 { font-size:21px; letter-spacing:-.02em; } h3 { letter-spacing:-.01em; }
section { border-top:1px solid var(--line); }
th { background:var(--sage-tint); font-weight:650; } th:first-child { border-radius:12px 0 0 0; } th:last-child { border-radius:0 12px 0 0; }
th, td { border-bottom:1px solid var(--line); }
.cta { padding:11px 22px; border-radius:999px; background:var(--charcoal); color:#FFFFFF; font-weight:650; }
.cta:hover { background:var(--fg); opacity:1; }
.wonder { margin:36px 0 0; font-size:clamp(34px,9vw,64px); font-weight:800; letter-spacing:-.04em; line-height:1; color:var(--blue); opacity:.22; }
footer { color:var(--muted); }

/* Shared compact reading rhythm across public and challenge pages. */
body { font-family: 'Taz Grotesk', ui-sans-serif, system-ui, sans-serif; }
img, video, canvas { max-width: 100%; }
@media (max-width: 767px) {
  body { font-size: 14.5px; line-height: 1.55; }
  body > header, body > main, body > footer { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
  h2 { font-size: 20px; line-height: 1.3; }
  header, section { border-top: 0; border-bottom: 0; }
  nav { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; line-height: 1.5; }
  table { font-size: 13px; }
  .cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Disclosure wrappers preserve the full desktop document. */
@media (min-width: 768px) {
  .taz-public-fold > summary { list-style: none; pointer-events: none; }
  .taz-public-fold > summary::-webkit-details-marker { display: none; }
}
@media (max-width: 767px) {
  .taz-public { font-size: 14px; line-height: 1.6; }
  .taz-public main { padding: 12px 16px 32px; overflow-wrap: anywhere; }
  .taz-public main > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
  .taz-public header a.home { min-height: 44px; font-size: 18px; }
  .taz-public header a.home::before { width: 28px; height: 28px; }
  .taz-public h1 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
  .taz-public h2 { font-size: 16px; line-height: 1.4; margin: 20px 0 8px; }
  .taz-public h3 { font-size: 14px; line-height: 1.5; margin: 16px 0 6px; }
  .taz-public p { margin: 10px 0; }
  .taz-public .updated { font-size: 11px; margin: 6px 0 16px; }
  .taz-public ul, .taz-public ol { padding-left: 20px; }
  .taz-public li { margin-bottom: 8px; }
  .taz-public section { margin-top: 8px; }
  .taz-public-fold { border-bottom: 1px solid var(--line); }
  .taz-public-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; }
  .taz-public-fold > summary::-webkit-details-marker { display: none; }
  .taz-public-fold > summary::after { content: '+'; flex: 0 0 20px; text-align: center; font-size: 18px; color: var(--accent); }
  .taz-public-fold[open] > summary::after { content: '−'; }
  .taz-public-fold > summary h2, .taz-public-fold > summary h3 { font-size: 14px; margin: 10px 0; }
  .taz-public-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  .taz-public nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; }
  .taz-public .cta { box-sizing: border-box; font-size: 13px; padding: 8px 18px; }
  .taz-public .wonder { font-size: 30px; margin-top: 24px; }
  .taz-public footer { margin-top: 24px; font-size: 12px; }
  .taz-public table { font-size: 12px; }
  .taz-public .facts { font-size: 12px; gap: 6px; }
  .taz-public .grown, .taz-public .film-note { font-size: 12px; }
  .taz-public-challenge .film { width: min(320px, 100%); margin: 12px auto; }
  .taz-public-challenge .film video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; }
  .taz-public-challenges .jump { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 12px; }
  .taz-public-challenges .jump a { display: inline-flex; align-items: center; min-height: 44px; }
  .taz-public-challenges section ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; gap: 0 12px; }
  .taz-public-challenges section li { margin: 0; }
  .taz-public-challenges section li a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .taz-public-science-labs li { margin: 12px 0; }
}
@media (min-width: 768px) {
}
@media (max-width: 767px) {
  /* Reading and instructions stay fully visible as the child scrolls. */
  .taz-public main > header, .taz-public main > h1, .taz-public main > section { animation: none; }
}
.taz-film-sound { display: block; min-height: 44px; margin: 8px 0; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--fg); color: white; font: inherit; cursor: pointer; }
.taz-film-sound[hidden] { display: none; }
.taz-labs-phone-title, .taz-lab-previews, .taz-lab-preview-pause { display: none; }
@media (max-width: 767px) {
  .taz-public-challenge .film { width: min(320px, 100%); margin: 12px auto; }
  .taz-public-challenge .film video { border-radius: 12px; box-shadow: none; }
  .taz-public-challenge .taz-film-sound { margin: 8px auto; font-size: 12px; }
  .taz-labs-desktop-title { display: none; }
  .taz-labs-phone-title { display: inline; }
  .taz-lab-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 16px; }
  .taz-lab-previews a { color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; }
  .taz-lab-previews video { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: var(--blue-tint); }
  .taz-lab-previews span { display: flex; align-items: center; min-height: 44px; }
  .taz-lab-preview-pause { display: block; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
  .taz-public-science-labs section h2 { font-size: 14px; }
}
.taz-lab-item img { display: none; }
.taz-lab-item { color: inherit; text-decoration: none; }
@media (max-width: 767px) {
  .taz-public-science-labs section ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 0; list-style: none; }
  .taz-public-science-labs section li { margin: 0; }
  .taz-lab-item img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
  .taz-lab-item strong { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .taz-lab-description { display: none; }
}
/* Public pages reuse the approved landing logo and Solar menu/back icons. */
.taz-public header .home::before { display: none; }
.taz-public header .home img { display: block; width: 78px; }
.taz-public-menu-button, .taz-public-login { display: none; }
.taz-challenge-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-ink); text-decoration: none; font-size: 12px; font-weight: 600; }
.taz-challenge-back svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .taz-public main { padding-top: 0; }
  .taz-public main > header { position: relative; z-index: 6; height: 52px; padding: 0 16px; margin: 0 -16px 16px; gap: 12px; background: #fff; }
  .taz-public header .home { margin-right: auto; }
  .taz-public-menu-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 4px; border: 0; color: var(--fg); background: transparent; cursor: pointer; }
  .taz-public-login { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--charcoal); color: white; font-size: 12px; font-weight: 600; text-decoration: none; }
  .taz-public header nav { display: none; }
  .taz-public-menu-open nav { position: absolute; top: 52px; left: 0; right: 0; display: flex !important; flex-direction: column; gap: 0; padding: 16px 20px; max-height: calc(100svh - 52px); overflow-y: auto; margin: 0; background: white; box-shadow: 0 15px 25px #00000014; }
  .taz-public header nav a { color: var(--charcoal); font-size: 13px; text-decoration: none; }
  .taz-public-challenge .film video { max-width: none; }
}
@media (min-width: 768px) {
  .taz-public header nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
}
.taz-public button { font-family: inherit; }

@media (max-width: 767px) {
  .taz-public main > header { gap: 0; margin-bottom: 44px; }
  .taz-public header .home img { width: auto; height: 28px; }
  .taz-public-search, .taz-public-login { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #176BAE; }
  .taz-public-search svg, .taz-public-login svg { width: 20px; height: 20px; }
  .taz-public-back { position: absolute; left: 0; top: 52px; display: grid; place-items: center; width: 44px; height: 44px; color: #2E2E2E; }
  .taz-public-back svg { width: 17px; height: 17px; }
  .taz-public-menu-button { position: absolute; right: 0; top: 52px; padding: 0; }
  .taz-public-menu-button svg { width: 20px; height: 20px; }
  .taz-public-menu-open nav { top: 96px; max-height: calc(100svh - 96px); }
  .taz-challenge-back-redundant { display: none; }
}
@media(min-width:768px) { .taz-public-search, .taz-public-back { display: none; } }

@media(max-width:767px) { .taz-public main { padding-top: 0; } .taz-public main > header { position: sticky; top: 0; } }
