/* Topic-first preview. Large type for a classroom projector.
   Live dashboard styles are not used here. */

:root {
  --ink: #142033;
  --muted: #3d4a5c;
  --line: #c5ced8;
  --paper: #f4f7fb;
  --card: #ffffff;
  --navy: #1b2a4a;
  --amber: #f0b429;
  --amber-ink: #1b2a4a;
  --teal: #0f6e6e;
  --focus: #0b57d0;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 20px;
}

@media (min-width: 1400px) {
  :root { font-size: 24px; }
}

@media (max-width: 720px) {
  :root { font-size: 18px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
}
a { color: var(--focus); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pv-skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: white;
  padding: 0.5rem 1rem; z-index: 5;
}
.pv-skip:focus { top: 0.5rem; }

.pv-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.25rem; background: var(--navy); color: white;
  position: sticky; top: 0; z-index: 4;
}
.pv-brand { color: white; text-decoration: none; font-weight: 800; letter-spacing: 0.01em; }
.pv-brand span { font-weight: 600; opacity: 0.8; margin-left: 0.35rem; }
.pv-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pv-nav a {
  color: white; text-decoration: none; font-weight: 700;
  padding: 0.55rem 0.85rem; border-radius: 999px; min-height: 2.6rem;
  display: inline-flex; align-items: center;
}
.pv-nav a[aria-current="page"], .pv-nav a:hover { background: rgba(255,255,255,0.16); }

main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

.pv-hero h1, .pv-pagehead h1, .pv-topic h1 {
  font-size: 2.4rem; line-height: 1.05; margin: 0.2rem 0 0.6rem; letter-spacing: -0.03em;
}
.pv-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--teal); margin: 0; }
.pv-lede, .pv-pagehead p { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.pv-count { font-weight: 700; }

.pv-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.pv-entry {
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 3px solid var(--navy); border-radius: 1.1rem;
  padding: 1.4rem 1.3rem; min-height: 9rem; box-shadow: 0 8px 0 var(--navy);
}
.pv-entry span { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.pv-entry small { font-size: 1rem; color: var(--muted); }
.pv-entry-library { background: var(--amber); }
.pv-entry:hover { transform: translateY(-2px); }

.pv-pagehead h1 { margin-bottom: 0.35rem; }

.pv-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.8rem;
}
.pv-filters label, .pv-search { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 700; font-size: 0.85rem; }
.pv-filters input, .pv-filters select, .pv-filters button {
  font: inherit; font-size: 1rem; min-height: 2.8rem; border-radius: 0.6rem;
  border: 2px solid var(--navy); background: white; color: var(--ink); padding: 0.2rem 0.6rem;
}
.pv-search { flex: 1 1 14rem; }
.pv-filters button, .pv-launch {
  background: var(--amber); color: var(--amber-ink); font-weight: 800; cursor: pointer;
}
.pv-types { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0; }
.pv-type {
  text-decoration: none; color: var(--navy); font-weight: 800;
  border: 2px solid var(--navy); border-radius: 999px; padding: 0.45rem 0.9rem; background: white;
}
.pv-type.is-on { background: var(--navy); color: white; }
.pv-result { font-weight: 700; margin-top: 0; }

.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.pv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  display: flex; flex-direction: column; overflow: hidden;
}
.pv-card-main { color: inherit; text-decoration: none; padding: 0.85rem 0.85rem 0.4rem; display: block; }
.pv-card h2 { font-size: 1.35rem; line-height: 1.15; margin: 0.2rem 0 0.25rem; }
.pv-fun { margin: 0.55rem 0 0; font-size: 1.15rem; font-weight: 800; color: var(--teal); }
.pv-tools-link { font-weight: 800; }
.pv-present {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 4.2rem; padding: 0.55rem 1.5rem; font-size: 1.7rem; font-weight: 800;
  text-decoration: none; color: var(--amber-ink); background: var(--amber);
  border: 4px solid var(--navy); border-radius: 0.9rem; box-shadow: 0 6px 0 var(--navy);
}
.pv-present.is-waiting {
  background: #e7eef8; box-shadow: none; font-size: 1.1rem; min-height: 3rem;
}
.pv-coming, .pv-soon { font-weight: 800; }
.pv-coming {
  background: #fff6df; border: 3px solid var(--navy); border-radius: 0.8rem; padding: 0.8rem 1rem;
}
.pv-label { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 800; margin-right: 0.3rem; }
.pv-dues { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.pv-crumb { font-weight: 700; margin-bottom: 0.4rem; }
.pv-crumb a { color: white; }
.pv-world-hero .pv-crumb a, .pv-topic .pv-crumb a { color: var(--focus); }
.pv-world-row h2, .pv-topic h2 { font-size: 1.4rem; }
.pv-worlds, .pv-stories, .pv-tool-list { display: grid; gap: 0.8rem; }
.pv-worlds { grid-template-columns: 1fr 1fr; }
.pv-world-card, .pv-story-card, .pv-tool {
  display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: inherit;
  border-radius: 1rem; overflow: hidden; min-height: 8rem; position: relative;
  border: 3px solid var(--navy); background: var(--navy); color: white;
}
.pv-world-card img, .pv-scene img { width: 100%; height: 11rem; object-fit: cover; display: block; }
.pv-world-card span, .pv-story-card, .pv-tool { padding: 0.9rem 1rem 1rem; }
.pv-world-card strong { font-size: 1.35rem; }
.pv-world-card small, .pv-story-card p { color: rgba(255,255,255,0.85); }
.pv-world-card.is-pirate { background: linear-gradient(160deg, #1a3a4a, #3a2412 70%); }
.pv-world-card.is-gopo, .pv-world-hero.is-gopo { background: linear-gradient(160deg, #071018, #0f6e6e 80%); }
.pv-world-hero {
  border-radius: 1.1rem; padding: 1.2rem 1.2rem 0.4rem; margin-bottom: 1rem; color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(240,180,41,0.45), transparent 36%),
    linear-gradient(160deg, #123044, #1b140c 70%);
}
.pv-world-hero h1 { color: white; }
.pv-world-hero .pv-lede { color: rgba(255,255,255,0.9); }
.pv-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.pv-scene { margin: 0; }
.pv-arcs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.55rem; }
.pv-arc {
  background: var(--card); border: 2px solid var(--navy); border-radius: 0.8rem; padding: 0.7rem; min-height: 9rem;
}
.pv-arc.is-empty { background: #eef2f6; border-style: dashed; }
.pv-arc h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.pv-arc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.pv-arc small, .pv-tool small { display: block; color: var(--muted); font-weight: 700; }
.pv-tool { background: var(--card); color: var(--ink); }
.pv-tool h2 { margin: 0; }
.pv-tool h3 { margin: 0.4rem 0 0; font-size: 1rem; }
.pv-tool ul { list-style: none; padding: 0; margin: 0; }
.pv-story-card { background: var(--card); color: var(--ink); }
.pv-story-card p { color: var(--muted); }
.pv-chip-soon { background: #fff6df; }
.pv-place, .pv-used, .pv-meta, .pv-calendar, .pv-unlinked { color: var(--muted); margin: 0.2rem 0; }
.pv-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.4rem 0.85rem 0.9rem; }
.pv-launch {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 3.1rem; padding: 0.4rem 1rem; border-radius: 0.7rem; border: 3px solid var(--navy);
}
.pv-launch.is-primary { font-size: 1.15rem; }
.pv-textlink { font-weight: 800; }

.pv-thumb {
  display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 0.7rem; overflow: hidden;
  background: #d7efe8;
}
.pv-thumb.is-macro { background: #d9e3f5; }
.pv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: var(--navy); opacity: 0.55;
}

.pv-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0.45rem 0; }
.pv-chip { font-size: 0.8rem; font-weight: 800; border-radius: 999px; padding: 0.15rem 0.55rem; background: #e7eef8; }
.pv-chip-slides { background: var(--amber); }
.pv-chip-tool { background: #d7efe8; }
.pv-chip-worksheet { background: #fde7c7; }

.pv-classes { display: grid; gap: 0.8rem; }
.pv-class {
  display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: inherit;
  background: var(--card); border: 3px solid var(--navy); border-radius: 1rem; padding: 1rem 1.1rem;
}
.pv-code { font-weight: 800; letter-spacing: 0.04em; }
.pv-classtitle { font-size: 1.5rem; font-weight: 800; }
.pv-classmeta { color: var(--muted); }

.pv-schedule { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.pv-day {
  display: grid; grid-template-columns: 11rem 1fr; gap: 0.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.8rem;
}
.pv-day.is-today { border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--amber); }
.pv-day.is-cancelled { opacity: 0.7; }
.pv-when { display: flex; flex-direction: column; font-weight: 800; }
.pv-when time { font-size: 1.15rem; }
.pv-now { display: inline-block; margin-top: 0.3rem; background: var(--amber); color: var(--navy); border-radius: 999px; padding: 0.1rem 0.5rem; width: fit-content; }
.pv-day-topic { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-bottom: 0.45rem; }
.pv-day-link { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.pv-episode { font-weight: 700; color: var(--teal); }
.pv-jump { font-weight: 800; }

.pv-topic-hero { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.pv-topic-hero .pv-thumb { min-height: 12rem; }
.pv-story { font-size: 1.25rem; font-weight: 700; }
.pv-story span { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.pv-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.pv-topic section { margin: 1.2rem 0; }
.pv-topic h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.pv-blocks, .pv-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pv-blocks li, .pv-links li { background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.75rem 0.9rem; }
.pv-blocks h3 { margin: 0 0 0.25rem; }
.pv-blocks details { margin-top: 0.4rem; }
.pv-notes { margin-top: 2rem; color: var(--muted); }
.pv-empty { font-weight: 700; }

@media (max-width: 800px) {
  .pv-top { padding: 0.45rem 0.7rem; }
  .pv-nav a { padding: 0.35rem 0.65rem; min-height: 2.2rem; }
  .pv-entries, .pv-topic-hero, .pv-day, .pv-worlds, .pv-scenes, .pv-arcs { grid-template-columns: 1fr; }
  .pv-present { width: 100%; }
  .pv-hero h1, .pv-pagehead h1, .pv-topic h1 { font-size: 1.8rem; }
  .pv-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .pv-search, .pv-filters button { grid-column: 1 / -1; }
  .pv-launch, .pv-day-topic { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pv-entry { transition: none; }
}
