﻿:root {
  --bg: #ffffff;
  --paper: #f6f7f5;
  --ink: #101214;
  --text: #25282a;
  --muted: #50595e;
  --line: #d7ddd9;
  --line-strong: #6f7b76;
  --accent: #135f4f;
  --accent-dark: #0d342d;
  --brass: #9a6621;
  --charcoal: #151a19;
  --soft: #edf2ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: none;
}

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

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: none;
}

.header-inner,
.site-shell {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.brand {
  color: var(--accent-dark);
  background: transparent;
  font-size: 23px;
  font-weight: 900;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  min-width: 150px;
  height: 42px;
  flex: 0 0 150px;
  overflow: visible;
  color: #111 !important;
  font-size: 30px !important;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  letter-spacing: 0;
}

.brand::before {
  content: none;
}

.top-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 460px;
}

.top-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.top-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 2px;
  outline: none;
}

.top-search input:focus {
  background: #fff;
  border-color: var(--accent);
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.site-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 30px;
  padding-top: 26px;
}

.left-menu {
  position: sticky;
  top: 86px;
  display: grid;
  align-content: start;
  gap: 0;
  height: fit-content;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.left-menu strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.left-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: #20272b;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 760;
}

.left-menu a:hover {
  background: var(--soft);
  border-left-color: var(--accent);
  color: var(--ink);
}

.left-menu a.active,
.left-menu a[aria-current="true"] {
  background: var(--soft);
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 850;
}

.main-feed {
  min-width: 0;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
  padding-top: 0;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
}

.hero-copy {
  position: relative;
  min-height: 330px;
  padding: clamp(30px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(19, 95, 79, 0.08), transparent 42%),
    var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 8px solid var(--accent);
  border-radius: 0;
}

.hero-copy::before {
  content: none;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.18;
  font-weight: 900;
  word-break: keep-all;
}

.hero-copy p:not(.kicker) {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.82;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.quick-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid #c7d3cf;
  border-radius: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.search-box {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.hero-feature {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 0;
  background: var(--charcoal);
  border: 1px solid var(--ink);
}

.hero-feature img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.78));
}

.hero-feature div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}

.hero-feature span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 820;
}

.hero-feature strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.25;
}

.hero-feature p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.search-box input {
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.hero-note {
  display: grid;
  grid-template-rows: 190px 1fr;
  gap: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.hero-note img {
  height: 190px;
  object-fit: cover;
}

.hero-note div {
  padding: 18px;
}

.hero-note span,
.category,
.read-meta dt,
.article-meta-row,
.product-compare-info span,
.affiliate-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-note strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.35;
}

.hero-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.filter-panel {
  margin-top: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 40px;
  padding: 0 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.filter.active,
.filter:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line-strong);
}

.content-layout {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8d0cc;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.guide-card:hover .guide-content h3,
.guide-card:focus-visible .guide-content h3 {
  color: var(--accent);
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: #fbfdfc;
  box-shadow: 7px 7px 0 rgba(19, 95, 79, 0.1);
}

.guide-card:focus-visible {
  outline: 2px solid rgba(107, 91, 69, 0.28);
  outline-offset: 4px;
}

.feature-card {
  grid-column: span 1;
}

.guide-image {
  margin: 0;
  background: var(--paper);
}

.guide-image img {
  aspect-ratio: 16 / 11;
  height: auto;
  object-fit: cover;
}

.guide-content {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
}

.category {
  width: fit-content;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #c9d8d4;
  border-radius: 0;
}

.guide-content h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.38;
  transition: color 0.18s ease;
}

.feature-card .guide-content h3 {
  font-size: 20px;
  line-height: 1.38;
}

.guide-content p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.68;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.read-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

.read-meta div {
  padding-top: 9px;
  border-top: 1px solid #d1d8db;
}

.read-meta dt,
.read-meta dd {
  margin: 0;
}

.read-meta dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
  border: 0;
}

.summary-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid #cfd6d9;
  border-radius: 2px;
}


.summary-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.summary-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.35;
}

.summary-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  margin-bottom: 76px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.category-notes div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.category-notes div:last-child {
  border-right: 0;
}

.category-notes span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
}

.category-notes p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.post-card[hidden],
.rank-line[hidden],
.guide-card[hidden] {
  display: none;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
}

.empty-state.show {
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pagination[hidden] {
  display: none;
}

.page-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: #fff;
  border: 1px solid #bfc9c4;
  border-radius: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
}

.page-button.page-last {
  width: auto;
  min-width: 74px;
  padding: 0 12px;
}

.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 42px;
  color: var(--muted);
  font-weight: 800;
}

.page-button:hover,
.page-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.page-button[hidden] {
  display: none;
}

.affiliate-list {
  display: none;
}

.article-page {
  max-width: 1040px;
  margin: 0 auto 90px;
  padding: 0 24px;
}

.article-view {
  max-width: 820px;
  margin: 46px auto 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 820;
}

/* Tistory-style blog home */
body {
  background: #f4f4f1;
}

.site-header {
  position: static;
  background: #fff;
  border-top: 4px solid #111;
  border-bottom: 1px solid #cfcfca;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand search"
    "nav nav";
  justify-items: stretch;
  align-items: center;
  min-height: auto;
  max-width: 1120px;
  padding-top: 30px;
  padding-bottom: 0;
  gap: 22px 28px;
}

.brand {
  grid-area: brand;
  color: #111;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
}

.top-search {
  grid-area: search;
  width: 260px;
  max-width: 260px;
  order: initial;
}

.top-search input {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #cfcfca;
  border-radius: 0;
  font-size: 12px;
}

.nav {
  grid-area: nav;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  padding-top: 0;
  border-top: 2px solid #111;
  border-bottom: 1px solid #d5d5d0;
  color: #202020;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px 0 0;
}

.site-shell {
  grid-template-columns: minmax(0, 820px) 250px;
  align-items: start;
  gap: 42px;
  max-width: 1120px;
  padding-top: 38px;
}

.left-menu {
  order: 2;
  top: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}

.left-menu > strong,
.sidebar-widget strong {
  display: block;
  margin: 0;
  padding: 0 0 12px;
  color: #222;
  border-bottom: 1px solid #222;
  font-size: 14px;
  font-weight: 800;
}

.left-menu > a,
.sidebar-widget a {
  min-height: 34px;
  padding: 9px 0;
  color: #555;
  border: 0;
  border-bottom: 1px solid #ececea;
  border-left: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
}

.left-menu > a:hover,
.sidebar-widget a:hover {
  color: #111;
  background: transparent;
  border-left-color: transparent;
}

.left-menu > a.active,
.left-menu > a[aria-current="true"] {
  color: #111;
  background: transparent;
  border-bottom-color: #111;
  font-weight: 800;
}

.sidebar-widget {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.sidebar-note {
  padding: 0;
}

.sidebar-note p {
  margin: 14px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.72;
}

.main-feed {
  order: 1;
}

.hero {
  display: block;
  margin: 0 0 34px;
  padding: 0 0 30px;
  border-bottom: 2px solid #222;
}

.hero-copy {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.hero-copy h1 {
  max-width: 760px;
  color: #111;
  font-size: 32px;
  line-height: 1.35;
}

.hero-copy p:not(.kicker) {
  max-width: 760px;
  margin-top: 16px;
  color: #555;
  font-size: 16px;
  line-height: 1.78;
}

.hero-feature {
  display: none;
}

.quick-stats {
  margin-top: 18px;
}

.quick-stats span {
  min-height: 30px;
  padding: 0 10px;
  color: #555;
  background: #fff;
  border: 1px solid #deded9;
  font-size: 12px;
  font-weight: 600;
}

.content-layout {
  margin-top: 0;
}

.section-title {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid #111;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 800;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-top: 0;
}

.guide-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 164px;
  gap: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #deded8;
  box-shadow: inset 0 0 0 0 #111;
  transition: background 0.18s ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: none;
  border-color: #e6e6e2;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--accent);
}

.guide-image {
  padding: 18px 18px 18px 0;
  background: transparent;
}

.guide-image img {
  aspect-ratio: 4 / 3;
  height: 128px;
  object-fit: cover;
}

.guide-content {
  align-content: center;
  padding: 18px 0;
}

.category {
  padding: 0;
  color: #777;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.guide-content h3 {
  color: #222;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 760;
}

.guide-card:hover .guide-content h3,
.guide-card:focus-visible .guide-content h3 {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.read-meta {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 0;
  align-items: baseline;
  margin-top: 8px;
}

.read-meta div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 5px;
  align-items: baseline;
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.read-meta dt,
.read-meta dd {
  color: #888;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.read-meta dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-meta dt::before {
  content: "· ";
}

.pagination {
  justify-content: center;
  margin-top: 30px;
  padding-top: 0;
  border-top: 0;
}

.page-button {
  width: 34px;
  height: 34px;
  color: #555;
  border: 1px solid #d6d6d1;
  font-size: 13px;
  font-weight: 600;
}

.page-button.page-last {
  min-width: 64px;
  padding: 0 9px;
}

.pagination-ellipsis {
  height: 34px;
  font-size: 13px;
}

.page-button:hover,
.page-button.active {
  color: #fff;
  background: #222;
  border-color: #222;
}

.summary-grid {
  display: none;
}

.featured-posts {
  margin: 0 0 34px;
}

.compact-title {
  margin-bottom: 14px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  display: grid;
  align-content: start;
  gap: 9px;
  background: #fff;
  border-top: 2px solid #111;
  border-bottom: 1px solid #d6d6d1;
}

.featured-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-card span {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
}

.featured-card strong {
  color: #222;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 780;
}

.featured-card p {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.62;
}

.featured-card:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-view h1 {
  margin: 14px 0 18px;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.26;
}

.article-lead {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.85;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.article-meta-row span {
  padding: 6px 9px;
  background: var(--soft);
  border-radius: 2px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.article-tags span,
.article-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #263237;
  background: #fff;
  border: 1px solid #ccd6d1;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.article-tags a:hover {
  color: #0f1f1a;
  background: #f5f8f7;
  border-color: #8eaaa0;
}

.affiliate-disclosure {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #263237;
  background: #eef5f2;
  border: 1px solid #bfd2cc;
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.65;
}

.affiliate-disclosure.compact {
  margin-top: 14px;
  font-size: 13px;
}

.article-hero-figure {
  margin: 34px 0 0;
}

.article-hero-image {
  width: 100%;
  height: min(320px, 42vw);
  min-height: 190px;
  object-fit: cover;
  border-radius: 2px;
}

.article-hero-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-view section,
.editor-summary,
.article-summary,
.sales-guide,
.buying-notes,
.article-product-pick {
  margin-top: 42px;
}

.blog-note,
.editor-summary,
.article-summary,
.sales-guide,
.buying-notes,
.article-product-pick {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.blog-note {
  margin: 30px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.editor-summary {
  margin-top: 30px;
}

.article-product-pick {
  margin-top: 30px;
  background: #fff;
  border-color: #bfcac5;
  border-top: 3px solid var(--accent);
}

.editor-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editor-summary li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce2dd;
}

.editor-summary li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.editor-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.editor-summary span {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.article-view h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
}

.article-view p,
.article-view li,
.article-faq summary {
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.article-view ul {
  margin: 0;
  padding-left: 22px;
}

.sales-guide .fit-copy {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pros-cons-grid div {
  padding: 18px;
  background: #fff;
  border: 1px solid #d9dfdb;
}

.pros-cons-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.pros-cons-grid li {
  margin: 7px 0;
  font-size: 15px;
  line-height: 1.7;
}

.article-affiliate {
  margin-top: 18px;
}

.article-product-comparison {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.product-compare-row {
  display: grid;
  grid-template-columns: 38px 172px minmax(0, 1fr) 116px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.product-rank {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.product-compare-image {
  width: 172px;
  height: 138px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.product-compare-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-compare-info strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-compare-info small {
  color: var(--accent);
  font-size: 14px;
  font-weight: 820;
}

.product-description {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.product-mini-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.product-mini-review > div {
  padding: 10px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.product-mini-review b {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
}

.product-pros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.product-pros li {
  padding: 4px 7px;
  color: #273137;
  background: #eef5f2;
  border: 1px solid #cadbd5;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.product-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-cons li {
  padding: 4px 7px;
  color: #273137;
  background: #eef5f2;
  border: 1px solid #cadbd5;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.product-compare-row a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.product-compare-row a:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.related-posts {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-posts h2 {
  margin-bottom: 14px;
}

.related-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-post-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d9e0dd;
  border-radius: 2px;
}

.related-post-card:hover {
  border-color: #7e958d;
  box-shadow: 0 10px 24px rgba(20, 28, 25, 0.08);
}

.related-post-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.related-post-card strong {
  color: #111;
  font-size: 16px;
  line-height: 1.45;
}

.related-post-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.tag-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid #141414;
}

.tag-hero p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.tag-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.tag-hero span {
  color: var(--muted);
  font-size: 14px;
}

.tag-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tag-post-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce2df;
}

.tag-post-card a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.tag-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid #e5e9e7;
}

.tag-post-card span,
.tag-post-card h2,
.tag-post-card p {
  margin-left: 14px;
  margin-right: 14px;
}

.tag-post-card span {
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tag-post-card h2 {
  margin-top: 7px;
  margin-bottom: 8px;
  color: #111;
  font-size: 18px;
  line-height: 1.42;
}

.tag-post-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-faq details {
  border-top: 1px solid var(--line);
}

.article-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  cursor: pointer;
  padding: 15px 0;
  color: var(--ink);
  font-weight: 820;
}

.article-faq details p {
  margin-top: 0;
  padding-bottom: 15px;
}

.sidebar,
.side-card {
  display: none;
}

.footer {
  padding: 30px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.footer span {
  display: block;
  color: var(--muted);
}

.footer small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.policy-hero {
  padding-bottom: 22px;
  border-bottom: 2px solid #111;
}

.policy-hero p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.policy-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.policy-hero span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.policy-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 22px;
}

.policy-section p,
.policy-section li {
  color: #3d4642;
  font-size: 16px;
  line-height: 1.85;
}

.policy-section p {
  margin: 0 0 12px;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
}

.policy-section a {
  color: var(--accent);
  font-weight: 780;
}

.contact-panel {
  padding: 22px;
  background: #f7f9f8;
  border: 1px solid #d9e2dd;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .left-menu {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .left-menu strong {
    display: none;
  }

  .left-menu a {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    min-height: 260px;
  }

  .hero-feature img {
    min-height: 260px;
  }

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

  .feature-card {
    grid-column: span 1;
  }

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

  .category-notes div:nth-child(2) {
    border-right: 0;
  }

  .category-notes div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 18px;
  }

  .top-search {
    width: 100%;
    max-width: none;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-shell,
  .article-page {
    padding-inline: 18px;
  }

  .hero {
    margin-top: 18px;
    padding-top: 0;
  }

  .hero-copy {
    padding: 26px 22px;
    min-height: auto;
  }

  .hero-copy::before {
    content: none;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.18;
  }

  .hero-copy p:not(.kicker) {
    font-size: 16px;
  }

  .guide-grid,
  .category-notes,
  .read-meta {
    grid-template-columns: 1fr;
  }

  .guide-content h3 {
    font-size: 22px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid article {
    border-right: 1px solid #cfd6d9;
    border-bottom: 1px solid #cfd6d9;
  }

  .summary-grid article:last-child {
    border-bottom: 0;
  }

  .feature-card {
    grid-column: span 1;
  }

  .category-notes div,
  .category-notes div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-notes div:last-child {
    border-bottom: 0;
  }

  .product-compare-row {
    grid-template-columns: 28px 112px minmax(0, 1fr);
  }

  .product-mini-review {
    grid-template-columns: 1fr;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .editor-summary li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-compare-image {
    width: 112px;
    height: 96px;
  }

  .product-compare-row a {
    grid-column: 3;
    width: fit-content;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .main-feed,
  .left-menu {
    order: initial;
  }

  .left-menu {
    position: static;
    display: grid;
    gap: 0;
    overflow: visible;
    margin-top: 36px;
  }

  .left-menu strong {
    display: block;
  }

  .left-menu > a {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ececea;
  }

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

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

@media (max-width: 680px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "search";
    padding: 26px 18px 0;
    gap: 16px;
  }

  .brand {
    font-size: 30px;
  }

  .top-search {
    width: 100%;
    max-width: none;
    margin-bottom: 14px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    margin-top: 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 27px;
    line-height: 1.34;
  }

  .guide-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 132px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .featured-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 16px;
  }

  .featured-card img {
    grid-row: span 4;
    height: 86px;
  }

  .featured-card p {
    display: none;
  }

  .guide-image {
    padding: 16px 14px 16px 0;
  }

  .guide-image img {
    height: 92px;
  }

  .guide-content {
    padding: 16px 0;
  }

  .guide-content h3 {
    font-size: 17px;
  }

  .guide-content p {
    display: none;
  }

  .read-meta {
    display: none;
  }
}

/* Final responsive pass */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .header-inner,
  .site-shell {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-shell {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto minmax(220px, 1fr);
    grid-template-areas:
      "brand nav"
      "search search";
    row-gap: 14px;
  }

  .brand {
    grid-area: brand;
    width: auto;
    min-width: 132px;
    height: 38px;
    flex: 0 0 132px;
    font-size: 25px !important;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-end;
  }

  .top-search {
    grid-area: search;
    width: 100%;
    max-width: none;
  }

  .site-shell {
    display: block;
    max-width: 860px;
    padding-top: 24px;
  }

  .left-menu {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin: 0 0 28px;
    padding: 0 0 10px;
    border: 0;
    scroll-snap-type: x proximity;
  }

  .left-menu::-webkit-scrollbar {
    height: 6px;
  }

  .left-menu::-webkit-scrollbar-thumb {
    background: #d7ddd9;
  }

  .left-menu > strong,
  .sidebar-widget {
    display: none;
  }

  .left-menu > a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #deded8;
    border-radius: 2px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .left-menu > a.active,
  .left-menu > a[aria-current="true"] {
    color: #fff;
    background: #111;
    border-color: #111;
  }

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

  .guide-card {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .guide-image img {
    height: 118px;
  }

  .article-page {
    max-width: 860px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .product-compare-row {
    grid-template-columns: 34px 142px minmax(0, 1fr);
  }

  .product-compare-row a {
    grid-column: 3;
    justify-self: start;
    width: auto;
  }

  .product-compare-image {
    width: 142px;
    height: 112px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "search";
    gap: 12px;
    padding: 18px 18px 12px;
  }

  .brand {
    font-size: 28px;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .site-shell,
  .article-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-copy p:not(.kicker) {
    font-size: 15px;
  }

  .hero-feature {
    margin-top: 18px;
    min-height: 220px;
  }

  .hero-feature img {
    min-height: 220px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .featured-card img {
    grid-row: span 4;
    height: 88px;
  }

  .featured-card p {
    display: none;
  }

  .guide-card {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 124px;
  }

  .guide-image {
    padding: 14px 12px 14px 0;
  }

  .guide-image img {
    height: 88px;
  }

  .guide-content {
    padding: 14px 0;
  }

  .guide-content h3 {
    font-size: 16px;
    line-height: 1.42;
  }

  .guide-content p {
    display: none;
  }

  .read-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin-top: 6px;
  }

  .read-meta div {
    display: flex;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .page-button {
    width: 34px;
    height: 34px;
  }

  .page-button.page-last {
    min-width: 66px;
  }

  .article-view {
    padding-top: 12px;
  }

  .footer-inner {
    display: grid;
    gap: 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .policy-page {
    width: min(100% - 28px, 860px);
    padding-top: 30px;
  }

  .blog-article-header h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .article-hero-image {
    max-height: 280px;
  }

  .editor-summary li,
  .pros-cons-grid,
  .related-post-grid {
    grid-template-columns: 1fr;
  }

  .tag-page {
    width: min(100% - 28px, 1120px);
    padding-top: 28px;
  }

  .tag-post-list {
    grid-template-columns: 1fr;
  }

  .product-compare-row {
    grid-template-columns: 28px 94px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .product-compare-image {
    width: 94px;
    height: 88px;
  }

  .product-compare-info strong {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .product-description {
    display: none;
  }

  .product-mini-review {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-mini-review > div {
    padding: 8px;
  }

  .product-compare-row a {
    grid-column: 2 / -1;
    width: 100%;
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .site-shell,
  .article-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-search {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .top-search span {
    padding-left: 0;
  }

  .guide-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .guide-image img {
    height: 78px;
  }

  .category {
    font-size: 11px;
  }

  .guide-content h3 {
    font-size: 15px;
  }

  .read-meta {
    display: none;
  }

  .product-compare-row {
    grid-template-columns: 24px 82px minmax(0, 1fr);
    gap: 8px;
  }

  .product-compare-image {
    width: 82px;
    height: 76px;
  }
}

/* Stable desktop layout */
@media (min-width: 981px) {
  .brand {
    width: auto;
    min-width: 164px;
    height: 44px;
    flex: 0 0 164px;
    font-size: 32px !important;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    gap: 18px;
  }

  .top-search {
    flex: 1 1 360px;
    width: auto;
    min-width: 320px;
    max-width: 460px;
  }

  .nav {
    flex: 0 0 auto;
    width: auto;
    gap: 22px;
    padding-top: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .site-shell {
    display: grid;
    grid-template-columns: minmax(0, 940px) 220px;
    justify-content: center;
    gap: 36px;
    max-width: 1252px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .left-menu {
    position: sticky;
    top: 86px;
    display: grid;
    grid-column: 2;
    order: 0;
    overflow: visible;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .left-menu > strong,
  .sidebar-widget {
    display: block;
  }

  .left-menu > a {
    min-height: 38px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    white-space: normal;
  }

  .main-feed {
    grid-column: 1;
    order: 0;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
  }

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

  .guide-card {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .guide-image img {
    height: 128px;
  }

  .article-page {
    max-width: 960px;
    margin-inline: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}

