:root {
  --bg: #F4EFE5;
  --bg-card: #ffffff;
  --bg-soft: #EEE7D8;
  --ink: #1a1a1a;
  --ink-soft: #444444;
  --ink-muted: #888888;
  --accent: #BE644A;
  --accent-soft: #f1d9d0;
  --rule: #e0dbd3;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.header {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--accent); }
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.header-cta:hover { color: var(--accent); text-decoration: none; }
.compare-dropdown { position: relative; }
.compare-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  padding: 4px 0;
}
.compare-dropdown summary::-webkit-details-marker { display: none; }
.compare-dropdown summary::after { content: " ▾"; font-size: 15px; margin-left: 2px; color: var(--ink-muted); }
.compare-dropdown[open] summary::after { content: " ▴"; color: var(--accent); }
.compare-dropdown summary:hover { color: var(--accent); }
.compare-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
}
.compare-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.compare-dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }

/* ── Article hero ── */
.article-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.article-hero .chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 14px;
}
.article-hero .subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.article-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Article body ── */
.article-body h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
}
.article-body p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.article-body li { margin-bottom: 6px; }

/* ── Tables ── */
.article-body .size-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  margin: 24px 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.article-body th, .article-body td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.article-body thead th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td.required {
  color: var(--accent);
  font-weight: 600;
}

/* ── Images ── */
.article-body figure {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-card);
}
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
}
.article-body figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
}

/* ── Video embed ── */
.video-embed {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Callout box ── */
.callout {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.callout strong { color: var(--ink); }

/* ── CTA card ── */
.cta-card {
  background: var(--accent);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}
.cta-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
  line-height: 1.5;
}
.cta-card a {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.cta-card a:hover { opacity: 0.92; text-decoration: none; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 48px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .article-hero h1 { font-size: 26px; }
  .article-body h2 { font-size: 22px; margin-top: 36px; padding-top: 24px; }
  .cta-card { padding: 24px 20px; }
}
