/* Shared documentation styling. No external fonts or image dependencies. */
:root { --ink: #182d30; --muted: #536765; --accent: #08796c; --paper: #fafbf8; --line: #dce4df; --bs-link-color: #08796c; --bs-link-hover-color: #04584f; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.7; }
body::before { background-image: none; }
.navbar { background: #122b2e !important; background-image: none !important; border-bottom: 1px solid #304749; padding: .8rem 0; }
.project-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 1; margin-right: 2.5rem; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: normal; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; color: #a7e8bd; background: #284346; border: 1px solid #54716b; border-radius: .55rem; font-family: monospace; font-size: 1.15rem; }
.brand-subtitle { display: block; color: #b9cdca; font-size: .68rem; font-weight: 400; margin-top: .3rem; }
.navbar .nav-link { font-size: .88rem; }
h1,h2,h3 { font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
h1 { margin-bottom: 1.25rem; font-size: clamp(1.8rem,4vw,2.7rem); }
h2 { margin-top: 2.3rem; }
pre { border-radius: .5rem; padding: 1rem; }
pre code { font-size: .82rem; }
blockquote { border-left: 3px solid #08796c; padding: .5rem 1rem; background: rgba(8,121,108,.06); }
blockquote p:last-child { margin-bottom: 0; }
table { display: block; overflow-x: auto; font-size: .9rem; }
.bs-sidebar { font-size: .9rem; }
.col-md-9 { min-width: 0; overflow-wrap: anywhere; }
footer { font-size: .8rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #e39533; outline-offset: 5px; }

/* The overview has its own full-width composition; reference pages retain their TOC. */
.homepage { background: var(--paper); color: var(--ink); }
.homepage > .container { margin-top: 0; }
.landing { --bs-link-color: var(--accent); --bs-link-hover-color: #04584f; padding: 0 1.25rem; }
.landing p { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 3.5rem; align-items: center; padding: 5.5rem 0 4rem; }
.eyebrow { font-size: .7rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 1.1rem; }
.status-dot { display: inline-block; height: .45rem; width: .45rem; border-radius: 50%; background: #88c79b; margin-right: .35rem; }
.hero h1 { font-size: clamp(2.8rem,5.2vw,4.65rem); line-height: 1.04; letter-spacing: -.06em; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 33rem; font-size: 1.12rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 2rem 0 1.2rem; }
.action-primary { display: inline-flex; justify-content: center; align-items: center; gap: 1.5rem; padding: .85rem 1.25rem; background: #08796c; color: white !important; border: 1px solid #08796c; border-radius: .35rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.action-primary:hover { background: #04584f; border-color: #04584f; }
.action-secondary { color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.action-secondary span { margin-left: .45rem; }
.hero-meta { font-size: .72rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.hero-meta span { margin: 0 .4rem; color: #9aaba6; }
.event-preview { min-width: 0; background: #142e31; color: #e4ede9; border: 1px solid #2a494c; border-radius: .8rem; box-shadow: 0 20px 40px -20px #102b3045; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; }
.terminal-top { display: flex; align-items: center; gap: .8rem; background: #203b3e; padding: .9rem 1.1rem; color: #c7d8d4; border-bottom: 1px solid #365052; }
.terminal-lights { display: flex; gap: .3rem; }
.terminal-lights i { width: .4rem; height: .4rem; border-radius: 50%; background: #638580; }
.terminal-lights i:first-child { background: #dfa47e; }
.terminal-label { margin-left: auto; font-size: .57rem; color: #a8c4bc; }
.log-line { margin: 1.5rem 1.2rem 0; padding: .75rem; border-left: 2px solid #92dcb7; background: #1e3b3d; }
.log-time { color: #a8bbb5; }.log-level { color: #a2e5b6; }
.event-connector { padding: 1rem 2rem; color: #9bb8b1; font-size: .65rem; }.event-connector span { font-size: 1.2rem; margin-right: .65rem; color: #a2e5b6; }
.json-label { padding: 0 1.25rem; font-size: .6rem; color: #9dcbc0; letter-spacing: .07em; }.json-label span { float: right; color: #99ada7; text-transform: none; letter-spacing: 0; }
.event-preview .event-json { padding: .8rem 1.25rem 1.5rem; margin: 0; background: none; border: none; border-radius: 0; color: #e4ede9; }
.event-json code { padding: 0; font-size: .64rem; background: none; color: inherit; }
.json-key { color: #9ccecd; }.json-string { color: #d6e7b2; }
.terminal-foot { display: flex; align-items: center; padding: .85rem 1.25rem; border-top: 1px solid #365052; color: #bed0ca; font-size: .6rem; }.terminal-foot > span:last-child { margin-left: auto; color: #9eb9af; }
.proof-strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip a { padding: 1.5rem 1.7rem; color: var(--ink); text-decoration: none; font-size: .83rem; font-weight: 600; border-right: 1px solid var(--line); }.proof-strip a:first-child { padding-left: 0; }.proof-strip a:last-child { border: none; }
.proof-label { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); font-size: .62rem; font-weight: 400; margin-bottom: .45rem; text-transform: uppercase; letter-spacing: .07em; }
.proof-strip a:hover > span:last-child { color: var(--accent); }
.landing-section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 45rem; margin-bottom: 2rem; }
.landing h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: 0 0 1rem; }
.section-heading > p:last-child { font-size: .98rem; }
.pipeline { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; padding: 0; margin: 2.5rem 0 0; gap: 1.5rem; }
.pipeline li { position: relative; padding: 1.2rem 0 0; border-top: 2px solid #b4c9bc; }
.pipeline li:not(:last-child)::after { content: '→'; position: absolute; right: -.95rem; top: -.95rem; color: var(--accent); background: var(--paper); padding: 0 .25rem; }
.pipeline-number { font-size: .65rem; font-family: monospace; color: var(--accent); margin-bottom: .6rem; display: block; }
.pipeline strong { font-size: .95rem; display: block; }.pipeline li > span:last-child { font-size: .76rem; color: var(--muted); }
.setup-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: start; }
.setup-step { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.snippet-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.snippet-heading h3 { font-size: .82rem; letter-spacing: -.01em; margin: 0; }.snippet-heading h3 span { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; color: #08796c; background: #e6f0e8; font-size: .65rem; margin-right: .5rem; border-radius: .25rem; }
.copy-button { border: 1px solid var(--line); background: none; border-radius: .25rem; color: var(--muted); font-family: monospace; font-size: .65rem; padding: .2rem .5rem; }.copy-button:hover { color: var(--accent); border-color: var(--accent); }
.setup-step pre { background: #f5f7f3; border: none; border-radius: 0; margin: 0; padding: 1.2rem; }.setup-step pre code { font-size: .72rem; line-height: 1.8; background: transparent; color: #254c48; }
.setup-step > p { padding: 1rem 1.1rem; font-size: .78rem; margin: 0; }.setup-step p code { font-size: .72rem; }
.setup-note { margin: 1.5rem 0 0; font-size: .83rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.feature { padding: 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; transition: border-color .15s; }.feature:hover { border-color: var(--accent); }
.feature-symbol { display: block; font-family: monospace; color: var(--accent); font-size: 1.65rem; line-height: 1; margin-bottom: 1.4rem; }
.feature h3 { font-size: 1.1rem; color: var(--ink); margin: 0 0 .6rem; }.feature p { font-size: .9rem; margin-bottom: 1.3rem; }
.text-link { font-size: .82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.migration-callout { display: flex; align-items: center; gap: 3rem; justify-content: space-between; padding: 2.75rem; margin-top: 4rem; background: #eaf0e7; border: 1px solid #d5e1d0; border-radius: .6rem; }.migration-callout > div { max-width: 37rem; }.migration-callout h2 { font-size: 1.9rem; }.migration-callout p:last-child { font-size: .9rem; margin: 0; }.migration-callout > a { flex-shrink: 0; }
.project-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; }.project-section p { font-size: .92rem; }.project-links { padding-top: 1.5rem; }.project-links a { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .8rem 0; color: var(--ink); font-size: .88rem; text-decoration: none; }.project-links a:hover { color: var(--accent); }
.build-status { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1.8rem 0; }.build-status > span { font-family: monospace; font-size: .65rem; color: var(--muted); margin-right: auto; }.build-status img { max-width: 100%; height: 20px; }
.homepage footer { margin: 0; padding: 1.5rem; border-top: 1px solid var(--line); }.homepage footer hr { display: none; }

/* Match the theme's light/dark switch without changing the terminal palette. */
[data-bs-theme="dark"] { --ink: #e4eee7; --muted: #afc2b9; --accent: #8dd9b4; --paper: #162729; --line: #38504b; --bs-link-color: #8dd9b4; --bs-link-hover-color: #b6ebce; }
[data-bs-theme="dark"] .feature,[data-bs-theme="dark"] .setup-step { background: #203537; }
[data-bs-theme="dark"] .setup-step pre { background: #192e30; }
[data-bs-theme="dark"] .setup-step pre code { color: #c6e3d3; }
[data-bs-theme="dark"] .migration-callout { background: #263e37; border-color: var(--line); }
[data-bs-theme="dark"] .homepage .landing { --bs-link-hover-color: #b6ebce; }

@media (min-width: 1400px) { .homepage .container { max-width: 1240px; } }
@media (max-width: 1199px) { .hero { gap: 2rem; }.project-brand { margin-right: 1rem; }.migration-callout { gap: 1.5rem; padding: 2rem; }.migration-callout > a { max-width: 13rem; } }
@media (max-width: 991px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }.hero-copy { max-width: 38rem; }.hero h1 { font-size: clamp(2.8rem,7vw,4.5rem); }
  .event-preview { max-width: 38rem; }.event-json code { font-size: .73rem; }.project-section { gap: 2rem; }.proof-strip a { padding: 1.2rem .85rem; font-size: .75rem; }.proof-label { font-size: .57rem; }
}
@media (max-width: 767px) {
  .container { padding-left: 1rem; padding-right: 1rem; }.project-brand { max-width: calc(100vw - 6rem); }.landing { padding: 0 .75rem; }
  .hero { padding: 2.75rem 0 2rem; }.hero h1 { font-size: clamp(2.5rem,10.8vw,3.5rem); }.hero-description { font-size: 1rem; }.hero-actions { gap: 1.2rem; }.hero-meta { font-size: .62rem; }.hero-meta span { margin: 0 .1rem; }
  .event-json code { font-size: .6rem; }.terminal-label { font-size: .5rem; }.json-label span { display: none; }.terminal-foot { font-size: .55rem; padding: .8rem; }
  .proof-strip { grid-template-columns: 1fr; }.proof-strip a { padding: 1rem 0; border-right: none; border-bottom: 1px solid var(--line); font-size: .85rem; }.proof-label { font-size: .62rem; }
  .landing-section { padding: 3rem 0; }.pipeline { grid-template-columns: 1fr 1fr; row-gap: 2rem; }.pipeline li:nth-child(2)::after { display: none; }.pipeline strong { font-size: .82rem; }.pipeline li > span:last-child { font-size: .7rem; }
  .setup-grid,.feature-grid,.project-section { grid-template-columns: 1fr; }.feature { padding: 1.5rem; }.setup-step pre code { font-size: .65rem; }
  .migration-callout { flex-direction: column; align-items: start; padding: 1.5rem; margin-top: 3rem; }.migration-callout > a { max-width: none; }.project-links { padding-top: 0; }.build-status { align-items: start; }.build-status > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } }
