/*
Theme Name: Hardware Wallet Review
Theme URI: https://example.com/
Author: Hardware Wallet Review Hub
Description: Editorial WordPress theme for hardware wallet reviews, comparisons, guides, FAQs, resources, and decision tools.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: hardware-wallet-review
*/

:root {
  --hwr-ink: #0e0e0c;
  --hwr-muted: #3d3c39;
  --hwr-subtle: #7a7870;
  --hwr-border: #dedbd1;
  --hwr-panel: #ffffff;
  --hwr-panel-soft: #eceae3;
  --hwr-page: #f5f3ee;
  --hwr-blue: #1a4fdb;
  --hwr-blue-dark: #0d35a0;
  --hwr-ellipal: #e85d2a;
  --hwr-green: #0e9e5a;
  --hwr-amber: #e8860a;
  --hwr-red: #d93b3b;
  --hwr-navy: #0e0e0c;
  --hwr-width: 1180px;
  --hwr-reading: 760px;
  --hwr-radius: 8px;
  --hwr-shadow: 0 18px 42px rgba(14, 14, 12, 0.08);
  --hwr-serif: Lora, Georgia, "Times New Roman", serif;
  --hwr-sans: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hwr-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hwr-page);
  color: var(--hwr-ink);
  font-family: var(--hwr-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--hwr-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--hwr-blue-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.7rem 1rem;
  background: #ffffff;
  color: var(--hwr-ink);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--hwr-border);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.hwr-container {
  width: min(var(--hwr-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 72px;
}

.site-branding {
  display: flex;
  width: min(100%, 420px);
  min-width: 0;
  max-width: 100%;
  gap: 0.75rem;
  align-items: center;
  color: var(--hwr-ink);
  text-decoration: none;
}

.site-branding__text {
  min-width: 0;
  max-width: 100%;
}

.site-branding__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--hwr-navy);
  color: #ffffff;
  font-weight: 900;
  overflow: hidden;
}

.site-branding__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-branding__name {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-branding__tagline {
  display: block;
  max-width: 32rem;
  overflow: hidden;
  color: var(--hwr-muted);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-navigation {
  justify-self: center;
  min-width: 0;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  min-width: 0;
}

.main-navigation a,
.header-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  color: var(--hwr-ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.main-navigation a:hover,
.header-tools a:hover {
  background: #ffffff;
  color: var(--hwr-blue);
}

.header-tools {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 1440px) and (min-width: 981px) {
  .site-header__inner {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .site-branding {
    gap: 0.6rem;
  }

  .site-branding__tagline {
    max-width: 18rem;
  }

  .main-navigation a,
  .header-tools a {
    padding-inline: 0.42rem;
    font-size: 0.84rem;
  }
}

.menu-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid var(--hwr-border);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  background: #ffffff;
  color: var(--hwr-ink);
  font-weight: 800;
}

.site-main {
  padding: 2rem 0 3rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.home-hero__copy,
.home-hero__media,
.home-panel,
.post-card,
.archive-header,
.article-shell,
.page-shell,
.tool-strip,
.methodology-band {
  border: 1px solid var(--hwr-border);
  border-radius: var(--hwr-radius);
  background: var(--hwr-panel);
  box-shadow: var(--hwr-shadow);
}

.home-hero__copy {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.home-hero__copy h1,
.archive-header h1,
.entry-title {
  margin: 0 0 0.75rem;
  font-family: var(--hwr-serif);
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-hero__copy p {
  max-width: 64ch;
  margin: 0 0 1rem;
  color: var(--hwr-muted);
  font-size: 1.06rem;
}

.home-hero__media {
  overflow: hidden;
  min-height: 360px;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-pills,
.card-meta,
.footer-links,
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--hwr-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
}

.article-meta span + span::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.7rem;
  border-radius: 999px;
  background: #9aa8ba;
}

.module-pills a,
.card-meta span,
.risk-label,
.footer-links a,
.tool-links a {
  border: 1px solid var(--hwr-border);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: #ffffff;
  color: var(--hwr-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.module-pills a:hover,
.tool-links a:hover {
  border-color: #8dbbb5;
  color: var(--hwr-blue);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}

.home-panel,
.tool-strip,
.methodology-band {
  padding: 1rem;
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.section-heading a {
  font-size: 0.88rem;
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  display: grid;
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dce4ee;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1rem;
}

.post-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.post-card h3 a {
  color: var(--hwr-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post-card p {
  margin: 0;
  color: var(--hwr-muted);
  font-size: 0.94rem;
}

.tool-strip {
  display: grid;
  gap: 0.75rem;
}

.tool-link-card {
  display: block;
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--hwr-panel-soft);
  color: var(--hwr-ink);
  text-decoration: none;
}

.tool-link-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.tool-link-card span {
  display: block;
  color: var(--hwr-muted);
  font-size: 0.88rem;
}

.methodology-band {
  margin-top: 1.5rem;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.methodology-grid div {
  border-top: 3px solid var(--hwr-blue);
  padding-top: 0.6rem;
}

.methodology-grid strong {
  display: block;
  margin-bottom: 0.2rem;
}

.archive-header {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.archive-description {
  max-width: 70ch;
  color: var(--hwr-muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.faq-filter {
  display: grid;
  gap: 0.45rem;
  max-width: 680px;
  margin-top: 1rem;
}

.faq-filter label {
  font-weight: 900;
}

.faq-filter input {
  min-height: 48px;
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  color: var(--hwr-ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-card {
  border: 1px solid var(--hwr-border);
  border-radius: var(--hwr-radius);
  padding: 1rem;
  background: var(--hwr-panel);
  box-shadow: var(--hwr-shadow);
}

.faq-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.faq-card h2 a {
  color: var(--hwr-ink);
  text-decoration: none;
}

.faq-card__link {
  font-weight: 900;
}

.faq-empty {
  border: 1px dashed var(--hwr-border);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1rem;
  background: #ffffff;
}

.article-shell,
.page-shell {
  display: grid;
  grid-template-columns: minmax(0, var(--hwr-reading)) minmax(260px, 1fr);
  gap: 2rem;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.article-main,
.page-main {
  min-width: 0;
}

.entry-header {
  margin-bottom: 1.25rem;
}

.entry-kicker {
  margin: 0 0 0.4rem;
  color: var(--hwr-blue);
  font-family: var(--hwr-mono);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-summary,
.answer-first,
.hwr-answer-block {
  border-left: 4px solid var(--hwr-blue);
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: #eef2ff;
  color: #172554;
  font-weight: 650;
}

.featured-image {
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  border-radius: 8px;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-content h2,
.entry-content h3,
.page-content h2,
.page-content h3 {
  margin-top: 2rem;
  line-height: 1.2;
}

.entry-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
  border: 1px solid var(--hwr-border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.entry-content th,
.page-content th {
  background: var(--hwr-panel-soft);
}

.entry-content > table,
.page-content > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content > table tbody,
.page-content > table tbody {
  display: table;
  min-width: 640px;
  width: 100%;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.sidebar-box {
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--hwr-panel-soft);
}

.sidebar-box h2,
.sidebar-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.toc-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.toc-list a {
  color: var(--hwr-muted);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--hwr-blue);
}

.hwr-disclosure-box,
.editorial-note {
  border: 1px solid #e0c78d;
  border-radius: 8px;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #fff8e8;
  color: #4a3414;
}

.hwr-methodology-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.hwr-methodology-list div {
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 0.9rem;
  background: var(--hwr-panel-soft);
}

.hwr-methodology-list strong,
.hwr-methodology-list span {
  display: block;
}

.hwr-methodology-list strong {
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.hwr-methodology-list span {
  color: var(--hwr-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.related-posts {
  margin-top: 2rem;
}

.related-posts h2 {
  font-size: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--hwr-border);
  background: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 2rem 0;
  color: var(--hwr-muted);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 78ch;
  margin: 0 0 0.6rem;
}

.pagination {
  margin-top: 1.75rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

.page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hwr-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--hwr-ink);
  font-weight: 800;
  line-height: 1;
  padding: 0 0.75rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.page-numbers.current {
  border-color: var(--hwr-navy);
  background: var(--hwr-navy);
  color: #ffffff;
}

.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--hwr-muted);
}

.page-numbers.prev,
.page-numbers.next {
  min-width: 76px;
  white-space: nowrap;
}

a.page-numbers:hover {
  border-color: #8dbbb5;
  background: #edf7f5;
  color: var(--hwr-blue);
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    align-items: center;
    padding-block: 0.55rem;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-navigation,
  .header-tools {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
  }

  .main-navigation.is-open,
  .header-tools.is-open {
    display: block;
  }

  .main-navigation ul,
  .header-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    justify-content: flex-start;
  }

  .main-navigation a,
  .header-tools a {
    justify-content: center;
    width: 100%;
    border: 1px solid var(--hwr-border);
    background: #ffffff;
    text-align: center;
  }

  .home-hero,
  .home-grid,
  .article-shell,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-footer__inner,
  .post-grid,
  .archive-grid,
  .methodology-grid,
  .hwr-methodology-list {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    width: min(var(--hwr-width), calc(100% - 1rem));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    min-height: 64px;
  }

  .site-branding {
    gap: 0.55rem;
  }

  .site-branding__mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 0.82rem;
  }

  .site-branding__name {
    font-size: 0.95rem;
  }

  .site-branding__tagline {
    display: none;
  }

  .menu-toggle {
    min-height: 38px;
    padding-inline: 0.65rem;
  }

  .main-navigation ul,
  .header-tools {
    grid-template-columns: 1fr;
  }

  .hwr-container {
    width: min(var(--hwr-width), calc(100% - 1rem));
  }

  .site-main {
    padding: 1rem 0 2rem;
  }

  .home-hero {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .home-hero__copy,
  .home-panel,
  .archive-header,
  .article-shell,
  .page-shell,
  .tool-strip,
  .methodology-band {
    padding: 0.9rem;
  }

  .home-hero__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-hero__copy h1,
  .archive-header h1,
  .entry-title {
    font-size: clamp(1.9rem, 12vw, 3rem);
    line-height: 1;
  }

  .section-heading {
    display: grid;
    gap: 0.35rem;
    align-items: start;
  }

  .module-pills,
  .card-meta,
  .footer-links,
  .tool-links {
    align-items: stretch;
  }

  .module-pills a,
  .card-meta span,
  .footer-links a,
  .tool-links a {
    max-width: 100%;
  }

  .module-pills a {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    text-align: center;
  }

  .card-meta span {
    flex: 1 1 auto;
  }

  .featured-image {
    margin-inline: -0.9rem;
    border-radius: 0;
  }

  .pagination {
    margin-inline: -0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem 0.2rem;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
  }

  .page-numbers {
    min-width: 40px;
    min-height: 40px;
    padding-inline: 0.65rem;
  }
}

@media (max-width: 420px) {
  .module-pills a {
    flex-basis: 100%;
  }

  .home-hero__copy h1,
  .archive-header h1,
  .entry-title {
    font-size: clamp(1.75rem, 13vw, 2.55rem);
  }

  .post-card__body,
  .faq-card,
  .sidebar-box,
  .hwr-resource-card {
    padding: 0.85rem;
  }
}

.hwr-home-v4 {
  display: grid;
  gap: 1.35rem;
}

.disclosure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--hwr-border);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  color: var(--hwr-muted);
  box-shadow: 0 10px 28px rgba(14, 14, 12, 0.05);
  font-family: var(--hwr-mono);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.disclosure-strip + .article-shell,
.disclosure-strip + .page-shell,
.disclosure-strip + .home-hero {
  margin-top: 1rem;
}

.disclosure-strip span,
.disclosure-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--hwr-border);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: var(--hwr-page);
  text-decoration: none;
}

.home-hero--v4 {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  margin-bottom: 0;
}

.home-hero--v4.has-no-scenario-card {
  grid-template-columns: minmax(0, 0.82fr);
  justify-content: center;
}

.home-hero--v4 .home-hero__copy,
.hero-scenario-card,
.score-ribbon,
.scenario-bestof,
.review-strip,
.head-to-head-panel,
.news-panel,
.funnel-panel {
  border: 1px solid var(--hwr-border);
  border-radius: var(--hwr-radius);
  background: var(--hwr-panel);
  box-shadow: var(--hwr-shadow);
}

.home-hero--v4 .home-hero__copy {
  display: grid;
  align-content: center;
  min-height: 400px;
  padding: clamp(1.35rem, 3.2vw, 2.5rem);
}

.home-hero--v4 .home-hero__copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.93;
}

.home-hero--v4.has-no-scenario-card .home-hero__copy {
  min-height: 340px;
}

.home-hero--v4.has-no-scenario-card .home-hero__copy h1 {
  max-width: 15ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.35rem 0 1rem;
}

.hwr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--hwr-ink);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.hwr-button--primary {
  background: var(--hwr-ink);
  color: #ffffff;
}

.hwr-button--primary:hover {
  border-color: var(--hwr-blue);
  background: var(--hwr-blue);
  color: #ffffff;
}

.hwr-button--secondary {
  background: #ffffff;
  color: var(--hwr-ink);
}

.hero-scenario-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background:
    linear-gradient(145deg, rgba(26, 79, 219, 0.10), transparent 42%),
    #ffffff;
}

.hero-scenario-card.is-ellipal-winner {
  background:
    linear-gradient(145deg, rgba(232, 93, 42, 0.12), transparent 42%),
    #ffffff;
}

.hero-scenario-card h2,
.section-heading--editorial h2,
.funnel-panel h2,
.news-panel h2 {
  margin: 0;
  font-family: var(--hwr-serif);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-scenario-card .scenario-matchup {
  margin-top: 0.5rem;
}

.scenario-matchup {
  display: grid;
  gap: 0.7rem;
}

.scenario-matchup div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
}

.scenario-matchup span {
  font-weight: 900;
}

.scenario-matchup strong {
  font-family: var(--hwr-serif);
  font-size: 2rem;
  line-height: 1;
}

.scenario-dimensions,
.funnel-steps {
  display: grid;
  gap: 0.45rem;
}

.scenario-dimensions span,
.signal-good,
.signal-warn {
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.signal-good {
  background: #e9f8ef;
  color: #075f36;
}

.signal-warn {
  background: #fff4df;
  color: #7a3c00;
}

.hero-footnote {
  margin: 0;
  color: var(--hwr-subtle);
  font-family: var(--hwr-mono);
  font-size: 0.76rem;
}

.score-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
}

.score-ribbon__label,
.score-ribbon a {
  border: 1px solid var(--hwr-border);
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: var(--hwr-page);
  color: var(--hwr-ink);
  font-family: var(--hwr-mono);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.score-ribbon a strong {
  margin-left: 0.25rem;
  color: var(--hwr-blue);
}

.scenario-bestof,
.review-strip,
.head-to-head-panel,
.news-panel,
.funnel-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.section-heading--editorial {
  align-items: start;
  margin-bottom: 1rem;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.scenario-card {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 1rem;
  background: #ffffff;
}

.scenario-card.is-ellipal-winner {
  border-color: rgba(232, 93, 42, 0.45);
  background: linear-gradient(180deg, rgba(232, 93, 42, 0.12), #ffffff 46%);
}

.scenario-card h3 {
  margin: 0;
  font-family: var(--hwr-serif);
  font-size: 1.5rem;
  line-height: 1.05;
}

.scenario-card p {
  color: var(--hwr-muted);
  font-size: 0.94rem;
}

.scenario-card__score {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.scenario-card__score strong {
  font-family: var(--hwr-serif);
  font-size: 2.3rem;
  line-height: 1;
}

.scenario-card__score span {
  color: var(--hwr-subtle);
  font-family: var(--hwr-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-grid--editorial .post-card__image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(26, 79, 219, 0.14), rgba(14, 158, 90, 0.12)),
    var(--hwr-panel-soft);
}

.post-grid--editorial .post-card h3 {
  font-family: var(--hwr-serif);
  font-size: 1.35rem;
}

.hwr-comparison-table--editorial thead th {
  background: var(--hwr-ink);
  color: #ffffff;
}

.hwr-comparison-table--editorial thead th.is-scenario-winner {
  background: var(--hwr-ellipal);
}

.hwr-verdict-mini {
  border: 1px solid #ebd8b8;
  border-radius: 8px;
  margin: 1rem 0 0;
  padding: 0.8rem;
  background: #fff8e8;
  color: #4a3414;
}

.news-funnel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.news-panel {
  background: var(--hwr-ink);
  color: #ffffff;
}

.news-panel .entry-kicker,
.news-panel a,
.news-panel h2 {
  color: #ffffff;
}

.news-list {
  display: grid;
  gap: 0.65rem;
}

.news-link {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.news-link span {
  color: #b8cffc;
  font-family: var(--hwr-mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hwr-news-hub-list .news-link {
  border-color: var(--hwr-border);
  background: #ffffff;
  color: var(--hwr-ink);
}

.hwr-news-hub-list .news-link span {
  color: var(--hwr-blue);
}

.funnel-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.funnel-steps div {
  border: 1px solid var(--hwr-border);
  border-radius: 8px;
  padding: 0.8rem;
  background: #ffffff;
}

.funnel-steps .is-action-step {
  border-color: rgba(26, 79, 219, 0.35);
  background: #eef2ff;
}

.funnel-steps span {
  color: var(--hwr-blue);
  font-family: var(--hwr-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.funnel-steps strong {
  display: block;
  margin: 0.25rem 0;
}

.funnel-steps p {
  margin: 0;
  color: var(--hwr-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hwr-admin-empty {
  border: 1px dashed var(--hwr-amber);
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff8e8;
  color: #5c3b08;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .home-hero--v4,
  .news-funnel-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid,
  .funnel-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .disclosure-strip,
  .score-ribbon {
    border-radius: 8px;
  }

  .home-hero--v4 .home-hero__copy {
    min-height: auto;
  }

  .home-hero--v4 .home-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .scenario-grid,
  .funnel-steps {
    grid-template-columns: 1fr;
  }
}
