/**
 * IntelAGENT — content pages (guides, comparisons, specialty landing pages)
 * Additive layer on top of base.css + kit.css. Nothing here overrides an
 * existing component; it only adds what long-form reading needs.
 */

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 13px;
  color: var(--muted-2);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line-strong);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- article shell ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}
.doc-aside { position: sticky; top: 96px; }

/* ---------- byline / dates ---------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 18px 0;
  margin: 0 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.byline b { color: var(--ink-2); font-weight: 600; }
.byline time { font-variant-numeric: tabular-nums; }

/* ---------- prose ---------- */
.prose { font-size: 17px; line-height: 1.68; color: var(--ink-2); }
.prose > * { max-width: 72ch; }
.prose > .cmp-wrap,
.prose > .full { max-width: none; }
.prose p { margin: 0 0 22px; }
.prose h2 {
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.024em;
  font-weight: 600;
  color: var(--ink);
  margin: 52px 0 16px;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: var(--ink);
  margin: 34px 0 10px;
  scroll-margin-top: 96px;
}
.prose h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 8px;
}
.prose > h2:first-child { margin-top: 0; }
.prose a:not(.btn):not(.link-more):not(.rel-card) {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(31, 122, 96, 0.3);
  text-underline-offset: 2.5px;
}
.prose a:not(.btn):not(.link-more):not(.rel-card):hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 0 0 9px; }
.prose li > ul, .prose li > ol { margin: 9px 0 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 0.88em;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--ink);
  white-space: nowrap;
}
.prose blockquote {
  margin: 0 0 22px;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--brand-fill);
  color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.prose figure { margin: 0 0 26px; }
.prose figcaption { font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- key-takeaway / answer box ---------- */
/* The first thing an answer engine should be able to lift off the page. */
.answer {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 22px 24px;
  margin: 0 0 32px;
}
.answer > :last-child { margin-bottom: 0; }
.answer .answer-label {
  display: block;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.answer .answer-pitch {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.answer .answer-pitch a { font-weight: 600; white-space: nowrap; }

/* ---------- callout ---------- */
.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--bg-2);
}
.note > :last-child { margin-bottom: 0; }
.note b { color: var(--ink); }
.note--warn { border-left: 3px solid #c0392b; }
.note--check { border-left: 3px solid var(--brand); }

/* ---------- data table (narrower than .cmp, left-aligned) ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 0 0 28px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 15px; line-height: 1.45; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--muted); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl .code {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.col-us { background: var(--brand-soft); }
.tbl tr.col-us th, .tbl tr.col-us td { color: var(--brand-ink); }
.tbl tr.col-us > th[scope="row"] { font-weight: 700; }
.tbl .yes { color: var(--brand-ink); font-weight: 600; }
.tbl .no { color: var(--muted-2); }
.tbl caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 4px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- on-this-page ---------- */
.toc {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.toc-label {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.toc a:hover { color: var(--brand); }

/* ---------- related links ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rel-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rel-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.07);
  transform: translateY(-2px);
}
/* cards sit inside .prose, which link-styles anchors — they are not links in text */
.prose a.rel-card:not(.btn),
.prose a.rel-card:not(.btn):hover { color: inherit; text-decoration: none; }
.rel-card .rel-kind {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}
.rel-card h3 { font-size: 16.5px; line-height: 1.34; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.012em; }
.rel-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.rel-card .rel-kind { color: var(--muted-2); opacity: 0.85; }

/* ---------- product section (the IntelAGENT block inside an article) ---------- */
/* Deliberately louder than the surrounding prose: this is the point of the page. */
.pitch {
  position: relative;
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-2) 46%, var(--bg) 100%);
  padding: 34px 34px 32px;
  margin: 56px 0 40px;
  overflow: hidden;
}
.pitch::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-fill));
}
.pitch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}
.pitch-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-fill);
}
.prose .pitch > h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.2vw, 30px);
  color: var(--ink);
}
.prose .pitch > p { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; max-width: 66ch; }
.prose .pitch > p.pitch-lead { font-size: 18px; line-height: 1.6; }

.pitch-list { list-style: none; margin: 0 0 24px !important; padding: 0 !important; display: grid; gap: 13px; }
.pitch-list > li {
  position: relative;
  padding-left: 32px;
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  color: var(--muted);
}
.pitch-list > li b, .pitch-list > li strong { color: var(--ink); font-weight: 600; }
.pitch-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand-fill);
  /* check mark, drawn so no icon font is needed */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.pitch-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 !important;
  padding-top: 22px;
  border-top: 1px solid var(--brand-soft);
}
.pitch-cta .btn { flex: none; }
.pitch-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 !important; max-width: 46ch; }
.pitch-note b { color: var(--ink); font-weight: 600; }

@media (max-width: 700px) {
  .pitch { padding: 26px 20px 24px; margin: 40px 0 32px; }
  .pitch-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- index listing ---------- */
.idx { display: grid; gap: 0; border-top: 1px solid var(--line); }
.idx-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 2px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.15s ease;
}
.idx-item:hover { background: var(--bg-2); }
.idx-kind {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 4px;
}
.idx-item h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.015em; }
.idx-item p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 68ch; }

/* ---------- source list ---------- */
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sources li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sources a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(31, 122, 96, 0.3); text-underline-offset: 2.5px; }

/* ---------- verification flag (visible, honest) ---------- */
.unverified {
  display: inline-block;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ---------- step list ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 50px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 13px;
  color: var(--ink-2);
}
.steps h3 { margin-top: 2px !important; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-aside { display: none; }
}
@media (max-width: 700px) {
  .prose { font-size: 16.5px; }
  .idx-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .idx-kind { padding-top: 0; }
  .byline { gap: 6px 14px; }
}
