:root {
  --primary: #12355b;
  --accent: #d4a373;
  --bg: #fefae0;
  --paper: #ffffff;
  --paper-strong: #fbfcfd;
  --ink: #172026;
  --muted: #64707d;
  --line: #dbe3ea;
  --soft: #eef3f6;
  --success: #287c52;
  --warning: #9b5f00;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(21, 32, 43, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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.62;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.36));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(219,227,234,0.78);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--primary);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.site-header nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--primary);
}
.disclosure {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 10px 22px;
  color: var(--muted);
  font-size: 0.85rem;
}
main { overflow: hidden; }

.hero,
.answer-brief,
.product-rail,
.content-grid,
.article-layout,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 22px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 34px;
  padding-bottom: 18px;
}
.hero-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0;
}
.eyebrow,
.guide-meta {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 3.7rem;
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-copy > p:last-of-type {
  max-width: 660px;
  margin: 22px 0 0;
  color: #3d4852;
  font-size: 1.13rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button,
.text-link,
.guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 800;
}
.button {
  padding: 11px 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 38, 0.16);
}
.text-link {
  padding: 10px 4px;
  color: var(--primary);
}
.featured-guide {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.featured-guide a {
  display: grid;
  grid-template-rows: 235px 1fr;
  min-height: 100%;
}
.featured-media {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.featured-media img,
.guide-card-media img,
.article-hero img,
.inline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-copy { padding: 22px; }
.featured-copy h2,
.section-heading h2,
.answer-brief h2,
.buying-fit h2,
.article-body h2,
.faq-section h2,
.workflow-panel h2,
.toc-box h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.16;
  letter-spacing: 0;
}
.featured-copy p:not(.guide-meta),
.guide-summary,
.answer-brief > p,
.fit-card p,
.workflow-panel p,
.faq-section p,
.article-body p {
  color: var(--muted);
}
.featured-copy p:not(.guide-meta) { margin: 12px 0 0; }
.tag-row,
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tag-row span,
.chips span {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.guide-action {
  margin-top: 16px;
  color: var(--primary);
}
.product-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 26px;
}
.product-tile {
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
}
.product-tile span {
  color: var(--accent);
  font-weight: 900;
  font-size: 0.8rem;
}
.product-tile strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.product-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}
.answer-brief {
  margin-top: 10px;
  margin-bottom: 22px;
}
.answer-brief,
.buying-fit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-top: 24px;
  padding-bottom: 24px;
  box-shadow: 0 14px 30px rgba(23, 32, 38, 0.06);
}
.answer-brief > p { max-width: 880px; margin: 12px 0 0; }
.takeaway-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.takeaway-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
ul { padding-left: 20px; }
.takeaway-box li,
.article-body li { margin: 7px 0; color: #45515d; }
.ad-slot {
  display: flex;
  justify-content: center;
  max-width: var(--max);
  margin: 22px auto;
  padding-inline: 22px;
}
.ad-unit {
  display: grid;
  place-items: center;
  width: min(100%, var(--ad-width));
  min-height: var(--ad-height);
  overflow: hidden;
  border: 1px dashed #b9c5cf;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.70);
  color: var(--muted);
  text-align: center;
}
.ad-unit-live {
  border-color: transparent;
  background: transparent;
  padding: 0;
}
.ad-unit-live iframe,
.ad-unit-live ins {
  max-width: 100%;
}
.coupang-dynamic-widget {
  display: block;
  width: min(100%, var(--coupang-widget-width));
  max-width: 100%;
  min-height: var(--coupang-widget-height);
  margin: 16px auto;
  overflow: hidden;
}
.coupang-dynamic-widget iframe,
.coupang-dynamic-widget ins {
  max-width: 100% !important;
}
.ad-unit-empty span { font-size: 0.78rem; font-weight: 800; }
.ad-unit-empty strong { display: block; font-size: 0.95rem; }
.ad-leaderboard .ad-unit-mobile { display: none; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 46px;
}
.section-heading { margin-bottom: 16px; }
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guide-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
  box-shadow: 0 16px 34px rgba(23, 32, 38, 0.09);
}
.guide-card a { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 190px; }
.guide-card-media { background: var(--soft); }
.guide-card-copy { padding: 16px; min-width: 0; }
.guide-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: 0;
}
.guide-summary {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.sidebar {
  display: grid;
  gap: 16px;
}
.sticky { position: sticky; top: 88px; }
.workflow-panel,
.toc-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
}
.workflow-panel ol {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.workflow-panel li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}
.workflow-panel li > span,
.fit-card > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.workflow-panel strong,
.fit-card strong { display: block; line-height: 1.2; }
.workflow-panel p,
.fit-card p { margin: 4px 0 0; font-size: 0.92rem; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.article-layout { padding-top: 6px; padding-bottom: 42px; }
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  column-gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}
.article-hero > p:first-child,
.article-hero > h1,
.article-hero > p:nth-child(3),
.article-hero > .tag-row { grid-column: 1; }
.article-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}
.article-hero > p:nth-child(3) {
  margin: 16px 0 0;
  color: #3d4852;
  font-size: 1.08rem;
}
.article-hero img {
  grid-column: 2;
  grid-row: 1 / span 5;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}
.buying-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fit-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}
.fit-card strong { margin-top: 14px; overflow-wrap: anywhere; }
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.article-body {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.article-section { scroll-margin-top: 96px; }
.article-section + .article-section,
.faq-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-body h2 { margin-bottom: 12px; }
.article-body p { margin: 0 0 15px; }
.inline-image {
  max-height: 430px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.faq-section details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}
.toc-box {
  display: grid;
  gap: 8px;
}
.toc-box a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.toc-box a:hover { color: var(--primary); }
.site-footer {
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer > div:first-child { color: var(--ink); font-weight: 850; }
.language-links,
.machine-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.language-links a,
.machine-links a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; padding: 26px 0 6px; }
  .featured-guide a { grid-template-columns: 280px 1fr; grid-template-rows: none; }
  .content-grid,
  .article-shell { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .guide-list { grid-template-columns: 1fr; }
  .product-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-hero { grid-template-columns: 1fr; }
  .article-hero img { grid-column: 1; grid-row: auto; min-height: 320px; margin-top: 22px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 86px; }
  .site-header { align-items: flex-start; margin: 0 10px; padding: 12px; }
  .brand span:last-child { max-width: min(62vw, 260px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header nav a { padding: 7px 8px; font-size: 0.86rem; }
  .hero,
  .answer-brief,
  .product-rail,
  .content-grid,
  .article-layout,
  .site-footer { padding-inline: 16px; }
  .disclosure { padding-inline: 16px; }
  .hero h1 { font-size: 2.5rem; line-height: 1.02; }
  .article-hero h1 { font-size: 2.1rem; }
  .hero-copy > p:last-of-type,
  .article-hero > p:nth-child(3) { font-size: 1rem; }
  .featured-guide a { display: block; }
  .featured-media { height: 210px; }
  .product-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-tile { min-height: 112px; }
  .answer-brief,
  .buying-fit,
  .article-body { padding: 18px; }
  .buying-fit { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .guide-card a { grid-template-columns: 116px minmax(0, 1fr); min-height: 168px; }
  .guide-summary { -webkit-line-clamp: 2; }
  .article-hero img { min-height: 240px; }
  .ad-leaderboard .ad-unit-leaderboard { display: none; }
  .ad-leaderboard .ad-unit-mobile { display: grid; }
}

@media (max-width: 460px) {
  .site-header { display: grid; gap: 8px; }
  .site-header nav { justify-content: flex-start; }
  .hero h1 { font-size: 2.05rem; }
  .product-rail { grid-template-columns: 1fr; }
  .guide-card a { grid-template-columns: 1fr; }
  .guide-card-media { height: 170px; }
}

