/* Four-Day School Week Resource Center — shared styles */
* { box-sizing: border-box; }
/* Smooth scrolling only for in-page interaction — keeps load-time anchor jumps instant and reliable */
html:focus-within { scroll-behavior: smooth; }
/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 92px; }
body { margin: 0; background: #FBFAF8; font-family: 'Libre Franklin', sans-serif; color: #1a1416; }
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Newsreader', serif; font-weight: 500; }
.lnk { transition: color .15s ease; }
.lnk:hover { color: #EB002B !important; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.09); }
.wrap { max-width: 1280px; margin: 0 auto; background: #FBFAF8; }

/* Masthead */
.masthead { display:flex; align-items:center; justify-content:space-between; padding:20px 56px; border-bottom:1px solid #ECE7E2; position:sticky; top:0; background:rgba(251,250,248,0.92); backdrop-filter:blur(8px); z-index:20; }
.masthead .logo-box { width:38px; height:38px; background:#5E0009; border-radius:7px; display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Newsreader',serif; font-weight:600; font-size:22px; line-height:1; }
.masthead .site-name { font-weight:700; font-size:14px; letter-spacing:0.06em; color:#1a1416; line-height:1.15; }
.masthead .site-sub { font-size:11px; letter-spacing:0.18em; color:#9a8f8f; }
.nav-links { display:flex; align-items:center; gap:20px; font-size:13.5px; font-weight:500; color:#3a3335; }
.nav-links .btn { background:#5E0009; color:#fff; padding:9px 16px; border-radius:5px; font-weight:600; }
.nav-links a.active { color:#5E0009; font-weight:700; }
.nav-toggle { display:none; align-items:center; gap:9px; border:1px solid #D9D1CD; border-radius:6px; background:#fff; color:#1a1416; padding:9px 11px; font:600 13px/1 'Libre Franklin',sans-serif; cursor:pointer; }
.nav-toggle:focus-visible { outline:3px solid rgba(0,147,178,0.35); outline-offset:3px; }
.nav-toggle-icon { position:relative; width:18px; height:12px; border-top:2px solid currentColor; border-bottom:2px solid currentColor; }
.nav-toggle-icon::after { content:""; position:absolute; left:0; right:0; top:4px; border-top:2px solid currentColor; }

/* Page hero (subpages) */
.page-hero { padding: 58px 56px 40px; border-bottom:1px solid #ECE7E2; }
.page-hero .kicker { font-size:12.5px; font-weight:700; letter-spacing:0.16em; color:#EB002B; margin-bottom:14px; }
.page-hero h1 { font-family:'Newsreader',serif; font-weight:500; font-size:44px; line-height:1.08; letter-spacing:-0.01em; margin:0 0 16px; }
.page-hero p.lede { font-size:17px; line-height:1.6; color:#4a4245; max-width:760px; margin:0; }
.page-hero p.lede + p.lede { margin-top:18px; }

/* Sections */
.section { padding: 54px 56px; }
.section.sand { background:#F4EFEA; border-top:1px solid #ECE7E2; border-bottom:1px solid #ECE7E2; }
.section h2 { font-family:'Newsreader',serif; font-weight:500; font-size:30px; margin:0 0 10px; }
.section .kicker { font-size:12.5px; font-weight:700; letter-spacing:0.14em; color:#0093B2; margin-bottom:12px; }
.section p, .section li { font-size:15px; line-height:1.65; color:#3a3335; }

/* Missouri teacher-retention analysis */
.retention-copy { max-width:860px; }
.retention-copy p { margin:0 0 18px; }
.retention-chart-card { max-width:940px; margin:34px 0 24px; background:#fff; border:1px solid #ECE7E2; border-radius:14px; box-shadow:0 18px 44px rgba(0,0,0,0.08); overflow:hidden; }
.retention-chart-head { padding:26px 30px 12px; }
.retention-chart-kicker { font-size:11.5px; font-weight:700; letter-spacing:0.14em; color:#0093B2; margin-bottom:8px; }
.retention-chart-title { max-width:780px; font-size:22px; line-height:1.28; color:#1a1416; }
.retention-chart-subtitle { max-width:760px; margin-top:7px; font-size:12.5px; line-height:1.5; color:#7a726f; }
.retention-chart-swipe { display:none; }
.retention-chart-scroll { overflow-x:auto; padding:0 18px 4px; scrollbar-color:#CFC5C0 transparent; }
.retention-chart-scroll:focus-visible { outline:3px solid rgba(0,147,178,0.35); outline-offset:-3px; }
.retention-chart { display:block; width:100%; min-width:680px; height:auto; }
.retention-chart-caption { margin:0; padding:4px 30px 22px; font-size:13.5px !important; line-height:1.62 !important; color:#4a4245 !important; }
.retention-data { border-top:1px solid #ECE7E2; padding:0 30px 22px; }
.retention-data summary { cursor:pointer; padding:17px 0 0; color:#5E0009; font-size:13px; font-weight:700; }
.retention-data summary:focus-visible { outline:3px solid rgba(0,147,178,0.35); outline-offset:3px; }
.retention-table-wrap { overflow-x:auto; margin-top:14px; }
.retention-data table { width:100%; border-collapse:collapse; font-size:12.5px; color:#3a3335; }
.retention-data caption { text-align:left; font-weight:700; color:#1a1416; padding:0 0 8px; }
.retention-data th, .retention-data td { padding:8px 10px; border-bottom:1px solid #ECE7E2; text-align:right; }
.retention-data th:first-child, .retention-data td:first-child { text-align:left; }
.retention-data thead th { background:#F8F5F2; font-size:11.5px; color:#5a5250; }
.retention-data tbody th { font-weight:600; }
.retention-data p { margin:12px 0 0; font-size:11.5px !important; line-height:1.55 !important; color:#7a726f !important; }
.retention-method { max-width:900px; margin:0; padding-top:2px; font-size:11.5px !important; line-height:1.58 !important; color:#7a726f !important; }

/* Around the World long-form page */
.world-copy { max-width:860px; }
.world-copy p { margin:0 0 18px; }
.world-copy h3 { font-family:'Newsreader',serif; font-size:23px; font-weight:500; line-height:1.25; margin:34px 0 9px; color:#1a1416; }
.world-source-links { max-width:940px; display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:22px; padding-top:18px; border-top:1px solid #DED6D1; }
.world-source-links a { font-size:13px; line-height:1.5; font-weight:600; color:#5E0009; }
.world-card-list { max-width:940px; display:grid; gap:18px; margin-top:24px; }
.world-card { background:#fff; border:1px solid #ECE7E2; border-radius:10px; padding:26px 28px; }
.world-card-kicker { font-size:12.5px; font-weight:700; letter-spacing:0.14em; color:#0093B2; margin-bottom:10px; }
.world-card p { margin:0 0 16px; }
.world-card p:last-of-type { margin-bottom:0; }
.world-card .world-source-links { margin-top:18px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.world-chart-card { max-width:940px; margin:32px 0 26px; background:#fff; border:1px solid #ECE7E2; border-radius:14px; box-shadow:0 18px 44px rgba(0,0,0,0.08); overflow:hidden; }
.world-chart-head { padding:26px 30px 18px; }
.world-chart-title { font-size:22px; line-height:1.28; color:#1a1416; }
.world-chart-subtitle { max-width:760px; margin-top:7px; font-size:12.5px; line-height:1.5; color:#7a726f; }
.world-bars { display:grid; gap:14px; padding:4px 30px 12px; }
.world-bar-row { display:grid; grid-template-columns:minmax(190px,260px) minmax(180px,1fr) 42px; gap:14px; align-items:center; min-height:30px; }
.world-bar-label { font-size:12.5px; line-height:1.35; color:#4a4245; }
.world-bar-track { height:22px; background:#F0EBE6; border-radius:3px; overflow:hidden; }
.world-bar-fill { display:block; height:100%; background:#9A8F8F; border:1px solid #7A726F; border-radius:3px; }
.world-bar-value { font-family:'Libre Franklin',sans-serif; font-size:12px; font-weight:700; color:#4a4245; text-align:right; font-variant-numeric:tabular-nums; }
.world-bar-row.is-us .world-bar-label, .world-bar-row.is-us .world-bar-value,
.world-bar-row.is-france-actual .world-bar-label, .world-bar-row.is-france-actual .world-bar-value { font-weight:700; color:#1a1416; }
.world-bar-row.is-us .world-bar-fill { background:#5E0009; border-color:#5E0009; }
.world-bar-row.is-france-actual .world-bar-fill { background:#EB002B; border-color:#5E0009; }
.world-chart-caption { margin:0; padding:14px 30px 22px; font-size:13.5px !important; line-height:1.62 !important; color:#4a4245 !important; }
.world-chart-data { border-top:1px solid #ECE7E2; padding:0 30px 24px; }
.world-chart-data summary { cursor:pointer; padding:17px 0 0; color:#5E0009; font-size:13px; font-weight:700; }
.world-chart-data summary:focus-visible { outline:3px solid rgba(0,147,178,0.35); outline-offset:3px; }
.world-table-wrap { overflow-x:auto; margin-top:14px; }
.world-chart-data table { width:100%; border-collapse:collapse; font-size:12.5px; color:#3a3335; }
.world-chart-data caption { text-align:left; font-weight:700; color:#1a1416; padding:0 0 8px; }
.world-chart-data th, .world-chart-data td { padding:9px 10px; border-bottom:1px solid #ECE7E2; }
.world-chart-data th { text-align:left; }
.world-chart-data td { text-align:right; font-variant-numeric:tabular-nums; }
.world-chart-data thead th { background:#F8F5F2; font-size:11.5px; color:#5a5250; }
.world-chart-data thead th:last-child { text-align:right; }
.world-chart-data tbody th { font-weight:600; }
.world-chart-source { margin:12px 0 0; font-size:11.5px !important; line-height:1.55 !important; color:#7a726f !important; }
.world-next-links { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
.world-next-links .res-row { align-items:center; min-height:72px; }

/* Resource list rows */
.res-list { display:grid; gap:14px; margin-top:24px; }
.res-row { display:flex; gap:18px; align-items:flex-start; border:1px solid #ECE7E2; border-radius:10px; padding:20px 22px; background:#fff; }
.res-row .glyph { width:42px; height:42px; flex:0 0 auto; background:#F4EFEA; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#5E0009; font-weight:700; font-size:17px; }
.res-row .t { font-weight:700; font-size:15.5px; color:#1a1416; margin-bottom:3px; }
.res-row .d { font-size:13.5px; color:#7a726f; line-height:1.5; }

/* Citation list */
.cite-list { display:grid; gap:0; margin-top:8px; }
.cite { border-top:1px solid #ECE7E2; padding:18px 0; }
.cite .meta { font-size:12.5px; font-weight:700; letter-spacing:0.08em; color:#0093B2; margin-bottom:6px; text-transform:uppercase; }
.cite .title { font-family:'Newsreader',serif; font-size:19px; line-height:1.35; color:#1a1416; }
.cite .note { font-size:13.5px; color:#7a726f; margin-top:6px; line-height:1.55; }

/* Video cards */
.vid-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:26px; }
.vid-card { display:block; }
.vid-card .thumb { position:relative; height:170px; border-radius:8px; overflow:hidden; background:#1a1416; margin-bottom:14px; }
.vid-card .thumb img { width:100%; height:100%; object-fit:cover; opacity:0.9; }
.vid-card .play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:50px; height:50px; background:rgba(94,0,9,0.92); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; }
.vid-card .t { font-weight:700; font-size:16px; }
.vid-card .d { font-size:13.5px; color:#7a726f; margin-top:4px; line-height:1.5; }

/* Callout box */
.callout { background:#fff; border:1px solid #ECE7E2; border-left:4px solid #5E0009; border-radius:8px; padding:22px 26px; margin-top:22px; font-size:14.5px; line-height:1.65; color:#4a4245; }

/* Numbered tips */
.tips { counter-reset: tip; display:grid; gap:16px; margin-top:24px; padding:0; list-style:none; }
.tips li { counter-increment: tip; display:flex; gap:18px; background:#fff; border:1px solid #ECE7E2; border-radius:10px; padding:20px 24px; }
.tips li::before { content: counter(tip); font-family:'Newsreader',serif; font-size:24px; font-weight:600; color:#5E0009; line-height:1; flex:0 0 auto; }

/* Timeline (world page) */
.timeline { display:grid; gap:0; margin-top:20px; }
.tl-item { display:flex; gap:22px; border-top:1px solid #ECE7E2; padding:18px 0; }
.tl-item .yr { font-family:'Newsreader',serif; font-size:22px; font-weight:600; color:#5E0009; flex:0 0 74px; line-height:1.2; }
.tl-item .tx { font-size:15px; line-height:1.65; color:#3a3335; }

/* Footer */
footer { background:#1a1416; color:#9a8f8f; padding:36px 56px; display:flex; align-items:center; justify-content:space-between; font-size:13px; flex-wrap:wrap; gap:14px; }
footer a { color:#BFCED6; }

/* Contact band */
.contact-band { padding:56px; background:#F4EFEA; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }

.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }

/* Responsive */
@media (max-width: 960px) {
  .masthead { position:sticky; }
  .nav-toggle { display:inline-flex; }
  .nav-links { display:none !important; position:absolute; top:calc(100% + 1px); left:24px; right:24px; flex-direction:column; align-items:stretch; gap:0; padding:10px; background:#fff; border:1px solid #ECE7E2; border-radius:0 0 9px 9px; box-shadow:0 16px 32px rgba(26,20,22,0.14); }
  .nav-links.is-open { display:flex !important; }
  .nav-links a { padding:12px 13px; border-radius:5px; }
  .nav-links .btn { text-align:center; margin-top:4px; }
  .grid-2, .grid-3, .hero-grid, .news-grid, .sb-grid, .vid-grid, .explore-grid { grid-template-columns:1fr !important; display:grid !important; }
  .hero-media { min-height:240px !important; }
  .masthead, .section, .page-hero, .contact-band, footer { padding-left:24px !important; padding-right:24px !important; }
  h1.hero { font-size:40px !important; }
  .page-hero h1 { font-size:34px; }
  .world-next-links { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .stats-band { grid-template-columns:1fr !important; }
  .retention-chart-card { margin-top:28px; }
  .retention-chart-head { padding:22px 20px 10px; }
  .retention-chart-title { font-size:20px; }
  .retention-chart-swipe { display:block; padding:0 20px 4px; color:#007D98; font-size:11.5px; font-weight:700; }
  .retention-chart-scroll { padding-left:10px; padding-right:10px; }
  .retention-chart { min-width:640px; }
  .retention-chart-caption { padding:4px 20px 20px; }
  .retention-data { padding-left:20px; padding-right:20px; }
  .world-card { padding:22px 20px; }
  .world-chart-card { margin-top:28px; }
  .world-chart-head { padding:22px 20px 16px; }
  .world-chart-title { font-size:20px; }
  .world-bars { gap:16px; padding:2px 20px 10px; }
  .world-bar-row { grid-template-columns:minmax(0,1fr) 38px; gap:8px 10px; }
  .world-bar-label { grid-column:1 / -1; font-size:12px; }
  .world-bar-track { height:20px; }
  .world-chart-caption { padding:14px 20px 20px; }
  .world-chart-data { padding-left:20px; padding-right:20px; }
}

@media print {
  .retention-chart-card { box-shadow:none; break-inside:avoid; }
  .retention-chart-scroll { overflow:visible; }
  .retention-chart { min-width:0; }
  .retention-data:not([open]) > .retention-table-wrap,
  .retention-data:not([open]) > p { display:block; }
  .world-chart-card { box-shadow:none; break-inside:avoid; }
  .world-chart-data:not([open]) > .world-table-wrap,
  .world-chart-data:not([open]) > p { display:block; }
}
