/* Shared hub identity — navy, blue, light blue and yellow. Presentation only. */
:root,html[data-theme=light]{--hub-navy:#0D204E;--hub-blue:#305D91;--hub-sky:#A9CDE9;--hub-gold:#E2C66E;--page:#DFECF7;--back:#DFECF7;--wash:#DFECF7;--surface:#EDF5FC;--paper:#EDF5FC;--panel:#EDF5FC;--soft:#CFE3F3;--tint:#CFE3F3;--ink:#0D204E;--muted:#3E5573;--line:#AEC8DF;--border:#AEC8DF;--blue:#234D7D;--green:#234D7D;--link:#234D7D;--action:#0D204E;--on-action:#FFFFFF}
html:not([data-theme=dark]) body,html:not([data-theme=dark]) body.workspace{--back:#DFECF7;--page:#DFECF7;background:#DFECF7!important;color:#0D204E}
html body,html body :is(h1,h2,h3,h4,button,input,textarea,select){font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
html:not([data-theme=dark]) :is(.card,.resource,.resource-tile,.panel,.tool-panel,.automation-card,.school-panel,.shot,.quick-checks,.quick-check-link,.step-card,.guide-card){background:#EDF5FC;border-color:#AEC8DF}
html:not([data-theme=dark]) :is(.workspace-controls,.filters,.section-jump,.quick-tools,.help-strip,.school-shared,.hub-destinations .destination:not(.directory-destination),.proof-strip){background:#CFE3F3!important;color:#0D204E;border-color:#AEC8DF}
html body :is(.site-head,.site-header,.topline){background:#0D204E;color:#FFFFFF;border-bottom:3px solid #E2C66E;border-radius:0 0 18px 18px;padding:16px 24px;gap:18px}
html body :is(.site-head,.site-header,.topline) :is(a,.brand,.brand strong,.brand small,.theme,label,.home){color:#FFFFFF}
html body :is(.site-head,.site-header,.topline) :is(a:hover,a[aria-current=page]){color:#E2C66E}
html body :is(.site-head,.site-header,.topline) select{background:#203C63;color:#FFFFFF;border-color:#A9CDE9}
html:not([data-theme=dark]) .hero h1 span{color:#305D91}
html:not([data-theme=dark]) :is(.resource-tile,.automation-card,.panel,.card,.school-panel){border-top:3px solid #A9CDE9}
html body :is(.primary,.school-login,button[type=submit],.copy-material){background:#0D204E!important;color:#FFFFFF!important;border-color:#0D204E!important}
html body :is(.tab[aria-selected=true],.view-tabs button[aria-selected=true],.workspace-controls button[aria-selected=true]){background:#0D204E!important;color:#FFFFFF!important;border-color:#0D204E!important;box-shadow:inset 0 -3px #E2C66E}
html body :is(.help-strip,.feedback,.support){border-top:3px solid #E2C66E}
html body .help-strip :is(p,span,h2,h3){color:var(--ink)!important}
html body .help-strip>a{background:#0D204E!important;color:#FFFFFF!important}
html body :is(input,textarea,select){border-color:#7C9CB9}
html body :is(a,button,input,textarea,select):focus-visible{outline:3px solid #305D91;outline-offset:3px}
html[data-theme=dark]{--page:#09172F;--back:#09172F;--wash:#09172F;--surface:#142E50;--paper:#142E50;--panel:#142E50;--soft:#203F63;--tint:#203F63;--ink:#F4F8FD;--muted:#C5DBEE;--line:#4E7090;--border:#4E7090;--blue:#A9CDE9;--green:#A9CDE9;--link:#A9CDE9;--action:#E2C66E;--on-action:#0D204E}
html[data-theme=dark] body{background:#09172F!important;color:#F4F8FD}
html[data-theme=dark] :is(.card,.resource,.resource-tile,.panel,.tool-panel,.automation-card,.school-panel,.shot,.quick-checks,.quick-check-link,.step-card,.guide-card){background:#142E50;color:#F4F8FD;border-color:#4E7090}
html[data-theme=dark] :is(.workspace-controls,.filters,.section-jump,.quick-tools,.help-strip,.school-shared,.proof-strip){background:#203F63!important;color:#F4F8FD}
html[data-theme=dark] :is(a,button,input,textarea,select):focus-visible{outline-color:#E2C66E}
@media(max-width:650px){html body :is(.site-head,.site-header,.topline){padding:14px 16px;border-radius:0 0 14px 14px;flex-wrap:wrap}html body .site-head nav{gap:12px;flex-wrap:wrap}}
@media print{html body{background:#FFFFFF!important;color:#000000!important}}
/* Keep selected navigation readable in both themes and hide an empty tool tray. */
html body.hub-home .site-head nav a[aria-current="page"]{background:#E2C66E;color:#0D204E}
.hub-home .workspace-controls:has(>#open-tools-bar[hidden]){display:none}

/* Shared mission statement: fluid text, inherited theme colors. */
.hub-mission{box-sizing:border-box;max-width:52ch;margin:1.25rem 0;padding:.7rem 0 .7rem 1rem;border-left:3px solid #b58a37;font-size:1rem;line-height:1.65;color:inherit;overflow-wrap:break-word}.hub-mission strong{font-weight:700}

/* Keep keyboard and section navigation within the approved blue palette. */
:focus-visible, :target { outline-color: #305D91 !important; }

/* Public site navigation and resource index. */
html:not([data-theme=dark]) body.hub-home {
  --ink:#162a42; --muted:#4b5a67; --surface:#fff; --line:#cdd5d5;
  background:#fbfaf6!important; color:var(--ink);
}
html body :is(.public-mast,.site-head.wrap) {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  box-sizing:border-box; width:min(100%,1160px); max-width:1160px; margin:0 auto;
  padding:12px clamp(15px,3vw,38px); min-height:72px; gap:8px 24px;
  border:0; border-bottom:2px solid #c6a250; border-radius:0; background:#142c40; color:white;
}
html body :is(.public-mast,.site-head) .brand {
  display:inline-flex; align-items:center; gap:10px; margin:0; padding:0; border:0;
  background:transparent; color:white; text-decoration:none; font-size:17px; font-weight:700; letter-spacing:-.025em;
}
html body :is(.public-mast,.site-head) nav {
  display:flex; align-items:stretch; flex-wrap:wrap; gap:2px 10px; margin:0; padding:0; background:none; border:0;
}
html body :is(.public-mast,.site-head) nav a,
html body.hub-home .site-head nav a[aria-current=page] {
  display:inline-flex; align-items:center; min-height:44px; padding:0 5px; box-sizing:border-box;
  border:0; border-radius:0; background:transparent; color:#f4f5ef; font-size:14px; font-weight:600;
  text-decoration:none; box-shadow:none;
}
html body :is(.public-mast,.site-head) nav a:is([aria-current],:hover),
html body.hub-home .site-head nav a[aria-current=page] {color:#f8db8c;box-shadow:inset 0 -2px currentColor}
html body :is(.public-mast,.site-head) a:focus-visible {outline:2px solid #ffdc7a!important; outline-offset:2px}
.hub-home .workspace-hint,.hub-home .workspace-controls>nav {display:none}
.hub-home .workspace-section {padding-top:0}
.hub-home .workspace-controls:has(>#open-tools-bar[hidden]) {display:none}
.hub-home #teacher-catalog {margin:0 0 3rem}
.library-cover {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);
  align-items:center; gap:clamp(20px,5vw,80px); padding:clamp(20px,4vw,50px) 0 24px;
}
html body.hub-home :is(#library-title,#active-tool-title,.quick-checks>h3,.resource-intro h2,.national-resources h2) {
  font-family:'Iowan Old Style',Georgia,serif!important; font-weight:500; letter-spacing:-.045em;
  line-height:1.05; color:var(--ink); margin:0 0 12px; font-size:clamp(38px,5.4vw,72px);
}
.library-cover p {max-width:42ch; margin:0; font-size:clamp(16px,1.5vw,20px); line-height:1.5;color:var(--muted)}
.library-cover figure {margin:0}
.library-cover figure a {position:relative;display:block;overflow:hidden;border-radius:4px;background:#1e2b32}
.library-cover img {display:block;width:100%;height:clamp(130px,15vw,185px);object-fit:cover;object-position:center 52%}
.library-cover figure span {position:absolute;inset:auto 0 0;padding:20px 14px 9px;background:linear-gradient(transparent,#101b22ec);color:white;font-size:13px}
.hub-home .catalog-filters {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px;
  padding:16px 20px; border:1px solid var(--line); border-radius:6px; background:var(--surface);
}
.catalog-filters label:first-child {grid-column:1/-1}
.catalog-filters label {min-width:0;font-size:13px;color:var(--muted)}
.hub-home .catalog-filters :is(input,select) {
  width:100%;height:44px;box-sizing:border-box;border:1px solid var(--line);border-radius:4px;
  padding:0 10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;font-weight:550;
}
.library-summary {display:flex;align-items:center;gap:12px;min-height:54px;border-bottom:2px solid var(--ink)}
.library-summary p {margin:0;color:var(--muted);font-size:14px}
.library-summary button {padding:7px 9px;color:var(--link);text-decoration:underline;background:transparent;border:0;font:inherit;font-size:14px}
.hub-home .teacher-catalog-list {display:block;margin:0;padding:0}
.hub-home .teacher-catalog-list li {
  position:relative;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;
  gap:clamp(20px,5vw,72px);padding:20px 38px 20px 10px;border:0;border-radius:0;border-bottom:1px solid var(--line);
}
.hub-home .teacher-catalog-list li[hidden] {display:none}
.teacher-catalog-list li:hover,.teacher-catalog-list li:focus-within {background:var(--surface)}
.teacher-catalog-list a {font-size:clamp(18px,1.7vw,23px);line-height:1.22;letter-spacing:-.025em;color:var(--ink);text-decoration:none}
.teacher-catalog-list a:hover,.teacher-catalog-list a:focus-visible {text-decoration:underline;text-underline-offset:3px}
.teacher-catalog-list a:after {content:'↗';position:absolute;right:8px;color:var(--link);font-size:18px}
.teacher-catalog-list p {font-size:15px;line-height:1.45;color:var(--muted);margin:5px 0 0;max-width:66ch}
.entry-cost {display:grid;justify-items:start;gap:5px}
.entry-cost small {color:var(--muted);line-height:1.4;font-size:13px}
.price-mark {font-weight:700;font-size:13px;color:var(--ink)}
.price-mark:before {content:'';display:inline-block;width:8px;height:8px;margin-right:7px;background:#408579;border-radius:50%}
[data-tier=freemium] .price-mark:before {background:#b07d28}
[data-tier=paid] .price-mark:before {background:#7278b2}
#catalog-more {display:block;margin:20px auto;padding:12px 20px;border:1px solid var(--ink);border-radius:4px;background:var(--surface);color:var(--ink);font-weight:650}
#catalog-more[hidden],.library-summary button[hidden]{display:none}
html body.hub-home :is(.quick-checks,#google-guides-panel) {
  padding:clamp(20px,4vw,44px) 0; border:0; border-radius:0;background:transparent;box-shadow:none;
}
.hub-home .quick-check-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
html body.hub-home .quick-check-link {
  border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;
  padding:20px 34px 20px 4px;min-height:0;color:var(--ink)
}
.hub-home .quick-check-link strong {font-size:20px;letter-spacing:-.02em}
html body.hub-home .quick-check-link:hover {background:var(--surface)}
html body.hub-home #active-tool-title:not([hidden]){margin-top:30px}
html body.hub-home :is(.resource-intro,.national-resources) h2 {font-size:clamp(28px,3vw,40px)}
html body :is(.view-tabs,.walkthrough-nav) a {text-underline-offset:4px}
@media(max-width:760px) {
  html body :is(.public-mast,.site-head.wrap){gap:0 10px;padding:10px 16px 0}
  html body :is(.public-mast,.site-head.wrap) nav {order:3;width:100%;justify-content:space-between;gap:2px}
  html body :is(.public-mast,.site-head) nav a {font-size:13px}
  .library-cover {grid-template-columns:minmax(0,1fr)}
  .library-cover figure {max-width:none}
  .library-cover img {height:108px}
  .hub-home .catalog-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px}
  .hub-home .catalog-filters :is(input,select) {font-size:16px}
  .catalog-filters label:first-child {grid-column:1/-1}
  .hub-home .teacher-catalog-list li {grid-template-columns:minmax(0,1fr);gap:8px;padding:15px 25px 15px 4px}
  .entry-cost {display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
  .hub-home .quick-check-links {grid-template-columns:1fr}
}
@media print { .public-mast,.library-cover figure {display:none!important} }

/* Use the same paper, ink and rules on full-page guides and activities. */
html:not([data-theme=dark]) body:has(.public-mast) {
  --page:#fbfaf6; --surface:#fff; --ink:#162a42; --muted:#4b5a67; --line:#cdd5d5;
  background:#fbfaf6!important; color:var(--ink)
}
html body:has(.public-mast) :is(.walkthrough-header,.page-header,main>.hero) h1,
html body:has(#takeaway) main>h1 {
  font-family:'Iowan Old Style',Georgia,serif!important;letter-spacing:-.045em;line-height:1.08;font-weight:500;
}
html body:has(.public-mast) .view-tabs {
  background:var(--surface);border:1px solid var(--line);border-radius:6px;
  padding:6px;display:flex;flex-wrap:wrap;gap:4px;
}
html body:has(.public-mast) .view-tabs :is(a,button):not([hidden]) {min-height:42px;display:inline-flex;align-items:center;padding:6px 12px;border-radius:4px}
html body:has(.public-mast) .view-tabs [aria-pressed=true]{background:#183448;color:white}
body:has(#takeaway) main {padding:clamp(18px,4vw,44px) 20px;max-width:780px}
body:has(#takeaway) main>h1 {font-size:clamp(36px,5vw,60px);margin:12px 0 28px}
body:has(#takeaway) main section {border-top:1px solid var(--line);padding-top:16px}
body:has(#takeaway) main h2 {font-size:clamp(22px,3vw,32px);letter-spacing:-.03em}
body:has(#takeaway) table {margin:14px 0 22px;width:100%;background:var(--surface)}
body:has(#takeaway) :is(td,th) {border:0;border-bottom:1px solid var(--line);text-align:left}
body:has(#takeaway) caption {text-align:left;font-weight:650;margin-bottom:6px}
body:has(#takeaway) fieldset {background:var(--surface);border-color:var(--line)}
body:has(#takeaway) #compare {border:0;border-radius:4px;background:#17344a;color:white;padding:12px 18px}
.teacher-catalog-list .entry-main a:before {content:'';position:absolute;inset:0}
.teacher-catalog-list li:focus-within {outline:2px solid var(--link);outline-offset:-2px}
@media(max-width:760px) {
  html body.hub-home .site-head.wrap {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 4px}
  html body.hub-home .site-head.wrap nav {grid-column:1/-1}
  html body.hub-home .site-head.wrap .brand {width:auto;white-space:normal;font-size:15px}
}

/* Public Google guide directory. */
html body.hub-home #guides-title {
  font:500 clamp(42px,6vw,74px)/1.06 'Iowan Old Style',Georgia,serif!important;
  letter-spacing:-.045em;margin:0 0 12px;color:var(--ink)
}
#google-guides-panel .guide-intro {font-size:clamp(16px,1.5vw,20px);color:var(--muted);max-width:54ch;margin:0 0 24px}
.guide-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body.hub-home .guide-grid .quick-check-link {
  display:grid;align-content:start;gap:10px;padding:20px 36px 20px 18px;
  background:var(--surface);border:1px solid var(--line);border-top:4px solid #45877c;border-radius:4px
}
.guide-grid a span {line-height:1.5;color:var(--muted)}
@media(max-width:700px){.guide-grid{grid-template-columns:1fr;gap:10px}html body.hub-home .guide-grid .quick-check-link{padding:14px 36px 14px 14px;gap:4px}}

.hub-home .landing {padding-block:clamp(20px,4vw,56px)}
.landing-intro {display:grid;grid-template-columns:1.18fr 1fr;align-items:center;background:#152e41;color:#fff}
.landing-intro>div {padding:clamp(22px,4.6vw,68px)}
html body.hub-home .landing h1 {font:500 clamp(43px,5.5vw,80px)/1.02 'Iowan Old Style',Georgia,serif!important;color:#fff;letter-spacing:-.045em;margin:0 0 16px}
.landing-intro p {font-size:clamp(16px,1.4vw,21px);line-height:1.5;color:#e5eff1;max-width:38ch;margin:0}
.landing-intro figure {margin:0;position:relative;height:100%;min-height:230px}
.landing-intro img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.landing-intro figcaption {position:absolute;right:8px;bottom:6px;color:white;background:#17252de0;padding:2px 6px;font-size:11px}
.landing-choices {display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,2vw,28px);margin-top:clamp(16px,2.5vw,36px)}
.landing-choices a {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 4px;border-block:1px solid var(--line);text-decoration:none;color:var(--ink)}
.landing-choices h2 {font-size:clamp(21px,2.4vw,32px);margin:0 0 6px;color:var(--link)}
.landing-choices p {margin:0;max-width:43ch;line-height:1.45;color:var(--muted)}
.landing-choices span {font-size:26px;color:var(--link)}
.landing-choices a:is(:hover,:focus-visible) h2 {text-decoration:underline;text-underline-offset:4px}
.weekly-news {margin-top:clamp(32px,5vw,64px)}
.weekly-news header {display:flex;align-items:baseline;justify-content:space-between;gap:4px 20px;flex-wrap:wrap}
.weekly-news h2 {margin:0;color:var(--ink);font:500 clamp(28px,3.2vw,42px)/1.2 'Iowan Old Style',Georgia,serif}
.weekly-news header p,.weekly-news .story-source {color:var(--muted);font-size:.9rem;margin:0}
.weekly-news ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2.5vw,32px);padding:0;margin:16px 0 0;list-style:none}
.weekly-news li {border-top:2px solid var(--link);padding:14px 0 0}
.weekly-news h3 {font-size:1.2rem;line-height:1.32;margin:8px 0}
.weekly-news h3 a {color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.17em}
.weekly-news li p {margin:0;color:var(--muted);line-height:1.5}
@media(max-width:720px){.weekly-news ul {grid-template-columns:1fr}.weekly-news li {border-width:1px}}
@media(max-width:660px){
 .landing-intro,.landing-choices {grid-template-columns:1fr}
 .landing-intro figure {min-height:118px}
 .landing-choices {gap:0}
 .landing-choices a+a {border-top:0}
}

@media(max-width:359px) { .hub-home .catalog-filters {grid-template-columns:minmax(0,1fr)} }

.result-facts {display:grid;grid-template-columns:max-content minmax(0,1fr);align-content:start;gap:6px 12px;margin:0;font-size:14px;line-height:1.45}
.result-facts dt {font-weight:700}
.result-facts dd {min-width:0;margin:0;overflow-wrap:anywhere}
.result-facts small {display:block;font-size:inherit}
.teacher-catalog-list .result-facts {color:var(--muted)}
.teacher-catalog-list .result-facts dt {color:var(--ink)}
