/* ====== Block page header meta + strand chips ====== */
.page-header .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}
.strand-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.strand-chips .label { color: rgba(255, 255, 255, 0.75); }
.chip {
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
  border: 1.5px solid var(--border);
}
.chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.chip.preview {
  border-style: dashed;
  color: var(--accent);
  background: white;
}
.chip.faded {
  color: var(--muted);
  background: var(--soft);
}

/* ====== AI partner callout ====== */
.ai-callout {
  background: linear-gradient(135deg, #fff4d9 0%, #fce4d6 100%);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #e0b870;
}
.ai-callout .ai-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-callout .ai-partners {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-partner-link {
  background: white;
  border: 1.5px solid #d4a460;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-partner-link:hover {
  background: #fff4d9;
  border-color: #b58832;
  color: var(--ink);
}
.ai-callout .ai-reminder {
  margin-top: 10px;
  font-size: 12px;
  color: #8b6914;
  font-style: italic;
}
.ai-callout .ai-reminder a { color: #8b6914; font-weight: 700; }

/* ====== The five block sections ====== */
.block-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
/* Eyebrow labels are generated from the section family; the old
   .section-tag pills are retired in favor of the ::before eyebrow. */
.block-section .section-tag { display: none; }
.block-section.story::before,
.block-section.concepts::before,
.block-section.do::before,
.block-section.show::before,
.block-section.reflect::before {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.block-section.story::before    { content: "Story";    color: var(--spine-story); }
.block-section.concepts::before { content: "Concepts"; color: var(--spine-concepts); }
.block-section.do::before       { content: "Do";       color: var(--spine-do); }
.block-section.show::before     { content: "Show";     color: var(--spine-show); }
.block-section.reflect::before  { content: "Reflect";  color: var(--spine-reflect); }
/* Saturated spine on the left edge; no rounded corners on the spined side.
   Full card border retired so the learning panel is the page's only
   full-bordered element; the section dividers take over separation. */
.block-section.story,
.block-section.concepts,
.block-section.do,
.block-section.show,
.block-section.reflect {
  border: none;
  border-radius: 0 12px 12px 0;
}
.block-section.story    { border-left: 4px solid var(--spine-story); }
.block-section.concepts { border-left: 4px solid var(--spine-concepts); }
.block-section.do       { border-left: 4px solid var(--spine-do); }
.block-section.show     { border-left: 4px solid var(--spine-show); }
.block-section.reflect  { border-left: 4px solid var(--spine-reflect); }
.block-section h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--ink);
}
.block-section.story h2    { color: var(--deep-story); }
.block-section.concepts h2 { color: var(--deep-concepts); }
.block-section.do h2       { color: var(--deep-do); }
.block-section.show h2     { color: var(--deep-show); }
.block-section.reflect h2  { color: var(--deep-reflect); }
/* Divider between rhythm sections: 1px line centered in 2.5rem of space. */
.block-section + .block-section {
  margin-top: 2.5rem;
  position: relative;
}
.block-section + .block-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.25rem;
  border-top: 1px solid var(--divider);
}
.block-section .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  font-style: italic;
}
.block-section p { margin-bottom: 10px; }

/* ====== Concepts entry grid ====== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.entry-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: var(--paper);
  transition: transform 0.1s, border-color 0.1s;
}
.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  cursor: pointer;
}
.entry-card .entry-title { font-weight: 700; margin-bottom: 4px; }
.entry-card .entry-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.prefer-text { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ====== "Everyone does this": cards that are never part of the choice ======
   Deliberately unlike .placeholder (dashed = asset missing) and .live-activity
   (accent fill = whole-class event), so it cannot be misread as either. The
   instruction line above the grid never describes these. */
.entry-required { margin-top: 18px; }
.entry-required-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.entry-required-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.entry-required .entry-card {
  background: white;
  border-color: var(--divider);
}

/* Click-to-play video cards (partials/video-card.njk) */
.video-card { text-decoration: none; color: inherit; }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
dialog.video-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(90vw, 960px);
  max-width: none;
}
dialog.video-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.video-lightbox-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video-lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.video-lightbox-yt {
  color: #fff;
  font-size: 14px;
}
.video-lightbox-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
}
.video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ====== Do choice board ====== */
.success-criteria {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.success-criteria li { margin: 2px 0; }
.choice-intro {
  background: var(--accent-light);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.choice-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.choice {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: white;
}
.choice .choice-letter {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.choice .choice-title { font-weight: 600; margin-bottom: 6px; }
.choice .choice-detail { font-size: 13px; color: var(--muted); }
.choice .udl-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 8px;
  color: var(--muted);
}

/* ====== Show / submission callout ====== */
.submission-callout {
  background: var(--good);
  border-left: 4px solid #6b8e3d;
  padding: 14px;
  border-radius: 6px;
  margin: 14px 0;
}
.submission-callout .label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #2d5016;
  margin-bottom: 4px;
}
.rubric-link {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.rubric-link:hover { background: var(--accent-dark); color: white; }
.rubric-link-pending {
  display: inline-block;
  background: var(--soft);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.rubric-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.rubric-meta a { color: var(--accent); font-weight: 600; }

/* ====== Notebook entry cue ====== */
.notebook-cue {
  background: var(--do);
  border-left: 4px solid var(--spine-do);
  padding: 14px;
  border-radius: 6px;
  margin: 14px 0;
}
.notebook-cue p { margin-bottom: 6px; }
.entry-header {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin-bottom: 0;
}
/* Both rotations render, so each needs its own line. */
.entry-header span { display: block; }

/* ====== Reflect handoff callout ====== */
.reflect-callout {
  background: var(--reflect);
  border-left: 4px solid var(--spine-reflect);
  padding: 14px;
  border-radius: 6px;
  margin: 14px 0;
}
.reflect-callout p { margin-bottom: 6px; }
.reflect-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ====== Bottom block-nav ====== */
.block-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  margin-top: 24px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.block-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.block-nav a:hover { text-decoration: underline; }
.block-nav .map-link {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.block-nav .nav-spacer { flex: 1; }

/* ====== Placeholder variants (Hybrid content marker) ====== */
.entry-card.placeholder,
.choice.placeholder {
  border-style: dashed;
  border-width: 2px;
  border-color: var(--muted);
  background: var(--paper);
}
.entry-card.placeholder .entry-title,
.choice.placeholder .choice-title {
  color: var(--muted);
}
.entry-card.placeholder > div:not(.entry-icon):not(.entry-title):not(.entry-meta),
.choice.placeholder .choice-detail {
  font-style: italic;
  color: var(--muted);
}
.placeholder-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--soft);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ====== Bell ringer (5-min opener routine) ====== */
/* A task, not a story: styled as the do family. */
.bell-ringer {
  background: var(--do);
  border: none;
  border-left: 4px solid var(--spine-do);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 14px;
}
.bell-ringer-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--deep-do);
}
.bell-ringer-meta { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.bell-ringer p { margin: 0 0 6px; }
.bell-ringer .bell-ringer-journal { font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 0; }
.bell-ringer .bell-ringer-figure { margin: 10px 0 8px; max-width: 640px; }

/* ====== Learning panel ====== */
/* The ONLY full-bordered element on a block page. */
.learning-panel {
  background: var(--panel-bg);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.lp-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.lp-intention { font-size: 19px; margin: 6px 0 12px; color: var(--ink); }
.lp-sc-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.lp-reset {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.lp-sc-list { list-style: none; margin: 6px 0 0; padding: 0; }
.lp-sc-list li { margin: 6px 0; }
.lp-sc-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lp-check { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 4px; flex: none; }
.lp-standards { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.std-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; text-decoration: none; }
.std-chip.ngss { background: var(--accent-light); color: var(--accent-dark); }
.std-chip.ailit { background: #fdf0dc; color: #8a5a12; }
button.std-chip { border: none; cursor: pointer; font-family: inherit; }
button.std-chip[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ====== Standards tap-to-expand panel ====== */
.std-panel {
  background: white;
  border: 1px solid var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.std-panel p { margin: 0 0 6px; }
.std-official { color: var(--muted); font-style: italic; }
.std-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.std-trail { margin: 2px 0 6px; padding-left: 18px; }
.std-trail li { margin: 2px 0; }
.std-here { font-weight: 600; }
.std-help { font-size: 12px; }
.lp-map-link { font-size: 11px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
@media (max-width: 640px) {
  .learning-panel { padding: 12px 14px; }
  .lp-intention { font-size: 16px; }
}

/* ====== Sticky reference bar ====== */
.li-sticky {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 90;
  background: white;
  border-bottom: 1.5px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  font-size: 13px;
}
.li-sticky-row { display: flex; align-items: center; gap: 10px; }
.li-sticky-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sticky-target { display: none; font-weight: 600; }
.li-sticky-count { flex: none; font-weight: 700; color: var(--accent); }
.li-sticky-toggle {
  flex: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--accent);
  padding: 2px 8px;
}
.li-sticky-list { padding-bottom: 8px; }
@media (max-width: 640px) {
  .li-sticky-text { display: none; }
  .li-sticky-target { display: inline; flex: 1; }
}

/* ====== Live-activity variants (live class activity, not a missing asset) ====== */
.entry-card.live-activity,
.choice.live-activity {
  border-style: solid;
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-light);
}
.live-activity-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .block-section { padding: 18px; }
  .block-nav { padding: 14px 16px; }
  .ai-callout { padding: 14px; }
}
