/* Public SM site only. The learning programs keep their own stylesheets. */
.sm-site {
  --sm-ink: #1d2f4f;
  --sm-muted: #52627a;
  --sm-blue: #304fd0;
  --sm-line: #dfe5ef;
  --sm-surface: #fffefa;
  --sm-surface-line: #e5e0d3;
  --sm-surface-active: #f1ead8;
  --sm-page-bg: #fbf8ec;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: auto;
  background: var(--sm-page-bg);
  color: var(--sm-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.sm-site *, .sm-site *::before, .sm-site *::after { box-sizing: border-box; }
.sm-site .pageWrap { padding: 0; }
.sm-site .SMpage, .sm-site .SMpageMobile {
  width: 100%; max-width: none; margin: 0; background: var(--sm-page-bg);
  font: inherit; text-align: left;
}
.sm-site a, .sm-site a:visited { color: var(--sm-blue); font-weight: 600; text-decoration: none; }
.sm-site a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sm-site a:focus-visible, .sm-site input:focus-visible, .sm-site select:focus-visible,
.sm-site textarea:focus-visible, .sm-site button:focus-visible {
  outline: 3px solid #c56804; outline-offset: 4px;
}
.sm-site h1, .sm-site h2, .sm-site h3 { color: var(--sm-ink); line-height: 1.2; font-weight: 700; }
.sm-site h1 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); letter-spacing: -.045em; margin: 0 0 24px; }
.sm-site h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -.035em; margin: 0 0 20px; }
.sm-site h3 { font-size: 1.2rem; margin: 12px 0; }
.sm-site p { margin: 0 0 18px; }
.sm-site img { max-width: 100%; height: auto; }
.sm-skip { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 12px 20px; background: #fff; }
.sm-skip:focus { top: 8px; }
.sm-header { background: #0000ff; }
.sm-site .sm-brand-bar {
  width: min(1120px, calc(100% - 64px)) !important;
  height: auto !important; margin: 0 auto; background: transparent !important; border-spacing: 0;
}
.sm-brand-bar td { padding: 16px 0; }
.sm-brand-bar td:first-child { width: 220px; }
.sm-brand-bar td:nth-child(2) { text-align: left; padding-left: 28px; }
.sm-brand-bar td:nth-child(3):has(:empty) { width: 0; }
.sm-brand-bar td:nth-child(3):empty { display: none; }
.sm-brand-bar td:last-child { width: 144px; text-align: right; white-space: nowrap; }
.sm-brand-bar img[id$="imgSundMed"] { display: block; width: auto; height: 50px; }
.sm-brand-bar span { color: #fff !important; font: 500 .9rem "Segoe UI", Arial, sans-serif !important; }
.sm-brand-bar span[id$="_lblHeaderText"] { font-size: 1.25rem !important; font-weight: 600 !important; line-height: 1.3 !important; }
.sm-brand-bar input[type="image"] { width: 26px !important; height: auto !important; vertical-align: middle; margin-right: 8px; border-radius: 3px; }
.sm-site select {
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2352627a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  color: var(--sm-ink) !important; border: 1px solid #b7c3d6 !important;
  border-radius: 8px; padding: 10px 34px 10px 12px; font: inherit !important; min-height: 44px; max-width: 100%;
}
.sm-brand-bar select { width: 108px !important; font-size: .875rem !important; }
.sm-site .sm-cookie-notice { background: var(--sm-surface) !important; color: var(--sm-ink); font-size: .875rem; height: auto !important; }
.sm-cookie-notice td { padding: 12px 24px; }
.sm-cookie-notice td:first-child { padding-left: max(24px, calc((100vw - 1120px) / 2)); }
.sm-navigation { border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); background: var(--sm-page-bg); }
.sm-site .sm-menu { width: min(1120px, calc(100% - 64px)) !important; margin: 0 auto; background: var(--sm-page-bg) !important; border-spacing: 0; }
.sm-menu > tbody > tr { display: flex; align-items: center; gap: 8px; min-height: 68px; height: auto !important; }
.sm-menu > tbody > tr > td { width: auto !important; background: transparent !important; padding: 0; }
.sm-menu > tbody > tr > td:last-child { margin-left: auto; }
.sm-menu a { padding: 10px 18px; border-radius: 8px; color: var(--sm-muted) !important; font-size: .94rem; white-space: nowrap; }
.sm-menu a:hover { background: var(--sm-surface); text-decoration: none; }
.sm-menu a.is-current { color: var(--sm-blue) !important; background: var(--sm-surface-active); }
.sm-menu td:last-child a { background: var(--sm-ink); color: #fff !important; padding: 10px 25px; }
.sm-menu td:last-child a:hover { background: var(--sm-blue); }
.sm-main { max-width: 1184px; padding: 48px 32px 64px; margin: 0 auto; }
.sm-site .sm-content-layout { width: 100% !important; border-spacing: 0; }
.sm-content-layout > tbody > tr > td { padding: 0; width: auto !important; vertical-align: top; }
.sm-content-layout > tbody > tr > td:empty { display: none; }
.sm-content-layout > tbody > tr > td:not(:empty):not(:nth-child(2)) { padding: 0 12px; }
.sm-main table { max-width: 100%; }
.sm-main > .sm-content-layout > tbody > tr > td > table,
.sm-main .webProgramContent, .sm-main .contactContent { width: 100%; border-spacing: 0; }
.sm-main td { overflow-wrap: break-word; }
.sm-main .webProgramContent > tbody > tr > td,
.sm-main .contactContent > tbody > tr > td { padding: 14px 0; }
/* Existing section bars become understated headings without touching their content. */
.sm-main td[style*="background-color:#3366CC" i] {
  background: var(--sm-surface) !important; padding: 14px 18px !important; border-left: 3px solid var(--sm-blue);
}
.sm-main td[style*="background-color:#3366CC" i] span { color: var(--sm-ink) !important; font-size: 1.15rem; }
.sm-site input[type="submit"], .sm-site input[type="button"], .sm-site button {
  min-height: 44px; max-width: 100%; border: 1px solid var(--sm-blue);
  border-radius: 8px; padding: 10px 20px; background: var(--sm-blue) !important;
  color: #fff !important; font: 600 .95rem/1.4 "Segoe UI", Arial, sans-serif !important;
  cursor: pointer; transition: background .15s ease, box-shadow .15s ease;
}
.sm-site input[type="submit"]:hover, .sm-site input[type="button"]:hover, .sm-site button:hover { background: #223ba7 !important; }
.sm-site input:disabled, .sm-site button:disabled { opacity: .55; cursor: default; }
.sm-site input[type="text"], .sm-site input[type="password"], .sm-site textarea {
  max-width: 100%; min-height: 44px; border: 1px solid #b7c3d6; border-radius: 7px;
  padding: 9px 12px; color: var(--sm-ink); font: inherit;
}
.sm-site input[type="checkbox"], .sm-site input[type="radio"] { accent-color: var(--sm-blue); }
.sm-site input[type="checkbox"] + label, .sm-site input[type="radio"] + label { padding-left: 6px; }
.sm-site .contactForm { background: var(--sm-surface) !important; border: 1px solid var(--sm-surface-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; padding: 20px; margin: 24px auto; }
.sm-site .contactForm img[src*="round_"] { display: none; }
.sm-site .infoBox { background: var(--sm-surface); border: 1px solid var(--sm-surface-line); border-radius: 12px; max-width: none; padding: 20px 24px; }
.sm-site .infoBox > div { padding: 0 !important; }
.sm-site .webProgramVideo { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 9; margin: 16px auto; border-radius: 14px; }
.sm-main table[id$="_tblHeadSteps"] { margin-bottom: 24px; border-spacing: 0; }
.sm-main table[id$="_tblHeadSteps"] > tbody > tr:last-child { background: var(--sm-surface) !important; color: var(--sm-ink) !important; }
.sm-main table[id$="_tblHeadSteps"] td { padding: 12px; }
.sm-main table[id$="_tblCountry"] > tbody > tr[style*="background-color" i] { background: var(--sm-surface) !important; border: 1px solid var(--sm-surface-line) !important; }
.sm-main table[id$="_tblCountry"] > tbody > tr[style*="background-color" i] > td { padding: 14px 10px; }
.sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]:checked) { background: var(--sm-surface-active) !important; }
.sm-hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 12px 0 60px; }
.sm-home .sm-eyebrow { color: #3553a4; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 18px; }
.sm-hero-copy > span > p { font-size: 1.08rem; color: var(--sm-muted); max-width: 490px; }
.sm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.sm-site .sm-button { width: auto !important; height: auto !important; min-height: 50px; padding: 13px 22px !important; white-space: normal; }
.sm-site input.sm-button-secondary { color: var(--sm-ink) !important; background: #fff !important; border-color: #bbc6d9; }
.sm-site input.sm-button-secondary:hover { background: var(--sm-surface-active) !important; }
.sm-home .sm-hero-note { font-size: .875rem; color: var(--sm-muted); margin: 0; }
.sm-hero-preview { min-width: 0; padding: 16px; border: 1px solid var(--sm-surface-line); border-radius: 22px; background: var(--sm-surface); box-shadow: 0 18px 45px -28px #34457366; }
.sm-preview-caption { display: flex; gap: 16px; align-items: center; color: #4b5b78; font-size: .8rem; font-weight: 600; margin: 0 4px 14px; }
.sm-preview-dots { display: flex; gap: 5px; }
.sm-preview-dots i { height: 7px; width: 7px; border-radius: 50%; background: #9cabcb; }
.sm-preview-screen { position: relative; padding: 6px 6px 14px; background: #2d3748; border: 1px solid #1d2635; border-radius: 10px; box-shadow: 0 9px 18px -14px #17243b99; overflow: hidden; }
.sm-preview-screen::after { content: ""; position: absolute; right: 14px; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: #a5b6ca; }
/* All slideshow assets are 444 x 384. Their screen is (20, 20), 404 x 260.
   Display that complete screen area inside the CSS monitor frame. */
.sm-preview-crop { position: relative; aspect-ratio: 404 / 260; border-radius: 3px; overflow: hidden; }
.sm-preview-crop img { position: absolute; display: block; width: calc(100% * 444 / 404); max-width: none; height: auto !important; left: calc(-100% * 20 / 404); top: calc(-100% * 20 / 260); }
.sm-preview-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.sm-site .sm-preview-controls input { min-height: 36px; padding: 7px 12px; font-size: .8rem !important; background: #fff !important; color: var(--sm-ink) !important; border-color: #c5cee1; }
.sm-site .sm-preview-controls input:hover { background: var(--sm-surface-active) !important; }
.sm-home .sm-preview-note { text-align: center; color: var(--sm-muted); font-size: .8rem; margin: 0; }
.sm-program-section { border-top: 1px solid var(--sm-line); padding-top: 40px; }
.sm-section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 24px; }
.sm-section-heading h2 { margin: 0; }
.sm-section-heading .sm-eyebrow { margin-bottom: 10px; }
.sm-section-heading > p { max-width: 340px; color: var(--sm-muted); font-size: .95rem; margin: 0; }
.sm-program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sm-site .sm-program-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--sm-line); border-radius: 14px; color: var(--sm-ink); background: var(--program-bg, #fff); border-top: 4px solid var(--program-color); transition: box-shadow .15s, transform .15s; }
.sm-site .sm-program-card:hover { text-decoration: none; box-shadow: 0 12px 24px -12px #3044654d; transform: translateY(-3px); }
.sm-program-pink { --program-color: #bd3c71; --program-bg: #fbeaf1; }
.sm-program-blue { --program-color: #335cc7; --program-bg: #ebf0fe; }
.sm-program-green { --program-color: #24745b; --program-bg: #e7f4ee; }
.sm-program-math { --program-color: #7350b8; --program-bg: #f0ebfa; }
.sm-main td.sm-book-heading { background: var(--program-bg); border-left: 3px solid var(--program-color); padding: 14px 18px; }
.sm-main .sm-book-heading span { color: var(--sm-ink) !important; font-size: 1.15rem; }
.sm-program-symbol { align-self: start; display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 12px; padding: 0 8px; margin-bottom: 22px; background: var(--program-bg); color: var(--program-color); font-size: 1.4rem; font-weight: 650; }
.sm-program-card .sm-program-symbol { background: rgba(255, 255, 255, .75); }
.sm-program-card h3 { margin: 0 0 12px; font-size: 1.12rem; letter-spacing: -.02em; }
.sm-program-card p { color: var(--sm-muted); font-weight: 400; font-size: .94rem; margin: 0 0 24px; }
.sm-program-card .sm-card-link { margin-top: auto; color: var(--program-color); font-size: .875rem; }
.sm-program-description { color: var(--sm-muted); font-size: .95rem; padding: 28px 0 0; }
.sm-news { background: var(--sm-surface); border: 1px solid var(--sm-surface-line); border-radius: 16px; padding: 32px; margin-top: 36px; }
.sm-news h2 { font-size: 1.45rem; }
.sm-news h3 { max-width: 760px; }
.sm-news p { max-width: 850px; }
.sm-season, .sm-season-heading { margin-top: 24px; text-align: center; }
.sm-site .sm-footer { background: #1d2f4f; color: #fff; }
.sm-site .sm-footer-content { display: block; width: min(1120px, calc(100% - 64px)) !important; background: transparent !important; margin: 0 auto; padding: 16px 0; border-spacing: 0; font-size: .875rem; }
.sm-footer-content > tbody { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.sm-footer-content > tbody > tr { display: contents; }
.sm-footer-content td { display: block; width: auto !important; padding: 0; }
.sm-footer-content td:not(:has(a, img, span)) { display: none; }
.sm-footer-content [id$="pnlFacebook"] { display: flex; align-items: center; gap: 10px; }
.sm-footer-content [id$="pnlFacebook"] br { display: none; }
.sm-footer-content td span, .sm-footer-content a { font-size: .875rem !important; color: #fff !important; }
.sm-footer-content img { max-height: 26px; width: auto; }
.sm-footer-content a { display: inline-block; padding: 5px 0; }
.sm-footer-content p { margin: 0; }
/* The legacy mobile master keeps its generated, localized menu links. */
.sm-site .mobile_nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 12px 16px; background: var(--sm-page-bg); list-style: none; }
.sm-site .mobile_nav ul > span { display: contents; }
.sm-site .mobile_nav li a { color: var(--sm-ink); padding: 8px 12px; border: none; border-radius: 7px; font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.6; height: auto; }
.sm-site .mobile_nav li a:hover { background: var(--sm-surface-active); }
.sm-site .mobile_nav li:last-child a { background: var(--sm-ink); color: #fff; }
.sm-site .mobile_nav a[aria-current="page"] { color: var(--sm-blue); background: var(--sm-surface-active); }
/* Program presentations share the public shell and each program's colour. */
.sm-program-detail { min-width: 0; }
.sm-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--sm-muted); font-size: .9rem; margin-bottom: 36px; }
.sm-detail-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-bottom: 48px; }
.sm-program-detail .sm-eyebrow { color: var(--program-color); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.sm-program-detail h1 { font-size: clamp(2rem, 3.1vw, 2.75rem); }
.sm-detail-lead { color: var(--sm-muted); font-size: 1.1rem; }
.sm-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.sm-site a.sm-detail-primary, .sm-site a.sm-detail-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 18px; border: 1px solid var(--sm-blue); border-radius: 8px; font-size: .95rem; text-align: center;
}
.sm-site a.sm-detail-primary { background: var(--sm-blue); color: #fff; }
.sm-site a.sm-detail-secondary { background: #fff; color: var(--sm-ink); border-color: #bbc6d9; }
.sm-site a.sm-detail-primary:hover { background: #223ba7; text-decoration: none; }
.sm-site a.sm-detail-secondary:hover { background: var(--sm-surface-active); text-decoration: none; }
.sm-detail-note { color: var(--sm-muted); font-size: .875rem; margin: 0; }
.sm-detail-example { min-width: 0; margin: 0; padding: 24px; background: var(--program-bg); border: 1px solid var(--sm-line); border-radius: 18px; border-top: 4px solid var(--program-color); }
.sm-detail-example img { display: block; width: 100%; height: auto; border-radius: 6px; }
.sm-detail-example figcaption { color: var(--sm-muted); font-size: .875rem; text-align: center; margin-top: 14px; }
.sm-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--sm-line); padding: 40px 0 20px; }
.sm-detail-content h2 { font-size: 1.65rem; }
.sm-detail-content p { color: var(--sm-muted); }
.sm-detail-exercises { padding: 24px 0; scroll-margin-top: 24px; }
.sm-exercise-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 0; margin: 24px 0 0; }
.sm-exercise-list li { min-width: 0; padding: 20px 0; border-top: 1px solid var(--sm-line); }
.sm-exercise-list h3 { font-size: 1.1rem; margin: 0 0 10px; }
.sm-exercise-list p { margin: 0; }
.sm-detail-panel { padding: 28px 32px; border-left: 4px solid var(--program-color); border-radius: 0 12px 12px 0; background: var(--program-bg); margin: 12px 0 32px; }
.sm-detail-panel p:last-child, .sm-detail-practical p:last-child { margin-bottom: 0; }
.sm-detail-practical { max-width: 850px; margin: 32px 0; }
.sm-detail-next { padding: 32px; margin: 40px 0; background: var(--sm-surface); border: 1px solid var(--sm-surface-line); border-radius: 14px; }
.sm-detail-next h2 { font-size: 1.65rem; }
.sm-detail-next p { color: var(--sm-muted); }
.sm-detail-next .sm-detail-actions { margin-bottom: 0; }
.sm-detail-related h2 { font-size: 1.5rem; }
.sm-related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sm-site a.sm-related-program { padding: 18px 20px; border: 1px solid var(--sm-line); border-top: 3px solid var(--program-color); border-radius: 10px; color: var(--program-color); background: var(--program-bg, #fff); }
.sm-site a.sm-related-program:hover { background: var(--program-bg); }
.sm-presentation-link { display: inline-block; margin: 12px 0; }
/* The program overview helps visitors compare levels before opening a presentation. */
.sm-site .sm-hero-promise { font-size: 1.2rem; font-weight: 600; color: var(--sm-ink); }
.sm-site a.sm-text-link { display: inline-block; line-height: 1.6; text-underline-offset: 4px; }
.sm-text-link > span { margin-left: 5px; white-space: nowrap; }
.sm-montessori .sm-eyebrow, .sm-montessori-story .sm-eyebrow, .sm-montessori-link-panel .sm-eyebrow {
  color: #3553a4; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px;
}
.sm-montessori-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin: 12px 0 48px; padding: 32px; border: 1px solid var(--sm-surface-line); border-radius: 18px; background: var(--sm-surface); }
.sm-montessori-story > *, .sm-montessori-hero > *, .sm-montessori-home > * { min-width: 0; }
.sm-montessori-story h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.sm-montessori .sm-detail-primary, .sm-montessori-story .sm-detail-secondary { gap: 8px; }
.sm-montessori-story p:not(.sm-eyebrow), .sm-montessori p:not(.sm-eyebrow), .sm-montessori-link-panel p:not(.sm-eyebrow) { color: var(--sm-muted); }
.sm-montessori-photo { margin: 0; min-width: 0; }
.sm-montessori-photo > img { display: block; width: 100%; height: auto; border-radius: 12px; }
.sm-montessori-photo figcaption { color: var(--sm-muted); font-size: .82rem; line-height: 1.5; margin-top: 12px; }
.sm-montessori-photo small { display: block; font-size: .72rem; margin-top: 5px; }
.sm-montessori-photo a { overflow-wrap: anywhere; }
.sm-montessori-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 8px 0 48px; }
.sm-montessori h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.sm-montessori .sm-montessori-lead { font-size: 1.2rem; font-weight: 600; color: var(--sm-ink); }
.sm-montessori-principles { padding: 36px 0 44px; border-top: 1px solid var(--sm-line); }
.sm-montessori-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.sm-montessori-benefits > section { padding: 24px; border-radius: 14px; border: 1px solid var(--sm-surface-line); background: var(--sm-surface); }
.sm-montessori-benefits p { margin-bottom: 0; }
.sm-montessori-number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #3553a4; background: var(--sm-surface-active); font-weight: 700; font-size: .85rem; }
.sm-montessori-examples { padding: 12px 0 40px; }
.sm-montessori-section-lead { max-width: 760px; }
.sm-montessori-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.sm-montessori-example { overflow: hidden; border: 1px solid var(--sm-line); border-radius: 16px; border-top: 4px solid var(--program-color); }
.sm-montessori-example-image { background: var(--program-bg); padding: 24px; }
.sm-montessori-example-image > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.sm-montessori-example-copy { padding: 28px; }
.sm-montessori-example-copy h3 { margin-top: 0; }
.sm-montessori-home { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--sm-line); }
.sm-montessori-steps { margin: 0; padding: 0 0 0 24px; }
.sm-montessori-steps li { padding: 0 0 22px 10px; }
.sm-montessori-steps li::marker { color: #3553a4; font-weight: 700; }
.sm-montessori-steps strong, .sm-montessori-steps span { display: block; }
.sm-montessori-steps span { margin-top: 5px; color: var(--sm-muted); }
.sm-montessori-note { padding: 28px 32px; border-left: 4px solid #ba8c39; border-radius: 0 12px 12px 0; background: var(--sm-surface); }
.sm-montessori-note h2 { font-size: 1.5rem; }
.sm-montessori-note p { margin-bottom: 0; }
.sm-montessori-video { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--sm-line); }
.sm-site .sm-montessori-video .webProgramVideo { width: 100%; max-width: 880px; height: auto; aspect-ratio: 16 / 9; margin: 24px auto 0; }
.sm-montessori-video-note { max-width: 850px; }
.sm-montessori-biography { max-width: 850px; margin-bottom: 28px; }
.sm-montessori-link-panel { margin: 32px 0; padding: 28px 32px; border: 1px solid var(--sm-surface-line); border-radius: 14px; background: var(--sm-surface); }
.sm-montessori-link-panel h2 { font-size: 1.5rem; }
@media (max-width: 760px) {
  .sm-montessori-story, .sm-montessori-hero, .sm-montessori-home, .sm-montessori-benefits, .sm-montessori-example-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-montessori-story { padding: 24px; gap: 28px; margin-bottom: 36px; }
  .sm-montessori-story > .sm-montessori-photo { order: 2; }
  .sm-montessori-story .sm-detail-secondary, .sm-montessori-hero .sm-detail-primary { width: 100%; text-align: center; }
  .sm-montessori-hero { gap: 28px; padding-bottom: 36px; }
  .sm-montessori-benefits { gap: 16px; }
  .sm-montessori-example-image { padding: 16px; }
  .sm-montessori-example-copy, .sm-montessori-link-panel { padding: 24px; }
  .sm-montessori-home { gap: 20px; }
  .sm-montessori-note { padding: 24px; }
}

.sm-overview .sm-eyebrow { color: #3553a4; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.sm-overview-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 0 0 40px; }
.sm-overview h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.sm-overview-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; padding: 22px; background: var(--sm-surface); border: 1px solid var(--sm-surface-line); border-radius: 18px; }
.sm-overview-gallery figure { min-width: 0; margin: 0; padding: 12px; background: var(--program-bg); border-top: 3px solid var(--program-color); border-radius: 10px; }
.sm-overview-gallery img { display: block; width: 100%; height: auto; border-radius: 4px; }
.sm-overview-gallery figcaption { color: var(--program-color); font-size: .875rem; font-weight: 600; line-height: 1.4; padding-top: 12px; }
.sm-overview-gallery > p { grid-column: 1 / -1; font-size: .8rem; color: var(--sm-muted); text-align: center; margin: 0; }
.sm-overview-benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 24px 0; margin: 0 0 40px; border-top: 1px solid var(--sm-line); border-bottom: 1px solid var(--sm-line); }
.sm-overview-benefits strong, .sm-overview-benefits span { display: block; }
.sm-overview-benefits strong { margin-bottom: 6px; }
.sm-overview-benefits span { color: var(--sm-muted); font-size: .95rem; }
.sm-overview-programs { scroll-margin-top: 24px; }
.sm-overview .sm-section-heading { align-items: start; }
.sm-overview .sm-section-heading h2 { font-size: 1.9rem; }
.sm-overview .sm-program-card { scroll-margin-top: 24px; }
.sm-overview .sm-program-card .sm-program-level { color: var(--program-color); font-size: .85rem; font-weight: 600; margin: 0 0 10px; }
.sm-overview-reading-note { margin: 20px 0 36px !important; color: var(--sm-muted); font-size: .95rem; }
.sm-overview-practical { margin: 40px 0 32px; }
.sm-overview-practical h2, .sm-overview-books h2, .sm-overview-montessori h2 { font-size: 1.65rem; }
.sm-overview-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.sm-overview details { border: 1px solid var(--sm-surface-line); border-radius: 12px; padding: 18px 20px; background: var(--sm-surface); }
.sm-overview summary { font-weight: 600; cursor: pointer; }
.sm-overview summary:focus-visible { outline: 3px solid #c56804; outline-offset: 4px; }
.sm-overview details p { color: var(--sm-muted); margin: 16px 0 0; }
.sm-overview-books { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--sm-surface-line); border-radius: 14px; padding: 28px 32px; margin: 32px 0 40px; background: var(--sm-surface); }
.sm-overview-books p { color: var(--sm-muted); margin: 0; max-width: 720px; }
.sm-overview-books > a { flex-shrink: 0; }
.sm-overview-montessori { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 12px 0 32px; }
.sm-overview-montessori-summary { display: block; max-width: 850px; }
.sm-overview-montessori p, .sm-overview-video-note { color: var(--sm-muted); }
.sm-overview-video-note { margin: 24px 0 0; padding: 0 0 0 20px; border-left: 3px solid #c4cee8; font-size: .95rem; }
.sm-overview-montessori .webProgramVideo { background: var(--sm-surface); border: 1px solid var(--sm-surface-line); }
.sm-overview-guides { margin: 0 0 32px; }
.sm-overview-guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
@media (max-width: 960px) {
  .sm-overview-hero { gap: 24px; }
  .sm-overview-gallery { padding: 16px; gap: 10px; }
}
@media (max-width: 700px) {
  .sm-overview-hero, .sm-overview-benefits, .sm-overview-questions, .sm-overview-montessori { grid-template-columns: minmax(0, 1fr); }
  .sm-overview-hero { gap: 24px; padding-bottom: 32px; }
  .sm-overview-benefits { gap: 20px; padding: 24px 0; margin-bottom: 32px; }
  .sm-overview-books { display: block; padding: 24px; }
  .sm-overview-books > a { margin-top: 20px; }
  .sm-overview-montessori { gap: 16px; }
}
@media (max-width: 700px) {
  .sm-breadcrumb { margin-bottom: 24px; }
  .sm-detail-hero, .sm-detail-columns, .sm-exercise-list { grid-template-columns: minmax(0, 1fr); }
  .sm-detail-hero { gap: 24px; padding-bottom: 32px; }
  .sm-detail-columns { gap: 24px; padding-top: 32px; }
  .sm-detail-example { padding: 16px; }
  .sm-detail-panel, .sm-detail-next { padding: 24px; }
  .sm-detail-actions { flex-direction: column; align-items: stretch; }
  .sm-related-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .sm-hero { gap: 30px; }
  .sm-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-menu a { padding: 10px 12px; }
}
@media (max-width: 700px) {
  .sm-site .sm-brand-bar, .sm-site .sm-menu, .sm-site .sm-footer-content { width: calc(100% - 32px) !important; }
  .sm-brand-bar td { padding: 16px 0; }
  .sm-brand-bar td:first-child { width: auto; }
  .sm-brand-bar td:nth-child(2), .sm-brand-bar td:nth-child(3) { display: none; }
  .sm-brand-bar img[id$="imgSundMed"] { width: auto; max-width: 168px; height: auto; }
  .sm-brand-bar td:last-child { width: 120px; }
  .sm-brand-bar select { width: 96px !important; font-size: .8rem !important; padding-left: 8px; }
  .sm-brand-bar input[type="image"] { width: 22px !important; margin-right: 3px; }
  .sm-menu > tbody > tr { gap: 4px; padding: 10px 0; flex-wrap: wrap; }
  .sm-menu a { padding: 8px 10px; font-size: .875rem; }
  .sm-menu td:last-child a { padding: 8px 16px; }
  .sm-main { padding: 32px 20px 40px; }
  .sm-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 0 0 36px; }
  .sm-site .sm-hero h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .sm-hero-copy > span > p { font-size: 1rem; }
  .sm-section-heading { display: block; }
  .sm-section-heading > p { margin-top: 16px; }
  .sm-program-card { padding: 20px !important; }
  .sm-news { padding: 24px; }
  .sm-cookie-notice, .sm-cookie-notice > tbody, .sm-cookie-notice tr, .sm-cookie-notice td { display: block; width: 100% !important; }
  .sm-cookie-notice td { padding: 8px 20px; text-align: left; }
  .sm-cookie-notice td:first-child { padding-top: 16px; padding-left: 20px; }
  .sm-site .sm-content-layout, .sm-content-layout > tbody, .sm-content-layout > tbody > tr,
  .sm-content-layout > tbody > tr > td:not(:empty) { display: block; width: 100% !important; }
  .sm-content-layout > tbody > tr > td:not(:empty):not(:nth-child(2)) { padding: 0; }
  .sm-footer-content > tbody > tr:last-child > td { line-height: 1.6; }
  .sm-site .sm-footer-content { table-layout: fixed; }
  .sm-footer-content > tbody > tr > td { width: auto !important; }
  .sm-main .webProgramContent, .sm-main .contactContent { table-layout: fixed; }
  .sm-main table, .sm-main td, .sm-main div[style*="width"] { max-width: 100%; }
  .sm-main table { width: 100% !important; }
  .sm-main table[id$="_tblHeadSteps"] > tbody > tr { display: flex; flex-wrap: wrap; height: auto !important; }
  .sm-main table[id$="_tblHeadSteps"] td { width: 100% !important; text-align: left; padding: 8px 12px; }
  /* Release the legacy table columns and fixed row heights before stacking the choices. */
  .sm-main table[id$="_tblCountry"], .sm-main table[id$="_tblCountry"] > tbody { display: block; width: 100% !important; }
  .sm-main table[id$="_tblCountry"] > tbody > tr { display: block; width: 100% !important; height: auto !important; }
  .sm-main table[id$="_tblCountry"] > tbody > tr > td { display: block; width: 100% !important; }
  .sm-main table[id$="_tblCountry"] > tbody > tr:first-child { display: none; }
  .sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]) {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 12px; margin: 10px 0; border-radius: 12px;
  }
  .sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]) > td { width: auto !important; padding: 5px; }
  .sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]) > td:first-child { grid-column: 2; grid-row: 1; }
  .sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]) > td:nth-child(2) { grid-column: 1; grid-row: 1; align-self: center; }
  .sm-main table[id$="_tblCountry"] > tbody > tr:has(input[type="radio"]) > td:nth-child(n+3) { grid-column: 2; }
  .sm-main table[id$="_tblCountry"] input[type="submit"] { width: 100% !important; height: auto !important; white-space: normal; }
  .sm-main table[id$="_tblMain"], .sm-main table[id$="_Wizard1"], .sm-main table[id$="_tblPgm"] { table-layout: fixed; }
  .sm-main table[id$="_tblPgm"] > tbody > tr:first-child > td:nth-child(odd) { width: 45% !important; }
  .sm-main table[id$="_tblPgm"] > tbody > tr:first-child > td:nth-child(even) { width: 5% !important; }
  .sm-main table[id$="_tblPgm"] div[id$="Desc2"] { width: 100% !important; }
  .sm-main table[id$="_Wizard1"] table:has(input[id*="NavigationTemplateContainerID_"]) { display: block; border-spacing: 0; }
  .sm-main table[id$="_Wizard1"] table:has(input[id*="NavigationTemplateContainerID_"]) > tbody { display: block; }
  .sm-main table[id$="_Wizard1"] table:has(input[id*="NavigationTemplateContainerID_"]) > tbody > tr { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .sm-main table[id$="_Wizard1"] table:has(input[id*="NavigationTemplateContainerID_"]) td { padding: 0; }
  .sm-site .shopRecord, .sm-site .shopRecord > tbody, .sm-site .shopRecord > tbody > tr,
  .sm-site .shopRecord > tbody > tr > td { display: block; width: 100% !important; }
  .sm-site .shopRecord > tbody > tr { padding-bottom: 12px; }
  .sm-site .shopRecord > tbody > tr.shopColumnWidths { display: none; }
  .sm-site .shopRecord > tbody > tr > td { height: auto !important; text-align: left; }
  .sm-site .shopRecord > tbody > tr > td:first-child,
  .sm-site .shopRecord > tbody > tr > td:nth-child(2) { display: inline; }
  .sm-site .shopRecord > tbody > tr > td:last-child { display: block; }
  .sm-site .shopRecord input[type="text"] { width: 100% !important; min-width: 0; }
  .sm-site .shopRecord > tbody { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
  .sm-site .shopRecord > tbody > tr { grid-column: 1 / -1; }
  .sm-site .shopRecord > tbody > tr.shopSummary { display: contents; }
  .sm-site .shopRecord .shopSummary > td { display: block !important; min-width: 0; padding: 6px 10px; background: var(--sm-surface); }
  .sm-site .shopRecord .shopSummaryHead > td { grid-column: 1; white-space: nowrap; }
  .sm-site .shopRecord .shopSummaryValues > td { grid-column: 2; }
  .sm-site .shopRecord .shopSummary > td:nth-child(1) { grid-row: 2; }
  .sm-site .shopRecord .shopSummary > td:nth-child(2) { grid-row: 3; }
  .sm-site .shopRecord .shopSummary > td:nth-child(3) { grid-row: 4; }
  .sm-site .shopRecord .shopSummary > td:nth-child(4) { grid-row: 5; }
  .sm-site .shopConsent { table-layout: fixed; }
  .sm-site .shopConsent td:first-child { width: 36px; }
  .sm-site .contactForm, .sm-site .contactForm > tbody, .sm-site .contactForm > tbody > tr,
  .sm-site .contactForm > tbody > tr > td { display: block; width: 100% !important; text-align: left; }
  .sm-site .contactForm > tbody > tr { height: auto !important; padding: 4px 0; }
  .sm-site .contactForm > tbody > tr:first-child, .sm-site .contactForm > tbody > tr:last-child,
  .sm-site .contactForm > tbody > tr > td:empty { display: none; }
  .sm-site .contactForm input[type="text"], .sm-site .contactForm textarea { width: 100% !important; min-width: 0; }
  .sm-site .contactCaptcha { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 420px) {
  .sm-program-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-program-symbol { margin-bottom: 14px; }
  .sm-hero-actions { flex-direction: column; align-items: stretch; }
  .sm-site .sm-hero-preview { padding: 12px; }
  .sm-preview-caption { font-size: .75rem; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-site * { scroll-behavior: auto !important; transition: none !important; }
  .sm-site .sm-program-card:hover { transform: none; }
}
