/* D2 help site -- tokens from docs/brand-guide.md and frontend/index.html :root (stone, shadow, margarita). */
:root {
  --stone: #336B87; --stone-700: #2A5A73; --stone-tint: #E6EDF1; --margarita: #AFC590; --shadow: #2A3132;
  --bg: #F4F7F8; --surface: #FFFFFF; --border: #C8D5DB; --border-2: #DCE5EA; --text: #2A3132; --muted: #5F6E73;
  --r-sm: 2px; --r: 4px;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--stone-700); text-decoration: none; }
a:hover { color: var(--shadow); text-decoration: underline; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.top { background: var(--surface); border-bottom: 1px solid var(--border-2); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; border-radius: var(--r); background: var(--shadow); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mark sup { color: var(--margarita); font-size: 9px; }
.word { font-weight: 600; letter-spacing: -0.005em; }
.sub { font-family: var(--mono); font-size: 11px; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; }
.top nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.eyebrow span { color: var(--stone); }
.hero { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.lead { margin: 0; max-width: 60ch; font-size: 18px; }
.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.search input { flex: 1 1 320px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font: inherit; color: var(--text); }
.search button { height: 48px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--stone); color: #FFFFFF; font: 600 15px var(--sans); cursor: pointer; }
.search button:hover { background: var(--stone-700); }
main.wrap { padding-bottom: 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.grid > .card { display: flex; flex-direction: column; gap: 16px; }
.cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.all { margin-top: auto; font-size: 14px; font-weight: 600; }
.vendors { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.vendors > div { max-width: 440px; }
.vendors ul { font-size: 15px; }
.page { padding-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.article { padding-top: 40px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.article .body { flex: 999 1 560px; min-width: 0; padding: 40px; }
.article .body h1 { margin: 16px 0 12px; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.article .body h2 { margin: 32px 0 12px; }
.article .body p, .article .body li { max-width: 70ch; }
.article .body ol, .article .body ul { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.article aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.article aside .card { padding: 20px; }
.article aside h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0; }
.crumbs { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: var(--r-sm); background: var(--stone-tint); color: var(--stone-700); border: 1px solid var(--border); }
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; font-size: 15px; }
th, td { border: 1px solid var(--border-2); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg); font-weight: 600; }
.stamp { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border-2); }
.results { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.results li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; }
.results a { display: inline-block; margin-top: 4px; font-size: 17px; font-weight: 600; }
.results p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
footer { border-top: 1px solid var(--border-2); background: var(--surface); }
.foot { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot h2 { margin: 8px 0; }
.foot p { margin: 0; }
.foot > p { align-self: flex-end; }
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 34px; }
  .hero { padding-top: 48px; }
  .secs { grid-template-columns: minmax(0, 1fr); }
  .article .body { padding: 24px; }
}
