/* Shared styles for the comparison, integration and guide pages (scripts/site-pages.py). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --night: #13233a;
  --ink: #182b45;
  --lamp: #f5cc68;
  --paper: #f7f5ef;
  --text: #f3f1ea;
  --muted: #9db0c2;
  --dim: #6f859a;
  --rule: rgba(220, 232, 238, 0.11);
  --panel: rgba(220, 232, 238, 0.04);
  --good: #8fd3ad;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--lamp); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); }
.wrap { width: min(1040px, 100% - 32px); margin: 0 auto; }
.mark { width: 26px; height: 26px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 11px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: #ffda81; }
.btn-ghost { border: 1px solid var(--rule); background: var(--panel); color: var(--text); }
.btn-ghost:hover { background: rgba(220, 232, 238, 0.09); }

.top { position: sticky; top: 0; z-index: 10; background: rgba(19, 35, 58, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.top nav .link { color: var(--muted); text-decoration: none; }
.top nav .link:hover { color: var(--text); }
.top .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 640px) { .top nav .link { display: none; } }

.page { padding: 56px 0 96px; }
.crumbs { min-height: 1em; color: var(--dim); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs span { margin: 0 6px; }
h1 { max-width: 860px; margin-top: 12px; font-size: clamp(36px, 5.4vw, 60px); font-weight: 640; letter-spacing: -0.045em; line-height: 1.04; }
.lede { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: 19px; }
h2 { margin: 56px 0 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 630; letter-spacing: -0.03em; line-height: 1.15; }
h3 { margin: 28px 0 6px; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.page p { max-width: 760px; margin-top: 12px; color: #d8dee4; }
.page > p:first-of-type + p, .page .lede + p { margin-top: 32px; }
.note { color: var(--dim) !important; font-size: 13.5px; }
.ticks { max-width: 760px; margin-top: 14px; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #d8dee4; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--lamp); border-bottom: 2px solid var(--lamp); transform: rotate(-45deg); }

.code { position: relative; max-width: 820px; margin-top: 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--night); }
.code .lang { position: absolute; top: 10px; right: 14px; color: var(--dim); font-size: 12px; }
.code pre { overflow-x: auto; padding: 18px 20px; font: 14px/1.7 var(--mono); color: #e6edf2; }
.code code { padding: 0; border: 0; background: none; font-size: inherit; }

.table { max-width: 100%; margin-top: 18px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
thead th { border-top: 0; color: var(--muted); font-size: 13px; font-weight: 600; background: var(--panel); }
td:first-child { color: var(--muted); min-width: 180px; }
.y { color: var(--good); font-weight: 600; }
.no { color: var(--dim); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.run { margin-top: 56px; padding: 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(4, 10, 20, 0.35); }
.run figcaption { padding: 0 4px 10px; border-bottom: 1px solid #e3e7e7; font: 600 13px var(--sans); }
.run ul { list-style: none; margin-top: 6px; }
.run li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 7px 4px 7px calc(4px + var(--d) * 18px); border-bottom: 1px solid #eef0f0; font-size: 13.5px; }
.run li:last-child { border-bottom: 0; }
.run .k { padding: 1px 7px; border-radius: 6px; background: #e8eef2; color: #3a4d61; font: 11.5px var(--mono); }
.run .k-llm { background: #fff1cf; color: #885719; }
.run .k-tool { background: #e3efe7; color: #2f6b4f; }
.run .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run .r { color: #52677a; font-variant-numeric: tabular-nums; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 40px; }
.card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; transition: background 160ms ease, border-color 160ms ease; }
.card:hover { background: rgba(220, 232, 238, 0.08); border-color: rgba(245, 204, 104, 0.4); }
.card strong { font-size: 18px; letter-spacing: -0.01em; }
.card span { color: var(--muted); font-size: 14.5px; }

.faq details { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 16px; }

.end { margin-top: 72px; padding: 32px; border: 1px solid var(--rule); border-radius: 20px; background: var(--panel); }
.end h2 { margin-top: 0; }
.end-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px !important; }

/* Changelog: a dated timeline */
.log { position: relative; max-width: 920px; margin-top: 64px; }
.log::before { content: ""; position: absolute; left: 204px; top: 10px; bottom: 0; width: 1px; background: var(--rule); }
.log-entry { position: relative; display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 60px; padding-bottom: 56px; }
.log-entry:last-child { padding-bottom: 0; }
.log-entry::before { content: ""; position: absolute; left: 199px; top: 9px; width: 11px; height: 11px; border: 2px solid var(--lamp); border-radius: 50%; background: var(--ink); }
.log-entry.is-latest::before { background: var(--lamp); box-shadow: 0 0 0 5px rgba(245, 204, 104, 0.16); }
.page .log-when { margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.log-when time { display: block; color: var(--text); font-weight: 600; }
.log-ver { display: inline-block; margin-top: 8px; padding: 2px 9px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: var(--muted); font: 12px var(--mono); }
.log-entry h2 { margin: 0; font-size: clamp(21px, 2.4vw, 27px); }
.log-entry .ticks { margin-top: 14px; }
.log-entry .ticks strong { color: var(--text); }
@media (max-width: 720px) {
  .log::before { left: 5px; }
  .log-entry { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 0 44px 30px; }
  .log-entry::before { left: 0; top: 6px; }
}

footer { border-top: 1px solid var(--rule); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  th, td { padding: 10px 12px; font-size: 14px; }
  td:first-child { min-width: 112px; }
  td { min-width: 140px; }
}
