/* SELcurve spacing v2 - LIVE (core 1.9.139, 2026-10-15). Scoped to <html class="sc-v2"> (added for everyone)
   (turned on per browser with ?design=v2, off with ?design=off - includes/spacing-v2.php).
   1 one spacing scale  2 light alternating section bands  3 more space above headings than below
   4 shorter cards on phones  5 competency buttons wrap on phones  6 shorter chip lists on phones.
   ASCII-only comments. */
html.sc-v2 { --sc-gap: 136px; --sc-band: #e4efec; --sc-band-line: #cfe1dc; --sc-band-pad: 76px; } /* 1.9.140: more air (Uday) */
@media (max-width: 1000px) { html.sc-v2 { --sc-gap: 104px; --sc-band-pad: 64px; } }
@media (max-width: 760px)  { html.sc-v2 { --sc-gap: 88px; --sc-band-pad: 56px; } }

/* 1. One gap between sections on every visitor page */
html.sc-v2 .schp > .schp-sec, html.sc-v2 .schp > .schp-stats, html.sc-v2 .schp > .scnew, html.sc-v2 .schp > .schp-pop,
html.sc-v2 .scab-sec, html.sc-v2 .scct-sec, html.sc-v2 .scpr section.sec, html.sc-v2 .hw-page section.hw-sec, /* 1.9.142: section only - the demo Back button also has class hw-sec */
html.sc-v2 .scrm-sec, html.sc-v2 .ds-section, html.sc-v2 .scu-every, html.sc-v2 .scu-plan { margin-bottom: var(--sc-gap) !important; }
html.sc-v2 .scrm-sec { margin-top: var(--sc-gap) !important; margin-bottom: 0 !important; }
html.sc-v2 .schp > .schp-hero { margin-bottom: 40px; }
html.sc-v2 .schp .schp-pop { margin: 44px 0 0 !important; padding-top: 32px; border-top: 1px solid #c9dcd7; } /* 1.9.143: chips sit inside the competency band */

/* 2. Light bands on every second section: the start and end of a section are visible at a glance.
   Desktop: a soft rounded panel inside the page. Phone: the band runs edge to edge. */
html.sc-v2 .schp > section.schp-sec:nth-of-type(even):not(.schp-free),
html.sc-v2 .hw-page > section.hw-sec:nth-of-type(odd),
html.sc-v2 .scpr section.sec:nth-of-type(odd):not(.choose),
html.sc-v2 .scab > section.scab-sec:nth-of-type(odd),
html.sc-v2 .scpp .scpp-rel,
html.sc-v2 .sclb .sclb-index,
html.sc-v2 .sclb .scnew {
  background: var(--sc-band); border: 1px solid var(--sc-band-line); border-radius: 24px;
  padding: var(--sc-band-pad) 56px !important;
}
@media (max-width: 760px) {
  html.sc-v2 .schp > section.schp-sec:nth-of-type(even):not(.schp-free),
  html.sc-v2 .hw-page > section.hw-sec:nth-of-type(odd),
  html.sc-v2 .scpr section.sec:nth-of-type(odd):not(.choose),
  html.sc-v2 .scab > section.scab-sec:nth-of-type(odd),
  html.sc-v2 .scpp .scpp-rel,
  html.sc-v2 .sclb .sclb-index,
  html.sc-v2 .sclb .scnew {
    border-radius: 0; border-left: 0; border-right: 0; padding: var(--sc-band-pad) 0 !important;
    box-shadow: 0 0 0 100vmax var(--sc-band); clip-path: inset(0 -100vmax);
  }
}
html.sc-v2 .sclb .sclb-index { margin-top: var(--sc-gap); border-top: 1px solid var(--sc-band-line); }
html.sc-v2 .sclb .sclb-more { margin-top: 48px; }
html.sc-v2 .sclb .scnew { margin: 0 0 40px; }
html.sc-v2 .scpp .scpp-rel { margin-top: var(--sc-gap); }
html.sc-v2 .scpp .scpp-faq { margin-top: 56px; }

/* 3. Headings: more space above (from the gap) than below; eyebrow sits close to its heading */
html.sc-v2 .schp-head, html.sc-v2 .scnew-head, html.sc-v2 .hw-sec-head, html.sc-v2 .scpr .sec-head, html.sc-v2 .ds-section-head { margin-bottom: 28px !important; }
html.sc-v2 .schp-eyebrow, html.sc-v2 .scnew-eyebrow { margin-bottom: 8px !important; }
@media (max-width: 760px) {
  html.sc-v2 .schp-head, html.sc-v2 .scnew-head, html.sc-v2 .hw-sec-head, html.sc-v2 .scpr .sec-head, html.sc-v2 .ds-section-head { margin-bottom: 20px !important; }
}

/* 4. Shorter product cards on phones: one badge line (Premium is the default, so only Free is labelled) */
@media (max-width: 560px) {
  html.sc-v2 .lb-card .lb-badges em.p { display: none; }
  html.sc-v2 .lb-card .lb-badges { flex-wrap: nowrap; gap: 4px; }
  html.sc-v2 .lb-card .lb-badges em { padding: 4px 7px; font-size: 11px; }
  html.sc-v2 .lb-card .lb-body { padding: 10px 11px 12px; gap: 6px; }
}

/* 6. Shorter chip lists on phones: 8 popular topics (all 43 are in the library index) */
@media (max-width: 560px) {
  html.sc-v2 .schp-poprow:first-child a:nth-of-type(n+9) { display: none; }
  html.sc-v2 .schp-poprow a { min-height: 32px; padding: 0 12px; font-size: 13px; }
  html.sc-v2 .schp-poprow span { flex-basis: 100%; margin-bottom: 2px; }
}

/* 7. (1.9.140) Home = a teaser, not a catalogue: one row of 4 cards per card section (2 x 2 on phones), so three
   card sections in a row no longer repeat 24 cards. Every section keeps its See all / Browse all button. */
html.sc-v2 .schp .schp-grid > :nth-child(n+5), html.sc-v2 .schp .scnew-grid > :nth-child(n+5) { display: none !important; }
html.sc-v2 .schp .schp-panelmore { margin-top: 28px; }
/* Body copy a touch roomier */
html.sc-v2 .schp-lead, html.sc-v2 .hw-sec-head p, html.sc-v2 .scpr .sec-head p { line-height: 1.65; }

/* 8. (1.9.141) Competency picker = clear buttons at every width (first-time visitors must see they can pick).
   All five wrap - no sideways scrolling, so the scroll arrows never appear. Selected = filled in its colour. */
html.sc-v2 .schp .schp-scroller { overflow: visible; }
html.sc-v2 .schp .schp-scroller::before, html.sc-v2 .schp .schp-scroller::after, html.sc-v2 .schp .schp-sbtn { display: none !important; }
html.sc-v2 .schp .schp-tabs { flex-wrap: wrap !important; overflow: visible !important; gap: 10px; border-bottom: 0 !important; margin: 0 0 22px !important; padding: 0 !important; }
html.sc-v2 .schp .schp-tabs::before { content: "Choose a competency to see its resources:"; flex: 0 0 100%; font: 600 14.5px/1.4 var(--ds-sans); color: var(--ds-ink); margin-bottom: 2px; }
html.sc-v2 .schp .schp-tabs > button, html.sc-v2 .schp .schp-tabs > button:hover, html.sc-v2 .schp .schp-tabs > button:focus {
  flex: 0 1 auto; min-height: 46px; padding: 0 18px !important; border: 1.5px solid #b9cfca !important; border-radius: 99px !important;
  background: #fff !important; color: var(--ds-ink) !important; font: 600 15px var(--ds-sans) !important; box-shadow: 0 1px 3px rgba(28,43,42,.08); }
html.sc-v2 .schp .schp-tabs > button:hover { border-color: var(--c) !important; }
html.sc-v2 .schp .schp-tabs > button[aria-selected="true"], html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:hover, html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:focus {
  background: var(--c) !important; border-color: var(--c) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(28,43,42,.18); }
html.sc-v2 .schp .schp-tabs > button[aria-selected="true"] i { background: #fff !important; }
@media (max-width: 560px) { html.sc-v2 .schp .schp-tabs > button { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 0 12px !important; font-size: 14px !important; } }

/* 9. (1.9.141) Contrast on the tinted bands: chips, tabs and cards are white so they stand out; text in full ink */
html.sc-v2 .schp .schp-topics { flex-wrap: wrap !important; overflow: visible !important; }
html.sc-v2 .schp .schp-topics a, html.sc-v2 .schp .schp-topics a:visited { background: #fff !important; border: 1px solid #b9cfca; color: var(--ds-t800) !important; }
html.sc-v2 .schp .schp-topics a:hover { border-color: var(--ds-t600); }
html.sc-v2 .schp .schp-topics > span { color: var(--ds-ink) !important; }
html.sc-v2 .schp .schp-tabdesc { color: var(--ds-ink) !important; font-size: 16.5px; margin-bottom: 14px; }
html.sc-v2 .schp > section.schp-sec:nth-of-type(even) .lb-card, html.sc-v2 .scpp .scpp-rel .lb-card, html.sc-v2 .sclb .scnew .lb-card { border-color: #c9dcd7; box-shadow: 0 2px 10px rgba(28,43,42,.07); }
html.sc-v2 .sclb .sclb-index a, html.sc-v2 .sclb .sclb-index h3 { color: var(--ds-t800); }

/* 10. (1.9.142) Contrast audit on the tinted bands (all visitor pages, measured in the browser):
   eyebrows 4.3:1 and grey captions 4.1:1 -> darker; selected competency button white-on-colour 4:1 -> darker fill;
   three surfaces that blended into the band (How It Works app frame, Pricing "try it" box, About map box) -> edged. */
html.sc-v2 :is(.schp > section.schp-sec:nth-of-type(even):not(.schp-free), .hw-page > section.hw-sec:nth-of-type(odd), .scpr section.sec:nth-of-type(odd):not(.choose), .scab > section.scab-sec:nth-of-type(odd), .scpp .scpp-rel, .sclb .sclb-index, .sclb .scnew) :is(.schp-eyebrow, .scab-eyebrow, .hw-eyebrow, .eb, .scnew-eyebrow, .ds-eyebrow) { color: var(--ds-t700) !important; }
html.sc-v2 :is(.schp > section.schp-sec:nth-of-type(even):not(.schp-free), .hw-page > section.hw-sec:nth-of-type(odd), .scpr section.sec:nth-of-type(odd):not(.choose), .scab > section.scab-sec:nth-of-type(odd), .scpp .scpp-rel, .sclb .sclb-index, .sclb .scnew) :is(.hw-cap, .hw-tip, .hwx-note, .hw-devcap) { color: var(--ds-ink-2) !important; }
html.sc-v2 :is(.schp > section.schp-sec:nth-of-type(even):not(.schp-free), .hw-page > section.hw-sec:nth-of-type(odd), .scpr section.sec:nth-of-type(odd):not(.choose), .scab > section.scab-sec:nth-of-type(odd), .scpp .scpp-rel, .sclb .sclb-index, .sclb .scnew) .hw-frame.hw-app { background: #fff !important; border: 1px solid #c9dcd7 !important; box-shadow: 0 6px 22px rgba(28,43,42,.09) !important; }
html.sc-v2 :is(.schp > section.schp-sec:nth-of-type(even):not(.schp-free), .hw-page > section.hw-sec:nth-of-type(odd), .scpr section.sec:nth-of-type(odd):not(.choose), .scab > section.scab-sec:nth-of-type(odd), .scpp .scpp-rel, .sclb .sclb-index, .sclb .scnew) :is(.tryit, .scab-maps) { border: 1.5px solid #e9c55a !important; box-shadow: 0 4px 16px rgba(28,43,42,.07); }
html.sc-v2 .schp .schp-tabs > button[aria-selected="true"], html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:hover, html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:focus {
  background: color-mix(in srgb, var(--c) 78%, #000) !important; border-color: color-mix(in srgb, var(--c) 78%, #000) !important; }

/* 11. (1.9.143) Home "How it works" steps on phones: number beside the text (was a number line + text line = tall, empty cards) */
@media (max-width: 600px) {
  html.sc-v2 .schp-steps { gap: 10px; }
  html.sc-v2 .schp-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 16px 16px 14px; }
  html.sc-v2 .schp-step b { grid-row: 1 / span 2; margin: 0; width: 34px; height: 34px; }
  html.sc-v2 .schp-step h3 { margin: 5px 0 3px; }
  html.sc-v2 .schp-step p { color: var(--ds-ink-2); }
}


/* 12. (1.9.149, Uday) Competency picker = folder tabs joined to the panel below.
   Desktop/tablet: five equal tabs in one row; the selected tab is white and opens into the white panel
   (no line between them), so the cards clearly come from the tab. Phones: buttons stay, the panel is a
   white card with the competency colour on top and its name as a title. */
html.sc-v2 .schp .schp-panel { background: #fff; border: 1px solid #c3d8d2; border-top: 4px solid var(--c, #2f6f6a); border-radius: 18px; padding: 22px 18px 24px; box-shadow: 0 8px 24px rgba(28,43,42,.06); }
html.sc-v2 .schp .schp-ptitle { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 19px/1.3 var(--ds-sans); color: var(--ds-ink); }
html.sc-v2 .schp .schp-ptitle i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
@media (min-width: 761px) {
  html.sc-v2 .schp .schp-tabs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px !important; margin: 0 !important; align-items: end; position: relative; z-index: 1; }
  html.sc-v2 .schp .schp-tabs::before { display: none !important; }
  html.sc-v2 .schp .schp-tabs > button, html.sc-v2 .schp .schp-tabs > button:hover, html.sc-v2 .schp .schp-tabs > button:focus {
    width: 100%; justify-content: center; text-align: center; white-space: normal !important; min-height: 58px; padding: 10px 12px !important;
    border: 1px solid #c3d8d2 !important; border-bottom: 0 !important; border-radius: 14px 14px 0 0 !important;
    background: rgba(255,255,255,.5) !important; color: var(--ds-ink-2) !important; font: 600 15px/1.25 var(--ds-sans) !important;
    box-shadow: inset 0 4px 0 var(--c) !important; }
  html.sc-v2 .schp .schp-tabs > button:hover { background: rgba(255,255,255,.85) !important; color: var(--ds-ink) !important; }
  html.sc-v2 .schp .schp-tabs > button[aria-selected="true"], html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:hover, html.sc-v2 .schp .schp-tabs > button[aria-selected="true"]:focus {
    background: #fff !important; border-color: #c3d8d2 !important; color: var(--ds-ink) !important; font-weight: 700 !important;
    min-height: 66px; margin-bottom: -1px; box-shadow: inset 0 5px 0 var(--c) !important; }
  html.sc-v2 .schp .schp-tabs > button[aria-selected="true"] i { background: var(--c) !important; }
  html.sc-v2 .schp .schp-panel { border-top: 1px solid #c3d8d2; border-radius: 0 0 18px 18px; padding: 28px 30px 30px; }
  html.sc-v2 .schp .schp-ptitle { display: none; }
  html.sc-v2 .schp .schp-scroller:not(.schp-scroller--topics) { margin: 0 !important; }
}

/* 13. (1.9.149, Uday) Phones: competency picker = accordion. Each competency is a full-width row; its panel opens
   directly under the row that was tapped (JS moves the panels under their buttons below 761px). */
@media (max-width: 760px) {
  html.sc-v2 .schp .schp-tabs.is-acc { display: flex !important; flex-direction: column; gap: 10px !important; flex-wrap: nowrap !important; overflow: visible !important; }
  html.sc-v2 .schp .schp-tabs.is-acc > button, html.sc-v2 .schp .schp-tabs.is-acc > button:hover, html.sc-v2 .schp .schp-tabs.is-acc > button:focus {
    flex: none !important; width: 100%; justify-content: flex-start; text-align: left; white-space: normal !important; gap: 12px;
    min-height: 60px; padding: 10px 46px 10px 18px !important; position: relative;
    border: 1.5px solid #b9cfca !important; border-radius: 14px !important; background: #fff !important; color: var(--ds-ink) !important;
    font: 700 16px/1.25 var(--ds-sans) !important; box-shadow: inset 5px 0 0 var(--c), 0 1px 3px rgba(28,43,42,.08) !important; }
  html.sc-v2 .schp .schp-tabs.is-acc > button i { width: 12px; height: 12px; background: var(--c) !important; }
  html.sc-v2 .schp .schp-tabs.is-acc > button small { display: block; font: 500 13px/1.3 var(--ds-sans); color: var(--ds-ink-2); margin-top: 2px; }
  html.sc-v2 .schp .schp-tabs.is-acc > button::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--ds-ink-2); border-bottom: 2.5px solid var(--ds-ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
  html.sc-v2 .schp .schp-tabs.is-acc > button[aria-selected="true"], html.sc-v2 .schp .schp-tabs.is-acc > button[aria-selected="true"]:hover, html.sc-v2 .schp .schp-tabs.is-acc > button[aria-selected="true"]:focus {
    background: #fff !important; color: var(--ds-ink) !important; border-color: var(--c) !important; border-bottom-color: transparent !important;
    border-radius: 14px 14px 0 0 !important; box-shadow: inset 5px 0 0 var(--c) !important; }
  html.sc-v2 .schp .schp-tabs.is-acc > button[aria-selected="true"]::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--c); }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel { margin-top: -10px; border: 1.5px solid var(--c); border-top: 0; border-radius: 0 0 14px 14px; padding: 2px 14px 18px 18px; box-shadow: inset 5px 0 0 var(--c), 0 8px 20px rgba(28,43,42,.08); }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ptitle { display: none; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-tabdesc { font-size: 15.5px; margin: 0 0 12px; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panelmore .ds-btn { width: 100%; justify-content: center; }
}
@media (min-width: 761px) { html.sc-v2 .schp .schp-tabs > button small { display: none; } }

/* 14. (1.9.149, Uday) Phones: products first. In the accordion the topic chips fold into one
   "Browse by topic (N)" row under the cards (opens on tap), so the cards start right after the description. */
html.sc-v2 .schp .schp-ttog { display: none; }
@media (max-width: 760px) {
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel:not([hidden]) { display: flex; flex-direction: column; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-tabdesc { order: 1; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-grid { order: 2; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-ttog { order: 3; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-scroller--topics, html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-topics { order: 4; display: none; margin: 12px 0 0 !important; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel.show-topics > .schp-scroller--topics { display: block; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel.show-topics > .schp-topics { display: flex; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel > .schp-panelmore { order: 5; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog, html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog:hover, html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog:focus {
    all: unset; order: 3; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 18px; min-height: 48px; padding: 0 16px; border: 1.5px solid #b9cfca; border-radius: 12px; background: #fff;
    font: 600 15px var(--ds-sans); color: var(--ds-t800); }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog span { color: var(--ds-ink-2); font-weight: 500; margin-right: auto; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform .2s; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog[aria-expanded="true"]::after { transform: translateY(25%) rotate(-135deg); }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-panel .schp-topics > span { display: none; }
  html.sc-v2 .schp .schp-tabs.is-acc .schp-ttog:focus-visible { outline: 3px solid var(--ds-t500); outline-offset: 2px; }
}

/* 15. (1.9.153, Uday) Home "Tools that keep your SEL organized" on phones: icon and title on one row,
   description below (no empty space to the right of the icon). */
@media (max-width: 600px) {
  html.sc-v2 .schp .schp-tool { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; }
  html.sc-v2 .schp .schp-tool > .ds-iconbox { grid-column: 1; grid-row: 1; margin: 0; }
  html.sc-v2 .schp .schp-tool > h3 { grid-column: 2; grid-row: 1; margin: 0; }
  html.sc-v2 .schp .schp-tool > :not(.ds-iconbox):not(h3) { grid-column: 1 / -1; }
  html.sc-v2 .schp .schp-tool > p { margin: 10px 0 0; }
}
