.reader main { padding-block: 32px 64px; }
.library-hero {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: stretch;
  overflow: hidden;
  background: #e9f8f6;
  border-radius: 20px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 4.3vw, 4.1rem);
  letter-spacing: -.045em;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero-copy h1 span {
  display: block;
  font: 800 1.27em/.98 "Segoe UI", Arial, sans-serif;
  color: var(--teal);
  letter-spacing: -.045em;
  margin: 0 0 6px -.045em;
}
.hero-copy p { font-size: clamp(.98rem, 1.38vw, 1.12rem); color: #385961; line-height: 1.75; margin: 0 0 26px; }
.hero-photo { display: block; height: 100%; width: 100%; object-fit: cover; }
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 11px 21px;
  border-radius: 30px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.hero-action span { font: 1.45rem/1 "Segoe UI", sans-serif; }
.hero-action:hover { color: white; background: #005e6a; }
#catalog { padding-top: 36px; }
#catalog h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.2vw, 1.93rem); letter-spacing: -.03em; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#catalog.category-view { padding-top: 0; }
.category-view .catalog-grid { grid-template-columns: minmax(0, 1fr); }
.category-view .catalog-title { display: none; }
.category-view #course-list, .category-view #kit-list { margin-top: 0; }
.category-view .catalog-panel { scroll-margin-top: 100vh; }
.catalog-panel { padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 16px; }
.catalog-title { display: flex; align-items: center; gap: 12px; }
.catalog-title h3 { margin: 0; font-size: 1.22rem; }
.topic-icon { position: relative; display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.book-icon { color: #007788; background: #e0f5f5; }
.book-icon::before, .book-icon::after {
  content: ""; position: absolute; top: 13px; width: 8px; height: 12px; border: 2px solid currentColor;
}
.book-icon::before { left: 9px; transform: skewY(10deg); border-radius: 2px 0 0 2px; }
.book-icon::after { right: 9px; transform: skewY(-10deg); border-radius: 0 2px 2px 0; }
.chip-icon { color: #ad5713; background: #fff0d5; }
.chip-icon::before { content: ""; position: absolute; inset: 12px; border: 2px solid; border-radius: 3px; }
.chip-icon::after { content: ""; position: absolute; top: 9px; left: 16px; width: 2px; height: 4px; background: currentColor; box-shadow: 6px 0, 0 18px, 6px 18px; }
#course-list, #kit-list { margin-top: 16px; color: var(--muted); font-size: .94rem; }
.catalog-panel ul { list-style: none; padding: 0; margin: 0; }
.catalog-panel li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.catalog-panel li a { display: inline-block; font-size: 1rem; font-weight: 650; }
.catalog-panel select { max-width: 100%; }
.reader #notice:not(:empty), .detail-back:has(a:not([hidden])) { margin: 0 0 18px; }
.reader #notice:empty { margin: 0; }
.detail-back a { text-decoration: none; font-weight: 650; }
#reader-detail { max-width: 940px; overflow-wrap: anywhere; }
#reader-detail img, #reader-detail video { max-height: 540px; }
@media (max-width: 820px) {
  .reader main { padding-top: 22px; }
  .hero-copy { padding: 28px; }
  .hero-copy h1 { font-size: 2.7rem; }
  .hero-copy p br { display: none; }
  .catalog-panel { padding: 20px; }
}
@media (max-width: 620px) {
  .reader main { padding-block: 18px 32px; }
  .library-hero { grid-template-columns: 1fr; border-radius: 16px; }
  .hero-copy { padding: 24px; }
  .hero-copy h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); line-height: 1.2; }
  .hero-copy h1 span { display: inline; font-size: 1.12em; margin-right: .23em; }
  .hero-copy h1, .hero-copy p { margin-bottom: 13px; }
  .hero-copy p { line-height: 1.6; }
  .hero-photo { height: auto; aspect-ratio: 1.95; object-position: 50% 49%; }
  .hero-action { padding: 8px 16px; font-size: .92rem; }
  #catalog { padding-top: 24px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 12px; }
  .catalog-panel { padding: 16px 18px; }
  #course-list, #kit-list { margin-top: 10px; }
}

.showcase-entry { color:var(--teal);font-size:.9rem;font-weight:650;margin-bottom:18px;text-underline-offset:4px; }
.showcase-entry:hover { text-decoration:underline; }
