/* The EdTech Situation Room: shared styles for edtechsr.com
   Every class starts with esr- so these rules cannot collide with
   the old WordPress theme styles that archive pages still load.
   Navigation works without JavaScript (details and summary). */

@font-face{font-family:"ESR Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"ESR Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"ESR Inter";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"ESR Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"ESR Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2")}

:root{
  --esr-navy:#0F1B33;
  --esr-bg:#F6F7FB;
  --esr-card:#FFFFFF;
  --esr-line:#E1E5EF;
  --esr-blue:#1F4FD8;
  --esr-blue-dark:#173EA8;
  --esr-yellow:#FFC933;
  --esr-muted:#44506A;
  --esr-soft:#E8EEFC;
  --esr-on-navy:#C9D4F0;
  --esr-label:#8A5A00;
  --esr-body:"ESR Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --esr-head:"ESR Space Grotesk","Space Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --esr-max:1120px;
  --esr-pad:24px;
}

/* ---------- Page base (only on new pages, which set class esr-page) ---------- */
html:has(body.esr-page){-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.esr-page{margin:0;background:var(--esr-bg);color:var(--esr-navy);font-family:var(--esr-body);font-size:18px;line-height:1.55;overflow-wrap:break-word}
.esr-page *,.esr-page *::before,.esr-page *::after{box-sizing:border-box}
.esr-page img{max-width:100%;height:auto}
.esr-page a{color:var(--esr-blue);text-decoration:underline;text-underline-offset:.15em}
.esr-page a:hover{color:var(--esr-blue-dark)}
.esr-page :focus-visible{outline:3px solid var(--esr-blue);outline-offset:3px;border-radius:6px}
.esr-page h1,.esr-page h2,.esr-page h3{font-family:var(--esr-head);line-height:1.15;margin:0 0 12px;color:inherit}

.esr-skip{position:absolute;left:12px;top:-60px;z-index:100;background:#fff;color:var(--esr-navy);padding:12px 16px;border-radius:10px;font-weight:700}
.esr-skip:focus{top:12px}

.esr-wrap{max-width:var(--esr-max);margin:0 auto;padding-left:var(--esr-pad);padding-right:var(--esr-pad)}
.esr-section{padding-top:56px;padding-bottom:8px}
.esr-section--last{padding-bottom:56px}
.esr-lead{color:var(--esr-muted);margin:0 0 20px;max-width:62ch}
.esr-h2{font-size:clamp(26px,3.4vw,32px)}
.esr-eyebrow{margin:0 0 8px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:13px;color:var(--esr-label)}

/* ---------- Header (shared by every page, including archive posts) ---------- */
.esr-header{position:relative;z-index:50;background:#fff;border-bottom:1px solid var(--esr-line);font-family:var(--esr-body);font-size:17px;line-height:1.4;color:var(--esr-navy);margin:0;padding:0}
.esr-header *,.esr-header *::before,.esr-header *::after,
.esr-footer *,.esr-footer *::before,.esr-footer *::after{box-sizing:border-box}
.esr-header__inner{max-width:var(--esr-max);margin:0 auto;padding:12px var(--esr-pad);display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}
.esr-header a.esr-brand{font-family:var(--esr-head);font-weight:700;font-size:20px;line-height:1.2;color:var(--esr-navy);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;flex-wrap:wrap;column-gap:.35em}
.esr-header a.esr-brand span{color:var(--esr-blue)}
.esr-header a.esr-brand:hover{text-decoration:none;color:var(--esr-navy)}

.esr-nav{display:flex;align-items:center;gap:6px;margin:0;padding:0}
.esr-header .esr-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;color:var(--esr-navy);font-weight:500;text-decoration:none;font-size:17px}
.esr-header .esr-nav a:hover{background:var(--esr-soft);color:var(--esr-navy);text-decoration:none}
.esr-header .esr-nav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.esr-header .esr-nav a.esr-nav__sub{background:var(--esr-blue);color:#fff;font-weight:700;padding:0 18px;margin-left:8px;min-height:48px}
.esr-header .esr-nav a.esr-nav__sub:hover{background:var(--esr-blue-dark);color:#fff}

/* Phone menu: native details and summary, no JavaScript */
.esr-menu{display:none;margin:0;padding:0}
.esr-menu > summary{display:block;list-style:none;cursor:pointer;min-height:44px;line-height:40px;padding:0 18px;border:2px solid var(--esr-navy);border-radius:10px;font-weight:700;font-size:17px;color:var(--esr-navy);background:#fff;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.esr-menu > summary::-webkit-details-marker{display:none}
.esr-menu > summary::marker{content:""}
.esr-menu > summary::after{content:"";display:inline-block;width:8px;height:8px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.esr-menu[open] > summary{background:var(--esr-navy);color:#fff}
.esr-menu[open] > summary::after{transform:translateY(1px) rotate(225deg)}
.esr-menu__panel{position:absolute;right:var(--esr-pad);top:calc(100% + 4px);z-index:60;width:min(300px,calc(100vw - 32px));background:#fff;border:1px solid var(--esr-line);border-radius:14px;padding:8px;box-shadow:0 12px 30px rgba(15,27,51,.18);display:flex;flex-direction:column;gap:2px}
.esr-header .esr-menu__panel a{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:10px;color:var(--esr-navy);font-weight:500;text-decoration:none;font-size:18px}
.esr-header .esr-menu__panel a:hover{background:var(--esr-soft);text-decoration:none;color:var(--esr-navy)}
.esr-header .esr-menu__panel a[aria-current="page"]{background:var(--esr-soft);font-weight:700}
.esr-header .esr-menu__panel a.esr-nav__sub{background:var(--esr-blue);color:#fff;font-weight:700;margin-top:4px}

@media (max-width:759.98px){
  .esr-nav--desk{display:none}
  .esr-menu{display:block}
  .esr-header__inner{padding-left:16px;padding-right:16px}
  .esr-menu__panel{right:16px}
  .esr-header a.esr-brand{font-size:18px}
}
@media (max-width:359.98px){
  .esr-header a.esr-brand{font-size:16px}
}

/* ---------- Footer (shared) ---------- */
.esr-footer{background:var(--esr-navy);color:var(--esr-on-navy);font-family:var(--esr-body);font-size:16px;line-height:1.5;margin:0;padding:0}
.esr-footer__inner{max-width:var(--esr-max);margin:0 auto;padding:36px var(--esr-pad);display:flex;flex-wrap:wrap;gap:20px 32px;align-items:center;justify-content:space-between}
.esr-social{display:flex;flex-wrap:wrap;gap:12px;list-style:none;margin:0;padding:0}
.esr-social li{margin:0;padding:0;list-style:none}
.esr-footer .esr-social a{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 8px;background:#fff;border-radius:99px;color:var(--esr-navy);font-weight:700;text-decoration:none;font-size:16px}
.esr-footer .esr-social a.esr-social--text{padding-left:18px}
.esr-footer .esr-social a:hover{box-shadow:0 0 0 3px var(--esr-yellow);text-decoration:none;color:var(--esr-navy)}
.esr-footer .esr-social img{display:block;width:30px;height:30px;object-fit:contain;border-radius:50%;margin:0;max-width:none}
.esr-footer .esr-social img.esr-social__yt{border-radius:0;width:30px;height:22px}
/* Official Substack logo (orange bookmark on transparent): shown square at 48px, never cropped */
.esr-footer .esr-social a{min-height:56px}
.esr-footer .esr-social img.esr-logo-ss{width:48px;height:48px;border-radius:0;margin:0}
.esr-footer .esr-social a:has(> img.esr-logo-ss){padding-left:14px}
.esr-footer p.esr-footer__credit{margin:0;font-size:15px;color:var(--esr-on-navy)}
.esr-footer p.esr-footer__credit a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:.15em}
.esr-footer a:focus-visible{outline:3px solid var(--esr-yellow);outline-offset:3px}
@media (max-width:759.98px){.esr-footer__inner{padding-left:16px;padding-right:16px}}

/* ---------- Buttons ---------- */
.esr-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 22px;border-radius:12px;font-weight:700;font-size:17px;line-height:1.25;text-align:center}
.esr-page a.esr-btn{text-decoration:none}
.esr-page a.esr-btn--blue{background:var(--esr-blue);color:#fff}
.esr-page a.esr-btn--blue:hover{background:var(--esr-blue-dark);color:#fff}
.esr-page a.esr-btn--navy{background:var(--esr-navy);color:#fff}
.esr-page a.esr-btn--navy:hover{background:#1d2d52;color:#fff}
.esr-page a.esr-btn--ghost{background:#fff;color:var(--esr-navy);border:2px solid var(--esr-navy)}
.esr-page a.esr-btn--ghost:hover{background:var(--esr-soft);color:var(--esr-navy)}
.esr-btn--big{min-height:56px;font-size:18px;padding:12px 26px}
.esr-btnrow{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- Hero ---------- */
.esr-hero{background:var(--esr-navy);color:#fff}
.esr-hero__inner{padding-top:56px;padding-bottom:64px;display:flex;flex-wrap:wrap;gap:40px;align-items:center}
.esr-hero__text{flex:1 1 480px;min-width:0}
.esr-hero__eyebrow{margin:0 0 12px;color:var(--esr-yellow);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.esr-page .esr-hero h1{margin:0 0 14px;font-size:clamp(32px,4.8vw,52px);line-height:1.08}
.esr-hero__sub{margin:0 0 10px;font-size:clamp(19px,2.2vw,24px);font-weight:500;line-height:1.35;max-width:36ch}
.esr-hero__note{margin:0 0 28px;font-size:17px;color:var(--esr-on-navy);max-width:56ch}
.esr-hero__art{flex:0 1 280px;max-width:280px;margin:0 auto}
.esr-hero__art img{display:block;width:100%;border-radius:18px;border:4px solid rgba(255,255,255,.12)}
.esr-hero--page .esr-hero__inner{padding-top:44px;padding-bottom:48px}
.esr-hero--page .esr-hero__note{margin-bottom:0}
/* Round 4: show art at the right of the inner page headers (About, Show Notes, Live, Subscribe) */
.esr-hero__inner--art{flex-wrap:nowrap}
.esr-page img.esr-hero__art{flex:none;display:block;width:160px;height:160px;max-width:none;margin:0 0 0 auto;border-radius:16px;border:2px solid rgba(255,255,255,.18)}
@media (max-width:480px){
  .esr-hero__inner--art{display:grid;grid-template-columns:minmax(0,1fr) 84px;column-gap:14px;row-gap:0;align-items:center}
  .esr-hero__inner--art .esr-hero__text{display:contents}
  .esr-hero__inner--art .esr-hero__eyebrow{grid-column:1;grid-row:1}
  .esr-page .esr-hero__inner--art h1{grid-column:1;grid-row:2;margin-bottom:0}
  .esr-hero__inner--art .esr-hero__note{grid-column:1 / -1;grid-row:3;margin-top:14px}
  .esr-page img.esr-hero__art{grid-column:2;grid-row:1 / span 2;width:84px;height:84px;border-radius:12px;align-self:center}
}

/* Link cards */
.esr-cards{display:flex;flex-wrap:wrap;gap:16px}
.esr-page a.esr-linkcard{flex:1 1 260px;display:flex;gap:14px;align-items:flex-start;background:#fff;color:var(--esr-navy);border:1px solid var(--esr-line);border-radius:16px;padding:18px 20px;text-decoration:none;min-width:0}
.esr-page a.esr-linkcard:hover{box-shadow:0 0 0 3px var(--esr-blue);color:var(--esr-navy)}
.esr-linkcard__icon{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.esr-linkcard__icon img{display:block;width:44px;height:44px;object-fit:contain;border-radius:10px}
.esr-linkcard__icon:has(> img.esr-logo-ss){width:48px;height:48px}
.esr-linkcard__icon img.esr-logo-ss{width:48px;height:48px;border-radius:0}
.esr-linkcard strong{display:block;font-size:18px;line-height:1.3;margin-bottom:2px}
.esr-linkcard span.esr-linkcard__line{display:block;color:var(--esr-muted);font-size:15px;line-height:1.45}

/* Video */
.esr-video{position:relative;width:100%;aspect-ratio:16/9;background:var(--esr-navy);border-radius:16px;overflow:hidden}
.esr-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.esr-after{margin:14px 0 0}
.esr-page .esr-after a{font-weight:700}

/* Podcast app buttons */
.esr-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.esr-page a.esr-app{display:flex;align-items:center;justify-content:center;min-height:76px;padding:12px 16px;background:#fff;border:1px solid var(--esr-line);border-radius:14px}
.esr-page a.esr-app:hover{box-shadow:0 0 0 3px var(--esr-blue)}
.esr-app img{display:block;width:auto;max-width:100%;height:48px;object-fit:contain}
@media (max-width:640px){.esr-apps{grid-template-columns:minmax(0,1fr)}}

/* Panels and cards */
.esr-split{display:flex;flex-wrap:wrap;gap:24px}
.esr-panel{flex:1 1 380px;min-width:0;background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:28px}
.esr-panel h2,.esr-panel h3{font-size:28px}
.esr-times{margin:0 0 20px;font-size:18px;font-weight:700}
.esr-times p{margin:0 0 4px}
.esr-panel p{margin:0 0 18px}
.esr-panel .esr-muted{color:var(--esr-muted)}
@media (max-width:480px){.esr-panel{padding:22px}.esr-panel h2,.esr-panel h3{font-size:24px}}

/* Hosts */
.esr-hosts{display:flex;flex-wrap:wrap;gap:24px}
.esr-host{flex:1 1 320px;min-width:0;background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:22px 24px}
.esr-host h3{font-size:22px;margin:0 0 2px}
.esr-host p{margin:0 0 6px;color:var(--esr-muted)}
.esr-page .esr-host a{font-weight:700}

/* Archive strip */
.esr-strip{background:var(--esr-soft);border-radius:18px;padding:24px 28px;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.esr-strip p{margin:0;max-width:62ch}

/* Article (About) */
.esr-article{background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:32px;max-width:820px}
.esr-article p{margin:0 0 18px}
.esr-article figure{margin:28px 0 0}
.esr-article figure img{display:block;width:100%;border-radius:12px}
.esr-article figcaption{margin-top:8px;font-size:15px;color:var(--esr-muted)}
@media (max-width:480px){.esr-article{padding:22px}}

/* Show notes */
.esr-notes{background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:28px;margin-bottom:24px}
.esr-notes h2{font-size:clamp(24px,3vw,30px)}
.esr-notes p{margin:0 0 18px}
.esr-doc{display:block;width:100%;height:80vh;min-height:600px;border:1px solid var(--esr-line);border-radius:12px;margin-top:20px;background:#fff}
@media (max-width:480px){.esr-notes{padding:22px}}

/* Subscribe options */
.esr-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.esr-option{background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:12px;min-width:0}
.esr-option__head{display:flex;align-items:center;gap:14px;min-height:48px}
.esr-option__head img{display:block;width:44px;height:44px;object-fit:contain;border-radius:10px}
.esr-option__head img.esr-badge{width:auto;height:44px;max-width:100%;border-radius:8px}
.esr-option__head img.esr-logo-ss{width:48px;height:48px;border-radius:0}
.esr-option h2{font-size:22px;margin:0}
.esr-option p{margin:0;color:var(--esr-muted)}
.esr-option .esr-btn{margin-top:auto;align-self:flex-start}
.esr-guide{background:var(--esr-soft);border-radius:14px;padding:16px 20px;margin:0 0 24px;max-width:none}
@media (max-width:640px){.esr-options{grid-template-columns:minmax(0,1fr)}}

/* Archive index */
.esr-years{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0;list-style:none}
.esr-page .esr-years a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:64px;padding:0 14px;background:#fff;border:1px solid var(--esr-line);border-radius:10px;font-weight:700;text-decoration:none}
.esr-page .esr-years a:hover{box-shadow:0 0 0 3px var(--esr-blue)}
.esr-year{background:#fff;border:1px solid var(--esr-line);border-radius:18px;padding:24px 28px;margin-bottom:20px;scroll-margin-top:16px}
.esr-year h2{font-size:28px}
.esr-eplist{list-style:none;margin:0;padding:0}
.esr-eplist li{display:flex;flex-wrap:wrap;gap:2px 16px;align-items:baseline;padding:10px 0;border-top:1px solid var(--esr-line)}
.esr-eplist li:first-child{border-top:0}
.esr-eplist time{flex:0 0 auto;min-width:9.5em;color:var(--esr-muted);font-size:15px}
.esr-eplist a{flex:1 1 280px;min-width:0;display:inline-block;padding:4px 0}
@media (max-width:480px){.esr-year{padding:20px}}

@media (prefers-reduced-motion:reduce){.esr-page *{transition:none!important;animation:none!important}}
.esr-count{font-size:.6em;font-weight:500;color:var(--esr-muted)}

/* ---------- Archive pages only: keep old article media inside a phone screen ----------
   Some 2016 to 2025 posts have fixed width images and iframes (500px and up)
   that caused sideways scrolling on phones before this redesign. These rules
   only change sizing, never the markup. They apply only on pages that carry
   the new esr header inside the old WordPress layout. */
.wp-site-blocks:has(> .esr-header) main img{max-width:100%;height:auto}
.wp-site-blocks:has(> .esr-header) main iframe,
.wp-site-blocks:has(> .esr-header) main video,
.wp-site-blocks:has(> .esr-header) main object,
.wp-site-blocks:has(> .esr-header) main embed{max-width:100%}
.wp-site-blocks:has(> .esr-header) main{overflow-wrap:anywhere}

/* Fixes after the first screenshot review */
.esr-menu{flex:none}
.esr-menu > summary{white-space:nowrap}
.esr-header a.esr-brand{min-width:0}
.esr-panel .esr-times p{margin:0 0 4px}
/* Archive pages: remove the old theme's top and bottom page padding so the
   new header and footer sit flush with the window edges. */
.wp-site-blocks:has(> .esr-header){padding-top:0!important;padding-bottom:0!important}
.wp-site-blocks > .esr-header{margin-block-start:0!important;margin-top:0!important}
.wp-site-blocks > .esr-footer{margin-block-end:0!important}

/* ---------- Round 3 ---------- */
/* Old 2000x400 banner, back under the new header on archive pages */
img.esr-banner{display:block;max-width:100%;height:auto;width:100%;margin:0 auto;border:0;border-radius:0}
.wp-site-blocks > img.esr-banner{margin-block-start:0!important}

/* Episode audio player (archive episode pages). Native controls, full width. */
.esr-audio-outer{margin-block-start:0;margin-bottom:28px}
.esr-audio{box-sizing:border-box;background:#fff;border:2px solid #E1E5EF;border-radius:16px;padding:16px 18px 14px;font-family:"ESR Inter",Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#0F1B33}
.esr-audio *{box-sizing:border-box}
.esr-audio p.esr-audio__label{margin:0 0 10px;font-size:18px;line-height:1.3;font-weight:700}
.esr-audio audio.esr-audio__player{display:block;width:100%;max-width:100%;height:56px;min-height:56px;margin:0;border-radius:28px}
.esr-audio p.esr-audio__dl{margin:10px 0 0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.esr-audio p.esr-audio__dl a{color:#1F4FD8;text-decoration:underline;text-underline-offset:.15em}
.esr-audio a:focus-visible,.esr-audio audio:focus-visible{outline:3px solid #1F4FD8;outline-offset:3px}
@media (max-width:480px){.esr-audio{padding:14px 14px 12px}.esr-audio p.esr-audio__label{font-size:17px}}

/* The old Podlove web player (the podlove-web-player-loading element) cannot
   start any more: its scripts and data (/wp-content/plugins/podlove-web-player/
   web-player/5.13.0/ and /wp-json/podlove-web-player/) return 404 on the live
   site. Checked in Chromium: its loading class is removed, then it stays an
   empty 26px box with a gap under the new audio player. Hide it on pages that
   have the new player, and while it is still loading. Markup unchanged. */
.podlove-web-player.podlove-web-player-loading,
main:has(.esr-audio) .podlove-web-player{display:none!important}

/* Facebook mark: same size and pill as the Substack logo */
.esr-footer .esr-social img.esr-logo-fb{width:48px;height:48px;border-radius:0;margin:0}
.esr-footer .esr-social a:has(> img.esr-logo-fb){padding-left:14px}
.esr-option__head img.esr-logo-fb{width:48px;height:48px;border-radius:0}

/* Host photos (home page) */
.esr-host--photo{display:flex;align-items:center;gap:20px}
.esr-page img.esr-host__photo{flex:none;display:block;width:160px;height:160px;object-fit:cover;object-position:50% 30%;border-radius:16px;background:var(--esr-soft)}
.esr-host__text{min-width:0}
.esr-page .esr-host h3 a{font-weight:700}
@media (max-width:480px){.esr-host--photo{flex-direction:column;align-items:flex-start}}

/* Hides the dead Podlove download dropdown on pages with the new audio player. Added 2026-11-26. */
main:has(.esr-audio) .episode_downloads{display:none!important}
