.supptop-byline {
  margin: 12px 0 28px;
  color: var(--st-color-muted);
  font-size: 14px;
}

.supptop-byline a {
  color: var(--st-color-link);
  text-decoration: none;
}

.supptop-byline a:hover {
  text-decoration: underline;
}

.quick-summary {
  margin-block: var(--st-space-5);
  padding: var(--st-space-5);
  border: 1px solid var(--st-color-border);
  border-left: 3px solid var(--st-color-accent);
  border-radius: var(--st-radius-md);
  background: var(--st-color-surface-soft);
}

.quick-summary .qs-label {
  display: block;
  margin-bottom: var(--st-space-2);
  color: var(--st-color-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.wp-block-table th {
  padding: var(--st-space-3) var(--st-space-4);
  border: 0;
  border-bottom: 2px solid var(--st-color-border);
  background: var(--st-color-surface-soft);
  font-weight: 600;
  text-align: left;
}

.entry-content td,
.wp-block-table td {
  padding: var(--st-space-3) var(--st-space-4);
  border: 0;
  border-bottom: 1px solid var(--st-color-border);
}

.entry-content tr:hover td,
.wp-block-table tr:hover td {
  background: rgba(245, 245, 247, .5);
}

.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.cta-button,
a.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--st-color-accent) !important;
  color: #fff !important;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cta-button:hover,
a.button:hover,
.wp-block-button__link:hover {
  background: var(--st-color-accent-hover) !important;
  color: #fff;
  text-decoration: none;
}

.cta-button:focus-visible,
a.button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--st-color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--st-color-surface);
}

.product-block {
  padding: var(--st-space-5);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface);
  box-shadow: var(--st-shadow-sm);
}

.product-block h3 {
  margin-block: 0 var(--st-space-3);
  color: var(--st-color-heading);
}

.product-block .pros,
.product-block .cons,
.product-block ul {
  margin-block: var(--st-space-4);
}

.product-block li + li {
  margin-top: var(--st-space-2);
}

.supptop-hero .cta-button {
  background: var(--st-color-accent);
  color: #fff;
}

.supptop-cat .cat-desc {
  display: block;
  margin-top: var(--st-space-2);
}

@media (min-width: 1025px) {
  .site-header-row-container-inner,
  .site-main-header-inner-wrap {
    min-height: 72px;
  }

  .main-navigation .primary-menu-container > ul {
    gap: var(--st-space-4);
  }
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
  color: var(--st-color-text);
  font-size: 15px;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
  color: var(--st-color-accent);
}

.mobile-toggle-open-container .menu-toggle-open {
  min-width: 44px;
  min-height: 44px;
}

.site-footer {
  padding-top: var(--st-space-6);
  border-top: 1px solid var(--st-color-border);
  color: var(--st-color-muted);
  font-size: 14px;
}

@media (max-width: 767px) {
  .quick-summary,
  .product-block {
    padding: var(--st-space-4);
  }

  .product-block {
    display: block;
  }
}

/* STEP08: transparent review data and dynamic content-type hubs. */
.supptop-transparency-bar,
.supptop-verdict,
.supptop-dynamic-hub,
.supptop-dynamic-hub * {
  box-sizing: border-box;
}

.supptop-transparency-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin: 0 0 var(--st-space-5);
  padding-block: var(--st-space-2);
  border-block: 1px solid var(--st-color-border);
  color: var(--st-color-muted);
  font-size: 13px;
}

.supptop-transparency-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.supptop-verdict {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--st-space-4);
  margin-block: var(--st-space-5) var(--st-space-6);
  padding: var(--st-space-5);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface-soft);
}

.supptop-verdict > h2,
.supptop-verdict-product,
.supptop-verdict-text,
.supptop-verdict-facts,
.supptop-verdict-source {
  grid-column: 1 / -1;
}

.supptop-verdict > h2,
.supptop-verdict h3,
.supptop-verdict p,
.supptop-verdict ul,
.supptop-verdict dl {
  margin-block: 0;
}

.supptop-verdict-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-3) var(--st-space-5);
}

.supptop-verdict-facts div {
  display: flex;
  gap: var(--st-space-2);
}

.supptop-verdict-facts dt {
  color: var(--st-color-muted);
}

.supptop-verdict-score dd,
.supptop-verdict-evidence dd {
  font-weight: 600;
}

.supptop-dynamic-hub {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.supptop-dynamic-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--st-space-5);
}

.supptop-dynamic-hub-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface);
  box-shadow: var(--st-shadow-sm);
}

.supptop-dynamic-hub-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--st-color-surface-soft);
}

.supptop-dynamic-hub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supptop-dynamic-hub-card-body {
  padding: var(--st-space-5);
}

.supptop-dynamic-hub-card time {
  color: var(--st-color-muted);
  font-size: 13px;
}

.supptop-dynamic-hub-card h2 {
  margin-block: var(--st-space-2) var(--st-space-3);
  font-size: clamp(20px, 2vw, 24px);
}

.supptop-dynamic-hub-card p {
  color: var(--st-color-muted);
}

/* Kadence emits an empty author anchor when the display name is empty. */
.entry-meta .posted-by:has(.author.vcard a:empty) {
  display: none;
}

@media (max-width: 1024px) {
  .supptop-dynamic-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .supptop-transparency-bar {
    align-items: flex-start;
  }

  .supptop-verdict,
  .supptop-dynamic-hub-grid {
    grid-template-columns: 1fr;
  }

  .supptop-verdict,
  .supptop-dynamic-hub-card-body {
    padding: var(--st-space-4);
  }
}

/* STEP06: Answer First and product-block hierarchy. */
.quick-summary {
  max-width: 100%;
  margin-block: var(--st-space-5) var(--st-space-6);
  padding: var(--st-space-5) var(--st-space-6);
  border: 0;
  border-left: 4px solid var(--st-color-accent);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface-soft);
  color: var(--st-color-text);
  overflow-wrap: anywhere;
}

.quick-summary.qs-no-native-label::before {
  display: block;
  margin-bottom: var(--st-space-2);
  color: var(--st-color-heading);
  content: "Quick Answer";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quick-summary.qs-has-native-label::before {
  content: none;
}

.quick-summary p,
.quick-summary ul,
.quick-summary ol {
  margin-block: 0 var(--st-space-4);
}

.quick-summary p:last-child,
.quick-summary ul:last-child,
.quick-summary ol:last-child {
  margin-bottom: 0;
}

.quick-summary strong {
  color: inherit;
}

.quick-summary a {
  color: var(--st-color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-summary table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.product-block {
  margin-block: var(--st-space-6);
  padding: var(--st-space-6);
  border-color: var(--st-color-border);
  box-shadow: var(--st-shadow-sm);
  overflow: hidden;
}

.product-block h2,
.product-block h3,
.product-block .product-name {
  margin-top: 0;
  color: var(--st-color-heading);
  font-weight: 700;
}

.product-block .pros,
.product-block .cons {
  padding: var(--st-space-4);
  border-radius: var(--st-radius-md);
  background: var(--st-color-surface-soft);
}

.product-block .pros ul,
.product-block .cons ul {
  margin-bottom: 0;
}

.product-block img {
  width: auto;
  max-width: min(100%, 320px);
  max-height: 320px;
  object-fit: contain;
}

.product-block .cta-button,
.product-block a.button,
.product-block .wp-block-button__link {
  min-width: 180px;
}

@media (max-width: 767px) {
  .quick-summary {
    padding: 20px;
  }

  .product-block {
    display: block;
    padding: 20px;
  }

  .product-block .cta-button,
  .product-block a.button,
  .product-block .wp-block-button__link {
    width: 100%;
  }
}

/* STEP06B: keep the answer inside the first screen (display-layer only; disable to restore). */
/* Kadence "position-behind" sizes the featured-image box via inline padding-bottom (ratio box);
   the inner wrapper is absolutely positioned, so the container itself needs an explicit height. */
.single-post .post-thumbnail.article-post-thumbnail {
  padding-bottom: 0 !important;
  height: clamp(200px, 30vh, 280px);
  overflow: hidden;
}

.single-post .post-thumbnail.article-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post .entry-content {
  display: flex;
  flex-direction: column;
}

.single-post .entry-content > h1 {
  order: -3;
  margin-top: 0;
}

.single-post .entry-content > .supptop-byline {
  order: -2;
}

.single-post .entry-content > .quick-summary {
  order: -1;
  margin-top: var(--st-space-4);
}

.single-post .entry-content > figure:first-child img {
  width: auto;
  max-width: 100%;
  max-height: clamp(240px, 40vh, 380px);
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .single-post .post-thumbnail img {
    max-height: 300px;
  }
}

/* STEP07: Homepage IA and Hub navigation. */
.supptop-front-page,
.supptop-front-page *,
.supptop-hub-bar,
.supptop-hub-bar * {
  box-sizing: border-box;
}

.supptop-front-page {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.supptop-front-hero {
  padding: var(--st-space-7) var(--st-space-6);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface-soft);
  text-align: center;
}

.supptop-front-hero h1 {
  max-width: 820px;
  margin: 0 auto var(--st-space-3);
}

.supptop-front-intro {
  max-width: 720px;
  margin: 0 auto var(--st-space-5);
  color: var(--st-color-muted);
}

.supptop-search {
  display: flex;
  width: min(100%, 680px);
  margin-inline: auto;
}

.supptop-search input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-md) 0 0 var(--st-radius-md);
  background: var(--st-color-surface);
  color: var(--st-color-text);
}

.supptop-search button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--st-color-accent);
  border-radius: 0 var(--st-radius-md) var(--st-radius-md) 0;
  background: var(--st-color-accent);
  color: #fff;
  font-weight: 600;
}

.supptop-search input:focus-visible,
.supptop-search button:focus-visible,
.supptop-front-page a:focus-visible,
.supptop-hub-bar a:focus-visible {
  outline: 2px solid var(--st-color-accent);
  outline-offset: 2px;
}

.supptop-front-links,
.supptop-hub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--st-space-4);
}

.supptop-front-links {
  margin-top: var(--st-space-4);
}

.supptop-front-links a,
.supptop-trust-strip a,
.supptop-hub-links a {
  color: var(--st-color-link);
  font-weight: 600;
  text-decoration: none;
}

.supptop-front-links a:hover,
.supptop-trust-strip a:hover,
.supptop-hub-links a:hover,
.supptop-methodology > a:hover {
  text-decoration: underline;
}

.supptop-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--st-space-3);
  margin-block: var(--st-space-5) var(--st-space-7);
  padding: var(--st-space-4);
  border-block: 1px solid var(--st-color-border);
  text-align: center;
}

.supptop-latest,
.supptop-methodology {
  margin-block: var(--st-space-7);
}

.supptop-latest-grid,
.supptop-hubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--st-space-5);
}

.supptop-latest-card,
.supptop-hub-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface);
  box-shadow: var(--st-shadow-sm);
}

.supptop-latest-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--st-color-surface-soft);
}

.supptop-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supptop-latest-card-body,
.supptop-hub-card {
  padding: var(--st-space-5);
}

.supptop-latest-card time {
  color: var(--st-color-muted);
  font-size: 13px;
}

.supptop-latest-card h3,
.supptop-hub-card h2 {
  margin-block: var(--st-space-2) var(--st-space-3);
}

.supptop-latest-card h3 a,
.supptop-hub-card > a,
.supptop-methodology > a {
  color: var(--st-color-link);
}

.supptop-latest-card p,
.supptop-hub-card p {
  color: var(--st-color-muted);
}

.supptop-methodology {
  padding: var(--st-space-6);
  border-radius: var(--st-radius-lg);
  background: var(--st-color-surface-soft);
}

.supptop-methodology ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--st-space-5);
  margin-block: var(--st-space-5);
  padding-left: 24px;
}

.supptop-hub-bar {
  display: flex;
  align-items: center;
  gap: var(--st-space-4);
  max-width: 100%;
  margin-block: var(--st-space-4) var(--st-space-6);
  padding: var(--st-space-3) var(--st-space-4);
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-radius-md);
  background: var(--st-color-surface-soft);
}

.supptop-hub-bar .supptop-search {
  width: auto;
  min-width: 280px;
  flex: 1;
  margin: 0;
}

.supptop-hub-links {
  flex: 0 0 auto;
}

.supptop-hub-links .is-current {
  color: var(--st-color-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .supptop-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supptop-hubs,
  .supptop-methodology ol {
    grid-template-columns: 1fr;
  }

  .supptop-hub-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .supptop-hub-bar .supptop-search {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .supptop-front-hero,
  .supptop-methodology {
    padding: var(--st-space-5) var(--st-space-4);
  }

  .supptop-search button {
    padding-inline: 12px;
  }

  .supptop-trust-strip,
  .supptop-latest-grid {
    grid-template-columns: 1fr;
  }

  .supptop-trust-strip {
    text-align: left;
  }

  .supptop-latest-card-body,
  .supptop-hub-card {
    padding: var(--st-space-4);
  }

  .supptop-hub-links {
    gap: var(--st-space-3);
  }
}
