body {
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  color: #333333;
  background:
    radial-gradient(circle at top left, rgba(183, 37, 132, 0.08), transparent 25%),
    radial-gradient(circle at top right, rgba(255, 111, 97, 0.08), transparent 24%),
    #fffdf8;
}

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

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: #b72584;
  color: #fff;
  font-size: 14px;
}

.topbar-inner,
.nav-main,
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-inner,
.menu-row {
  min-height: 42px;
}

.top-links,
.menu-links,
.hero-actions,
.cta-row,
.user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-main {
  min-height: 76px;
}

.logo {
  height: 58px;
}

.hero,
.section-card,
.data-card,
.cta-card,
.mini-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.hero,
.section-card {
  border-radius: 32px;
}

.data-card,
.cta-card,
.mini-card {
  border-radius: 24px;
}

.btn,
.pill,
.menu-link.active {
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.btn-primary {
  background: #b72584;
  color: #fff;
  border-color: transparent;
}

.btn-accent {
  background: #ff6f61;
  color: #fff;
  border-color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(183, 37, 132, 0.08);
  color: #b72584;
}

.menu-link {
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
}

.menu-link.active {
  background: rgba(183, 37, 132, 0.1);
  color: #b72584;
}

.hero-grid,
.section-grid,
.data-grid,
.three-grid,
.user-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  padding: 28px 0;
}

.hero {
  padding: 26px;
}

.hero h1,
.section-card h2 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.12;
}

.hero p.lead,
.section-copy {
  margin: 10px 0 0;
  color: #666;
  line-height: 1.7;
  font-size: 15px;
}

.hero-side {
  display: grid;
  gap: 12px;
}

.data-card,
.cta-card,
.mini-card {
  padding: 14px;
}

.cover-thumb,
.publisher-mark {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #f7f1f5;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cover-thumb {
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
}

.publisher-mark {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.cover-thumb--empty,
.publisher-mark--empty {
  display: grid;
  place-items: center;
  color: #9a6f87;
  font-weight: 700;
}

.data-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b72584;
}

.data-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
}

.data-copy {
  margin-top: 6px;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

.section {
  padding: 0 0 24px;
}

.section-card {
  padding: 20px;
}

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

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

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

.book-title,
.news-title,
.school-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.meta {
  margin-top: 8px;
  color: #7a7a7a;
  font-size: 14px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 240px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 16px;
  font: inherit;
}

.empty {
  padding: 22px;
  text-align: center;
  color: #777;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 24px;
}

.footer {
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 22px 0;
}

.tiny {
  font-size: 13px;
  color: #777;
}

.article-body {
  color: #444;
  line-height: 1.8;
  font-size: 15px;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  color: #222;
  line-height: 1.2;
  margin: 1.3em 0 0.5em;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1em;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .three-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-main,
  .topbar-inner,
  .menu-row,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .section-card h2 {
    font-size: 28px;
  }
}
