/* ------------------------------------------------------------------ *
 * Best AI Agent Training Data — procurement reference directory
 * Light, document-first layout: top bar, header, reference sidebar,
 * one readable content column, restrained colour, no animation.
 * ------------------------------------------------------------------ */

:root {
  --paper: #fbfaf6;
  --card: #fffefb;
  --ink: #1b1d1a;
  --ink-soft: #3d423c;
  --muted: #666b62;
  --rule: #e4dfd2;
  --rule-soft: #efebe0;
  --accent: #0f5b52;
  --accent-ink: #0b453f;
  --accent-soft: #eff5f1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d8e8e2;
}

.shell {
  width: 100%;
  max-width: 1108px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Top bar --------------------------------------------------------- */
.topbar {
  background: #f4f1e7;
  border-bottom: 1px solid var(--rule);
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.topbar p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.topbar-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* Header ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 15px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0 0 3px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Two-column body: reference sidebar + content ------------------- */
.layout {
  display: grid;
  grid-template-columns: 212px minmax(0, 744px);
  gap: 56px;
  justify-content: center;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 64px;
}

.sidebar {
  position: sticky;
  top: 22px;
  padding-top: 4px;
  font-size: 13px;
}

.side-title {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list > li {
  margin: 0 0 9px;
}

.side-list a {
  color: var(--ink-soft);
  text-decoration: none;
}

.side-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.side-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.side-sub {
  margin: 7px 0 0;
  padding: 0 0 0 11px;
  border-left: 1px solid var(--rule-soft);
  list-style: none;
}

.side-sub li {
  margin: 0 0 6px;
}

.side-sub a {
  font-size: 12.5px;
  color: var(--muted);
}

.side-rule {
  height: 1px;
  margin: 18px 0 16px;
  background: var(--rule);
}

.side-list-secondary a {
  color: var(--muted);
}

.side-cta {
  margin-top: 22px;
  padding: 14px 14px 15px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.side-cta p {
  margin: 0 0 7px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.side-cta a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.side-cta a::after {
  content: " →";
}

.side-cta a:hover {
  text-decoration: underline;
}

.page {
  min-width: 0;
}

/* Breadcrumbs ----------------------------------------------------- */
.crumbs {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  color: var(--rule);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.crumbs [aria-current="page"] {
  color: var(--ink-soft);
}

/* Page shell ------------------------------------------------------ */
.page {
  padding-top: 2px;
  padding-bottom: 4px;
}

.lede {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span {
  color: var(--rule);
  margin: 0 4px;
}

h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  padding-top: 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

.dek {
  margin: 0;
  max-width: 64ch;
  font-size: 17.5px;
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-ink);
}

/* Answer in brief ------------------------------------------------- */
.brief {
  margin: 0 0 4px;
  padding: 22px 26px 8px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

.brief .brief-label {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.brief p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.62;
}

/* In this entry --------------------------------------------------- */
.toc {
  margin: 22px 0 26px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.toc-title {
  margin: 0 0 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0 0 0 18px;
  columns: 2;
  column-gap: 34px;
  font-size: 13.5px;
  line-height: 1.55;
}

.toc li {
  margin: 0 0 7px;
  break-inside: avoid;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* Entity chips + chain ------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 9px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chain-block {
  margin: 0 0 26px;
  padding: 15px 20px 17px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.chain-block figcaption {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
}

.chain-node {
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.chain-arrow {
  font-family: var(--sans);
  color: var(--accent);
}

/* CTA ------------------------------------------------------------- */
.cta {
  margin: 0 0 36px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background: var(--accent-ink);
  color: #fff;
}

.cta-note {
  max-width: 64ch;
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.cta-band {
  margin: 8px 0 0;
  padding: 24px 26px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.cta-band h2 {
  padding-top: 0;
  font-size: 21px;
}

.cta-band p {
  max-width: 60ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.cta-band .cta-note {
  margin-top: 12px;
}

/* Sections & lists ------------------------------------------------ */
.section {
  margin: 0 0 38px;
}

.items {
  margin: 0 0 18px;
  padding-left: 20px;
}

.items li {
  margin: 0 0 10px;
  padding-left: 2px;
}

.items li:last-child {
  margin-bottom: 0;
}

.items li strong {
  font-weight: 650;
}

ol.steps li {
  margin-bottom: 12px;
}

.note {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: #f7f4ec;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.note-title {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.note p:last-child,
.note ul:last-child,
.note ol:last-child {
  margin-bottom: 0;
}

/* Definition table used by the glossary index -------------------- */
.table-wrap {
  margin: 18px 0 8px;
  overflow-x: auto;
}

.term-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
}

.term-table th {
  padding: 9px 12px 9px 0;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.term-table td {
  padding: 11px 12px 11px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}

.term-table td:first-child {
  width: 30%;
  font-weight: 600;
}

/* Card grid ------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s ease;
}

.card:hover {
  border-color: var(--accent);
  color: inherit;
}

.card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-title {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.25;
  color: var(--ink);
}

.card-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* FAQ ------------------------------------------------------------- */
.faq {
  margin-top: 6px;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 14px 26px 14px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 11px;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  max-width: 70ch;
  padding: 0 4px 16px 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* Sources, citation, links ---------------------------------------- */
.sources ol {
  padding-left: 22px;
  font-size: 15px;
}

.sources li {
  margin-bottom: 10px;
}

.small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.cite {
  margin: 34px 0 38px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.cite h2 {
  margin-bottom: 8px;
  padding-top: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cite p {
  margin: 0 0 6px;
  font-size: 14px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  font-size: 14.5px;
}

/* Footer ---------------------------------------------------------- */
.site-footer {
  margin-top: 8px;
  padding: 32px 0 38px;
  background: #f5f2e9;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.footer-brand {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 16px;
}

.footer-note {
  max-width: 52ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 13.5px;
}

.footer-legal {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 1020px) {
  .layout {
    display: block;
    max-width: 820px;
    padding-top: 28px;
  }

  .sidebar {
    display: none;
  }

  .page {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }

  .shell {
    padding: 0 18px;
  }

  .topbar .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .site-nav ul {
    gap: 0 16px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .layout {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .brief {
    padding: 18px 18px 6px;
  }

  .toc ol {
    columns: 1;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 22px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .table-wrap {
    overflow: visible;
  }

  .term-table,
  .term-table tbody,
  .term-table tr,
  .term-table td {
    display: block;
    width: 100%;
  }

  .term-table thead {
    display: none;
  }

  .term-table tr {
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--rule-soft);
  }

  .term-table td {
    padding: 0 0 9px;
    border: 0;
  }

  .term-table td:first-child {
    width: auto;
    margin-bottom: 2px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
  }

  .term-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .term-table td:first-child::before {
    display: none;
  }

  .term-table td:last-child {
    padding-bottom: 0;
  }
}
