/* Rocktucation: the Weather School's own dress. Rides style.css tokens. */
/* the school lives at the site's measure, not its own */
.sc-wrap { max-width: 1140px; margin: 0 auto; }
.sc-wrap .card { margin-bottom: 14px; }
.jn-tabs.sc-sitenav { max-width: 1140px; margin: 0 auto 4px; padding: 0 4px; overflow-x: auto; }
.jn-tabs.sc-sitenav .tab, .sc-tabs .tab { text-decoration: none; white-space: nowrap; }
.sc-tabs { max-width: 920px; margin: 0 auto 16px; padding: 0 4px; overflow-x: auto; }
.sc-masthead { text-align: left; }
.sc-brand { font-size: 0.72rem; font-weight: 800; letter-spacing: 3px; color: var(--accent-ink);
  margin: 0 0 6px; }
.sc-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15;
  margin: 0 0 8px; }
.sc-mission { color: var(--muted); line-height: 1.6; margin: 0; max-width: 640px; }
.sc-h { font-size: 0.82rem; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase;
  margin: 0 0 8px; }
.sc-tag { color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.sc-tag a, .sc-dl a { color: var(--accent-ink); font-weight: 650; text-decoration: none;
  border-bottom: 1.5px solid var(--accent); }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list li { padding: 10px 0; border-top: 1px solid rgba(128,136,150,0.16); line-height: 1.5; }
.sc-list li:first-child { border-top: none; }
.sc-list a { text-decoration: none; color: inherit; }
.sc-item-title { font-weight: 720; }
.sc-list a:hover .sc-item-title, .sc-list a:focus .sc-item-title {
  border-bottom: 1.5px solid var(--accent); }
.sc-soon { display: block; font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.sc-dl { display: block; font-size: 0.85rem; margin-top: 3px; }
.sc-jumps { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-jump { text-decoration: none; }
.sc-term { padding: 12px 0; border-top: 1px solid rgba(128,136,150,0.16); }
.sc-term-t { font-size: 1.02rem; font-weight: 750; margin: 0 0 4px; }
.sc-order { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; color: var(--muted);
  text-transform: uppercase; margin-left: 6px; }
.sc-term-d { margin: 0 0 6px; line-height: 1.6; }
.sc-term-q { margin: 0; font-size: 0.85rem; color: var(--muted); font-style: italic; line-height: 1.5; }
.sc-attr { font-style: normal; }
.sc-toid-tease { font-weight: 720; margin: 0 0 4px; line-height: 1.5; }
.sc-unit :target { scroll-margin-top: 80px; }

/* clickable rows announce themselves; pending rows stand down */
.sc-list a .sc-item-title { color: var(--accent-ink); border-bottom: 1.5px solid var(--accent); }
.sc-list li:has(.sc-soon):not(:has(a)) { opacity: 0.62; }


/* the bar above the wings: theme control, and room for search */
.sc-tone { display: flex; gap: 6px; }
.sc-tone .chip { font-size: 0.78rem; padding: 5px 11px; }
/* WCAG 2.5.8: every small link keeps a 24px target without moving pixels */
.sc-dl a, .sc-list a, .sc-jump, .sc-tag a, .jn-tabs .tab, .sc-tabs .tab { position: relative; }
.sc-dl a::after, .sc-list a::after, .sc-tag a::after {
  content: ""; position: absolute; inset: -7px -4px; }
/* terms search */
.sc-search { max-width: 1140px; margin: 0 auto 12px; padding: 0 4px; }
.sc-search input { width: 100%; font-size: 16px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid rgba(128,136,150,0.4); background: transparent; color: inherit; }
.sc-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-count { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.sc-term[hidden], .sc-unit[hidden] { display: none !important; }

/* lesson-page controls get the same 24px courtesy (inline prose links are
   exempt under 2.5.8 and stay untouched) */
.ls-toc a, .ls-dl, .rc-get, .ls-kicker a { position: relative; }
.ls-toc a::after, .ls-dl::after, .rc-get::after, .ls-kicker a::after {
  content: ""; position: absolute; inset: -8px -5px; }
.fq summary { padding: 2px 0; }

/* masthead: the professor keeps the introduction company, and the
   introduction knows when to sit down */
.sc-masthead { position: relative; }

.sc-masthead-in { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
@media (min-width: 760px) {
  .sc-masthead-in { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }

  .sc-intro { padding-right: 8px; }
}
.sc-prof { margin: 0; text-align: center; }
.sc-prof img { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto; }
.sc-prof figcaption { font-size: 0.7rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.sc-fold { margin-top: 10px; background: none; border: none; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink);
  border-bottom: 1.5px solid var(--accent); }
.sc-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* folded: the school gets straight to work, the professor stays for company */
.sc-masthead.folded .sc-mission, .sc-masthead.folded .sc-prof figcaption { display: none; }
.sc-masthead.folded .sc-title { font-size: 1.25rem; margin-bottom: 0; }
.sc-masthead.folded .sc-brand { margin-bottom: 2px; }
.sc-masthead.folded .sc-prof img { max-width: 78px; }
@media (min-width: 760px) { .sc-masthead.folded .sc-masthead-in { grid-template-columns: minmax(0,1fr) 90px; } }

/* the school wears the forecast's chrome, so nobody feels they left */
.sc-wordmark { flex: 1 1 auto; margin: 0 0 0 18px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 2.5px; color: var(--accent-ink); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.sc-wordmark span { font-weight: 600; letter-spacing: 0.5px; color: var(--muted); }
.sc-back { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px;
  background: var(--accent); color: #201a06; font-weight: 750; font-size: 0.86rem;
  text-decoration: none; white-space: nowrap; }
.sc-back:hover { filter: brightness(1.06); }
.sc-back:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sc-tabs { max-width: 1140px; margin: 6px auto 16px; padding: 0; overflow-x: auto; }
.sc-tab-journal { margin-left: auto; }
@media (max-width: 780px) {
  .sc-wordmark { display: none; }
  .sc-back { padding: 8px 12px; font-size: 0.8rem; }
}

/* at the site's measure the professor gets real room */
@media (min-width: 1000px) {
  .sc-masthead-in { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .sc-prof img { max-width: 230px; }
  .sc-mission { max-width: 68ch; }
}

/* THE CATALOG: a news desk for lessons. Filters up top, cards below. */
.sc-filters { padding: 14px 16px; }
.sc-frow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-flabel { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); min-width: 52px; }
.sc-fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-fchips .chip { font-size: 0.78rem; padding: 5px 11px; }
.sc-fcount { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0;
  border-top: 1px solid rgba(128,136,150,0.18); padding-top: 8px; }
.lc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 700px) { .lc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lc-grid { grid-template-columns: repeat(3, 1fr); } }
.lc { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s; }
a.lc:hover { border-color: var(--accent); transform: translateY(-2px); }
a.lc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc-soon { opacity: 0.66; }
.lc-kind { font-size: 0.68rem; font-weight: 750; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--muted); }
.lc-title { font-size: 1.04rem; font-weight: 780; line-height: 1.3; letter-spacing: -0.2px; }
a.lc:hover .lc-title { color: var(--accent-ink); }
.lc-blurb { font-size: 0.85rem; color: var(--muted); line-height: 1.55; flex: 1 1 auto; }
.lc-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.lc-level { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; }
.lvl-first { background: rgba(233,182,76,0.22); color: #8a6d1f; }
.lvl-foundation { background: rgba(76,175,125,0.18); color: #2e7d55; }
.lvl-working { background: rgba(74,144,217,0.18); color: #2f6ea8; }
.lvl-deep { background: rgba(160,110,220,0.18); color: #6b46a8; }
:root:not([data-theme="light"]) .lvl-first { color: #f0c968; }
:root:not([data-theme="light"]) .lvl-foundation { color: #7fd7ab; }
:root:not([data-theme="light"]) .lvl-working { color: #8dc0f0; }
:root:not([data-theme="light"]) .lvl-deep { color: #c3a3ec; }
.lc-min { font-size: 0.72rem; color: var(--muted); }
.lc-feat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; }
.sc-empty { text-align: center; color: var(--muted); font-style: italic; padding: 20px 0 26px; }
.lc[hidden] { display: none !important; }

/* FIRST WEATHER: a board book that lives on a screen. Big picture, big
   type, short lines, and the grown-up gets their own quiet card. */
.fw-wrap { max-width: 820px; margin: 0 auto; padding-bottom: 20px; }
.fw-kicker { font-size: 0.75rem; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; }
.fw-kicker a { color: var(--accent-ink); text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.fw-art { margin: 0 0 18px; }
.fw-art img { width: 100%; height: auto; border-radius: 20px; display: block;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18); }
.fw-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 850; letter-spacing: -1px;
  line-height: 1.05; margin: 0 0 8px; }
.fw-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--accent-ink); font-weight: 650;
  margin: 0 0 20px; line-height: 1.4; }
.fw-lines p { font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.6; margin: 0 0 14px;
  max-width: 34ch; }
.fw-card { border-radius: 16px; padding: 14px 18px; margin: 16px 0; background: var(--card);
  border: 1px solid var(--line); }
.fw-card p { margin: 0; line-height: 1.6; }
.fw-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px !important; }
.fw-look { border-left: 4px solid var(--accent); }
.fw-ask .fw-q { font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.fw-do { border-left: 4px solid #4caf7d; }
.fw-grown { background: rgba(128,136,150,0.10); border-style: dashed; }
.fw-grown p { font-size: 0.88rem; color: var(--muted); }
.fw-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.fw-nav a { text-decoration: none; color: inherit; font-weight: 720; line-height: 1.35; }
.fw-nav a span { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fw-next { text-align: right; margin-left: auto; }
.fw-home { color: var(--accent-ink) !important; border-bottom: 1.5px solid var(--accent);
  font-size: 0.85rem; }
.fw-nav a:hover { color: var(--accent-ink); }

/* who is learning: four doors, because chips assume you already know */
.sc-start { padding: 16px; }
.sh-doors { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .sh-doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sh-doors { grid-template-columns: repeat(4, 1fr); } }
.sh-door { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: inherit;
  cursor: pointer; font: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.sh-door:hover { border-color: var(--accent); transform: translateY(-2px); }
.sh-door:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sh-age { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent-ink); }
.sh-name { font-size: 1.02rem; font-weight: 780; }
.sh-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.sh-door-alt { background: rgba(128,136,150,0.08); }
/* the page's own voice */
.fw-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.fw-speak { font: inherit; font-size: 0.9rem; font-weight: 750; padding: 10px 18px; border-radius: 999px;
  border: none; background: var(--accent); color: #201a06; cursor: pointer; }
.fw-speak:hover { filter: brightness(1.06); }
.fw-speak:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.fw-speak.on { background: #ef5350; color: #fff; }
.fw-hint { font-size: 0.78rem; color: var(--muted); }

/* the professor turns up mid-lesson, pointer raised */
.fw-prof { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center;
  margin: 22px 0; padding: 14px 16px; border-radius: 18px;
  background: rgba(233,182,76,0.10); border: 1.5px dashed rgba(233,182,76,0.55); }
@media (min-width: 620px) { .fw-prof { grid-template-columns: 190px 1fr; gap: 18px; } }
.fw-prof img { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto;
  transform: scaleX(-1); }
@media (min-width: 620px) { .fw-prof img { transform: none; } }
.fw-prof-say p:last-child { font-size: 1.02rem; line-height: 1.55; margin: 0; }
.fw-prof-say .fw-h { color: var(--accent-ink); }

.fw-print { border-left: 4px solid var(--accent-ink); }
.fw-dl { color: var(--accent-ink); font-weight: 750; text-decoration: none;
  border-bottom: 1.5px solid var(--accent); position: relative; }
.fw-dl::after { content: ""; position: absolute; inset: -8px -5px; }

/* NOW YOU TRY: big targets, big pictures, no reading required */
.fw-play { margin: 22px 0; padding: 16px; border-radius: 18px;
  background: rgba(74,144,217,0.08); border: 1.5px solid rgba(74,144,217,0.35); }
.fw-ask-big { font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 750; line-height: 1.4;
  margin: 0 0 12px; }
.fw-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .fw-tiles { grid-template-columns: repeat(4, 1fr); } }
.fw-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 3px solid transparent;
  border-radius: 14px; background: var(--card); cursor: pointer; overflow: hidden; font: inherit;
  transition: transform .12s, border-color .12s; }
.fw-tile img { width: 100%; height: auto; display: block; aspect-ratio: 16/11; object-fit: cover; }
.fw-tile span { font-size: 0.92rem; font-weight: 750; padding: 6px 4px 9px; }
.fw-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.fw-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fw-tile.right, .fw-tile.picked { border-color: #4caf7d; }
.fw-tile.wrong { border-color: #ef5350; opacity: 0.7; }
.fw-verdict { font-size: 1.02rem; font-weight: 700; line-height: 1.5; margin: 12px 0 0; }
.fw-verdict.good { color: #2e7d55; }
:root:not([data-theme="light"]) .fw-verdict.good { color: #7fd7ab; }
.fw-rocksays { font-size: 0.92rem; color: var(--muted); line-height: 1.55; margin: 8px 0 0;
  border-top: 1px dashed rgba(128,136,150,0.4); padding-top: 8px; }

/* the professor does the thing he is asking for */
.fw-look-art { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
@media (min-width: 560px) { .fw-look-art { grid-template-columns: 168px 1fr; gap: 16px; } }
.fw-look-art img { width: 100%; max-width: 168px; height: auto; display: block; margin: 0 auto; }

/* the doing part announces itself */
.fw-section { font-size: clamp(1.6rem, 4.4vw, 2.2rem); font-weight: 850; letter-spacing: -0.6px;
  line-height: 1.1; margin: 30px 0 2px; color: var(--accent-ink); }
.fw-section-sub { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; }

/* ============ MOBILE: the school borrows the forecast's shell ============ */
.sc-mbar, .sc-launcher { display: none; }
.sc-filter-toggle { display: none; }
@media (max-width: 899px) {
  /* one screen of chrome, not three */
  .sc-wrap, .fw-wrap { padding-bottom: 86px; }
  .sc-tabs, .jn-tabs.sc-sitenav { display: none; }      /* the bar owns navigation now */
  .sc-wordmark { display: none; }
  .sc-masthead { padding: 14px 16px; }
  .sc-title { font-size: 1.35rem; margin-bottom: 4px; }
  .sc-masthead-in { grid-template-columns: 1fr 84px; gap: 12px; align-items: start; }
  .sc-prof img { max-width: 84px; }
  .sc-prof figcaption { display: none; }
  .sc-mission { font-size: 0.88rem; }
  /* the doors go horizontal: one swipe, not a screen and a half */
  .sc-start { padding: 12px 0 12px 12px; }
  .sc-start .sc-h { padding-right: 12px; }
  .sh-doors { display: flex; gap: 10px; overflow-x: auto; padding: 2px 12px 6px 0;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .sh-door { flex: 0 0 66%; scroll-snap-align: start; padding: 12px; }
  .sh-note { display: none; }
  /* filters fold behind one button */
  .sc-filter-toggle { display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 10px; font: inherit; font-size: 0.92rem; font-weight: 750;
    padding: 12px 16px; margin-bottom: 10px; border-radius: 14px; cursor: pointer;
    background: var(--card); border: 1.5px solid var(--line); color: inherit; }
  .sc-filter-toggle[aria-expanded="true"] { border-color: var(--accent); }
  .sc-filter-count { font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); }
  .sc-filters { display: none; }
  .sc-filters.open { display: block; }
  .sc-frow { margin-bottom: 10px; }
  /* the bottom bar and its sheet, same shapes as the forecast page */
  .sc-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
    align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    background: var(--panel-2); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18); }
  .mbar-home { display: flex; align-items: center; gap: 7px; text-decoration: none; color: inherit;
    font-weight: 750; font-size: 0.84rem; }
  .mbar-home-eyes { display: inline-flex; gap: 3px; }
  .mbar-home-eyes span { width: 9px; height: 9px; border-radius: 50%; background: var(--text);
    box-shadow: inset 0 0 0 2px var(--panel-2); }
  .sc-mbar .mbar-mid { flex: 1 1 auto; text-align: center; }
  .sc-mbar .mbar-title { font-weight: 800; font-size: 0.95rem; }
  .sc-mbar .mbar-menu { display: flex; align-items: center; gap: 6px; background: none; border: none;
    color: inherit; font: inherit; font-size: 0.84rem; font-weight: 750; cursor: pointer; padding: 6px 2px; }
  /* UNDER the bar (1400) on purpose: the Menu button that opened the sheet
     must stay tappable to close it. z-index 1500 buried the button and
     trapped Joe in the menu (2026-08-19); the app shell always had this
     right. Bottom padding clears the bar so no tile hides beneath it. */
  .sc-launcher { position: fixed; inset: 0; z-index: 1300; background: var(--bg);
    padding: 18px 16px calc(76px + env(safe-area-inset-bottom)); flex-direction: column; gap: 14px;
    overflow-y: auto; }
  .sc-launcher.open { display: flex; }
  body.sc-launcher-open { overflow: hidden; }
  .sc-launcher .launcher-head { display: flex; align-items: center; justify-content: space-between; }
  .sc-launcher .launcher-title { display: flex; align-items: center; gap: 8px; font-weight: 800;
    font-size: 1.1rem; }
  .sc-launcher .launcher-eyes { display: inline-flex; gap: 4px; }
  .sc-launcher .launcher-eyes span { width: 12px; height: 12px; border-radius: 50%;
    background: var(--text); box-shadow: inset 0 0 0 3px var(--bg); }
  .sc-launcher .launcher-close { background: none; border: none; color: var(--accent-ink);
    font: inherit; font-weight: 750; cursor: pointer; padding: 8px; }
  .sc-launcher .gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sc-launcher .gp-tile { display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
    text-decoration: none; color: inherit; font: inherit; }
  .sc-launcher .gp-ico { font-size: 1.5rem; }
  .sc-launcher .gp-name { font-size: 0.86rem; font-weight: 750; text-align: center; }
  /* cards tighten up */
  .lc { padding: 13px; gap: 4px; }
  .lc-blurb { font-size: 0.82rem; }
  .fw-wrap .fw-title { font-size: 1.9rem; }
}

@media (max-width: 899px) {
  /* the catalog reads as a list on a phone, not nineteen posters */
  .lc-grid { gap: 8px; }
  .lc { padding: 11px 13px; gap: 3px; border-radius: 12px; }
  .lc-kind { font-size: 0.62rem; }
  .lc-title { font-size: 0.97rem; line-height: 1.25; }
  .lc-blurb { font-size: 0.8rem; line-height: 1.4; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lc-foot { gap: 5px; margin-top: 2px; }
  .lc-feat { display: none; }              /* the chips are desktop luxury */
  .lc-feat:nth-of-type(-n+2) { display: inline; }
  .lc-level { font-size: 0.6rem; padding: 2px 7px; }
  .lc-min { font-size: 0.68rem; }
}
@media (min-width: 420px) and (max-width: 899px) {
  .lc-grid { grid-template-columns: 1fr 1fr; }
  .lc-blurb { -webkit-line-clamp: 3; }
}

@media (max-width: 899px) {
  .sc-launcher .launcher-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--muted); margin: 2px 2px -6px; }
  .sc-launcher .gp-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sc-launcher .gp-tile { padding: 12px 6px 10px; gap: 5px; border-radius: 14px; }
  .sc-launcher .gp-ico { display: inline-flex; color: var(--accent-ink); }
  .sc-launcher .gp-name { font-size: 0.7rem; }
  .sc-launcher .gp-tile-hero { background: var(--accent); border-color: var(--accent); color: #201a06; }
  .sc-launcher .gp-tile-hero .gp-ico, .sc-launcher .gp-tile-hero .gp-name { color: #201a06; }
  .sc-launcher .gp-tile-hero .gp-name { font-weight: 800; }
}

/* Words we learned: for a reader who is two, a definition is the word large
   enough to point at and one sentence a grown-up reads aloud. */
.fw-words .fw-word { padding: 10px 0; border-bottom: 1px solid rgba(128,138,150,0.22); }
.fw-words .fw-word:last-child { border-bottom: 0; }
.fw-word-w {
  display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--accent-ink, #8a5f00); line-height: 1.15;
}
.fw-word-d { display: block; font-size: 1.05rem; line-height: 1.5; margin-top: 2px; }
.fw-word-meta { display: block; margin: 1px 0 4px; font-size: 0.92rem; opacity: 0.75; }
.fw-word-meta i { font-style: italic; }
.fw-word-say { margin-left: 10px; letter-spacing: 0.02em; }
.fw-say {
  appearance: none; border: 1px solid var(--line, #dde3ec); background: none;
  color: var(--accent-ink, #8a5f00); border-radius: 999px; cursor: pointer;
  width: 30px; height: 30px; margin-left: 8px; vertical-align: middle;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.fw-say:hover { border-color: var(--accent, #f0a81c); }
.fw-say:focus-visible { outline: 2px solid var(--accent, #f0a81c); outline-offset: 2px; }
.fw-say.on { background: var(--accent, #f0a81c); color: #10151c; }

/* THE PLAY-FIRST LAYER (2026-08-13): wonder leads, the mission sits above the
   telling, and the Rocktivity section opens with a real choice. Grounded in
   the weather-school-pedagogy skill: guess first, then look; the grown-up
   reads, the kid does. */
.fw-wonder {
  font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 800; line-height: 1.3;
  letter-spacing: -0.3px; color: var(--accent-ink, #8a5f00); margin: 0 0 16px;
}
.fw-mission { margin-bottom: 22px; }
.fw-guess { font-weight: 750; margin: 0 0 8px !important; }
.fw-check { color: inherit; }
.fw-paths { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 18px; }
@media (min-width: 560px) { .fw-paths { grid-template-columns: repeat(3, 1fr); } }
.fw-path {
  font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.3;
  padding: 14px 12px; border-radius: 14px; cursor: pointer;
  background: var(--card, #fff); color: inherit;
  border: 3px solid var(--line, #dde3ec);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fw-path:hover { transform: translateY(-3px); border-color: var(--accent, #f0a81c); }
.fw-path:focus-visible { outline: 3px solid var(--accent, #f0a81c); outline-offset: 2px; }
.fw-move { border-left: 4px solid #8e6cd8; }
.fw-when { border-left: 4px solid #4c9fd8; }
.fw-card.lit { outline: 3px solid var(--accent, #f0a81c); outline-offset: 2px; }
.fw-rockcheck { border-left: 4px solid var(--accent-ink, #8a5f00); }
.fw-rock-btnrow { margin-top: 10px !important; }
.fw-rock-ask {
  font: inherit; font-size: 0.9rem; font-weight: 750; padding: 10px 18px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent, #f0a81c); color: #10151c;
}
.fw-rock-ask:hover { filter: brightness(1.06); }
.fw-rock-ask:focus-visible { outline: 2px solid var(--accent-ink, #8a5f00); outline-offset: 2px; }
.fw-rock-answer { font-weight: 700; line-height: 1.55; margin: 10px 0 0 !important; }

/* THE TRAIL: the lesson's last word is the next sky. Blaze orange, like a
   trail marker on a tree. The card sends the child outside first; the
   link waits for when they come back. */
.fw-bridge { border-left: 4px solid #d8804c; background: rgba(216,128,76,0.07); }
.fw-bridge .fw-h { color: #b05e2e; }
:root:not([data-theme="light"]) .fw-bridge .fw-h { color: #e8a87c; }
.fw-bridge-out { font-size: 1.02rem; }
.fw-bridge-back { margin-top: 8px !important; }
.fw-bridge-next { color: var(--accent-ink); font-weight: 750; text-decoration: none;
  border-bottom: 1.5px solid var(--accent); position: relative; }
.fw-bridge-next::after { content: ""; position: absolute; inset: -8px -5px; }
.fw-bridge-next:hover { color: var(--accent); }

/* ---------- The Professor's window (2026-08-14) ----------
   Joe kept the Rocktoid on the forecast page and asked for the rock itself
   here: "Prof Weather Rock in the window getting the elements where below it
   we have today's lesson from the sky." The scene markup is pressed from
   index.html by tools/prof-press.py, so this file only has to place it and
   put a mortarboard on it. The cap is drawn on .face pseudo-elements, which
   sit in the rock's own coordinate space, so it scales with the rock and
   never needs re-measuring. */
.sc-window { padding: 16px; }
.sc-window-in { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.sc-window-scene { margin: 0; justify-self: center; width: 100%; max-width: 240px; }
.prof-rock { position: relative; }
.sc-window-cap {
  font-size: 0.82rem; color: var(--muted); line-height: 1.45;
  margin-top: 8px; text-align: center; font-style: italic;
}
.sc-window-kicker {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 750; margin: 0 0 6px;
}
.sc-window-lesson .ls-hook { font-size: 1.06rem; line-height: 1.5; margin: 0 0 12px; }
.sc-window-lesson .ls-links { display: grid; gap: 8px; }
.sc-window-lesson .ls-link {
  display: block; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  background: var(--panel-2); transition: border-color .18s, transform .18s;
}
.sc-window-lesson .ls-link:hover { border-color: var(--accent); transform: translateX(2px); }
.sc-window-lesson .ls-name { font-weight: 700; display: block; }
.sc-window-lesson .ls-tag { font-size: 0.72rem; color: var(--muted); }
.sc-window-lesson .ls-foot { margin: 10px 0 0; font-size: 0.78rem; }
.sc-window-lesson .ls-foot a { color: var(--muted); }

@media (min-width: 700px) {
  .sc-window-in { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
  .sc-window-scene { max-width: 260px; }
}

/* the mortarboard. .face is inset:0 on .rock at z-index 6, so the cap rides
   the rock at every size, sits above the snow cap, and still gets rained on
   (the effects canvas is z-index 7, and that is the joke). */
/* The silhouette starts about 11 percent down inside the SVG box, so a cap at
   top:0 floats. These numbers seat the board on the actual crown; measured,
   not guessed. */
.prof-rock .face::before {
  content: ""; position: absolute;
  left: 11%; top: 3%; width: 78%; height: 19%;
  /* the lit leading edge is what keeps the board off the night sky, which is
     nearly the same value as the board itself */
  background: linear-gradient(150deg, #626b7a 0 5%, #3a414d 16%, #191c22 58%, #2b313a);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: rotate(-7deg);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.4));
  pointer-events: none;
}
.prof-rock .face::after {
  content: ""; position: absolute;
  right: 3%; top: 9%; width: 16px; height: 34%;
  background:
    linear-gradient(#ffdc7d, #d99a2c) center top / 3px 64% no-repeat,
    radial-gradient(circle at 50% 40%, #ffdc7d 55%, #d99a2c 78%, rgba(217,154,44,0) 80%)
      center bottom / 15px 15px no-repeat;
  transform: rotate(-7deg);
  transform-origin: top center;
  pointer-events: none;
}

/* THE PERMANENT SHELL (Joe's V1 ruling, 2026-08-26): the main site
   nav never changes; the school rides a subordinate second row. The
   sub-row drops its grey divider (the tab underline is enough); the
   divider between the two rows stays. */
.sc-sub-tabs { border-bottom: 0; }
.sc-sub-tabs .tab { font-size: 0.85rem; padding: 8px 10px 10px; opacity: 0.85; }
.sc-sub-tabs .tab.active { opacity: 1; }
.tabs { overflow-x: auto; }
.sc-gateway { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.sc-gate { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(125, 145, 170, 0.1); text-decoration: none; color: inherit; }
.sc-gate:hover { background: rgba(125, 145, 170, 0.18); }
.sc-gate span { font-size: 0.88rem; opacity: 0.75; }
.tabs .tab { text-decoration: none; }

/* ===================================================================
   HOUSE ROCKS MOBILE (Joe's go 2026-08-29). Appended last on purpose:
   the append-last specificity law. Everything below is phone-first.
   =================================================================== */

/* back-to-top: js injects on any school page taller than 4 screens */
.sc-top {
  position: fixed; right: 12px; bottom: 74px; z-index: 1100;
  min-width: 44px; min-height: 44px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 1.1rem; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.sc-top.on { opacity: 1; pointer-events: auto; }

/* lesson-page floating TOC chip + sheet (js builds; never on First Weather) */
.sc-tocchip {
  position: fixed; left: 12px; bottom: 74px; z-index: 1100;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); border: none; color: #201a06;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); display: none;
  align-items: center; gap: 6px;
}
.sc-tocchip.on { display: inline-flex; }
.sc-tocsheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1250;
  background: var(--panel); border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0; box-shadow: 0 -18px 48px rgba(0,0,0,.4);
  max-height: 60vh; overflow-y: auto; padding: 14px 16px 84px; display: none;
}
.sc-tocsheet.open { display: block; }
.sc-tocsheet a {
  display: flex; align-items: center; min-height: 44px; padding: 2px 8px;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.sc-tocsheet a:last-of-type { border-bottom: none; }
.sc-tocsheet a.here { color: var(--accent-ink, #a06b00); font-weight: 700; }
.sc-tocsheet .sc-tocclose {
  display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px;
  color: var(--muted); font-weight: 650; cursor: pointer;
}

/* catalog lane headers (js inserts) */
.lc-lane {
  grid-column: 1 / -1; margin: 14px 0 2px; font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.lc-lane:first-of-type { margin-top: 0; }

/* terms render lazily; placeholders keep the scrollbar honest */
.sc-term { content-visibility: auto; contain-intrinsic-size: auto 150px; }

@media (max-width: 899px) {
  /* sticky needs a non-scroll-container backstop: clip keeps the sideways
     lock without breaking position:sticky (the overflow-x:hidden law).
     Browsers without clip keep hidden from style.css and simply never stick. */
  html.school, html.school body { overflow-x: clip; }

  /* the school sections ride a slim sticky chip row; the MAIN tab strip
     stays hidden per the 8/19 nav ruling (the bottom bar serves it).
     z stays under the launcher's 1300 (the 8/19 menu-trap law). */
  .tabs.sc-sub-tabs {
    display: flex; overflow-x: auto; gap: 2px; scrollbar-width: none;
    position: sticky; top: 0; z-index: 1200;
    background: var(--bg); border-bottom: 1px solid var(--line);
    margin: 0 0 10px; padding: 4px 2px;
  }
  .tabs.sc-sub-tabs::-webkit-scrollbar { display: none; }
  .tabs.sc-sub-tabs .tab { flex: 0 0 auto; white-space: nowrap; font-size: .86rem; padding: 10px 11px; min-height: 44px; display: inline-flex; align-items: center; }

  /* catalog + terms: the search rides just under the sticky tabs */
  .sc-search { position: sticky; top: 56px; z-index: 1150; background: var(--bg); padding: 6px 0 8px; margin-bottom: 6px; }

  /* terms: the family jump row sticks beneath the search */
  .sc-jumps.sc-stuck {
    position: sticky; top: 116px; z-index: 1140;
    background: var(--panel); margin: 0 -8px; padding: 8px;
    overflow-x: auto; display: flex; flex-wrap: nowrap; gap: 6px;
    scrollbar-width: none; border-bottom: 1px solid var(--line);
  }
  .sc-jumps.sc-stuck::-webkit-scrollbar { display: none; }
  .sc-jumps.sc-stuck .sc-jump { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }

  /* catalog rows: one age chip, the feature chips live in the filter tray */
  .lc-foot .lc-feat { display: none; }

  /* filter tray becomes a bottom sheet with the results visible behind it */
  #filterPanel.open {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1250;
    background: var(--panel); border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0; box-shadow: 0 -18px 48px rgba(0,0,0,.4);
    max-height: 65vh; overflow-y: auto; padding: 14px 16px 84px;
  }
  #filterPanel .sc-fchips .chip { min-height: 44px; }
  .sc-fclose {
    display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center;
    background: var(--accent); border: none; border-radius: 10px; margin-top: 12px;
    color: #201a06; font-weight: 700; cursor: pointer; font-size: .95rem;
  }

  /* the mission reads as two lines until asked; the fold still hides it all */
  #mast:not(.sc-expanded):not(.folded) .sc-mission {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* kid fingers: 44px floor on school chips */
  .sc-fchips .chip, .sc-jump, .sh-door, .gp-tile { min-height: 44px; }
}
@media (min-width: 900px) {
  .sc-fclose { display: none; }
  .sc-tocchip, .sc-tocsheet { display: none !important; }
}
