/* Insights. Article and index layout for the resources section.
   Reuses the tokens, header, footer and button styles defined in home.css, so this file
   only carries what is genuinely new: the prose column, the table of contents, the
   comparison table, callouts and the article cards on the index. */

.article-hero {
  padding: clamp(48px, 6vw, 84px) 0 clamp(28px, 3vw, 40px);
  color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}
.article-hero .eyebrow { color: #bfe6ff; }

/* Breadcrumbs. rgba(255,255,255,.62) on --navy-2 (#0c2138) measures 6.9:1, above the 4.5 the
   AA level needs, and the separators are decorative so they carry no contrast requirement. */
.breadcrumbs { margin: 0 0 18px; }
.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .62); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: rgba(255, 255, 255, .62); }
.article-hero h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.article-hero .lead { max-width: 62ch; color: rgba(255, 255, 255, .74); font-size: 18px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .58);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.article-layout > * { min-width: 0; }

/* Table of contents. Sticky on desktop, a plain list at the top on narrow screens. */
.article-toc {
  position: sticky;
  top: 100px;
  order: 2;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--canvas-2);
}
.article-toc h2 {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-toc ol { margin: 0; padding-left: 18px; }
.article-toc li { margin: 0 0 8px; }
.article-toc a { color: var(--muted); font-size: 14px; line-height: 1.45; text-decoration: none; }
.article-toc a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

.prose { order: 1; max-width: 74ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin: 46px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  scroll-margin-top: 96px;
}
.prose h3 {
  margin: 32px 0 0;
  font-size: 19px;
  font-weight: 680;
  line-height: 1.3;
  scroll-margin-top: 96px;
}
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.68; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--blue-dark); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--canvas);
  font-family: var(--mono);
  font-size: .88em;
  color: var(--navy-3);
}

/* Answer-first block. Search engines and readers both want the direct answer before
   the explanation, so the first section of every article states it plainly. */
.answer {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(37, 136, 255, .28);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: rgba(37, 136, 255, .06);
}
.answer p { margin: 0; color: var(--text); font-size: 17px; }
.answer p + p { margin-top: 12px; }

.note {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas-2);
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose caption {
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 13px;
  text-align: left;
}
.prose th, .prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--canvas); color: var(--text); font-weight: 650; }
.prose td { color: var(--muted); }

.article-cta {
  margin-top: 52px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #fff, var(--canvas-2));
  box-shadow: var(--shadow-float);
}
.article-cta h2 { margin: 0; font-size: 22px; }
.article-cta p { margin: 10px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.sources { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { margin: 0 0 14px; font-size: 15px; font-family: var(--mono); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sources ul { padding-left: 20px; }
.sources li { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Index */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.insight-card:hover { transform: translateY(-2px); border-color: rgba(37, 136, 255, .4); box-shadow: var(--shadow-float); }
.insight-card .eyebrow { color: var(--blue-dark); font-size: 10px; margin-bottom: 4px; }
.insight-card .eyebrow::before { background: var(--blue); }
.insight-card h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.16; color: var(--text); }
.insight-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.insight-card .insight-meta { margin-top: auto; padding-top: 12px; color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 940px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { position: static; order: 0; }
  .prose { order: 1; }
}

/* HS classification volume planner. A form and a result table; the styling exists only to
   keep the inputs and the rows legible at narrow widths, where the table scrolls. */
.planner {
  margin: 28px 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--canvas-2);
}
.planner h3 { margin: 0 0 6px; font-size: 18px; }
.planner > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.planner-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.planner-field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1 1 180px; }
.planner-field label { color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.planner-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}
.planner-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.planner-headline {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: rgba(37, 136, 255, .07);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.planner table { margin: 0; font-size: 14px; }
.planner th[scope="row"] { background: #fff; font-weight: 600; }
.planner-label { display: block; color: var(--text); }
.planner-note { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; font-weight: 400; line-height: 1.45; }
.planner td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.planner-disclaimer { margin: 16px 0 0; color: var(--faint); font-size: 13px; line-height: 1.6; }

