:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #62707d;
  --line: #dbe2e8;
  --accent: #1f6f5b;
  --accent-dark: #174f43;
  --warning: #a85d1f;
  --shadow: 0 14px 36px rgba(30, 42, 54, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 42, 54, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-logo {
  display: block;
  width: min(275px, 58vw);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.meta,
.article-card p,
.article-card small,
.side-link small,
.archive-heading p,
.dek {
  color: var(--muted);
}

.brand small {
  font-size: 0.8rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.top-nav a:hover,
.category-link:hover,
.article-card:hover {
  border-color: var(--accent);
}

.article-card:hover h2,
.side-link:hover span,
.rating-slide:hover strong,
.category-cta a:hover {
  color: var(--accent-dark);
}

.shell {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(210px, 290px);
  gap: clamp(20px, 3vw, 42px);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 56px) 54px;
}

.content {
  min-width: 0;
}

.left-nav,
.right-nav {
  position: sticky;
  top: 104px;
  align-self: start;
}

.left-nav {
  display: grid;
  gap: 16px;
}

.left-box,
.right-nav section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
  border-radius: var(--radius);
}

.left-box h2,
.right-nav h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
}

.category-link {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 0;
  font-weight: 650;
}

.category-row small {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.right-nav {
  display: grid;
  gap: 16px;
}

.side-link {
  display: block;
  padding: 11px 8px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
}

.side-link span,
.side-link small {
  display: block;
}

.hero {
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(34px, 7vw, 82px);
  background: linear-gradient(110deg, rgba(31, 111, 91, 0.96), rgba(28, 77, 105, 0.9));
  color: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero h1,
.archive-heading h1,
.archive-heading h2,
.article h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 4.35vw, 4.25rem);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.eyebrow,
.article-kicker {
  margin: 0 0 10px;
  color: var(--warning);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #f3d48d;
}

.rating-rotator {
  margin: 28px 0 34px;
}

.rating-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 31%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 2px 12px;
}

.rating-slide {
  position: relative;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rating-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(23, 33, 43, 0.86);
  color: #fff;
  font-weight: 850;
}

.rating-slide-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #e8eef2;
}

.rating-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rating-slide-body {
  display: block;
  padding: 13px 14px 15px;
}

.rating-slide-body strong,
.rating-slide-body small {
  display: block;
}

.rating-slide-body strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.rating-slide-body small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.archive-heading {
  margin: 34px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.archive-heading h1,
.archive-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.article-list {
  display: grid;
  gap: 14px;
}

.related-block {
  margin-top: 26px;
}

.related-block .article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-title {
  margin: 0 0 14px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.15;
}

.article-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.article-card a {
  display: block;
  padding: 18px;
}

.card-media {
  aspect-ratio: 16 / 9;
  margin: -18px -18px 14px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #e8eef2;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 8px 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.2;
}

.article-card p {
  margin: 0 0 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pagination div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.pagination a:hover,
.pagination [aria-current="page"] {
  border-color: var(--accent);
  background: #eef5f2;
  color: var(--accent-dark);
}

.pagination [aria-disabled="true"] {
  opacity: 0.48;
}

.home-guide {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.home-guide h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.home-guide p,
.home-guide dl {
  margin: 0;
  color: var(--muted);
}

.home-guide p + p {
  margin-top: 12px;
}

.home-guide dt {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
}

.home-guide dt:first-child {
  margin-top: 0;
}

.home-guide dd {
  margin: 4px 0 0;
}

.archive-guide,
.hub-nav,
.hub-comparison {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hub-nav ul,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-left: 0;
  list-style: none;
}

.hub-nav a,
.hub-grid a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 750;
}

.hub-nav a:hover,
.hub-grid a:hover {
  border-color: var(--accent);
  background: #eef5f2;
}

.hub-note {
  padding: 14px 16px;
  border-left: 4px solid var(--warning);
  background: #fff7ed;
}

.editorial-byline,
.evaluation-criteria,
.official-sources {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.editorial-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.editorial-byline h2,
.evaluation-criteria h2,
.official-sources h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.editorial-byline p,
.evaluation-criteria p,
.official-sources p {
  margin: 0;
  color: var(--muted);
}

.editorial-byline a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 800;
}

.evaluation-criteria ul,
.official-sources ul {
  margin: 10px 0 0;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 5vw, 58px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article h1 {
  max-width: 900px;
  font-size: clamp(2rem, 3.75vw, 3.55rem);
}

.dek {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1.12rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 28px;
  font-size: 0.92rem;
}

.article-media {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e8eef2;
}

.article-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.official-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: var(--radius);
  background: #f6fbf8;
}

.official-download h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.official-download p,
.official-download small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.official-download a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.software-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.software-facts div {
  min-width: 0;
  padding: 13px 14px;
  background: #f8faf9;
}

.software-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.software-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.affiliate-disclosure {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
}

.affiliate-disclosure strong {
  display: block;
  margin: 0 0 6px;
}

.affiliate-disclosure p {
  margin: 0;
  color: var(--muted);
}

.rating-box h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.rating-box p {
  margin: 0;
  color: var(--muted);
}

.rating-actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.rating-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #b98218;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.rating-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rating-status {
  min-width: 150px;
  font-size: 0.9rem;
}

.wp-content {
  max-width: 860px;
}

.wp-content h2,
.wp-content h3 {
  margin: 2rem 0 0.7rem;
  line-height: 1.16;
}

.wp-content p,
.wp-content ul,
.wp-content ol,
.wp-content figure,
.wp-content blockquote {
  margin: 0 0 1.1rem;
}

.wp-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.wp-content th,
.wp-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.category-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.category-cta h2,
.category-cta p {
  margin: 0;
}

.category-cta h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.category-cta p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.category-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.empty {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .left-nav,
  .right-nav {
    position: static;
  }

  .left-nav {
    grid-template-columns: 1fr;
  }

  .category-link {
    border: 1px solid var(--line);
  }

  .right-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 300px;
    padding: 28px;
  }

  .right-nav {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 22px;
  }

  .software-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-download {
    align-items: stretch;
    flex-direction: column;
  }

  .official-download a {
    width: 100%;
  }

  .rating-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .rating-track {
    grid-auto-columns: minmax(230px, 82%);
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .related-block .article-list {
    grid-template-columns: 1fr;
  }

  .category-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
