/* Layout: one 1120px column; each page opens with a short split hero (copy + a live "call card"), then grouped feature bands. */
:root {
  --paper: #f4f7f8;
  --surface: #ffffff;
  --ink: #14202b;
  --muted: #55636f;
  --line: #d8e0e5;
  --go: #0b7f62;        /* answer-button green: Communicator Go */
  --go-soft: #e1f2ec;
  --next: #2f57cc;      /* cobalt: Communicator Next */
  --next-soft: #e5ebfb;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.5vw, 3.25rem);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d141a; --surface: #151f28; --ink: #e5ecf1; --muted: #9aa8b4; --line: #26333e;
    --go: #3cc79c; --go-soft: #12302a; --next: #86a2ff; --next-soft: #1a2647;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d141a; --surface: #151f28; --ink: #e5ecf1; --muted: #9aa8b4; --line: #26333e;
  --go: #3cc79c; --go-soft: #12302a; --next: #86a2ff; --next-soft: #1a2647;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
img { max-width: 100%; }
a { color: var(--next); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--next); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--step--1);
  padding: 6px 10px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; line-height: 1.5; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  padding: 11px 18px; border-radius: 8px; font-size: var(--step--1); border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.go-text { color: var(--go); }
.next-text { color: var(--next); }

/* The call card: the one illustrated element, a live-call screen in plain HTML */
.callcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: grid; gap: 16px; max-width: 360px; width: 100%; justify-self: center;
  box-shadow: 0 24px 48px -28px rgba(20, 32, 43, 0.35);
}
.callcard-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--go); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.callee { display: grid; gap: 2px; }
.callee strong { font-family: var(--font-display); font-size: 1.35rem; }
.callee span { color: var(--muted); font-size: var(--step--1); }
.timer { font-family: var(--font-mono); font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.call-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.call-actions span {
  display: grid; place-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px;
  background: var(--paper); font-size: 0.72rem; font-weight: 600; color: var(--muted); text-align: center;
}
.call-actions svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metrics { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; }
.metrics b { color: var(--ink); font-weight: 600; }
.devices { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface); white-space: nowrap;
}
.chip.on { border-color: var(--go); color: var(--go); }

/* Sections */
.band { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 64ch; }
.section-head p { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product {
  display: grid; gap: 16px; align-content: start; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.product.go { border-top: 4px solid var(--go); }
.product.next { border-top: 4px solid var(--next); }
.product .tag { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.product.go .tag { color: var(--go); }
.product.next .tag { color: var(--next); }
.product ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.product p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.feature { display: grid; gap: 8px; align-content: start; min-width: 0; }
.feature p { color: var(--muted); }
.feature .k { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.group { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 48px; padding-block: 28px; border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 0; padding-top: 0; }
.group h3 { position: relative; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.group li { display: grid; gap: 2px; min-width: 0; }
.group li strong { font-weight: 700; }
.group li span { color: var(--muted); font-size: 0.97rem; }

.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.edition { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: 8px; align-content: start; min-width: 0; }
.edition p { color: var(--muted); font-size: 0.97rem; }

.spec { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-family: var(--font-display); font-size: 1rem; border-bottom: 2px solid var(--ink); }
.spec tbody th { font-weight: 600; width: 34%; }
.spec td { color: var(--muted); }
.spec .yes { color: var(--ink); font-weight: 600; }
.spec .cat th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 24px; font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-scroll .spec { min-width: 560px; }

.log { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.log-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 0 0 20px 20px; position: relative; }
.log-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--go); }
.log-item .ver { font-family: var(--font-mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.log-item p { color: var(--muted); }

.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; max-width: 68ch; }
.faq-cat { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 36px 0 4px; }
.faq-cat:first-child { margin-top: 0; }

.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.cta p { color: var(--paper); opacity: 0.8; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }

.note { font-size: var(--step--1); color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; background: var(--surface); }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--step--1); }
.foot-links a { color: var(--muted); }
.site-footer p { font-size: 0.82rem; color: var(--muted); max-width: 90ch; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .products, .grid-3, .grid-2, .editions, .group ul { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 24px; }
  .product { padding: 22px; }
  .log-item { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .live::before { animation: none; }
}
.hero.solo .wrap { grid-template-columns: 1fr; }
.table-note { margin-top: 16px; }
.contact-form { max-width: 760px; min-width: 0; }
.form-placeholder { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); background: var(--paper); }

/* ===== Wiki additions ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand em { font-style: normal; color: var(--muted); font-weight: 700; }
.site-header .wrap { flex-wrap: nowrap; }
.search { position: relative; flex: 1 1 320px; max-width: 420px; min-width: 0; }
.search input {
  width: 100%; font: inherit; font-size: var(--step--1); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355636f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
}
.search input:focus { outline: 2px solid var(--next); outline-offset: 1px; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(20, 32, 43, 0.45); padding: 6px; min-width: min(420px, calc(100vw - 32px));
}
.results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.results a span { color: var(--muted); font-size: 0.86rem; }
.results a .badge { justify-self: start; display: inline-block; margin-right: 4px; }
.results a:hover, .results a.on { background: var(--paper); }
.results .empty { padding: 12px; color: var(--muted); font-size: var(--step--1); }
.hero-search { max-width: 640px; flex: none; }
.hero-search input { font-size: var(--step-0); padding: 14px 18px 14px 44px; background-position: 16px center; background-size: 18px; background-color: var(--surface); }

.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero .wrap.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.popular .eyebrow { margin-right: 4px; }
.pop { font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.pop:hover { border-color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step--1); color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

.badge {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.badge.go { background: var(--go-soft); color: var(--go); }
.badge.next { background: var(--next-soft); color: var(--next); }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; min-width: 0; scroll-margin-top: 90px; }
.cat-card > p { color: var(--muted); font-size: 0.97rem; }
.cat-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.cat-card li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 9px 0; }
.cat-card li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cat-card li a:hover { color: var(--next); text-decoration: underline; }

/* Article layout */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; align-items: start; }
.sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.93rem; padding-right: 4px; }
.side-toggle > summary { display: none; }
.side-cat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 6px; }
.sidebar nav > .side-cat:first-child { margin-top: 0; }
.sidebar ul, .related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.sidebar a { display: block; color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 6px; line-height: 1.35; }
.sidebar a:hover { color: var(--ink); background: var(--surface); }
.sidebar a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 3px 0 0 var(--next); font-weight: 600; }

.article { max-width: 760px; min-width: 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.summary { font-size: var(--step-1); color: var(--muted); margin-top: 12px; line-height: 1.45; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 16px 0 8px; font-size: 0.82rem; color: var(--muted); }
.meta > span:last-child { margin-left: 6px; }
.prose { display: grid; gap: 16px; margin-top: 16px; }
.prose h2 { font-size: 1.35rem; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 90px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose code, .prose kbd { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.ui { font-weight: 700; color: var(--ink); background: var(--next-soft); padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 28px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--ink); color: var(--paper);
}
.callout { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); display: grid; gap: 4px; }
.callout strong { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.callout.tip { border-left-color: var(--go); }
.callout.tip strong { color: var(--go); }
.callout.note { border-left-color: var(--next); }
.callout.note strong { color: var(--next); }
.callout.warn { border-left-color: #c9761a; }
.callout.warn strong { color: #b2620c; }
.prose .table-scroll .spec { min-width: 420px; }
.prose .spec td:first-child { color: var(--ink); font-weight: 600; }

.helpful { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.helpful p { color: var(--muted); font-size: 0.95rem; }
.related { margin-top: 28px; }
.related a { display: block; padding: 4px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.pager a span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 400; }
.pager a.next { text-align: right; }
.pager a:hover { border-color: var(--muted); }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout.warn strong { color: #f0a54a; } }
:root[data-theme="dark"] .callout.warn strong { color: #f0a54a; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-toggle { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .side-toggle > summary { display: block; cursor: pointer; padding: 12px 16px; font-weight: 700; }
  .side-toggle > nav { padding: 0 8px 12px; }
  .side-toggle:not([open]) > nav { display: none; }
}
@media (min-width: 901px) { .side-toggle > nav { display: block; } }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-header .search { order: 3; flex-basis: 100%; max-width: none; }
  .cats { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { text-align: left; }
}
