/*
Theme Name: BP Ungdom Medical
Theme URI: https://bp-ungdom.dk/
Author: ChatGPT
Author URI: https://openai.com/
Description: Fast responsive Danish medical/psychology theme for bp-ungdom.dk with carousel homepage, article grids, contact submissions and a custom gradient CTA block.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bp-ungdom
*/

:root {
  --bpu-blue: #4f7fdc;
  --bpu-blue-dark: #1c4aa3;
  --bpu-ink: #182033;
  --bpu-muted: #667085;
  --bpu-soft: #f5f7ff;
  --bpu-lavender: #9381c7;
  --bpu-lavender-soft: #ece8ff;
  --bpu-mint: #dff7f1;
  --bpu-border: #e6e9f2;
  --bpu-white: #ffffff;
  --bpu-shadow: 0 18px 48px rgba(31, 48, 94, 0.12);
  --bpu-shadow-soft: 0 10px 28px rgba(31, 48, 94, 0.09);
  --bpu-radius: 22px;
  --bpu-radius-lg: 30px;
  --bpu-container: 1180px;
  --bpu-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bpu-font);
  color: var(--bpu-ink);
  background:
    radial-gradient(circle at 7% 0%, rgba(147, 129, 199, 0.14), transparent 31rem),
    radial-gradient(circle at 95% 14%, rgba(79, 127, 220, 0.12), transparent 25rem),
    #fff;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--bpu-blue-dark); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { color: #713fb8; }

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--bpu-ink);
  color: #fff;
  border-radius: 12px;
}

.bpu-container,
.site-main,
.site-footer__inner,
.site-header__inner {
  width: min(calc(100% - 36px), var(--bpu-container));
  margin-inline: auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 233, 242, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-branding { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; }
.site-logo-link { display: inline-flex; align-items: center; line-height: 1; text-decoration: none; }
.site-logo { width: clamp(172px, 19vw, 255px); height: auto; display: block; }
.custom-logo-link img { width: clamp(172px, 19vw, 255px); height: auto; max-height: 56px; object-fit: contain; display: block; }

.primary-navigation { flex: 1 1 auto; display: flex; justify-content: center; }
.primary-navigation ul,
.footer-menu ul { list-style: none; display: flex; align-items: center; gap: 34px; padding: 0; margin: 0; }
.primary-navigation a {
  color: #2c3140;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--bpu-blue-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-search {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bpu-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--bpu-ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.header-search:hover { transform: translateY(-1px); border-color: var(--bpu-blue); }
.mobile-menu-toggle { display: none; }

.bpu-btn,
.wp-block-button__link,
button.bpu-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--bpu-blue), #7d65c7);
  box-shadow: 0 13px 28px rgba(79, 127, 220, 0.24);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bpu-btn:hover,
.wp-block-button__link:hover,
button.bpu-submit:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 127, 220, 0.3); }
.bpu-btn--ghost { background: #fff; color: var(--bpu-blue-dark); box-shadow: inset 0 0 0 1px var(--bpu-border); }
.bpu-btn--ghost:hover { color: var(--bpu-blue-dark); }

.hero-carousel-wrap {
  width: min(calc(100% - 36px), 1320px);
  margin: 30px auto 0;
}
.bpu-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 430px;
  background: linear-gradient(120deg, #8d78bf, #c2b6e5);
  box-shadow: var(--bpu-shadow-soft);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide__link { display: block; min-height: 430px; color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.hero-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide__fallback { position: absolute; inset: 0; background: linear-gradient(120deg, #8b73c2, #bdafe0 62%, #9bb8ef); }
.hero-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 24, 35, 0.02) 35%, rgba(34, 31, 60, 0.63) 100%);
}
.hero-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 8%;
  background: rgba(72, 67, 101, 0.52);
  backdrop-filter: blur(3px);
}
.hero-slide__title {
  margin: 0 0 3px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 850;
}
.hero-slide__meta { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: rgba(255,255,255,.92); }
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.22);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(9px);
}
.carousel-control.prev { left: 16px; }
.carousel-control.next { right: 16px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 13px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0; background: rgba(255,255,255,.62); cursor: pointer; }
.carousel-dots button.is-active { width: 22px; border-radius: 999px; background: #fff; }

.home-intro {
  width: min(calc(100% - 36px), 880px);
  margin: 46px auto 64px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--bpu-radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,247,255,.96)),
    radial-gradient(circle at 88% 12%, rgba(223,247,241,.8), transparent 260px);
  box-shadow: var(--bpu-shadow-soft);
  border: 1px solid rgba(230, 233, 242, 0.82);
}
.home-intro h1,
.page-hero h1,
.archive-header h1,
.entry-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: var(--bpu-ink);
}
.home-intro p { font-size: 1.08rem; color: #3e4659; }
.bpu-disclaimer {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79,127,220,.10), rgba(147,129,199,.14));
  border: 1px solid rgba(79,127,220,.16);
  color: #384153;
  font-size: .98rem;
}
.bpu-disclaimer strong { color: var(--bpu-blue-dark); }

.page-hero,
.archive-header,
.search-header {
  margin: 36px 0 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--bpu-radius-lg);
  background: linear-gradient(135deg, #f8f9ff, #efeaff 72%, #e8f8f4);
  border: 1px solid var(--bpu-border);
}
.archive-header p { max-width: 760px; color: var(--bpu-muted); margin: 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 58px;
}
.post-card {
  border-radius: var(--bpu-radius);
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(230,233,242,.95);
  box-shadow: 0 10px 26px rgba(31,48,94,.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--bpu-shadow-soft); }
.post-card__image { display: block; aspect-ratio: 1.55 / 1; background: linear-gradient(135deg, #dfe8ff, #eee8ff); overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__category { color: var(--bpu-blue-dark); font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 9px; }
.post-card__title { font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.03em; }
.post-card__title a { color: var(--bpu-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--bpu-blue-dark); }
.post-card__meta,
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--bpu-muted); font-size: .94rem; }
.post-card__excerpt { color: #4e5668; margin: 14px 0 18px; }
.post-card__read { margin-top: auto; font-weight: 800; text-decoration: none; }

.entry-header { margin: 34px 0 24px; }
.entry-kicker { color: var(--bpu-blue-dark); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: .84rem; margin-bottom: 12px; }
.entry-featured {
  margin: 24px 0 32px;
  overflow: hidden;
  border-radius: var(--bpu-radius-lg);
  box-shadow: var(--bpu-shadow-soft);
  background: #eef1fb;
}
.entry-featured img { width: 100%; display: block; max-height: 620px; object-fit: cover; }
.entry-content,
.page-content { width: min(100%, 820px); margin-inline: auto; }
.entry-content > *,
.page-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content p,
.page-content p { color: #303848; }
.entry-content h2,
.page-content h2 { font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -0.045em; margin-top: 2em; margin-bottom: .65em; }
.entry-content h3,
.page-content h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.18; letter-spacing: -0.03em; margin-top: 1.7em; }
.entry-content h4,
.page-content h4 { font-size: 1.22rem; margin-top: 1.5em; }
.entry-content a:not(.bpu-btn):not(.wp-block-button__link),
.page-content a:not(.bpu-btn):not(.wp-block-button__link) {
  font-weight: 750;
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(79,127,220,.24), rgba(147,129,199,.24));
  background-size: 100% .36em;
  background-repeat: no-repeat;
  background-position: 0 88%;
  border-radius: 4px;
}
.entry-content strong,
.page-content strong { color: #12182a; font-weight: 850; }
.entry-content em,
.page-content em { color: #4c3d7a; }
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol { padding-left: 1.25em; }
.entry-content li,
.page-content li { margin-bottom: .55em; padding-left: .18em; }
.entry-content ul li::marker,
.page-content ul li::marker { color: var(--bpu-blue); }
.entry-content ol li::marker,
.page-content ol li::marker { color: var(--bpu-blue-dark); font-weight: 850; }
.entry-content blockquote,
.page-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 28px 30px 28px 76px;
  border: 1px solid rgba(79,127,220,.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245,247,255,.95), rgba(236,232,255,.8));
  color: #263048;
  box-shadow: 0 12px 32px rgba(31,48,94,.07);
}
.entry-content blockquote::before,
.page-content blockquote::before {
  content: "✚";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--bpu-blue), var(--bpu-lavender));
  font-size: 1rem;
  box-shadow: 0 9px 20px rgba(79,127,220,.22);
}
.entry-content blockquote p:last-child,
.page-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-separator { border: 0; height: 1px; background: var(--bpu-border); margin: 2.4em 0; }
.entry-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  border: 1px solid var(--bpu-border);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entry-content table tbody,
.entry-content table thead,
.page-content table tbody,
.page-content table thead { display: table; width: 100%; }
th, td { border-bottom: 1px solid var(--bpu-border); padding: 14px 16px; text-align: left; vertical-align: top; min-width: 130px; }
th { background: #f4f7ff; color: var(--bpu-ink); font-weight: 850; }
tr:last-child td { border-bottom: 0; }

.post-footer { width: min(100%, 820px); margin: 40px auto 70px; }
.author-box {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--bpu-border);
  border-radius: 24px;
  background: #fff;
  display: flex;
  gap: 16px;
  align-items: center;
}
.author-box img { border-radius: 50%; width: 66px; height: 66px; }
.author-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.author-box p { margin: 0; color: var(--bpu-muted); font-size: .95rem; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 70px; }
.page-numbers,
.nav-links a,
.nav-links span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bpu-border);
  text-decoration: none;
  font-weight: 800;
}
.page-numbers.current,
.nav-links .current { background: var(--bpu-blue); color: #fff; border-color: var(--bpu-blue); }

.bpu-product-card {
  width: min(100%, 980px);
  margin: 2.3em auto;
  border-radius: 30px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.36), transparent 240px),
    linear-gradient(135deg, #4f7fdc, #8b6ac7 70%, #a998db);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  box-shadow: 0 20px 54px rgba(79,127,220,.22);
  overflow: hidden;
}
.bpu-product-card.is-reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.bpu-product-card.is-reverse .bpu-product-card__media { order: 2; }
.bpu-product-card__media {
  min-height: 230px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
}
.bpu-product-card__media img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; display: block; }
.bpu-product-card__placeholder { font-size: 3rem; opacity: .78; }
.bpu-product-card__eyebrow { margin: 0 0 8px; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; color: rgba(255,255,255,.82); }
.bpu-product-card h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.045em; }
.bpu-product-card p { color: rgba(255,255,255,.92); margin: 0 0 18px; }
.bpu-product-card .bpu-btn { background: #fff; color: var(--bpu-blue-dark); box-shadow: 0 14px 28px rgba(24,32,51,.16); }

.bpu-contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: start; margin-bottom: 70px; }
.bpu-contact-form {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--bpu-radius-lg);
  background: #fff;
  border: 1px solid var(--bpu-border);
  box-shadow: var(--bpu-shadow-soft);
}
.bpu-form-row { margin-bottom: 16px; }
.bpu-contact-form label { display: block; font-weight: 850; margin-bottom: 7px; color: var(--bpu-ink); }
.bpu-contact-form input,
.bpu-contact-form textarea,
.search-form input[type="search"] {
  width: 100%;
  border: 1px solid var(--bpu-border);
  border-radius: 16px;
  padding: 13px 15px;
  font: inherit;
  color: var(--bpu-ink);
  background: #fbfcff;
}
.bpu-contact-form textarea { min-height: 170px; resize: vertical; }
.bpu-contact-form input:focus,
.bpu-contact-form textarea:focus,
.search-form input[type="search"]:focus { outline: 3px solid rgba(79,127,220,.18); border-color: var(--bpu-blue); }
.bpu-notice { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; font-weight: 700; }
.bpu-notice.success { background: #e8fbf3; color: #176047; }
.bpu-notice.error { background: #fff1f0; color: #9b2c2c; }
.bpu-hp-field { position: absolute; left: -9999px; opacity: 0; }

.search-form { display: flex; gap: 10px; max-width: 620px; }
.search-form .search-submit { white-space: nowrap; }

.not-found-card {
  margin: 54px auto 80px;
  max-width: 760px;
  text-align: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 34px;
  background: linear-gradient(135deg, #f8f9ff, #eeeaff 70%, #e6f8f3);
  border: 1px solid var(--bpu-border);
  box-shadow: var(--bpu-shadow-soft);
}
.not-found-symbol {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bpu-blue), var(--bpu-lavender));
  color: #fff;
  font-size: 3rem;
  box-shadow: 0 16px 36px rgba(79,127,220,.25);
}
.not-found-card h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1; margin: 0 0 14px; letter-spacing: -0.06em; }

.site-footer {
  margin-top: 70px;
  background: #12182a;
  color: rgba(255,255,255,.78);
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
}
.site-footer__inner { padding: 44px 0 34px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); gap: 30px; align-items: start; }
.footer-logo { width: 190px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 470px; }
.footer-menu h2 { font-size: 1rem; margin: 0 0 14px; color: #fff; }
.footer-menu ul { align-items: flex-start; flex-direction: column; gap: 9px; }
.footer-menu a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpu-contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 18px; }
  .site-header__inner { min-height: 72px; width: min(calc(100% - 24px), var(--bpu-container)); gap: 12px; }
  .site-logo { width: clamp(150px, 46vw, 205px); }
  .custom-logo-link img { width: clamp(150px, 46vw, 205px); max-height: 52px; }
  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bpu-border);
    background: #fff;
    color: var(--bpu-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .mobile-menu-toggle span { width: 19px; height: 2px; background: currentColor; display: block; border-radius: 2px; }
  .header-search { width: 42px; height: 42px; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    justify-content: stretch;
    padding: 14px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--bpu-border);
    border-radius: 22px;
    box-shadow: var(--bpu-shadow-soft);
  }
  .site-header.is-menu-open .primary-navigation { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-navigation a { display: block; padding: 12px 14px; border-radius: 14px; }
  .primary-navigation a:hover { background: var(--bpu-soft); }
  .hero-carousel-wrap { width: min(calc(100% - 20px), 1320px); margin-top: 18px; }
  .bpu-carousel,
  .hero-slide__link { min-height: 390px; }
  .hero-slide__content { min-height: 150px; padding: 22px 11% 28px; }
  .carousel-control { display: none; }
  .home-intro,
  .bpu-container,
  .site-main,
  .site-footer__inner { width: min(calc(100% - 24px), var(--bpu-container)); }
  .posts-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card__body { padding: 18px; }
  .entry-content blockquote,
  .page-content blockquote { padding: 70px 20px 22px; }
  .entry-content blockquote::before,
  .page-content blockquote::before { left: 20px; top: 20px; }
  .bpu-product-card,
  .bpu-product-card.is-reverse { grid-template-columns: 1fr; padding: 18px; border-radius: 24px; }
  .bpu-product-card.is-reverse .bpu-product-card__media { order: 0; }
  .bpu-product-card__media,
  .bpu-product-card__media img { min-height: 210px; }
  .author-box { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
}

@media (max-width: 480px) {
  body { font-size: 18px; }
  .entry-title,
  .home-intro h1,
  .page-hero h1,
  .archive-header h1 { font-size: clamp(2.05rem, 12vw, 3rem); }
  .hero-slide__title { font-size: clamp(1.72rem, 8vw, 2.3rem); }
  .hero-slide__meta { font-size: 1rem; }
  .bpu-carousel,
  .hero-slide__link { min-height: 360px; }
  .site-header__inner { min-height: 68px; }
  .site-logo { width: clamp(138px, 50vw, 178px); }
  .custom-logo-link img { width: clamp(138px, 50vw, 178px); }
  .header-actions { gap: 8px; }
  .entry-featured { border-radius: 22px; }
  th, td { padding: 12px 14px; min-width: 145px; }
}
