:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #2f7cf6;
  --accent-2: #38b87c;
  --text: #1f2a3d;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  min-width: 320px;
}

[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
.muted {
  color: var(--muted);
}

.hero {
  background: #ffffff;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
}
.hero--sitemap {
  background: #f1f5f9;
}
.hero__inner {
  max-width: 1040px;
  margin: 0 auto;
}
.hero__tag {
  display: inline-block;
  background: rgba(47, 124, 246, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  margin: 0 0 12px;
}
.site-branding {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.4px;
}
.brand-link {
  color: inherit;
  text-decoration: none;
}
.hero .accent {
  color: var(--accent-2);
  font-weight: 700;
}
.hero__lead {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(47, 124, 246, 0.2);
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn--ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  background: #1f6be0;
  box-shadow: 0 12px 34px rgba(31, 107, 224, 0.25);
}
.btn--ghost:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.btn:focus-visible,
.btn-small:focus-visible,
.btn-pill:focus-visible,
.subject-card:focus-visible,
.subject-pill:focus-visible,
.grade-links a:focus-visible,
.toc a:focus-visible,
.related-print:focus-visible,
.floating-top:focus-visible,
.modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}
.panel {
  max-width: 1040px;
  margin: 32px auto;
  padding: 0 24px;
}
.panel--muted {
  background: transparent;
}
.panel__head {
  margin-bottom: 16px;
}
.panel__head h2 {
  margin: 0 0 6px;
}
.panel__head h2 {
  font-size: 24px;
}
.panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 16px;
}
.search-box__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.search-box__input {
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}
.search-box__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
  outline: none;
}
.search-box__status {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.subject-card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
}
.subject-card__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  background: rgba(47, 124, 246, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  background: rgba(47, 124, 246, 0.03);
}
.subject-card__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.subject-card--eiken .subject-card__icon {
  background: rgba(56, 184, 124, 0.14);
  color: var(--accent-2);
}

.stage-block {
  margin-bottom: 18px;
}
.stage-block__label {
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--muted);
}
.grade-grid__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grade-card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.subject-index-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.subject-index-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.hub-controls {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}
.hub-search {
  display: grid;
  gap: 6px;
  max-width: 640px;
}
.hub-search > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.topic-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.topic-card:hover,
.topic-card.is-active {
  background: rgba(47, 124, 246, 0.06);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(47, 124, 246, 0.14);
}
.topic-card__head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.topic-card__head > span {
  background: rgba(47, 124, 246, 0.1);
  border-radius: 999px;
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}
.topic-card__grades,
.topic-card__example {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.hub-topic-toggle {
  justify-self: start;
}
.hub-section {
  scroll-margin-top: 16px;
}
.hub-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-feature-list .print-card {
  align-content: start;
}
.toc--compact {
  margin-top: 14px;
}
.subject-pill span {
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.8;
}
.grade-card h3 {
  margin: 0 0 8px;
}
.grade-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.grade-links a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.grade-links a:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(47, 124, 246, 0.18);
}
.grade-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.grade-anchor-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 22px;
}
.anchor-row {
  display: block;
}
.anchor-row__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.anchor-row__links a {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.anchor-row__links a:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(47, 124, 246, 0.2);
  transform: translateY(-1px);
}

.print-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.print-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.print-card__top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.print-card__line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.print-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.print-card__meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.print-card__meta-line--bottom {
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}
.print-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
}
.print-card p {
  margin: 0 0 6px;
}
.print-card__actions {
  margin-top: 4px;
}
.print-card__actions--stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.print-card__actions--stack .btn-pill {
  width: 140px; /* 「プリントを開く」と同幅に統一 */
  text-align: center;
  white-space: nowrap;
}
.print-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.print-card__related {
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
}
.print-card__related-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.print-card__related-links {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.related-print {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  gap: 8px;
  justify-content: flex-start;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}
.related-print span {
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}
.related-print:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(47, 124, 246, 0.16);
  color: var(--accent);
}
.subject-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(47, 124, 246, 0.1);
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}
.subject-icon--english {
  background: rgba(251, 146, 60, 0.15); /* badge-eng系 */
  color: #ea580c;
}
.subject-icon--kanji {
  background: rgba(107, 114, 128, 0.15); /* badge-kanji系 */
  color: #374151;
}
.subject-icon--eiken {
  background: rgba(56, 184, 124, 0.14);
  color: var(--accent-2);
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(56, 184, 124, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-pill:hover {
  transform: translateY(-1px);
  background: #2fa26c;
  box-shadow: 0 10px 24px rgba(47, 150, 104, 0.28);
}
.btn-pill--ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-pill--ghost:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.group-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.group-block:last-of-type {
  border-bottom: none;
}
.group-block h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.curriculum {
  margin-top: 16px;
}
.curriculum h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.curriculum-list {
  padding-left: 18px;
  line-height: 1.6;
}
.curriculum-list li {
  margin: 6px 0;
}
.curriculum-card ul {
  margin: 8px 0 0 0;
}
.curriculum-card .print-card__meta span {
  font-size: 13px;
}
.toc {
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.toc h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.toc a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 17px;
}
.tag {
  background: rgba(56, 184, 124, 0.1);
  color: var(--accent-2);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.badge-math {
  background: rgba(47, 124, 246, 0.12);
  color: var(--accent);
}
.badge-eng {
  background: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}
.badge-kanji {
  background: rgba(107, 114, 128, 0.15);
  color: #374151;
}
.badge-eiken {
  background: rgba(56, 184, 124, 0.14);
  color: var(--accent-2);
}
.btn-small {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-2);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font: inherit;
}
.btn-small--ghost {
  background: #fff;
  color: var(--accent-2);
  border: 1px solid var(--line);
}

.floating-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: #fff;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.floating-top:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.ad-slot {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  text-align: center;
  color: var(--muted);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.ad-slot--modal {
  min-height: 250px;
  background: #f0f0f0;
  display: grid;
  place-items: center;
}
.ad-slot__note {
  font-size: 12px;
}
.ad-slot--hero {
  margin-top: 20px;
}
.ad-slot--sidebar {
  min-height: 250px;
}

.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer__title {
  font-weight: 700;
  margin: 0 0 6px;
}
.footer__ads {
  max-width: 260px;
  background: #111827;
  border-color: #1f2937;
}
.footer a {
  color: #a5b4fc;
  text-decoration: underline;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.info-page {
  display: grid;
  gap: 18px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.info-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.info-card h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}
.info-card p,
.info-card li {
  color: var(--text);
  font-size: 16px;
}
.info-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 16px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.subject-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 10px;
  flex-wrap: wrap;
}
.subject-switch__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.subject-switch__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.subject-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
}
.subject-pill:hover {
  background: rgba(47, 124, 246, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(47, 124, 246, 0.18);
  transform: translateY(-1px);
}
.subject-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(47, 124, 246, 0.22);
}

/* toc内でのスイッチ配置調整（幼児かず向け） */
.toc {
  display: block;
}
.toc .subject-switch {
  border-top: none;
  padding-top: 6px;
  margin: 6px 0 0;
  gap: 8px;
}
.toc .subject-switch__label {
  font-size: 13px;
}
.toc .subject-switch__buttons {
  gap: 6px;
}
.toc .subject-switch__label {
  display: none;
}
.toc .subject-pill {
  padding: 7px 12px;
  min-width: 82px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .hero {
    padding: 32px 16px;
  }
  .site-branding {
    font-size: 28px;
  }
  .page-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .panel {
    padding: 0 16px;
  }
  .grade-grid__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-title .ad-slot--sidebar {
    width: 100%;
  }
  .footer {
    flex-direction: column;
  }
  .footer__ads {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .grade-grid__row {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .grade-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anchor-row__links {
    grid-template-columns: 1fr;
  }
  .subject-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .subject-card__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  .toc a {
    font-size: 15px;
  }
  .subject-pill {
    font-size: 13px;
    min-width: auto;
  }
  .print-card {
    padding: 14px;
  }
  .hub-feature-list {
    grid-template-columns: 1fr;
  }
  .print-card__actions--stack .btn-pill {
    width: 100%;
  }
}

.sitemap-list {
  list-style: disc;
  padding-left: 20px;
}
.sitemap-list li {
  margin: 4px 0;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 12px;
  list-style: none;
  padding: 0;
}
.sitemap-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.tree {
  list-style: none;
  padding-left: 0;
}
.tree > li {
  margin-bottom: 6px;
}
.tree ul {
  list-style: none;
  margin: 4px 0 4px 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.tree li {
  position: relative;
  padding: 4px 0;
}
.tree li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 12px;
  width: 12px;
  height: 0;
  border-top: 1px solid var(--border);
}
.panel--sitemap {
  max-width: 1040px;
}
.sitemap-section {
  margin: 24px 0;
}
.sitemap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.sitemap-card h2 {
  margin: 0 0 8px;
}
.empty-state-card {
  border-style: dashed;
}

/* 印刷用 */
@media print {
  body {
    background: #fff;
  }
  .hero,
  .footer,
  .ad-slot,
  .btn,
  .btn-small {
    display: none !important;
  }
  .panel {
    margin: 0;
    padding: 0;
  }
  .print-card {
    border: 1px solid #999;
  }
}

/* Responsive styles removed */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}


/* Curriculum Level Styles */
.page-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  max-width: 800px;
}
.level-section {
  margin-bottom: 32px;
}
.level-heading {
  font-size: 20px;
  border-bottom: 2px solid var(--accent-2);
  padding-bottom: 8px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 700;
}
.level-items {
  /* display: contents used in JS to utilize parent grid */
}

