/* shelf-bundle.css — the Insights shelves (teachers, heads, students), one tone per audience.
   Pattern agreed 2026-11-05 (sources/cleverpaths/insights-mock): photo hero washed in the shelf tone,
   the latest three pieces large, then one row per strand that scrolls sideways, the first card wide.
   Built by xcode/tools/cp-shelves.py; loaded after site-bundle.css. */
:root {
  --tone-parents: #e11d48; --tone-parents-bg: #fff1f3; --tone-parents-ink: #be123c;
  --tone-teachers: #0284c7; --tone-teachers-bg: #eef7fd; --tone-teachers-ink: #0369a1;
  --tone-heads: #a21caf; --tone-heads-bg: #fbf1fc; --tone-heads-ink: #86198f;
  --tone-students: #f97316; --tone-students-bg: #fff4eb; --tone-students-ink: #c2410c;
  --tone-mentors-tutors: #0d9488; --tone-mentors-tutors-bg: #ecfaf8; --tone-mentors-tutors-ink: #0f766e;
  --lane: var(--primary); --lane-bg: var(--primary-light); --lane-ink: var(--primary);
  --sh-shadow: rgba(15, 23, 42, 0.08);
}
body[data-lane="parents"] { --lane: var(--tone-parents); --lane-bg: var(--tone-parents-bg); --lane-ink: var(--tone-parents-ink); }
body[data-lane="teachers"] { --lane: var(--tone-teachers); --lane-bg: var(--tone-teachers-bg); --lane-ink: var(--tone-teachers-ink); }
body[data-lane="heads"] { --lane: var(--tone-heads); --lane-bg: var(--tone-heads-bg); --lane-ink: var(--tone-heads-ink); }
body[data-lane="students"] { --lane: var(--tone-students); --lane-bg: var(--tone-students-bg); --lane-ink: var(--tone-students-ink); }
body[data-lane="mentors-tutors"] { --lane: var(--tone-mentors-tutors); --lane-bg: var(--tone-mentors-tutors-bg); --lane-ink: var(--tone-mentors-tutors-ink); }

/* Hero: the photo above the copy on phones, beside it on wider screens */
.sh-hero { position: relative; overflow: hidden; background: var(--lane-bg); border-top: 4px solid var(--lane); }
.sh-hero-photo { display: block; width: 100%; height: 240px; object-fit: cover; }
.sh-hero-grid { position: relative; z-index: 1; padding-top: 1.75rem; padding-bottom: 2.25rem; }
.sh-eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lane-ink); font-weight: 700; margin: 0 0 10px; }
.sh-h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; color: var(--ink); max-width: 22ch; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.sh-sub { margin: 14px 0 0; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
@media (min-width: 900px) {
  .sh-hero { min-height: 460px; display: flex; align-items: center; }
  .sh-hero-photo { position: absolute; top: 0; bottom: 0; left: 40%; width: 60%; height: 100%; }
  .sh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--lane-bg) 0%, var(--lane-bg) 40%, color-mix(in srgb, var(--lane-bg) 60%, transparent) 46%, transparent 56%); }
  .sh-hero-grid { width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
  .sh-hero-copy { max-width: min(470px, 36vw); }
}

/* Cards */
.sh-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 0; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.sh-card:hover { box-shadow: 0 6px 22px var(--sh-shadow); transform: translateY(-2px); }
.sh-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lane-bg); flex: none; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-thumb-gen { display: flex; align-items: flex-end; padding: 14px; background: repeating-linear-gradient(135deg, var(--lane-bg) 0 14px, color-mix(in srgb, var(--lane) 14%, var(--lane-bg)) 14px 28px); }
.sh-thumb-gen span { font-weight: 800; font-size: 1.4rem; color: var(--lane-ink); letter-spacing: .02em; }
.sh-card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.sh-card-top { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-muted); }
.sh-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; background: var(--lane-bg); color: var(--lane-ink); }
.sh-pill-rev { background: #fff3cd; color: #7a4b00; margin-left: 6px; }
.sh-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sh-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.sh-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 0; }
.sh-card-sub { font-size: 12.5px; font-style: italic; color: var(--ink-muted); margin: 0; }
.sh-card-ex { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sh-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-muted); }
.sh-read { color: var(--lane-ink); font-weight: 700; }

/* The latest three: one lead card and two beside it */
.sh-latest { padding: 1.5rem 0 1rem; }
.sh-feat { display: grid; gap: 16px; }
.sh-lead { border-top: 4px solid var(--lane); }
.sh-lead .sh-card-body { padding: 18px 20px 14px; gap: 10px; }
.sh-lead .sh-card-title { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.25; }
.sh-lead .sh-card-sub { font-size: 14px; }
.sh-lead .sh-card-ex { font-size: 15px; -webkit-line-clamp: 5; line-clamp: 5; }
.sh-side .sh-card-title { font-size: 1.05rem; }
@media (min-width: 560px) {
  .sh-side { flex-direction: row; }
  .sh-side .sh-thumb { width: 40%; aspect-ratio: auto; min-height: 190px; }
}
@media (min-width: 860px) {
  .sh-feat-2, .sh-feat-3 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .sh-feat-3 .sh-lead { grid-row: span 2; }
}

/* Sections: one row each, scrolling sideways, a hairline between them */
.sh-section { padding: 2rem 0 1.5rem; }
.sh-section + .sh-section { border-top: 1px solid var(--border); }
.sh-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sh-section-head > div:first-child { max-width: 640px; min-width: 0; }
.sh-pillar { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lane-ink); margin: 0 0 4px; }
.sh-section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 8px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.sh-section-sub { color: var(--ink-muted); font-size: 14px; margin: 0; max-width: 64ch; line-height: 1.55; }
.sh-rail-ctrl { display: flex; align-items: center; gap: 8px; }
.sh-rail-count { font-size: 12.5px; color: var(--ink-muted); margin-right: 4px; font-variant-numeric: tabular-nums; }
.sh-rail-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--lane-ink); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px var(--sh-shadow); }
.sh-rail-btn:hover:not(:disabled) { border-color: var(--lane); }
.sh-rail-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.sh-rail-wrap { position: relative; }
.sh-rail-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 56px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--canvas, #f9fafb)); transition: opacity .2s; }
.sh-rail-wrap.at-end::after { opacity: 0; }
.sh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.sh-rail > .sh-card { scroll-snap-align: start; }
@media (min-width: 701px) {
  .sh-rail > .sh-wide { grid-column: span 2; flex-direction: row; border-top: 2px solid var(--lane); }
  .sh-wide .sh-thumb { width: 48%; aspect-ratio: auto; }
  .sh-wide .sh-card-body { padding: 18px 20px 14px; gap: 10px; }
  .sh-wide .sh-card-title { font-size: 1.25rem; line-height: 1.28; }
  .sh-wide .sh-card-ex { -webkit-line-clamp: 5; line-clamp: 5; font-size: 14.5px; }
}
@media (max-width: 700px) { .sh-rail { grid-auto-columns: 82%; } .sh-rail-count { display: none; } }

/* Closing calls to action */
.sh-cta { padding: 2.5rem 0 3rem; }
.sh-cta-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .sh-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-cta-card { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; background: var(--surface); border: 1px solid var(--border); }
.sh-cta-solid { background: var(--primary); color: #fff; border-color: var(--primary); }
.sh-cta-solid .sh-section-title, .sh-cta-solid .sh-section-sub { color: #fff; }
.sh-cta-solid .sh-section-sub { opacity: .85; }
.sh-cta-solid .sh-pillar { color: #ffd166; }
.sh-btn { display: inline-block; margin-top: 8px; border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 14px; border: 1.5px solid var(--primary); color: var(--primary); text-decoration: none; }
.sh-btn:hover { background: var(--primary-light); }
.sh-btn-solid { background: #ffd166; border-color: #ffd166; color: #002244; }
.sh-btn-solid:hover { background: #ffdf8f; }
