/* extensions.corsen.ai — Corsen AI light theme (values from the corsen.ai design system, light theme) */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.985 0.003 260);
  --surface: #ffffff;
  --fg: oklch(0.21 0.02 265);
  --text: oklch(0.27 0.02 265);
  --muted: oklch(0.47 0.02 262);
  --border: oklch(0.9 0.01 260);
  --rule: oklch(0.93 0.008 260);
  --input: oklch(0.88 0.01 260);
  --primary: oklch(0.55 0.19 262);
  --primary-strong: oklch(0.50 0.18 262);
  --primary-hover: oklch(0.45 0.19 262);
  --tint-blue: oklch(0.96 0.02 262);
  --tint-blue-border: oklch(0.88 0.05 262);
  --accent-soft: oklch(0.94 0.03 262);
  --green: oklch(0.50 0.13 145);
  --tint-green: oklch(0.96 0.03 145);
  --tint-green-border: oklch(0.88 0.06 145);
  --red: oklch(0.50 0.22 25);
  --tint-red: oklch(0.97 0.015 25);
  --tint-red-border: oklch(0.9 0.05 25);
  --cta: oklch(0.50 0.22 25);
  --cta-hover: oklch(0.55 0.22 25);
  --hero-mid: oklch(0.55 0.16 280);
  --wordmark-blue: oklch(0.55 0.18 260);
  --wordmark-red: oklch(0.58 0.22 25);
  --code-bg: oklch(0.2 0.02 265);
  --code-border: oklch(0.3 0.02 265);
  --code-fg: oklch(0.93 0.005 260);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16.8px;
  --radius-xl: 21.6px;
  --shadow: 0 1px 2px #14182208, 0 12px 32px -16px #1418221f;
  --shadow-hover: 0 1px 2px #14182208, 0 16px 40px -16px #2d69de33;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--fg); letter-spacing: -0.025em; }
ul, ol { margin: 0; padding: 0; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--primary-strong);
  background: var(--tint-blue);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--code-fg);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
}
pre code { color: inherit; background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.brand a { color: var(--fg); text-decoration: none; }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.wordmark .ai { background: linear-gradient(to right, var(--wordmark-blue), var(--wordmark-red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-rule { width: 1px; height: 20px; background: var(--input); }
.brand-sub { font-size: 18px; letter-spacing: -0.025em; color: var(--muted) !important; }
.brand-sub:hover { color: var(--fg) !important; }
.nav-desktop { display: none; align-items: center; gap: 24px; }
.nav-desktop a { color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--fg); text-decoration: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--radius);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--fg);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--fg); font-size: 15px; }
.menu-panel a:hover { background: var(--tint-blue); text-decoration: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu { display: none; }
}
@media (max-width: 380px) { .brand-sub, .brand-rule { display: none; } }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 14px; }
.eyebrow-red { color: var(--red); }
.kicker { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.h1 .grad { display: block; background: linear-gradient(to right, var(--primary), var(--hero-mid), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.h1-page { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.15; font-weight: 700; margin-bottom: 14px; max-width: 48rem; }
.h2-sm { font-size: 1.4rem; line-height: 1.2; font-weight: 700; }
.h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.text { color: var(--text); }
.small { font-size: 14px; line-height: 1.6; }
.tiny { font-size: 12px; line-height: 1.6; }
.facts { font-family: var(--font-mono); font-size: 11px; line-height: 1.8; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.strong { font-weight: 600; color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; line-height: 1.2; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 1px 2px #c2001126; }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--input); }
.btn-outline:hover { background: var(--tint-blue); color: var(--fg); border-color: var(--tint-blue-border); }
.btn-ghost { color: var(--primary-strong); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--primary-hover); text-decoration: underline; }
.btn-sm { min-height: 44px; padding: 10px 16px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 11px; line-height: 18px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.pill-blue { color: var(--primary-strong); background: var(--tint-blue); border-color: var(--tint-blue-border); }
.pill-green { color: var(--green); background: var(--tint-green); border-color: var(--tint-green-border); }
.pill-red { color: var(--red); background: var(--tint-red); border-color: var(--tint-red-border); }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; } .gap-64 { gap: 64px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* Hero */
.hero { padding: 64px 0 48px; background: radial-gradient(ellipse at 88% 0%, oklch(0.55 0.19 262 / 0.11), transparent 58%), radial-gradient(ellipse at 0% 100%, oklch(0.58 0.22 25 / 0.05), transparent 50%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-page { padding: 32px 0 48px; background: radial-gradient(ellipse at 90% 0%, oklch(0.55 0.19 262 / 0.10), transparent 55%); }
@media (min-width: 1000px) {
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
}

/* Cards and grids */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; min-width: 0;
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card-flat { box-shadow: none; background: var(--bg); }
.card-link { transition: border-color .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--tint-blue-border); box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { gap: 24px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.glance { margin: 0; }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.glance div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: 14px; font-weight: 500; color: var(--text); }
.glance dd { margin: 0; font-size: 14px; color: var(--muted); text-align: right; }

.principles { display: grid; gap: 24px; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.principle { display: flex; gap: 16px; align-items: flex-start; }
.tile { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--accent-soft); color: var(--primary); }
.tile svg { width: 20px; height: 20px; }

/* Extension cards */
.ext-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ext-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); flex: none; }
.ext-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.ext-name { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.ext-name a { color: var(--fg); }
.ext-name a:hover { color: var(--primary-hover); }
.ext-card { gap: 14px; }
.ext-card .btn-row { margin-top: auto; padding-top: 6px; }
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; padding: 32px; } }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 14px 36px -18px #1418223d; background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
table.tbl caption { text-align: left; }
table.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding: 0 16px 12px 0; border-bottom: 1px solid var(--input); white-space: nowrap; }
table.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.nowrap, table.tbl th.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* Lists */
.list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list li { display: flex; gap: 12px; color: var(--text); line-height: 1.6; }
.list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-top: 0.62em; }
.list-never li::before { background: var(--red); }
.list li > div { min-width: 0; }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.steps > li { display: flex; gap: 14px; counter-increment: step; color: var(--text); }
.steps > li::before {
  content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 9999px; background: var(--accent-soft);
  color: var(--primary-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; margin-top: 1px;
}
.steps > li > div { min-width: 0; flex: 1; padding-top: 2px; }
.steps > li > div > * + * { margin-top: 10px; }
.steps > li > div > pre { margin-top: 10px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; color: var(--text); font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid oklch(0.78 0.03 262); margin-top: 3px; }
.checks li > div { min-width: 0; }

/* Callouts, FAQ */
.callout { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius-lg); border: 1px solid var(--tint-red-border); background: var(--tint-red); padding: 18px 20px; color: var(--text); }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 3px; }
.note { border-radius: var(--radius-lg); border: 1px solid var(--tint-blue-border); background: var(--tint-blue); padding: 16px 20px; color: var(--text); }
details.faq { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 0 20px; }
details.faq + details.faq { margin-top: 12px; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-weight: 600; color: var(--fg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 0 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 10px; }

/* Extension page layout */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--fg); }
.page-grid { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 1100px) { .page-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; } }
.toc { display: none; }
@media (min-width: 1100px) { .toc { display: block; position: sticky; top: 96px; align-self: start; } }
.toc a { display: block; padding: 7px 0 7px 16px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--border); }
.toc a:hover { color: var(--fg); border-left-color: var(--primary); text-decoration: none; }
.page-sections { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.prose p + p { margin-top: 12px; }
.link-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); color: var(--fg); }
.link-card:hover { border-color: var(--tint-blue-border); background: var(--tint-blue); color: var(--fg); text-decoration: none; }
.link-card .strong { font-size: 15px; }

/* Changelog */
.entry { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--border); }
.entry:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .entry { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }
.entry ul { padding-left: 18px; margin-top: 12px; color: var(--text); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.date { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Legal text */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.legal h2 { font-size: 1.3rem; margin-top: 20px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr)); align-items: start; } .footer-brand { grid-column: auto; } }
.footer-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 44rem; }

@media print {
  .site-header, .site-footer, .toc, .btn-row { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Page end spacing (no inline styles: the CSP allows only this stylesheet) */
.page-end { padding-bottom: 96px; }
.wordmark-sub { font-weight: 400; color: var(--muted); }

/* Tables become stacked rows on small screens */
@media (max-width: 639px) {
  table.tbl-stack, table.tbl-stack tbody, table.tbl-stack tr, table.tbl-stack td { display: block; width: 100%; }
  table.tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.tbl-stack tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  table.tbl-stack tr:first-child { padding-top: 0; }
  table.tbl-stack tr:last-child { border-bottom: 0; padding-bottom: 0; }
  table.tbl-stack td { padding: 0; border: 0; white-space: normal; }
  table.tbl-stack td + td { margin-top: 6px; }
  table.tbl-stack td[data-label]::before { content: attr(data-label); margin-right: 8px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-family: var(--font-sans); font-weight: 500; }
}

/* Links inside running text are underlined, not told apart by colour alone */
main :is(p, li, td, dd) a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); }
main :is(p, li, td, dd) a:not(.btn):hover { text-decoration-color: currentColor; }
main .breadcrumb a:not(.btn), main .toc a:not(.btn) { text-decoration: none; }
pre:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
