:root {
  --ink: #183f43;
  --teal: #076d70;
  --teal-deep: #045457;
  --plum: #6f3a82;
  --plum-soft: #eee4f2;
  --gold: #b77b19;
  --mist: #edf5f5;
  --ivory: #fffdf8;
  --paper: #ffffff;
  --line: #c9dcdc;
  --muted: #52696b;
  --shadow: 0 18px 48px rgba(24, 63, 67, 0.11);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--plum);
}

:focus-visible {
  outline: 4px solid #f3b43f;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--teal-deep);
  border-radius: 0 0 10px 10px;
}

.skip-link:focus {
  top: 0;
}

.construction-bar {
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--plum);
  text-align: center;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(7, 109, 112, 0.14);
  backdrop-filter: blur(14px);
}

.site-search-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 0 0 0.7rem;
}

.site-search {
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
}

.site-search > label { font-weight: 800; }
.site-search-control { display: flex; width: min(100%, 430px); }
.site-search input {
  min-width: 0;
  flex: 1;
  padding: 0.68rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9fb9ba;
  border-radius: 10px 0 0 10px;
  font: inherit;
}
.site-search button {
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--teal-deep);
  border: 1px solid var(--teal-deep);
  border-radius: 0 10px 10px 0;
  font-weight: 800;
  cursor: pointer;
}
.site-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.25rem);
  right: 0;
  width: min(100%, 560px);
  padding: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.site-search-results p { margin: 0.25rem 0.45rem 0.55rem; color: var(--muted); font-size: 0.88rem; }
.site-search-results ul { margin: 0; padding: 0; list-style: none; }
.site-search-results a { display: grid; gap: 0.08rem; padding: 0.65rem; border-radius: 9px; text-decoration: none; }
.site-search-results a:hover { background: var(--mist); }
.site-search-results span { color: var(--muted); font-size: 0.88rem; }

.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.62rem 0.78rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-group { position: relative; }
.nav-group summary {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .62rem .78rem;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover,
.nav-group[open] summary,
.nav-group[data-current="true"] summary { color: var(--teal-deep); background: var(--mist); }
.nav-chevron { font-size: .9em; transition: transform 150ms ease; }
.nav-group[open] .nav-chevron { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + .45rem);
  right: 0;
  min-width: 260px;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.nav-menu a { display: block; padding: .62rem .7rem; border-radius: 9px; white-space: nowrap; }
.nav-menu a:hover { background: var(--mist); }

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--mist);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  place-items: end center;
  background: #eaf2f4;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 253, 248, 0.96) 91%), url("assets/ellived-nordic-mist-banner.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  width: min(calc(100% - 2rem), 900px);
  margin: 0 auto 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  max-width: 790px;
  margin: 0 auto 1rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--teal-deep);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  color: var(--teal-deep);
}

h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.22rem;
}

.lede {
  max-width: 750px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kindle-glossary-term {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: rgba(88, 58, 105, .42);
  text-decoration-style: dotted;
  text-underline-offset: .18em;
}

.kindle-glossary-term::after {
  content: "🦊";
  display: inline-block;
  margin-left: .16em;
  font-size: .68em;
  line-height: 1;
  vertical-align: .22em;
}

.kindle-glossary-term:hover,
.kindle-glossary-term:focus-visible {
  color: var(--plum);
  text-decoration-style: solid;
}

.brand-hero {
  padding: 1.25rem 1rem 0.6rem;
  background: linear-gradient(180deg, #f4eef7, var(--ivory));
}

.brand-banner-frame {
  overflow: hidden;
  border: 1px solid rgba(7, 109, 112, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand-banner {
  width: 100%;
  height: auto;
  margin-top: -7px;
  object-fit: contain;
}

.home-page {
  min-height: 100vh;
  overflow: auto;
}

.home-page .site-footer {
  display: none;
}

.home-spotlight {
  padding-top: 1.2rem;
}

.home-teacher-spotlight {
  padding-top: 0;
}

.quiet-strapline {
  margin: 0.7rem 0 0;
  color: var(--muted);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  letter-spacing: 0.025em;
}

.quick-routes {
  padding: 1.2rem 1rem clamp(3rem, 6vw, 5rem);
}

.spotlight {
  padding: 0 1rem clamp(3.5rem, 7vw, 6rem);
}

.spotlight-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.spotlight-card > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 4vw, 2.6rem);
}

.spotlight-copy h2 {
  max-width: 680px;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
}

.spotlight-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.young-artist-card {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

.young-artist-card > img {
  max-height: 620px;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  object-fit: contain;
  background: #f5f0e8;
}

.animation-card {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  background: linear-gradient(135deg, #f9f6f0 0%, #fff 58%, #eef5f3 100%);
}

.animation-media {
  align-self: center;
  padding: clamp(0.9rem, 2.4vw, 1.6rem);
}

.animation-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(20, 67, 66, 0.22);
  border-radius: 16px;
  background: #132d2f;
  box-shadow: 0 14px 36px rgba(27, 45, 43, 0.18);
}

.animation-description {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.animation-card .spotlight-copy {
  gap: 0.85rem;
}

.animation-card .spotlight-copy p:not(.eyebrow) {
  margin: 0;
}

.spotlight-card-reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.spotlight-card-reverse > img {
  order: 2;
}

.spotlight-ai-visual {
  position: relative;
  overflow: hidden;
  order: 2;
  min-height: 320px;
}

.spotlight-ai-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-hero {
  padding: clamp(2rem, 5vw, 4.5rem) 1rem;
  background: linear-gradient(145deg, #edf5f5 0%, #fffdf8 55%, #f5edf7 100%);
}

.teacher-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.teacher-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.teacher-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.ai-thought-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ai-thought-visual > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thought-mark-cloud {
  position: absolute;
  top: 9%;
  right: 7%;
  width: 40%;
  height: 39%;
  pointer-events: none;
}

.ai-mark {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.32em 0.58em;
  color: #233c40;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 109, 112, 0.16);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(24, 63, 67, 0.12);
  font-size: clamp(0.46rem, 0.96vw, 0.74rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ai-mark::before { font-size: 1.25em; }
.ai-mark.chatgpt { top: 2%; left: 4%; transform: rotate(-5deg); }
.ai-mark.chatgpt::before { content: '✴'; color: var(--teal); }
.ai-mark.notebook { top: 5%; right: 0; transform: rotate(2deg); }
.ai-mark.notebook::before { content: '▤'; color: #3f76d3; }
.ai-mark.claude { top: 39%; left: 1%; transform: rotate(2deg); }
.ai-mark.claude::before { content: '✳'; color: #d97757; }
.ai-mark.codex { top: 36%; left: 42%; transform: rotate(2deg); }
.ai-mark.codex::before { content: '⌘'; color: var(--teal); }
.ai-mark.gemini { top: 40%; right: 0; transform: rotate(4deg); }
.ai-mark.gemini::before { content: '✦'; color: #7356c6; }
.ai-mark.claude-code,
.ai-mark.copilot { font-size: clamp(0.42rem, 0.84vw, 0.66rem); }
.ai-mark.claude-code { bottom: 18%; left: 20%; transform: rotate(1deg); }
.ai-mark.claude-code::before { content: '</>'; color: #d97757; }
.ai-mark.copilot { right: 12%; bottom: 18%; transform: rotate(-3deg); }
.ai-mark.copilot::before { content: '∞'; color: #3a8f78; }

.teacher-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.resource-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-example {
  min-height: 100%;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(24, 63, 67, 0.08);
}

.resource-example .example-number {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.relay-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.relay-hero-grid h1 { max-width: 760px; font-size: clamp(2.35rem, 5vw, 4.7rem); }
.lead-copy { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.relay-flow { padding: clamp(1.2rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.relay-step { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; }
.relay-step > span { display: grid; flex: 0 0 2.5rem; height: 2.5rem; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-weight: 900; }
.relay-step strong, .relay-step small { display: block; }
.relay-step small { margin-top: 0.15rem; color: var(--muted); }
.relay-arrow { color: var(--plum); text-align: center; font-size: 1.4rem; font-weight: 900; }

.route-heading {
  margin-bottom: 0.85rem;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.image-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.image-route {
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 63, 67, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.image-route:hover {
  color: var(--plum);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(24, 63, 67, 0.13);
}

.image-route img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.image-route > span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-weight: 850;
}

.actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.button:hover {
  color: #fff;
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.button.secondary {
  color: var(--teal-deep);
  background: transparent;
}

.button.secondary:hover {
  color: var(--plum);
  background: var(--plum-soft);
  border-color: var(--plum);
}

.button[aria-disabled="true"] {
  color: #687879;
  background: #eef1f1;
  border-color: #d7dfdf;
  cursor: not-allowed;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.section.mist {
  background: var(--mist);
}

.section.plum-wash {
  background: linear-gradient(135deg, #f7f0f8, #fffdf8 64%);
}

.accessibility-section {
  background: linear-gradient(155deg, #fffdf8 0%, #f7f0f8 48%, #edf5f5 100%);
}

.section-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 2rem;
}

.section-intro-split .section-heading {
  margin-bottom: 0;
}

.section-editorial-image {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(24, 63, 67, 0.11);
}

.pack-builder-section {
  background: linear-gradient(145deg, #edf5f5, #fffdf8 58%, #f7f0f8);
}

.pack-builder {
  display: grid;
  gap: 1rem;
}

.pack-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pack-panel {
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.pack-panel legend {
  float: left;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--teal-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.pack-panel legend + * { clear: both; }

.field-label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.text-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebfc0;
  border-radius: 10px;
  font: inherit;
}

textarea.text-input {
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.72rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: #edf8f7;
  border-color: var(--teal);
}

.choice input,
.radio-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--teal);
}

.choice span,
.choice small {
  display: block;
}

.choice small {
  margin-top: 0.12rem;
  color: var(--muted);
  line-height: 1.35;
}

.compact-choices .choice {
  align-items: center;
}

.radio-row {
  display: grid;
  gap: 0.5rem;
}

.radio-row label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}

.visual-choice {
  padding: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.visual-choice:has(input:checked) { background: #edf8f7; border-color: var(--teal); }
.visual-choice-copy { display: grid; gap: 0.35rem; }
.mini-palette { display: flex; gap: 0.28rem; }
.mini-palette i { width: 1.45rem; height: 0.52rem; border: 1px solid rgba(24,63,67,.16); border-radius: 999px; }
.palette-calm i:nth-child(1) { background:#fffdf8; }.palette-calm i:nth-child(2) { background:#076d70; }.palette-calm i:nth-child(3) { background:#6f3a82; }
.palette-clear i:nth-child(1) { background:#fff; }.palette-clear i:nth-child(2) { background:#277da1; }.palette-clear i:nth-child(3) { background:#dceff5; }
.palette-warm i:nth-child(1) { background:#fff5df; }.palette-warm i:nth-child(2) { background:#d66b54; }.palette-warm i:nth-child(3) { background:#39705b; }

.embed-code-grid { margin-top: 1.4rem; }
.code-card pre { overflow:auto; padding:.8rem; background:#f5f7f7; border:1px solid var(--line); border-radius:10px; white-space:pre-wrap; font-size:.82rem; }
.copy-line { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }

.trainee-hero-grid { display:grid; grid-template-columns:1fr minmax(300px,.82fr); gap:2rem; align-items:center; }
.trainee-hero-grid img { width:100%; max-height:340px; object-fit:cover; border-radius:22px; box-shadow:var(--shadow); }
.library-hero { padding:clamp(2.5rem,6vw,5rem) 1rem; background:linear-gradient(145deg,#f7f0f8,#fffdf8 48%,#edf5f5); }
.library-hero-grid { display:grid; grid-template-columns:minmax(0,.78fr) minmax(360px,1.22fr); gap:clamp(1.5rem,4vw,3rem); align-items:center; }
.library-hero h1,.library-hero .lede { margin-left:0; text-align:left; }
.library-hero h1 { font-size:clamp(2.35rem,5vw,4rem); }
.library-hero img { width:100%; max-height:430px; object-fit:cover; border-radius:24px; box-shadow:var(--shadow); }
.resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.resource-card { position:relative; overflow:hidden; min-height:440px; display:flex; align-items:flex-end; padding:1rem; border-radius:22px; box-shadow:var(--shadow); background-position:center; background-size:cover; }
.resource-card::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(12,40,43,.08),rgba(12,40,43,.93) 58%); }
.resource-card.english { background-image:url("assets/english-marker.jpg"); }
.resource-card.french { background-image:url("assets/french-marker.jpg"); }
.resource-card.spanish { background-image:url("assets/spanish-marker.jpg"); }
.resource-card-copy { position:relative; z-index:1; color:#fff; }
.resource-card h3 { color:#fff; font:600 1.55rem/1.15 Georgia,"Times New Roman",serif; }
.resource-card p { margin:.5rem 0; }
.resource-card .tag { color:#fff; background:rgba(255,255,255,.17); }
.resource-card .button { margin-top:.85rem; color:var(--teal-deep); background:#fff; border-color:#fff; }
.resource-card .button:hover { color:var(--plum); background:#fff7df; border-color:#fff7df; }
.resource-meta { display:flex; flex-wrap:wrap; gap:.4rem .85rem; margin:.8rem 0 0; padding:0; list-style:none; font-size:.8rem; }
.resource-meta li::before { content:"✓ "; color:#f2c15b; font-weight:900; }
.subject-shelf { display:flex; flex-wrap:wrap; gap:.65rem; }
.subject-shelf span { padding:.7rem .9rem; color:var(--teal-deep); background:#fff; border:1px solid var(--line); border-radius:999px; font-weight:800; }
.library-notice { margin-top:1.25rem; }
.section-editorial-image.tall { max-height:380px; }
.example-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.example-card { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 10px 30px rgba(24,63,67,.08); }
.example-card>img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.example-card>div { padding:1.15rem 1.25rem 1.35rem; }
.example-card .tag { margin-bottom:.65rem; }
.example-coming-grid { margin-top:1rem; }
.compact-section { padding-top:3rem; }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.split-panel { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:2rem; align-items:start; }
.actions.left { justify-content:flex-start; }

.pack-help {
  color: var(--muted);
}

.file-drop {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem;
  color: var(--teal-deep);
  background: #edf8f7;
  border: 2px dashed #72aeb0;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 850;
}

.file-drop small {
  color: var(--muted);
  font-weight: 500;
}

#pack-files {
  width: 100%;
  margin-top: 0.7rem;
}

.pack-file-summary,
.pack-status {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.pack-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  color: #eef8f8;
  background: var(--teal-deep);
  border-radius: 18px;
}

.pack-download-panel h3 {
  color: #fff;
}

.pack-download-panel p {
  margin: 0.35rem 0 0;
}

.pack-download-panel a {
  color: #fff;
}

.pack-download-button {
  background: #fff;
  border-color: #fff;
  color: var(--teal-deep);
  cursor: pointer;
}

.pack-download-button:hover {
  color: var(--plum);
  background: #fff7df;
  border-color: #fff7df;
}

.pack-status:not(:empty) {
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: #fff7df;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 63, 67, 0.07);
}

.card.plum {
  border-top-color: var(--plum);
}

.card.gold {
  border-top-color: var(--gold);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 0.55rem;
  font-weight: 850;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.tool-card .card-link {
  margin-top: auto;
  padding-top: 0.75rem;
}

.privacy-note {
  max-width: 900px;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 14px;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.62rem;
  color: var(--plum);
  background: var(--plum-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.origin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 2.4rem;
}

.origin-intro .section-heading { margin-bottom: 0; }

.origin-note {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(145deg, #fff, #f7f0f8);
  border: 1px solid var(--line);
  border-left: 6px solid var(--plum);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(24, 63, 67, 0.07);
}

.origin-note > span {
  display: block;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.origin-note > strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--teal-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.origin-note p { margin: 0.4rem 0 0; color: var(--muted); }

.origin-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.origin-timeline::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: calc(9.5rem + 0.43rem);
  width: 2px;
  background: linear-gradient(var(--teal), var(--plum));
}

.origin-milestone {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.origin-milestone::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: calc(9.5rem + 0.1rem);
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ivory);
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.origin-milestone time {
  padding-top: 1.25rem;
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.origin-milestone > div {
  padding: 1.2rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(24, 63, 67, 0.06);
}

.origin-milestone p { margin: 0; color: var(--muted); }

.origin-closing {
  max-width: 900px;
  margin: 2rem 0 0 calc(11.5rem);
  padding: 1.1rem 1.25rem;
  background: var(--mist);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
}

.watermark-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle, #ffffff 0, #edf5f5 69%, #dce9e9 100%);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.watermark-panel img {
  width: min(78%, 390px);
  opacity: 0.96;
}

.editorial-panel {
  overflow: hidden;
  min-height: 390px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.editorial-panel img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.audio-caution {
  margin-top: 1.1rem;
}

.check-list,
.plain-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.plain-list li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: var(--plum);
  font-weight: 900;
}

.notice {
  padding: 1.15rem 1.25rem;
  color: var(--ink);
  background: #fff7df;
  border: 1px solid #e7ca77;
  border-left: 6px solid var(--gold);
  border-radius: 14px;
}

.subpage-hero {
  padding: clamp(4rem, 9vw, 8rem) 1rem clamp(3.5rem, 8vw, 6rem);
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.97), rgba(237, 245, 245, 0.86)),
    url("assets/ellived-nordic-mist-banner.png") center / cover;
}

.subpage-hero .container {
  max-width: 920px;
}

.subpage-hero h1,
.subpage-hero .lede {
  margin-left: 0;
  text-align: left;
}

.subpage-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

/* This must follow the generic subpage hero rules so the compact trainee
   introduction cannot be expanded again by the shared desktop treatment. */
.subpage-hero.trainee-hero {
  padding: clamp(1.35rem, 2.4vw, 2.1rem) 1rem;
}

.subpage-hero.trainee-hero .container {
  width: min(100%, var(--max));
  max-width: var(--max);
}

.trainee-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(320px, 1.12fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
}

.subpage-hero.trainee-hero h1 {
  max-width: 620px;
  font-size: clamp(2rem, 3.15vw, 3rem);
}

.subpage-hero.trainee-hero .lede {
  max-width: 650px;
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
}

.subpage-hero.trainee-hero .trainee-hero-grid img {
  height: clamp(190px, 21vw, 260px);
  max-height: 260px;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 1rem;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step::before {
  content: counter(steps);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.step h3 {
  margin-top: 0.28rem;
}

.prompt-box {
  position: relative;
  padding: 1.4rem;
  background: #132f33;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.prompt-box pre {
  margin: 0;
  color: #f7fbfb;
  font: 1rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.copy-button {
  margin-bottom: 1rem;
  padding: 0.62rem 0.85rem;
  color: #173f43;
  background: #fff;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.copy-status {
  margin-left: 0.65rem;
  color: #d8f1e8;
  font-weight: 750;
}

.colour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.swatch {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(24, 63, 67, 0.25);
  border-radius: 50%;
}

.swatch.teal { background: #087f83; }
.swatch.plum { background: #704080; }
.swatch.gold { background: #c28b26; }
.swatch.blue { background: #26779a; }
.swatch.coral { background: #bd5d55; }
.swatch.forest { background: #356952; }

.review-group {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.review-group label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0.7rem 0;
}

.review-group input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  accent-color: var(--teal);
}

.sentence-bank {
  margin: 0;
  padding-left: 1.25rem;
}

.sentence-bank li {
  margin: 0.85rem 0;
}

.site-footer {
  padding: 2.5rem 1rem;
  color: #e8f3f3;
  background: #123f43;
}

.footer-wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer a {
  color: #fff;
}

.small {
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-wrap {
    padding: 0.65rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 540px;
  }

  .grid,
  .grid.two,
  .principles,
  .origin-intro,
  .image-route-grid,
  .pack-builder-grid,
  .spotlight-card,
  .section-intro-split,
  .grid.three,
  .split-panel,
  .trainee-hero-grid {
    grid-template-columns: 1fr;
  }

  .teacher-hero-grid,
  .teacher-route-grid,
  .resource-example-grid,
  .relay-hero-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card-reverse > img,
  .spotlight-ai-visual {
    order: 0;
  }

  .spotlight-ai-visual { min-height: 280px; }

  .library-hero-grid,
  .resource-grid,
  .example-card-grid {
    grid-template-columns: 1fr;
  }

  .site-nav { align-items:stretch; }
  .nav-group summary { justify-content:space-between; }
  .nav-menu { position:static; min-width:0; margin:.3rem 0 .55rem; box-shadow:none; }
  .nav-menu a { white-space:normal; }

  .site-search { justify-content:stretch; }
  .site-search-control { width:100%; }
  .site-search-results { width:100%; }

  .spotlight-card > img {
    max-height: 300px;
  }

  .young-artist-card > img {
    max-height: 520px;
  }

  .pack-download-panel {
    grid-template-columns: 1fr;
  }

  .watermark-panel {
    min-height: 300px;
  }

  .origin-timeline::before { left: 0.43rem; }
  .origin-milestone { grid-template-columns: 1fr; gap: 0.35rem; padding-left: 1.8rem; }
  .origin-milestone::before { top: 0.35rem; left: 0.1rem; }
  .origin-milestone time { padding-top: 0; }
  .origin-closing { margin-left: 0; }
}

@media (max-width: 520px) {
  .site-nav a {
    padding: 0.48rem 0.55rem;
    font-size: 0.92rem;
  }

  .hero-content {
    margin-bottom: 1rem;
    border-radius: 22px;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero {
    padding-inline: 0.6rem;
  }

  .brand-banner-frame {
    border-radius: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}

@media print {
  .construction-bar,
  .site-header,
  .actions,
  .copy-button,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .subpage-hero {
    padding: 1rem 0;
    background: #fff;
  }

  .card,
  .review-group,
  .step,
  .prompt-box {
    break-inside: avoid;
    box-shadow: none;
  }
}
