/* ═══════════════════════════════════════════════════════════════════════════
   TEACHER GUIDE PAGES  (public/resources/resources.css)
   Shared styles for the plain-HTML guide pages under /resources/.
   These pages are NOT part of the React app: they are static files, so Google
   reads them instantly. Colours and fonts copy src/styles/site.css — if you
   change the brand there, change the :root values here too.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fonts: copies of src/assets/fonts, kept in public/fonts (own site only, per the CSP) */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url('/fonts/andika-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 700; font-display: swap; src: url('/fonts/andika-latin-700-normal.woff2') format('woff2'); }

/* Brand colours (same as site.css) */
:root {
  --gold: #DAD80A;
  --amber: #D4B351;
  --chalk: #1A1A1A;
  --ink: #2B2B2B;
  --paper: #F5F5F0;
  --muted: #5A574F;
  --chalk-text: #CFCBC0;
  --display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --body: 'Andika', 'Trebuchet MS', Verdana, sans-serif;
  --outline: 2.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
}

/* Basics */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #1E88E5; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.read { max-width: 720px; margin: 0 auto; padding: 0 24px; }   /* comfortable reading width */

/* Header and footer: same look as the app's header and footer */
.site-head { border-bottom: var(--outline); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 12px 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 22px; }
.pro-pill { background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 0 9px; font-size: .8em; }
.site-foot { border-top: var(--outline); margin-top: 64px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 26px; padding-bottom: 26px; }
.site-foot .brand img { width: 34px; height: 34px; }
.site-foot .brand span { font-size: 18px; }
.site-foot a { font-size: 15px; }
.privacy-line { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border: var(--outline); border-radius: 12px; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn-gold { background: var(--gold); box-shadow: 3px 3px 0 var(--ink); }
.btn-big { font-size: 20px; padding: 14px 24px; border-radius: 14px; }

/* Article */
.crumbs { font-size: 15px; color: var(--muted); margin: 32px 0 12px; }
.crumbs a { color: var(--muted); }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 16px; }
/* gold highlighter stroke under the headline, like the landing page */
h1 .hl { background: linear-gradient(transparent 85%, var(--gold) 85%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2 { font-size: 28px; margin: 40px 0 12px; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; }
.byline { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* A word list teachers can copy straight into the generator */
.wordlist { background: #fff; border: var(--outline); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; margin: 8px 0 24px; }
.wordlist p { margin: 0 0 8px; }
.wordlist p:last-child { margin: 0; }
.wordlist b { font-family: var(--display); font-weight: 600; }

/* Call-to-action box on the chalkboard colour */
.cta { background: var(--chalk); color: var(--paper); border-radius: 16px; padding: 28px; margin: 40px 0 0; }
.cta h2 { margin: 0 0 8px; color: var(--gold); }
.cta p { color: var(--chalk-text); }
.cta .btn-gold { border-color: var(--paper); box-shadow: 4px 4px 0 var(--amber); color: var(--chalk); }

/* Guide list on /resources/ */
.guide-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.guide-list a { display: block; background: #fff; border: var(--outline); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; text-decoration: none; }
.guide-list strong { font-family: var(--display); font-weight: 600; font-size: 22px; display: block; }
.guide-list span { color: var(--muted); font-size: 16px; }

/* Phones */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-head nav, .wrap, .read { padding-left: 16px; padding-right: 16px; }
  h2 { font-size: 24px; }
  .cta { padding: 22px; }
}

/* Lists and small headings inside a guide */
article ul, article ol { margin: 0 0 16px; padding-left: 26px; }
article li { margin-bottom: 8px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; margin: 22px 0 6px; }

/* "More teacher guides" box near the end of each guide */
.more { border-top: var(--outline); margin-top: 40px; }
.more h2 { font-size: 24px; margin-top: 28px; }
.more ul { list-style: none; padding: 0; }
.more li { margin-bottom: 10px; }
.more a { font-weight: 700; }

/* ── Word list pages (built by templates/build-wordlist-page.py) ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 8px; }
.actions .btn { cursor: pointer; }
.actions-note { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
h3 .count { font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--muted); margin-left: 6px; }
.wl { margin: 0; }
.wl-row { padding: 10px 0; border-bottom: 1.5px dashed #CFCBC0; }
.wl-row:first-child { padding-top: 0; }
.wl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wl dt { font-family: var(--display); font-weight: 600; font-size: 19px; }
.wl dd { margin: 2px 0 0; }

/* TPT pack box: amber outline so it reads as a separate, optional offer */
.pack { background: #fff; border: var(--outline); border-left: 10px solid var(--amber); border-radius: 16px; padding: 22px 24px; margin: 40px 0 0; }
.pack h2 { margin: 2px 0 8px; font-size: 24px; }
.pack-kicker { font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Date on each card on /resources/ */
.guide-list time { display: block; font-size: 14px; color: var(--muted); margin: 2px 0 4px; }
