/* Editorial layout for /articles and individual article pages, matched to VetkaBox Auto's design tokens. */
.article-page { background: #fff; }

.articles-hero {
  padding: clamp(56px, 7vw, 108px) 0 clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--silver);
  background: var(--paper);
}
.articles-hero .eyebrow,
.article-header .eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #526675;
}
.articles-hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 18ch;
  margin-bottom: 16px;
}
.articles-hero p {
  max-width: 640px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.48;
  color: var(--muted);
}

.articles-grid-section {
  padding: clamp(44px, 5vw, 76px) 0 clamp(72px, 8vw, 120px);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--silver);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.article-card:hover {
  border-color: #c7d1da;
  box-shadow: 0 18px 40px -24px rgb(20 35 55 / .28);
  transform: translateY(-2px);
}
.article-card-meta {
  font-size: 13px;
  color: var(--soft-ink);
  margin-bottom: 10px;
}
.article-card h2 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.22;
  letter-spacing: -.022em;
  margin-bottom: 12px;
}
.article-card p {
  font-size: 16px;
  line-height: 1.52;
  color: var(--muted);
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
}

/* Individual article page */
.article-shell {
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(72px, 8vw, 120px);
}
.article-container {
  width: min(calc(100% - 2 * var(--gutter)), 780px);
  margin-inline: auto;
}
.article-wide {
  width: min(calc(100% - 2 * var(--gutter)), 980px);
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--soft-ink);
}
.breadcrumbs a { color: var(--link); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: #b0b3b8; }

.article-header {
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--silver);
}
.article-header h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -.034em;
  margin-bottom: 18px;
}
.article-lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--soft-ink);
}

.article-toc {
  margin: 0 0 42px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--silver);
}
.article-toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #526675;
  margin-bottom: 12px;
}
.article-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.article-toc a {
  font-size: 15px;
  color: var(--link);
  line-height: 1.4;
}
.article-toc a:hover { text-decoration: underline; }

/* Prose typography */
.article-body {
  font-size: 17px;
  line-height: 1.66;
  color: var(--ink);
  letter-spacing: -.012em;
}
.article-body h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -.026em;
  margin: 56px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--silver);
}
.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.article-body h3 {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.24;
  letter-spacing: -.02em;
  margin: 36px 0 14px;
}
.article-body h4 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 26px 0 10px;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}
.article-body li {
  padding-left: 2px;
}
.article-body li > ol,
.article-body li > ul {
  margin-top: 10px;
  margin-bottom: 4px;
}
.article-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body strong,
.article-body b {
  font-weight: 600;
  color: var(--ink);
}

.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--fog);
  border-left: 4px solid #326e9a;
}
.callout p:last-child { margin-bottom: 0; }

.criterion-card {
  margin: 24px 0;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--silver);
}
.criterion-card h4 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 20px;
}
.criterion-card ul {
  margin-bottom: 0;
}
.pass-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--silver);
  font-size: 16px;
  color: #164e36;
}
.pass-line strong { color: #164e36; }

/* Responsive tables */
.table-wrap {
  margin: 26px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--silver);
  background: #fff;
}
.article-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  text-align: left;
}
.article-body th,
.article-body td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--silver);
  vertical-align: top;
}
.article-body thead th {
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.article-body tbody tr:last-child td {
  border-bottom: 0;
}
.article-body td.num,
.article-body th.num {
  text-align: center;
  white-space: nowrap;
}
.article-body tr.total-row td {
  background: var(--paper);
  font-weight: 600;
}

.scorecard-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 12px;
}
.scorecard-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.button-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 980px;
  border: 1px solid #c7d1da;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.button-print:hover {
  background: var(--paper);
  border-color: var(--ink);
}

.red-flags {
  margin: 26px 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: #fdf6f6;
  border: 1px solid #f2d5d5;
}
.red-flags h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #8f1d1d;
}
.red-flags ol {
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.faq-item {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--silver);
  background: #fff;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}
.faq-item p:last-child { margin-bottom: 0; }

/* Author note / closing CTA */
.author-note {
  margin-top: 52px;
  padding: clamp(26px, 3.5vw, 38px);
  border-radius: 24px;
  background: linear-gradient(145deg, #f4f7fa 0%, #eef3f7 100%);
  border: 1px solid #d8e2ea;
}
.author-note h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: clamp(23px, 2.4vw, 30px);
}
.author-note p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.author-actions a {
  text-decoration: none;
}
.author-actions .button {
  color: #fff;
  font-size: 15px;
  padding: 11px 22px;
}
.author-actions .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 980px;
  border: 1px solid #b9c5d0;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.author-actions .button-secondary:hover {
  border-color: var(--ink);
}

.primary-nav a[aria-current="page"] {
  color: var(--link);
  font-weight: 600;
}

@media (max-width: 700px) {
  .criterion-card,
  .article-toc,
  .faq-item,
  .red-flags { padding: 18px; }
  .article-body table { font-size: 14px; }
  .article-body th,
  .article-body td { padding: 10px 11px; }
}

@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .breadcrumbs,
  .button-print,
  .author-actions,
  #vb-chat-root { display: none !important; }
  .article-shell { padding: 0; }
  .article-container,
  .article-wide { width: 100%; max-width: none; }
  .table-wrap { overflow: visible; border: 1px solid #999; }
  .article-body table { min-width: 0; font-size: 11pt; }
  .criterion-card,
  .faq-item,
  .author-note { break-inside: avoid; }
}
