/* CountVue public site */
:root {
  --navy: #0B1626;
  --navy-2: #13233A;
  --navy-line: #1B2C44;
  --ink: #0F1B2D;
  --muted: #4A5A70;
  --line: #E1E8F0;
  --soft: #F4F8FC;
  --cyan: #2CC6EF;
  --cyan-hi: #6ADAF5;
  --cyan-text: #3DD0F2;
  --blue: #1E90FF;
  --link: #0A6CD6;
  --link-hi: #084FA0;
  --on-dark: #E6F1FF;
  --on-dark-2: #B5C6DB;
  --on-dark-3: #8EA3BC;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hi); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.dark .eyebrow { color: var(--cyan-hi); }
.lead { font-size: 18px; line-height: 1.6; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Header */
.nav { background: var(--navy); border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 50; }
.navin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand:hover { color: #fff; }
.brand .v { color: var(--cyan-text); }
.brand img { width: 36px; height: 36px; }
.navlinks { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1; }
.navlinks a { color: #C7D6EA; text-decoration: none; font-size: 15px; line-height: 44px; }
.navlinks a:hover { color: #fff; }
.navlinks a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan-text); }
.navcta { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #3B5675; border-radius: 10px; color: #fff; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .navlinks, .navcta { display: none; flex-basis: 100%; }
  .navlinks { flex-direction: column; gap: 0; padding: 8px 0; }
  .navcta { padding-bottom: 12px; }
  .nav.open .navlinks, .nav.open .navcta { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-p { background: var(--cyan); color: #04121F; }
.btn-p:hover { background: var(--cyan-hi); color: #04121F; }
.btn-o { border-color: #3B5675; color: var(--on-dark); background: transparent; }
.btn-o:hover { border-color: #6F8BAA; color: #fff; }
.btn-d { background: var(--navy); color: #fff; }
.btn-d:hover { background: var(--navy-line); color: #fff; }
.btn-l { border-color: #C9D5E3; color: var(--ink); background: #fff; }
.btn-l:hover { border-color: #8BA0B8; color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.soft { background: var(--soft); }
.dark { background: var(--navy); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .sub { color: var(--on-dark-2); }
.h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); }
.h3 { font-size: 20px; }
.head { gap: 14px; max-width: 760px; }
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.card-link:hover { border-color: #8BA0B8; color: inherit; }
.card-link:hover h3 { color: var(--link); }
.ico { width: 44px; height: 44px; border-radius: 10px; background: #E6F7FD; color: var(--link); display: flex; align-items: center; justify-content: center; flex: none; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.check-list svg { flex: none; margin-top: 2px; color: var(--blue); }
ul.plain { margin: 0; padding-left: 20px; line-height: 1.9; }
.step-n { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--blue); line-height: 1; }
.placeholder { border-radius: var(--radius); background: #2A3A50; color: #C7D6EA; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 15px; }
.placeholder.light { background: #DCEBF7; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; gap: 24px; }
.hero-art { flex: 1 1 480px; min-width: 0; }
.hero-note { font-size: 14px; color: var(--on-dark-3); }
.hero-note a { color: #C7D6EA; }
.cam { border-radius: 16px; background: var(--navy-2); border: 1px solid #22385A; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.cam-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-size: 13px; color: #9FB3CB; }
.cam-live { display: flex; align-items: center; gap: 6px; }
.cam-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-text); }
.cam-view { position: relative; height: 300px; border-radius: 10px; background: #2A3A50 repeating-linear-gradient(90deg, #2E4058 0 2px, transparent 2px 80px); overflow: hidden; }
.cam-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.box { position: absolute; border: 2px solid var(--cyan-text); border-radius: 4px; }
.box span { position: absolute; top: -20px; left: -2px; background: var(--cyan-text); color: #04121F; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.box.veh { border-color: #FFB547; }
.box.veh span { background: #FFB547; }
.cam-count { position: absolute; right: 12px; top: 12px; background: rgba(11,22,38,.85); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--on-dark); display: flex; gap: 14px; }
.cam-count b { color: var(--cyan-text); }
.cam-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cam-stats > div { background: #0F1E33; border-radius: 8px; padding: 10px 12px; }
.cam-stats small { display: block; font-size: 12px; color: var(--on-dark-3); }
.cam-stats b { font-size: 20px; color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.bars span { flex: 1; background: var(--blue); border-radius: 2px; }
.bars span.hi { background: var(--cyan-text); }

.strip { border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); }
.strip b { color: var(--ink); }

.band { background: var(--navy); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; font-size: 32px; }
.band p { color: var(--on-dark-2); font-size: 17px; line-height: 1.55; }
@media (max-width: 640px) { .band { padding: 32px 24px; } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C9D5E3; background: #fff; font: 600 15px var(--font); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tab:hover { border-color: #8BA0B8; color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[hidden] { display: none !important; }

/* Download */
.plats { display: flex; flex-wrap: wrap; gap: 14px; }
.plat { flex: 1 1 220px; min-height: 96px; border-radius: var(--radius); border: 1px solid #2A3F5E; background: var(--navy-2); color: var(--on-dark); font: 600 18px var(--display); cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 0 22px; text-align: left; }
.plat small { display: block; font: 400 13px var(--font); color: #9FB3CB; margin-top: 4px; }
.plat[aria-selected="true"] { border: 2px solid var(--cyan-text); background: #16304D; }
.file { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
code, .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #F1F5F9; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.layout-side { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout-side > .main { flex: 999 1 560px; min-width: 0; }
.layout-side > .side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }

/* Tables */
.table-box { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Solutions picker */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.sol { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; text-decoration: none; color: var(--ink); }
.sol:hover { border-color: #8BA0B8; color: var(--ink); }
.sol[aria-current="page"] { border: 2px solid var(--blue); background: #F0F8FF; }
.sol b { font: 600 19px var(--display); }
.sol span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts small { display: block; color: var(--muted); font-size: 13px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid > div { display: flex; flex-direction: column; gap: 6px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid label { font-size: 14px; font-weight: 500; }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=url], .form-grid select, .form-grid textarea {
  min-height: 44px; border: 1px solid #C9D5E3; border-radius: 10px; padding: 10px 12px; font: 15px var(--font); color: var(--ink); background: #fff; width: 100%;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); outline: 2px solid #BFE3FF; }
.form-grid .check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.form-grid .check input { width: 20px; height: 20px; }
.form-grid ul { list-style: none; margin: 0; padding: 0; color: #B42318; font-size: 13px; }
.form-grid > ul { grid-column: 1 / -1; }
.form-grid .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-grid .recaptcha-error { grid-column: 1 / -1; color: #B42318; font-size: 13px; }
.alert-ok { border: 1px solid #A6E3C4; background: #ECFAF2; color: #0F5132; border-radius: var(--radius); padding: 20px 24px; }

/* Articles */
.post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.post:hover { color: var(--ink); }
.post:hover h3 { color: var(--link); }
.post .cover { height: 190px; border-radius: var(--radius); background: #DCEBF7; object-fit: cover; width: 100%; }
.crumbs { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.prose { font-size: 18px; line-height: 1.75; max-width: 760px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 28px; margin-top: 44px; scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose img { border-radius: 12px; }
.prose blockquote, .prose .tip { margin-left: 0; margin-right: 0; background: var(--soft); border-radius: 12px; padding: 20px 22px; font-size: 16px; line-height: 1.6; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.prose summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--link); }
.side-cta { border-radius: var(--radius); background: var(--navy); color: var(--on-dark); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.side-cta b { font-family: var(--display); font-size: 18px; color: #fff; }
.side-cta p { font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.foot { background: var(--navy); color: #9FB3CB; font-size: 14px; padding: 64px 0 32px; }
.foot a { color: #C7D6EA; text-decoration: none; }
.foot a:hover { color: #fff; }
.footcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.footcols h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-family: var(--font); letter-spacing: 0; }
.footcols > div { display: flex; flex-direction: column; gap: 8px; }
.footbar { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Product badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; line-height: 1.6; }
.badge-live { background: #E6F7FD; color: #075A80; }
.badge-survey { background: #EEF0FF; color: #3B3FA8; }
.badge-portal { background: #E7F6F2; color: #0B5D4B; }

/* App screenshots on solution pages */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #2A3A50; }
.sol .shot { border-radius: 10px; margin-bottom: 6px; }

/* Documentation */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; }
.docs-side { display: flex; flex-direction: column; gap: 20px; padding-right: 4px; }
.docs-search { position: relative; }
.docs-search input { width: 100%; min-height: 44px; border: 1px solid #C9D5E3; border-radius: 10px; padding: 10px 36px 10px 12px; font: 15px var(--font); color: var(--ink); background: #fff; }
.docs-search input:focus { border-color: var(--blue); outline: 2px solid #BFE3FF; }
.docs-search kbd { position: absolute; right: 10px; top: 12px; font: 12px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.docs-results { position: absolute; z-index: 20; top: 50px; left: 0; width: min(520px, calc(100vw - 48px)); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 27, 45, .16); padding: 6px; }
.docs-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; }
.docs-results a small { display: block; color: var(--muted); font-size: 12px; }
.docs-results a span { display: block; color: var(--muted); }
.docs-results a mark { background: #FFF1A8; color: inherit; border-radius: 3px; }
.docs-results a:hover, .docs-results a.sel { background: var(--soft); }
.docs-results p { padding: 12px; color: var(--muted); font-size: 14px; }
.docs-nav summary { display: none; }
.docs-nav nav { display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.docs-nav a { text-decoration: none; color: var(--muted); display: block; padding: 3px 0; }
.docs-nav a:hover { color: var(--link); }
.docs-nav a.on { color: var(--link); font-weight: 600; }
.docs-nav .docs-nav-sec, .docs-nav .docs-nav-home { color: var(--ink); font-weight: 600; font-family: var(--display); font-size: 15px; }
.docs-nav ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.docs-main { min-width: 0; }
.docs-head { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 8px; }
.docs-head h1 { font-size: clamp(30px, 4vw, 42px); }
.docs-prose { max-width: none; font-size: 17px; line-height: 1.7; }
.docs-prose h2 { font-size: 26px; }
.docs-prose h3 { scroll-margin-top: 96px; font-size: 20px; }
.docs-prose .anchor { margin-left: 8px; color: #A9B7C8; text-decoration: none; opacity: 0; font-weight: 400; }
.docs-prose h2:hover .anchor, .docs-prose h3:hover .anchor, .docs-prose .anchor:focus { opacity: 1; }
.docs-prose img { border: 1px solid var(--line); display: block; margin-left: auto; margin-right: auto; }
.docs-prose figure { margin: 28px 0; }
.docs-prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.docs-prose code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.docs-prose pre { background: var(--navy); color: var(--on-dark); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.docs-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.docs-prose .table-wrap { overflow-x: auto; }
.docs-prose table { font-size: 15px; }
.docs-prose th { background: var(--soft); font-weight: 600; }
.docs-prose kbd { font: 0.85em var(--font); border: 1px solid #C9D5E3; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.callout { border-left: 4px solid var(--blue); background: #EEF6FF; border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 16px; line-height: 1.6; }
.callout > * + * { margin-top: 10px; }
.callout-tip { border-color: #12B76A; background: #ECFAF2; }
.callout-warning, .callout-important { border-color: #F79009; background: #FFF8EB; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.docs-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.docs-card:hover { border-color: #9CC3EE; color: var(--ink); box-shadow: 0 6px 20px rgba(15, 27, 45, .06); }
.docs-card b { font-family: var(--display); font-size: 17px; }
.docs-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.docs-pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs-pn a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-weight: 600; max-width: 48%; }
.docs-pn a small { color: var(--muted); font-weight: 400; font-size: 13px; }
.docs-pn .next { text-align: right; margin-left: auto; }
.docs-foot { font-size: 14px; margin-top: 28px; }
.docs-toc .toc { font-size: 14px; gap: 8px; }
.docs-toc .toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.docs-toc .toc a.lv3 { padding-left: 12px; }
.docs-toc .toc a.on { color: var(--link); }
@media (max-width: 1180px) { .docs { grid-template-columns: 230px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-nav { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
  .docs-nav summary { display: flex; align-items: center; min-height: 48px; font-weight: 600; cursor: pointer; }
  .docs-nav nav { padding-bottom: 16px; }
  .docs-results { width: 100%; }
  .docs-search kbd { display: none; }
}
.docs-prose dl { margin-top: 24px; }
.docs-prose dt { font-weight: 600; font-family: var(--display); margin-top: 18px; }
.docs-prose dd { margin: 4px 0 0; color: var(--muted); }

.docs-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.docs-langs a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.docs-langs a.on { color: var(--link); border-color: #9CC3EE; }

/* Cookie consent (assets/consent.js) */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; max-width: 1080px; width: 100%; background: var(--navy); color: var(--on-dark-2); border: 1px solid var(--navy-line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(4, 18, 31, .35); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 15px; line-height: 1.55; }
.cc-text { flex: 1 1 420px; }
.cc-text p { margin-top: 6px; }
.cc-box a { color: var(--cyan-text); }
.cc-box a:hover { color: var(--cyan-hi); }
.cc-box .cc-title { color: #fff; }
.cc-box .btn-l { background: transparent; color: var(--on-dark); border-color: #3B5675; }
.cc-box .btn-l:hover { border-color: #6F8BAA; color: #fff; }
.cc-title { font-size: 18px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { flex: 1 1 auto; }
.cc-dlg { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); box-shadow: 0 24px 64px rgba(4, 18, 31, .35); }
.cc-dlg::backdrop { background: rgba(11, 22, 38, .6); }
.cc-dlg-in { padding: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.55; }
.cc-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-dlg .cc-title { font-size: 22px; }
.cc-x { background: none; border: 0; width: 44px; height: 44px; margin: -10px -10px -10px 0; border-radius: 10px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.cc-x:hover { background: var(--soft); color: var(--ink); }
.cc-cat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.cc-cat-name { font-weight: 600; }
.cc-always { font-size: 13px; font-weight: 600; color: #0F5132; background: #ECFAF2; border-radius: 999px; padding: 3px 10px; }
.cc-sw { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.cc-sw input { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-sw span { position: absolute; inset: 0; border-radius: 999px; background: #C9D5E3; transition: background .15s; }
.cc-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.cc-sw input:checked + span { background: var(--blue); }
.cc-sw input:checked + span::after { transform: translateX(20px); }
.cc-sw input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.cc-dlg .cc-actions { justify-content: flex-end; }
@media (max-width: 600px) {
  .cc { left: 8px; right: 8px; bottom: 8px; }
  .cc-box { padding: 18px; }
  .cc-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cc-sw span, .cc-sw span::after { transition: none; } }
