/* Smart Kids, Dumb Phones. One stylesheet, no libraries.
   It reproduces the look the site had on Bootstrap 4.5. */

/* Fonts kept on the site (Latin only, from Google Fonts, 23 Nov 2026).
   Both SIL Open Font License 1.1: see assets/fonts/OFL-*.txt. */
@font-face {
  font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: block;
  src: url(/assets/fonts/bungee-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: block;
  src: url(/assets/fonts/roboto-latin.woff2) format('woff2');
}

:root {
  --yellow: #F3DA22;
  --red: rgb(248, 61, 23);
  --dark: #343a40;
  --light: #f8f9fa;
  --ink: #212529;
  --display: 'Bungee', cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4, h5 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h1, h2, h3, .small-title { font-family: var(--display); }
p, ul, ol { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; vertical-align: middle; }
sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; top: -.5em; }
hr { height: 0; margin: 1rem 0; border: 0; border-top: 1px solid #fff; }

a { color: #fff; text-decoration: underline; }
.on-light a, a.on-light { color: #000; }

.dark { background: var(--dark); color: #fff; }
.light { background: var(--light); }
.center { text-align: center; }

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.xs-only { display: none; }
@media (max-width: 575.98px) { .xs-only { display: inline; } }

section { padding: 20px; }

.img-credit { text-align: right; font-size: 8px; }

/* Navigation bar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--dark);
  padding: .5rem 1rem;
  font-family: var(--display);
}
.nav .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.nav a { text-decoration: none; }
.nav-brand {
  color: #fff; font-size: 1rem; line-height: inherit;
  padding: .3125rem 0; margin-right: 1rem; white-space: nowrap;
}
.nav-toggle {
  padding: .25rem .75rem; font-size: 1.25rem; line-height: 1;
  background: none; border: 1px solid rgba(255,255,255,.1); border-radius: .25rem;
  color: rgba(255,255,255,.5); cursor: pointer;
}
.nav-toggle svg { display: block; width: 1.5em; height: 1.5em; }
.nav-links { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: none; }
.nav.open .nav-links { display: block; }
.nav-links a { display: block; padding: .5rem 0; color: rgba(255,255,255,.5); }
.nav-links a:hover, .nav-links a:focus, .nav-links a.active { color: #fff; }
@media (min-width: 992px) {
  .nav .container { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; flex-basis: auto; margin-left: auto; }
  .nav-links a { padding: .5rem; }
  .nav-links a:hover { color: rgba(255,255,255,.75); }
  .nav-links a.active { color: #fff; }
}

/* Yellow title areas */
.masthead, .submasthead {
  display: flex; align-items: center;
  background: var(--yellow);
  padding: 156px 0 100px;
}
.masthead { height: 100vh; min-height: 800px; }
.submasthead { height: 40vh; min-height: 500px; }
.masthead h1 { font-size: 4.5rem; font-weight: 300; }
@media (min-width: 576px) { .masthead h1 { font-size: 6rem; } }
.submasthead h1 { font-size: 1.75rem; }
@media (min-width: 576px) { .submasthead h1 { font-size: 2.5rem; } }

/* Tough problems */
#problem > .container > h1 { text-align: center; padding: 20px; }
#problem sup { font-size: 10px; }
.stat-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.stat { flex: 0 0 100%; padding: 0 15px; text-align: center; }
.stat + .stat { border-top: 1px solid #fff; margin-top: .5rem; padding-top: 1rem; }
@media (max-width: 991.98px) { .stat-break { margin-top: .5rem; } }
@media (min-width: 992px) {
  .stat { flex-basis: 50%; }
  .stat + .stat { border-top: 0; margin-top: 0; padding-top: 0; }
}
.pie { display: block; width: 100%; height: auto; margin: 30px 0; }
.people { margin: 30px 0 10px; }
.red { color: var(--red); }
.challenge { margin: 30px -15px 0; }

/* Smart solutions */
#solution > .container > h1 { text-align: center; padding: 20px; }
.sol-card {
  background: #fff; border: 1px solid rgba(0,0,0,.125); border-radius: .25rem;
  padding: 20px;
}
.sol-card h3 { text-align: center; margin: 10px 0; }
.sol-items { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.sol-item {
  flex: 0 0 100%; padding: 0 15px; text-align: center;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
@media (min-width: 576px) { .sol-item { flex: 1 0 0%; } }
.sol-item h5 { font-family: var(--display); margin-top: 0; }
.sol-panel { flex: 0 0 100%; }
.sol-panel[hidden] { display: none; }
.sol-panel.sliding { overflow: hidden; transition: height .35s ease; }
.sol-body {
  background: var(--dark); color: #fff;
  border-radius: .25rem; padding: 20px;
}
.sol-group + .sol-group { margin-top: 24px; }

/* Footer */
footer { background: var(--dark); color: #fff; padding: 3rem 0; }
.contact { list-style: none; padding-left: 0; font-size: 14px; }
.references { list-style: none; text-align: right; font-size: 10px; }
.copyright { margin: 0; text-align: center; font-size: 10px; }

/* Family discussion pack */
.two-col { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.two-col > * { flex: 0 0 100%; padding: 0 15px; }
@media (min-width: 992px) { .two-col > * { flex-basis: 50%; } }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.pdf-view { display: none; width: 100%; height: 500px; border: 0; }
@media (min-width: 992px) { .pdf-view { display: block; } }
.download {
  display: block; width: 70%; margin: 30px auto 3rem;
  background: #fff; border-radius: .25rem; padding: 1rem;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  color: #000;
}
.download img { width: 100%; }
.download p { margin: 1.25rem 0 0; }
.handouts { list-style: none; padding: 0; text-align: center; }

/* Get involved */
.involve img { display: block; margin: 0 auto; }
