:root {
  /* Site-wide typography token used by every page family. */
  --smw-font-stack: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-blue: #2F5FEE;
  --color-blue-dark: #1E46C4;
  --color-blue-light: #EAF0FF;
  --color-ink: #1B2237;
  --color-ink-soft: #5B6478;
  --color-body-bg: #FFFFFF;
  --color-panel: #EFF4FC;
  --color-border: #E4E9F2;
  --color-gray-soft: #EEF1F6;

  --font-display: var(--smw-font-stack);
  --font-body: var(--smw-font-stack);

  --header-h: 76px;
  --header-pad: 8px;
  --header-total-h: calc(var(--header-h) + var(--header-pad));
}


/* Base templates previously had no body font, so pages without index.css
   fell back to the browser serif default. Preserve identical typography everywhere. */
html { scrollbar-gutter: stable; }
body { font-family: var(--smw-font-stack); }
body button, body input, body select, body textarea { font-family: inherit; }

/* Keep the document in its current layout when the mobile drawer is open:
   never make <body> position:fixed (that causes scroll jumps and repainting). */
@media (max-width: 992px) {
  html.smw-nav-locked, html.smw-nav-locked > body {
    overflow-y: hidden !important;
    overscroll-behavior: none;
  }
}


.wrap{
  max-width:1400px;
  margin:0 auto;
  padding:0 44px;
  box-sizing: border-box;
}


.page-layout.wrap{
  max-width: 1400px;
  margin: 0 auto;
  padding:0 44px;
  box-sizing: border-box;
}



.site-header{
  flex:0 0 auto;
}
.site-header + .page-layout{
  margin-top:calc(var(--header-total-h, 84px));
}
@media (max-width:992px){
  /* header_navigation.css makes the header a normal in-flow element at this
     breakpoint (position:relative), so there is nothing to offset against.
     The fixed-header spacer must not apply here. */
  .site-header + .page-layout{
    margin-top:10px;
  }
}


/* ============================================================
   4. PAGE LAYOUT — shared two-column grid (sidebar + main)
   ------------------------------------------------------------
   Confirmed identical across main.css, kitstart.css, lower_dots.css
   and connect_dots.css. Desktop: 220px sidebar rail + fluid main
   column.
   ============================================================ */
.page-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:20px;
  align-items:stretch;
  padding-top:0;
  padding-bottom:0;
  flex:1 0 auto;
  min-height:calc(100vh - var(--header-total-h, 84px));
  min-height:calc(100dvh - var(--header-total-h, 84px));
}


.page-layout:not(:has(.sidebar)){
  display:block;
  padding-bottom:24px;
}
.page-layout:not(:has(.sidebar)) > .main-content{
  width:100%;
  max-width:100%;
}


.sidebar{
  width:220px;
  max-width:220px;
  flex:0 0 220px;
  padding:0;
  position:relative;
  align-self:flex-start;
  height:auto;
  min-height:100%;
  display:block;
  box-sizing:border-box !important;
}
.sidebar-card{
  position:relative;
  margin:10px 10px 16px 0;
  display:flex;
  flex-direction:column;
  background:var(--color-body-bg, #FFFFFF);
  border:1px solid var(--color-border, #E4E9F2);
  border-radius:0;
  box-sizing:border-box !important;
  width:auto;
  max-width:100%;
}
.sidebar-inner{
  position:sticky;
  top:var(--header-total-h, 84px);
  height:auto;
  align-self:start;
  display:flex;
  flex-direction:column;
  overflow:visible;
  width:100%;
  padding:0;
}



.main-content,
.contact-main,
.about-main,
.privacy-main,
.terms-main,
.kitstart-main{
  min-width:0;
  background:#ffffff;
  border:2px solid var(--color-border, #E4E9F2);
  border-radius:0;
  margin-top:10px;
  margin-bottom:24px;
  padding: 16px 24px 40px;
  box-sizing:border-box;
}


.breadcrumb,
.cdt-breadcrumb,
.main-content > nav[aria-label="Breadcrumb"]{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  font-family:var(--smw-font-stack);
  font-size:13px;
  line-height:1.4;
  min-height:20px;
  color:var(--color-ink-soft, #5B6478);
  margin:0 0 16px 0;
  padding:0;
  box-sizing:border-box;
}

.breadcrumb a,
.cdt-breadcrumb a{
  display:inline-flex;
  align-items:center;
  color:var(--color-blue, #2F5FEE);
  font-family:var(--smw-font-stack);
  font-size:inherit;
  font-weight:600;
  line-height:inherit;
  text-decoration:none;
  transition:color .15s ease;
}

.breadcrumb a:hover,
.cdt-breadcrumb a:hover{
  text-decoration:underline;
  color:var(--color-blue-dark, #1E46C4);
}

.breadcrumb svg,
.cdt-breadcrumb svg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  flex-shrink:0;
  width:12px;
  height:12px;
  margin:0 1px;
}

.breadcrumb .sep,
.cdt-breadcrumb .sep,
.crumb-sep{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#9AA3B5;
  font-size:16px;
  font-weight:600;
  line-height:1;
  width:12px;
  height:12px;
  user-select:none;
  flex-shrink:0;
  margin:0 1px;
}

.breadcrumb span:not(.sep):not(.crumb-home):not(.crumb-sep),
.breadcrumb .current,
.cdt-breadcrumb .current,
.cdt-breadcrumb span:not(.sep){
  color:var(--color-ink, #1B2237);
  font-family:var(--smw-font-stack);
  font-size:inherit;
  font-weight:600;
  line-height:inherit;
}



.site-footer,
body > #footer-navigation-ad-slot,
body > #footer-navigation-isolated{
  flex:0 0 auto;
}

@media (max-width:1100px){
  .page-layout{
    grid-template-columns:190px 1fr;
    gap:18px;
  }
  .sidebar{
    width:190px;
    max-width:190px;
    flex:0 0 190px;
  }
}

@media (max-width:992px){
  .page-layout{
    grid-template-columns:160px 1fr;
    gap:16px;
  }
  .sidebar{
    width:160px;
    max-width:160px;
    flex:0 0 160px;
  }
  .sidebar-card{
    margin:10px 4px 14px 0;
  }
}

@media (max-width:768px){
  .page-layout{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    align-self:stretch;
  }
  .sidebar{
    display:none !important;
  }
  .main-content,
  .contact-main,
  .about-main,
  .privacy-main,
  .terms-main,
  .kitstart-main{
    width:100%;
    max-width:100%;
    min-width:0;
    padding:14px 14px 24px;
    overflow-x:clip;
    border:2px solid var(--color-border, #E4E9F2); 
    margin-top:0;
    margin-bottom:0;
  }
  .wrap,
  .page-layout.wrap{
    padding:0 14px;
  }
}

@media (max-width:480px){
  .main-content,
  .contact-main,
  .about-main,
  .privacy-main,
  .terms-main,
  .kitstart-main{
    padding:12px 12px 22px;
  }
}


@media (max-width:768px){
  .page-layout img{
    max-width:100%;
  }
}

/* Shared Teaching Guide: visually matches the pale-blue worksheet header panels.
   Native typography and spacing; safe inside all 16 distinct topic templates.
   No accordions, JavaScript, extra stylesheet, or fixed-width overflow. */
.edu-guide {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: clamp(24px, 3vw, 38px) 0 28px;
  padding: 0;
  font-family: var(--smw-font-stack);
}
.edu-guide__inner {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #e6efff;
  border: 1.5px solid #91b0ff;
  border-radius: 16px;
  padding: clamp(19px, 2.7vw, 30px);
  color: #0b205f;
  box-shadow: 0 1px 2px rgba(17, 49, 107, .025);
  font-family: var(--smw-font-stack);
}
.edu-guide__eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #2856a5;
  font-family: var(--smw-font-stack);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .075em;
  line-height: 1.5;
  text-transform: uppercase;
}
.edu-guide__title {
  margin: 0 0 16px;
  color: #0e2770;
  font-family: var(--smw-font-stack);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.012em;
}
.edu-guide__copy { width: 100%; min-width: 0; }
.edu-guide__copy p {
  margin: 0 0 14px;
  max-width: 100%;
  color: #0b205f;
  font-family: var(--smw-font-stack);
  font-size: clamp(14px, 1.15vw, 15px);
  font-weight: 450;
  line-height: 1.68;
  overflow-wrap: break-word;
}
.edu-guide__copy p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .edu-guide { margin: 24px 0; }
  .edu-guide__inner { padding: 20px 18px; border-radius: 14px; }
  .edu-guide__title { font-size: 22px; }
  .edu-guide__copy p { font-size: 14px; line-height: 1.65; }
}
@media (max-width: 480px) {
  .edu-guide { margin: 20px 0; }
  .edu-guide__inner { padding: 17px 15px; border-radius: 12px; }
  .edu-guide__title { font-size: 20px; }
  .edu-guide__eyebrow { font-size: 10px; }
}
