:root {
  --paper: #fff8df;
  --surface: #ffffff;
  --ink: #17324d;
  --muted: #667085;
  --line: #f1d690;
  --navy: #194d7a;
  --gold: #ffb703;
  --gold-soft: #fff0b8;
  --coral: #ff6f61;
  --teal: #00a8a8;
  --sky: #6ec6ff;
  --plum: #8746b8;
  --violet: #7b61ff;
  --lavender: #ded6ff;
  --pink: #ffd0e8;
  --sage: #c8f3d6;
  --rose: #ffe0d6;
  --shadow: 0 18px 44px rgba(23, 50, 77, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(255, 183, 3, 0.14) 0 2.5px, transparent 3px) 9px 17px / 96px 113px,
    radial-gradient(circle, rgba(0, 168, 168, 0.11) 0 2px, transparent 2.5px) 71px 39px / 137px 121px,
    radial-gradient(circle, rgba(255, 111, 97, 0.11) 0 2.5px, transparent 3px) 31px 86px / 163px 149px,
    radial-gradient(circle at 8% 12%, rgba(255, 183, 3, 0.3) 0 150px, transparent 152px),
    radial-gradient(circle at 92% 7%, rgba(255, 111, 97, 0.22) 0 160px, transparent 162px),
    radial-gradient(circle at 78% 46%, rgba(0, 168, 168, 0.18) 0 210px, transparent 212px),
    var(--paper);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(123, 97, 255, 0.09) 0 2px, transparent 2.5px) 109px 54px / 181px 157px,
    radial-gradient(circle, rgba(255, 208, 232, 0.2) 0 3.5px, transparent 4px) 24px 133px / 229px 197px,
    radial-gradient(circle at 18% 78%, rgba(110, 198, 255, 0.26), transparent 230px),
    radial-gradient(circle at 96% 88%, rgba(135, 70, 184, 0.16), transparent 230px),
    radial-gradient(circle at 42% 35%, rgba(255, 208, 232, 0.26), transparent 260px);
}

.watermarks {
  display: none;
}

.wm {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(25, 77, 122, 0.12);
  border-radius: 999px;
  color: rgba(25, 77, 122, 0.13);
  background: rgba(255, 255, 255, 0.32);
  font-size: clamp(15px, 2.2vw, 30px);
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(255, 183, 3, 0.1);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

.wm-1 { top: 13%; left: 7%; transform: rotate(-14deg); }
.wm-2 { top: 20%; right: 13%; transform: rotate(11deg); }
.wm-3 { top: 42%; left: 4%; transform: rotate(8deg); }
.wm-4 { top: 55%; right: 8%; transform: rotate(-10deg); }
.wm-5 { top: 76%; left: 14%; transform: rotate(13deg); }
.wm-6 { top: 84%; right: 18%; transform: rotate(-7deg); }
.wm-7 { top: 33%; left: 42%; transform: rotate(-18deg); }
.wm-8 { top: 66%; left: 47%; transform: rotate(16deg); }
.wm-9 { top: 9%; left: 58%; transform: rotate(-6deg); }
.wm-10 { top: 91%; left: 38%; transform: rotate(9deg); }

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  background: var(--navy);
  color: white;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 280px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.search-form {
  position: relative;
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(19, 40, 75, 0.08);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px 12px 18px;
  color: var(--ink);
  background: transparent;
}

.search-form button {
  border: 0;
  background: var(--navy);
  color: white;
  min-width: 46px;
  border-radius: 999px;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  display: none;
  max-height: min(640px, calc(100vh - 140px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.search-suggestions.is-open {
  display: block;
}

.suggestion-group + .suggestion-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(111, 75, 216, 0.14);
}

.suggestion-group h2 {
  margin: 0 0 8px;
  color: var(--violet);
  font-size: 13px;
  text-transform: uppercase;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}

.suggestion-item:hover,
.suggestion-item:focus,
.suggestion-item.is-active {
  background: #f3edff;
}

.suggestion-item.is-active {
  outline: 2px solid rgba(111, 75, 216, 0.36);
  outline-offset: -2px;
}

.suggestion-cover {
  width: 48px;
  height: 62px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gold-soft);
}

.suggestion-cover img,
.suggestion-cover-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-cover-placeholder {
  background: linear-gradient(145deg, var(--violet), var(--pink));
}

.suggestion-copy {
  min-width: 0;
}

.suggestion-copy strong,
.suggestion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy strong {
  color: var(--navy);
  font-size: 15px;
}

.suggestion-copy small {
  color: var(--muted);
  font-size: 13px;
}

.search-loading,
.search-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.search-debug {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed rgba(111, 75, 216, 0.32);
  border-radius: 8px;
  color: #475067;
  background: #f8f4ff;
  font-size: 12px;
}

.search-debug summary {
  cursor: pointer;
  color: var(--violet);
  font-weight: 900;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(19, 40, 75, 0.06);
}

.menu-toggle {
  display: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.category-strip {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.book-row::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff, #f1eaff);
  font-size: 14px;
  font-weight: 700;
}

.mobile-panel {
  display: none;
}

.main-menu {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 10px;
  overflow: visible;
}

.main-menu-item {
  position: relative;
}

.main-menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.main-menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(111, 75, 216, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(111, 75, 216, 0.08);
}

.main-submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 80;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  max-width: min(1040px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.main-submenu-column {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 0 8px;
}

.main-submenu-column + .main-submenu-column {
  border-left: 1px solid rgba(111, 75, 216, 0.16);
}

.main-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 700;
}

.main-menu-item:hover .main-submenu,
.main-menu-item:focus-within .main-submenu {
  display: grid;
}

.main-submenu a:hover {
  background: var(--gold-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 32px;
  align-items: center;
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: 72px 20px 56px;
}

.hero::before {
  content: "";
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2));
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 118px;
  height: 420px;
  z-index: -1;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 184, 0.78)),
    radial-gradient(circle at 18% 22%, rgba(255, 111, 97, 0.22), transparent 170px),
    radial-gradient(circle at 82% 18%, rgba(0, 168, 168, 0.18), transparent 190px),
    radial-gradient(circle at 58% 85%, rgba(123, 97, 255, 0.16), transparent 220px);
  box-shadow: 0 24px 70px rgba(25, 77, 122, 0.1);
}

.hero {
  position: relative;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  color: var(--navy);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: #3d4a5f;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.button.secondary {
  border: 1px solid var(--lavender);
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--sage));
}

.hero-stack {
  position: relative;
  min-height: 390px;
}

.floating-book {
  position: absolute;
  display: block;
  width: 170px;
  height: 250px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-book img,
.hero-book-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-book-placeholder {
  position: relative;
}

.hero-book-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(18, 32, 51, 0.78);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.floating-book::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.24) 0 14px, transparent 14px 100%);
}

.book-a {
  top: 34px;
  left: 18px;
  transform: rotate(-9deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 0 12px, transparent 12px),
    linear-gradient(145deg, #00a8a8, #6ec6ff);
}

.book-b {
  top: 96px;
  left: 150px;
  transform: rotate(7deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2) 0 12px, transparent 12px),
    linear-gradient(145deg, #ff6f61, #ffd0e8);
}

.book-c {
  top: 0;
  right: 24px;
  transform: rotate(13deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2) 0 12px, transparent 12px),
    linear-gradient(145deg, #7b61ff, #ffb703);
}

.shelf-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
}

.news-carousel-section {
  max-width: 1180px;
  margin: -18px auto 10px;
  padding: 0 20px 26px;
}

.news-carousel-section .section-heading {
  align-items: center;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 75, 216, 0.2);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(19, 40, 75, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.news-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 6px 2px 18px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.news-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.news-slide {
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111, 75, 216, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(19, 40, 75, 0.08);
}

.news-slide-image {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--gold-soft);
}

.news-slide-image img,
.news-slide-image .cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-slide-body {
  position: relative;
  z-index: 2;
  padding: 15px;
}

.news-slide-body time {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.news-slide-body h3 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.22;
}

.news-slide-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
}

.section-heading a {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.book-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  padding: 6px 2px 18px;
  -webkit-overflow-scrolling: touch;
}

.book-card {
  scroll-snap-align: start;
  position: relative;
  min-height: 352px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,247,255,0.98)),
    var(--surface);
  box-shadow: 0 12px 28px rgba(19, 40, 75, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cover,
.featured-cover {
  border-radius: 7px;
  background: linear-gradient(145deg, #13284b, #c49a3a);
  position: relative;
  overflow: hidden;
}

.cover::before,
.featured-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22) 0 16px, transparent 16px 100%),
    radial-gradient(circle at 72% 22%, rgba(255,255,255,0.3), transparent 44px),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,0.12) 28px 30px);
}

.book-card .cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 12px;
}

.book-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 12px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(19, 40, 75, 0.1);
}

.badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #43225f;
  background: linear-gradient(135deg, var(--gold-soft), #ffe1f2);
  font-size: 12px;
  font-weight: 800;
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #43225f;
  background: linear-gradient(135deg, #d7f0ff, #ffe1f2);
  font-size: 12px;
  font-weight: 900;
}

.book-audience-child,
.book-audience-young-adult,
.book-audience-baby {
  border-color: rgba(46, 156, 160, 0.34);
}

.book-audience-adult .book-card-cover,
.book-audience-adult.book-card .cover,
.book-audience-adult .featured-cover img,
.book-audience-adult .book-detail-cover img,
.book-audience-adult .book-detail-cover .cover {
  filter: grayscale(0.35) brightness(0.72);
}

.book-audience-adult .audience-badge {
  color: white;
  background: linear-gradient(135deg, #122033, #7b4b8f);
}

.book-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.book-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--violet), #274e7f);
  font-weight: 800;
}

.featured {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 42px auto 70px;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 93, 177, 0.15), transparent 180px),
    radial-gradient(circle at 88% 20%, rgba(111, 75, 216, 0.14), transparent 180px);
}

.page-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 70px;
}

.page-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.page-heading h1,
.article-detail-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-heading p,
.article-detail-head p {
  color: #3d4a5f;
  font-size: 18px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.menu-editor-content {
  max-width: 920px;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid rgba(111, 75, 216, 0.16);
  border-radius: 8px;
  color: #27364b;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(19, 40, 75, 0.06);
  font-size: 17px;
}

.menu-editor-content > :first-child {
  margin-top: 0;
}

.menu-editor-content > :last-child {
  margin-bottom: 0;
}

.menu-editor-content img,
.menu-editor-content iframe,
.menu-editor-content video {
  max-width: 100%;
}

.menu-editor-content a,
.article-content a {
  color: var(--violet);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ad-slot {
  display: grid;
  gap: 8px;
  width: min(100%, 1180px);
  margin: 28px auto;
  text-align: center;
}

.ad-slot-label {
  color: rgba(102, 112, 133, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot-placeholder {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed rgba(111, 75, 216, 0.3);
  border-radius: 8px;
  color: rgba(19, 40, 75, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(234, 220, 255, 0.7)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(111, 75, 216, 0.05) 12px 24px);
  font-weight: 900;
}

.ad-slot-billboard .ad-slot-placeholder {
  min-height: 180px;
}

.ad-slot-news-inline,
.ad-slot-menu-intro,
.ad-slot-article-title,
.ad-slot-article-lead,
.ad-slot-article-bottom,
.ad-slot-book-top,
.ad-slot-book-detail {
  margin-block: 26px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(19, 40, 75, 0.08);
}

.article-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--gold-soft);
}

.article-card-image img,
.article-card-image .cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.article-card-body {
  padding: 16px;
}

.article-card-body time,
.article-detail-head time {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

.article-card h2 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.article-card p {
  color: var(--muted);
}

.read-more,
.back-link {
  color: var(--violet);
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 800;
}

.pagination a.active {
  color: white;
  background: var(--violet);
}

.article-detail-page {
  max-width: 920px;
}

.article-detail {
  margin-top: 16px;
}

.article-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 22px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-content {
  color: #27364b;
  font-size: 18px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.book-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.book-detail-cover {
  position: sticky;
  top: 150px;
}

.book-detail-cover img,
.book-detail-cover .cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-detail-content h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.book-subtitle {
  margin: 10px 0 0;
  color: #3d4a5f;
  font-size: 20px;
}

.book-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.book-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.book-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-facts dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.book-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.book-category-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #43225f;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
}

.book-description {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.book-description h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.book-description p {
  margin: 0;
  color: #27364b;
  font-size: 18px;
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.featured-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
}

.featured-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 5vw, 54px);
}

.meta {
  color: var(--muted);
  font-weight: 700;
}

.recommendation {
  max-width: 720px;
  color: #27364b;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.detail-grid section,
.where-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-grid h3,
.where-box h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
}

.partner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), #d7f0ff);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 92px;
  color: #3d4a5f;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.cover-1 { background: linear-gradient(145deg, #13284b, #86b7e8); }
.cover-2 { background: linear-gradient(145deg, #7b4b8f, #ffd1dc); }
.cover-3 { background: linear-gradient(145deg, #ff5db1, #d9ccff); }
.cover-4 { background: linear-gradient(145deg, #2e9ca0, #dce6d2); }
.cover-5 { background: linear-gradient(145deg, #12343b, #c8b6ff); }
.cover-6 { background: linear-gradient(145deg, #24587a, #f5b7ff); }
.cover-7 { background: linear-gradient(145deg, #30415d, #9ee7df); }
.cover-8 { background: linear-gradient(145deg, #bd4f6c, #ffd6ba); }
.cover-9 { background: linear-gradient(145deg, #9d4edd, #ffd3ec); }
.cover-10 { background: linear-gradient(145deg, #263c55, #b7d7f2); }
.cover-11 { background: linear-gradient(145deg, #5f8d4e, #dce6d2); }
.cover-12 { background: linear-gradient(145deg, #c44536, #f7b7a3); }
.cover-13 { background: linear-gradient(145deg, #514b82, #d9ccff); }
.cover-14 { background: linear-gradient(145deg, #122033, #c8b6ff); }
.cover-15 { background: linear-gradient(145deg, #128c7e, #b8d2cb); }
.cover-16 { background: linear-gradient(145deg, #3c4a67, #f5b7ff); }
.cover-17 { background: linear-gradient(145deg, #7b4b8f, #ffd3ec); }
.cover-18 { background: linear-gradient(145deg, #101827, #ef476f); }
.cover-19 { background: linear-gradient(145deg, #1f2a44, #c8b6ff); }
.cover-20 { background: linear-gradient(145deg, #2d3436, #74b9ff); }
.cover-21 { background: linear-gradient(145deg, #1a1d29, #a29bfe); }
.cover-22 { background: linear-gradient(145deg, #13284b, #7b4b8f 45%, #ffd3ec); }

.submenu-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.submenu-bubbles a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(111, 75, 216, .22);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(111, 75, 216, .08);
  font-weight: 900;
}

.submenu-bubbles a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (hover: hover) {
  .book-card:hover,
  .news-slide:hover,
  .carousel-button:hover,
  .category-strip a:hover,
  .partner-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .floating-book:hover {
    box-shadow: 0 22px 54px rgba(19, 40, 75, 0.18);
  }
}

.recommend-tab {
  position: fixed;
  right: 0;
  top: 48%;
  z-index: 80;
  transform: translateY(-50%);
  border: 0;
  border-radius: 16px 0 0 16px;
  padding: 16px 12px 16px 14px;
  background: linear-gradient(135deg, #e60012, #ff1744);
  color: #fff200;
  box-shadow: 0 18px 44px rgba(230, 0, 18, .36);
  cursor: pointer;
  animation: recommendPulse 1.8s ease-in-out infinite;
}

.recommend-tab span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.recommend-modal[hidden] {
  display: none;
}

.recommend-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .72);
}

.recommend-dialog {
  position: relative;
  width: min(760px, 94vw);
  max-height: 92vh;
  overflow: auto;
  border: 4px solid #fff200;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff7fb);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .38);
  padding: 24px;
}

.recommend-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #e60012;
  color: #fff200;
  font-size: 26px;
  line-height: 1;
  font-weight: 1000;
  cursor: pointer;
}

.recommend-head h2 {
  margin: 0 46px 16px 0;
  color: var(--navy);
  font-size: clamp(28px, 5vw, 44px);
}

.recommend-form {
  display: grid;
  gap: 12px;
}

.recommend-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 850;
}

.recommend-form input,
.recommend-form select,
.recommend-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(111, 75, 216, .22);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

.recommend-form textarea {
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recommend-note {
  margin: 0;
  color: #5f6577;
  font-weight: 700;
}

.recommend-message {
  min-height: 22px;
  color: #b91c1c;
  font-weight: 900;
}

.recommend-message.is-ok {
  color: #166534;
}

.recommend-submit {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #e60012, #ff1744);
  color: #fff200;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(230, 0, 18, .26);
}

.recommend-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.recommend-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  color: #166534;
  text-align: center;
  font-size: 28px;
  font-weight: 1000;
}

.recommend-success[hidden] {
  display: none;
}

.success-check {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: 64px;
  animation: successGrow 900ms cubic-bezier(.2, 1.5, .35, 1) both;
}

@keyframes recommendPulse {
  0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 18px 44px rgba(230, 0, 18, .36); }
  50% { transform: translateY(-50%) scale(1.08); box-shadow: 0 22px 54px rgba(255, 242, 0, .5); }
}

@keyframes successGrow {
  0% { transform: scale(.25) rotate(-12deg); opacity: 0; }
  55% { transform: scale(1.32) rotate(4deg); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 820px) {
  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: clamp(170px, 48vw, 230px);
    max-height: 52px;
  }

  .search-form {
    grid-column: 1 / -1;
    order: 3;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-panel.is-open {
    display: grid;
    gap: 0;
    padding: 4px 20px 14px;
    border-top: 1px solid rgba(111, 75, 216, 0.12);
  }

  .mobile-panel a,
  .mobile-menu-group > summary {
    padding: 12px 4px;
    border: 0;
    border-bottom: 1px solid rgba(111, 75, 216, 0.12);
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 800;
  }

  .mobile-menu-group {
    border: 0;
  }

  .mobile-menu-group > summary {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu-group > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-group > summary::after {
    content: "+";
    color: var(--violet);
    font-weight: 900;
  }

  .mobile-menu-group[open] > summary::after {
    content: "-";
  }

  .mobile-submenu {
    display: grid;
    padding: 2px 0 8px 14px;
    border-bottom: 1px solid rgba(111, 75, 216, 0.12);
  }

  .mobile-submenu a {
    padding: 9px 4px;
    border-bottom: 0;
    color: #455169;
    font-weight: 700;
  }

  .mobile-submenu .mobile-menu-parent {
    color: var(--violet);
    font-weight: 800;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .hero-stack {
    min-height: 260px;
  }

  .floating-book {
    width: 128px;
    height: 188px;
  }

  .book-b {
    left: 112px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

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

  .book-detail-layout {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    position: static;
    max-width: 260px;
  }

  .featured-cover {
    max-width: 250px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .recommend-tab {
    top: auto;
    right: 12px;
    bottom: 16px;
    transform: none;
    border-radius: 999px;
    padding: 12px 16px;
  }

  .recommend-tab span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  @keyframes recommendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
  }
}

@media (max-width: 640px) {
  .header-shell {
    padding-inline: 14px;
  }

  .brand-logo {
    width: min(58vw, 210px);
    max-height: 48px;
  }

  .category-strip {
    padding-inline: 14px;
  }

  .main-menu {
    display: none;
  }

  .hero,
  .news-carousel-section,
  .shelf-section,
  .featured,
  .site-footer {
    padding-inline: 14px;
  }

  .news-carousel {
    grid-auto-columns: minmax(246px, 82vw);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .book-row {
    grid-auto-columns: 164px;
  }

  .book-card {
    min-height: 326px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .book-facts {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
