@layer theme, base, components, utilities, blocks, template;
@layer template {
:root {
  --mbu-gold: #dca54a;
  --mbu-gold-ink: #85590d;
  --mbu-green: #487366;
  --mbu-hero: linear-gradient(135deg, #fff5cb 0%, #d7eedc 45%, #b6e3d4 65%, #33a7b5 100%);
}

 
.dd-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.dd-menu a { font-weight: 500; }

 
.dd-main .dd-search[data-w='full']:first-child { margin-top: -24px; }
.dd-search[data-w='full'] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--mbu-hero);
  padding-block: clamp(64px, 9vw, 120px) clamp(104px, 12vw, 160px);
}
.dd-search[data-w='full']::before,
.dd-search[data-w='full']::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.dd-search[data-w='full']::before {
  width: 560px; height: 560px;
  inset-inline-end: -160px; top: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
}
.dd-search[data-w='full']::after {
  width: 420px; height: 420px;
  inset-inline-start: -140px; bottom: -220px;
  background: radial-gradient(circle, rgba(220, 165, 74, 0.35) 0%, rgba(220, 165, 74, 0) 70%);
}
.dd-search[data-w='full'] :is(h1, h2) {
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink);
}
.dd-search[data-w='full'] h1::before {
  content: 'MBU LIBRARY';
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--mbu-gold-ink);
}
.dd-search[data-w='full'] p { color: var(--ink-2); font-size: 1.05rem; }
.dd-search[data-w='full'] form {
  max-width: 780px;
  border-color: transparent;
  box-shadow: 0 24px 56px -28px rgba(23, 35, 31, 0.55), 0 2px 6px rgba(23, 35, 31, 0.06);
}
.dd-search[data-w='full'] nav a {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  backdrop-filter: blur(6px);
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}
.dd-search[data-w='full'] nav a:hover { background: #fff; border-color: var(--mbu-gold); }

 
.dd-hero[data-w='full']:has(+ .dd-block .lg-overlap) { padding-bottom: clamp(104px, 11vw, 148px); }

 
.dd-cta[data-variant='centered'] h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  text-wrap: balance;
}

 
.dd-bookshelf > h2::after,
.dd-cards > h2::after,
.dd-posts > h2::after,
.dd-faq > h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--mbu-gold);
}

 
.dd-book-cover img { border-radius: 6px; }
.dd-bookshelf .dd-book { transition: transform 0.18s ease-out; }
.dd-bookshelf .dd-book:hover { transform: translateY(-3px); }

 
.dd-button { font-weight: 600; }

 
.dd-footer { border-top: 4px solid var(--mbu-gold); }
.dd-footer-text { line-height: 1.7; }

@media (max-width: 860px) {
  .dd-search[data-w='full'] { padding-block: 56px 96px; }
  .dd-search[data-w='full'] :is(h1, h2) { font-size: clamp(1.6rem, 7.4vw, 2.4rem); }
  .dd-search[data-w='full']::before { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-bookshelf .dd-book, .dd-search[data-w='full'] nav a { transition: none; }
  .dd-bookshelf .dd-book:hover { transform: none; }
}
}
