.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 228, 240, 0.75);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 240px) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
}

.site-brand__tagline {
  color: var(--ah-muted);
  font-size: 0.88rem;
}

.site-logo,
.site-footer__logo {
  color: var(--ah-text);
  font-family: var(--ah-heading);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ah-border);
  border-radius: 14px;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ah-text);
}

.primary-nav {
  min-width: 0;
}

.primary-nav__mobile-search {
  display: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-search {
  width: min(100%, 270px);
}

.menu,
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ah-text);
  font-weight: 700;
  text-decoration: none;
}

.hero__grid,
.hero-panels,
.archive-layout,
.single-layout,
.newsletter-panel,
.summary-box,
.feature-spotlight,
.product-box__top,
.product-box__grid,
.pros-cons,
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.hero-copy {
  max-width: 44rem;
}

.hero__copy {
  max-width: 40rem;
  color: var(--ah-muted);
  font-size: 1.1rem;
}

.hero__actions,
.hero-metrics,
.hero-card__meta,
.product-box__actions,
.share-links,
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-metrics {
  margin-top: 1.4rem;
}

.hero-metric,
.hero-card,
.post-card,
.comparison-table,
.newsletter-panel,
.testimonial-card,
.faq-card,
.summary-box,
.feature-spotlight,
.product-box,
.widget-card,
.author-box,
.disclosure-box,
.methodology-box,
.recommendation-box,
.content-highlight,
.ad-slot {
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ah-shadow);
}

.hero-metric {
  min-width: 160px;
  padding: 1rem 1.05rem;
}

.hero-metric strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.hero-metric span {
  color: var(--ah-muted);
  font-size: 0.94rem;
}

.hero-card {
  padding: 1.35rem;
}

.hero-card__media {
  display: block;
  margin: 1rem 0 0;
  overflow: hidden;
  border-radius: 18px;
}

.hero-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-card h2,
.hero-card h3,
.feature-spotlight h2 {
  margin-bottom: 0.65rem;
}

.hero-card p,
.feature-spotlight p,
.post-card__excerpt,
.summary-box p,
.product-box__summary,
.widget-card p,
.faq-list p,
.archive-description {
  color: var(--ah-muted);
}

.hero-card__meta {
  justify-content: space-between;
  margin-top: 1rem;
}

.hero-card-stack {
  display: grid;
  gap: 1rem;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.archive-hero__media img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--ah-shadow);
}

.archive-hub-links {
  margin-top: 1rem;
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ah-text);
  font-weight: 700;
  text-decoration: none;
}

.category-grid,
.start-grid,
.post-grid,
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.start-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
  border: 1px solid var(--ah-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ah-shadow);
  text-decoration: none;
}

.start-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--ah-primary);
  font-weight: 800;
}

.start-card p,
.comparison-table__microcopy,
.product-box__microcopy {
  color: var(--ah-muted);
}

.category-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 170px;
  padding: 1.25rem;
  border: 1px solid var(--ah-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 251, 0.98));
  color: var(--ah-text);
  text-align: left;
  text-decoration: none;
}

.category-card__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.category-card__count,
.category-card__copy,
.comparison-table__price,
.sidebar-links--posts span {
  color: var(--ah-muted);
}

.category-card__count {
  font-size: 0.88rem;
  font-weight: 700;
}

.category-card__copy {
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.14)),
    var(--ah-surface-strong);
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ah-primary);
  font-family: var(--ah-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
}

.post-card__meta,
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.post-card__date {
  color: var(--ah-muted);
  font-size: 0.92rem;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__rating .rating-stars {
  font-size: 0.88rem;
}

.comparison-table {
  overflow: hidden;
}

.comparison-table__intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0;
}

.comparison-table__intro p:last-child {
  max-width: 34rem;
}

.comparison-table__scroll,
.entry-content .wp-block-table {
  overflow-x: auto;
}

.comparison-table table,
.entry-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td,
.entry-content th,
.entry-content td {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--ah-border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th,
.entry-content th {
  background: var(--ah-surface);
  font-size: 0.94rem;
  font-weight: 800;
}

.comparison-table__row--featured td {
  background: rgba(16, 185, 129, 0.06);
}

.comparison-table__product {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.comparison-table__winner {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--ah-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.comparison-table__badge,
.product-box__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--ah-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table__chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #9a6700;
  font-weight: 700;
}

.comparison-table__price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.94rem;
  font-weight: 700;
}

.comparison-table__microcopy {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.comparison-table__price--muted {
  font-weight: 600;
}

.comparison-table__cta,
.summary-box__cta .button {
  width: 100%;
}

.comparison-table__mobile-cta {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.comparison-table__mobile-cta strong,
.comparison-table__mobile-cta span {
  display: block;
}

.cta-banner {
  margin-bottom: 1.5rem;
  padding: 1.35rem;
}

.newsletter-panel,
.summary-box,
.product-box,
.author-box,
.disclosure-box,
.methodology-box,
.recommendation-box,
.content-highlight,
.widget-card,
.ad-slot,
.faq-card {
  padding: 1.35rem;
}

.newsletter-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
}

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

.testimonial-card {
  padding: 1.3rem;
}

.feature-spotlight {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  padding: 1.4rem;
}

.feature-spotlight__media img,
.entry-media img {
  width: 100%;
  border-radius: 20px;
}

.archive-layout,
.single-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.archive-sidebar,
.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar--sticky {
  position: sticky;
  top: 96px;
}

.entry-header {
  max-width: 52rem;
}

.entry-header--page {
  margin-bottom: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--ah-muted);
  font-size: 0.94rem;
}

.entry-media {
  margin: 0 0 1.5rem;
}

.summary-box {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  margin-bottom: 1.5rem;
}

.summary-box__meta {
  display: grid;
  gap: 1rem;
}

.summary-box__meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ah-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-box__meta strong {
  color: var(--ah-text);
}

.summary-box__cta span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

.product-box {
  margin-bottom: 1.5rem;
}

.product-box__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

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

.product-box__deal {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #9a6700;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-box__media {
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 18px;
}

.product-box__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-box__best-for,
.product-box__note,
.product-box__trust {
  color: var(--ah-muted);
}

.product-box__trust {
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.product-box__microcopy {
  margin-top: 0.45rem;
  font-size: 0.86rem;
}

.disclosure-box,
.content-highlight {
  margin-bottom: 1.5rem;
}

.disclosure-box strong,
.content-highlight strong {
  display: block;
  margin-bottom: 0.45rem;
}

.disclosure-box p,
.recommendation-box p,
.content-highlight p,
.methodology-box p {
  color: var(--ah-muted);
}

.recommendation-box,
.methodology-box {
  margin-top: 1.5rem;
}

.pros-cons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.toc-box {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-sm);
  background: rgba(37, 99, 235, 0.06);
}

.toc-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.toc-list__item + .toc-list__item {
  margin-top: 0.45rem;
}

.toc-list__item--level-3 {
  margin-left: 1rem;
}

.entry-content {
  max-width: 48rem;
  color: var(--ah-text);
  font-size: 1.06rem;
}

.entry-content > * + * {
  margin-top: 1.15rem;
}

.entry-content > p:first-child {
  color: var(--ah-muted);
  font-size: 1.16rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

.entry-content blockquote {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--ah-primary);
  border-radius: 0 16px 16px 0;
  background: rgba(37, 99, 235, 0.06);
}

.entry-content a {
  color: var(--ah-primary);
}

.entry-content .wp-block-button__link,
.entry-content .affiliate-button,
.entry-content .amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--ah-secondary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  padding: 1rem 1.05rem;
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  background: var(--ah-surface);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin-top: 0.7rem;
}

.share-links {
  margin: 1.5rem 0;
}

.share-links__label {
  color: var(--ah-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.share-links__button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  text-decoration: none;
}

.sidebar-links--posts li {
  display: grid;
  gap: 0.2rem;
}

.sidebar-links--posts span {
  font-size: 0.82rem;
}

.single-section {
  margin-top: 1.5rem;
}

.author-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.author-box img {
  border-radius: 50%;
}

.author-box__meta {
  margin-bottom: 0.65rem;
  color: var(--ah-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--ah-border);
  background: rgba(248, 250, 252, 0.92);
}

.site-footer__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  padding: 2.5rem 0;
}

.site-footer__disclosure,
.site-footer__bottom p {
  color: var(--ah-muted);
}

.site-footer__bottom {
  border-top: 1px solid var(--ah-border);
}

.site-footer__bottom-inner {
  justify-content: space-between;
  padding: 1rem 0 1.4rem;
}

.pagination-wrap {
  margin-top: 1.75rem;
}

.pagination-wrap .nav-links,
.pagination-wrap .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  text-decoration: none;
}

.pagination-wrap .current {
  background: var(--ah-primary);
  color: #ffffff;
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .site-header,
  .mobile-sticky-cta {
    background: rgba(15, 23, 42, 0.9);
  }

  .hero-metric,
  .hero-card,
  .start-card,
  .post-card,
  .comparison-table,
  .newsletter-panel,
  .testimonial-card,
  .faq-card,
  .summary-box,
  .feature-spotlight,
  .product-box,
  .widget-card,
  .author-box,
  .disclosure-box,
  .methodology-box,
  .recommendation-box,
  .content-highlight,
  .ad-slot,
  .site-footer {
    background: rgba(17, 28, 49, 0.92);
  }

  .menu-toggle,
  .search-field,
  .newsletter-form input,
  .search-submit,
  .faq-list details,
  .comparison-table__mobile-cta,
  .comparison-table th,
  .entry-content th {
    background: rgba(15, 23, 42, 0.78);
  }

  .comparison-table__chip {
    color: #f6c86b;
  }
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__mobile-search {
    display: block;
    margin-top: 1rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-search {
    display: none;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding-top: 0.75rem;
  }

  .menu a {
    min-height: 40px;
  }

  .hero__grid,
  .newsletter-panel,
  .feature-spotlight,
  .archive-hero,
  .archive-layout,
  .single-layout,
  .summary-box,
  .product-box__top,
  .product-box__grid,
  .pros-cons,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar--sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .header-tools {
    display: none;
  }

  .category-grid,
  .post-grid,
  .testimonial-grid,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .summary-box__meta,
  .product-box__actions,
  .hero-card__meta,
  .share-links,
  .site-footer__bottom-inner,
  .newsletter-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  .comparison-table table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    padding: 0 1rem 1rem;
  }

  .comparison-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ah-border);
  }

  .comparison-table td {
    padding: 0.5rem 0;
    border: 0;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ah-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .comparison-table__cta-cell .button {
    width: 100%;
  }

  .comparison-table__mobile-cta {
    display: flex;
  }

  body.single {
    padding-bottom: 92px;
  }
}
