/* ── BLOG SHARED STYLES ──────────────────────────────────────────────────────
   Imports landing.css for nav/footer/variables. Blog-specific styles below.
────────────────────────────────────────────────────────────────────────────── */

/* ── BLOG INDEX ────────────────────────────────────────────────────────────── */
.blog-hero {
  padding: 80px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -.6px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--ink2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-grid-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  background: white;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.blog-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}
.blog-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin-bottom: 10px;
  color: var(--ink);
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.blog-card p {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink4);
  letter-spacing: .3px;
  margin-top: auto;
}
.blog-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink4); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  margin-top: 48px;
}

/* ── ARTICLE LAYOUT ────────────────────────────────────────────────────────── */
.article-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.article-main { min-width: 0; }
.article-sidebar {
  position: sticky;
  top: 80px;
}

/* Article header */
.article-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  color: var(--ink);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: .3px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink4); }

/* Pull quote */
.article-pull {
  background: var(--off);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

/* Body prose */
.article-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.3px;
  margin: 48px 0 16px;
  color: var(--ink);
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
}
.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink2);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink2);
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Callout boxes */
.article-callout {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 32px 0;
  background: var(--off);
}
.article-callout-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 8px;
}
.article-callout p { margin: 0; font-size: 15px; }
.article-callout.callout-tip { border-color: #b8dfc9; background: #ebf3ef; }
.article-callout.callout-tip .article-callout-label { color: var(--accent); }
.article-callout.callout-warn { border-color: #f0e8c8; background: #fffbf0; }
.article-callout.callout-warn .article-callout-label { color: #c47d0a; }

/* Comparison tables */
.article-table-wrap { overflow-x: auto; margin: 32px 0; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.article-table th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: white;
  padding: 12px 16px;
  text-align: left;
}
.article-table th:first-child { background: var(--ink); border-radius: 8px 0 0 0; }
.article-table th:nth-child(2) { background: #854f0b; }
.article-table th:last-child { background: var(--accent); border-radius: 0 8px 0 0; }
.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
  line-height: 1.55;
  vertical-align: top;
}
.article-table tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 600; color: var(--ink); background: var(--off); }
.article-table tr:hover td { background: #fafaf8; }
.article-table tr:hover td:first-child { background: #f0eee9; }

/* Sidebar */
.sidebar-toc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: white;
  margin-bottom: 20px;
}
.sidebar-toc-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 14px;
}
.sidebar-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink3);
  text-decoration: none;
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: all .15s;
  line-height: 1.4;
}
.sidebar-toc a:hover, .sidebar-toc a.active {
  color: var(--ink);
  border-left-color: var(--accent);
}
.sidebar-cta {
  background: var(--ink);
  border-radius: 10px;
  padding: 20px;
  color: white;
}
.sidebar-cta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 8px;
}
.sidebar-cta h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.sidebar-cta p { font-size: 13px; opacity: .7; line-height: 1.55; margin-bottom: 16px; }
.sidebar-cta a {
  display: block;
  background: white;
  color: var(--ink);
  text-align: center;
  padding: 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.sidebar-cta a:hover { opacity: .85; }

/* Related articles */
.related-section {
  border-top: 1px solid var(--line);
  padding: 56px 0 80px;
  margin-top: 64px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.related-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* Score chip */
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 4px;
}
.score-chip-grade {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}
.score-chip-label { font-size: 12px; color: var(--ink3); }
.score-chips-row { display: flex; flex-wrap: wrap; margin: 24px 0; }

@media (max-width: 768px) {
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
