/* AstonDB website: shared styles of the landing page and the two guides. */
@import url("fonts/fonts.css");

:root {
  color-scheme: light;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --bg-3: #edf1f7;
  --ink: #0b1626;
  --ink-2: #46546a;
  --muted: #758298;
  --line: #e2e7ef;
  --line-2: #cfd7e3;

  --brand: #1f5fae;
  --brand-hover: #1a5297;
  --brand-ink: #154581;
  --brand-soft: #eaf1fa;
  --link: #1f5fae;

  --navy: #081a33;
  --navy-2: #0d2d54;

  --code-bg: #0c1524;
  --code-ink: #d6e0ee;
  --code-line: #1b2638;
  --inline-code: #eef2f8;

  --good: #146c2e;
  --good-soft: #e8f5ec;
  --warn: #8a5a00;
  --warn-soft: #fff5de;
  --bad: #a32323;
  --bad-soft: #fcebea;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 22, 38, 0.06), 0 8px 28px rgba(11, 22, 38, 0.08);
  --shadow-lg: 0 2px 6px rgba(11, 22, 38, 0.08), 0 30px 70px rgba(11, 22, 38, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a111e;
    --bg-2: #0e1727;
    --bg-3: #142036;
    --ink: #e8edf5;
    --ink-2: #aab6c9;
    --muted: #7c89a0;
    --line: #1d2a40;
    --line-2: #2a3a55;
    --brand: #5c9bea;
    --brand-hover: #79aef0;
    --brand-ink: #a9cbf6;
    --brand-soft: rgba(92, 155, 234, 0.13);
    --link: #7fb2f2;
    --code-bg: #070d18;
    --code-line: #18233a;
    --inline-code: #18233a;
    --good: #5fd08a;
    --good-soft: rgba(95, 208, 138, 0.12);
    --warn: #f3c25a;
    --warn-soft: rgba(243, 194, 90, 0.12);
    --bad: #f39191;
    --bad-soft: rgba(243, 145, 145, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a111e; --bg-2: #0e1727; --bg-3: #142036; --ink: #e8edf5; --ink-2: #aab6c9; --muted: #7c89a0;
  --line: #1d2a40; --line-2: #2a3a55; --brand: #5c9bea; --brand-hover: #79aef0; --brand-ink: #a9cbf6;
  --brand-soft: rgba(92, 155, 234, 0.13); --link: #7fb2f2; --code-bg: #070d18; --code-line: #18233a;
  --inline-code: #18233a; --good: #5fd08a; --good-soft: rgba(95, 208, 138, 0.12); --warn: #f3c25a;
  --warn-soft: rgba(243, 194, 90, 0.12); --bad: #f39191; --bad-soft: rgba(243, 145, 145, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11" 1, "ss03" 1;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { font-weight: 600; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 650; }
.head-cta { margin-left: auto; }

/* guides dropdown in the header */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--ink-2); font: 500 14.5px var(--font); white-space: nowrap; cursor: pointer;
}
.nav-more-btn:hover { color: var(--ink); }
.nav-more.on .nav-more-btn { color: var(--ink); font-weight: 650; }
.nav-more-btn svg { width: 13px; height: 13px; transition: transform 0.18s ease; }
.nav-more[data-open] .nav-more-btn { color: var(--ink); }
.nav-more[data-open] .nav-more-btn svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 10; min-width: 214px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px;
}
.nav-more[data-open] .nav-menu, .nav-more:focus-within .nav-menu { display: flex; }
.nav-menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.nav-menu a:hover { background: var(--bg-2); color: var(--ink); }
.nav-menu a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
@media (max-width: 900px) {
  .nav { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-light { background: #fff; color: #0b1626; }
.btn-light:hover { background: #e8eef8; color: #0b1626; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- landing: hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(56, 132, 230, 0.45), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(32, 178, 170, 0.22), transparent 60%),
    linear-gradient(180deg, #081a33 0%, #0a2142 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; padding-top: 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: #b9d3f5; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; padding: 5px 12px 5px 6px;
}
.eyebrow b { background: #3b82f6; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 750; letter-spacing: -0.035em; margin: 22px 0 20px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8ec5ff, #6ee7d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #c4d3e8; max-width: 760px; line-height: 1.55; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: #a9bcd6; font-size: 14px; }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts svg { width: 16px; height: 16px; color: #6ee7d8; }
.hero-shots { position: relative; margin-top: 64px; height: clamp(240px, 52vw, 600px); }
.hero-shots .frame { position: absolute; width: 84%; }
.hero-shots .back { right: 0; top: 0; transform: scale(0.94); transform-origin: top right; opacity: 0.92; }
.hero-shots .front { left: 0; top: 13%; }
@media (max-width: 640px) {
  .hero .wrap { padding-top: 56px; }
  .hero-shots { margin-top: 40px; }
  .hero-shots .frame { width: 92%; }
}

/* ---------- browser frame ---------- */
.frame { margin: 0; border-radius: 12px; overflow: hidden; background: #0f1728; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.08); }
.frame-bar { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #1a2336; }
.frame-bar .dots { display: flex; gap: 7px; }
.frame-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4560; }
.frame-bar .dots i:nth-child(1) { background: #f26b5e; }
.frame-bar .dots i:nth-child(2) { background: #f5be4f; }
.frame-bar .dots i:nth-child(3) { background: #5cc76d; }
.frame-bar .url {
  flex: 1; max-width: 460px; margin: 0 auto; height: 24px; border-radius: 6px; background: #0f1728;
  color: #9fb0c8; font: 500 12.5px var(--font); display: flex; align-items: center; justify-content: center; gap: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
.frame-bar .url svg { width: 12px; height: 12px; flex: none; margin-right: 6px; }
.frame-bar .url b { color: #e6edf7; font-weight: 600; }
.frame img { width: 100%; aspect-ratio: 1440 / 900; background: #e9edf3; }
@media (max-width: 640px) {
  .frame-bar { height: 28px; gap: 8px; padding: 0 10px; }
  .frame-bar .dots i { width: 8px; height: 8px; }
  .frame-bar .url { height: 18px; font-size: 10.5px; }
}

/* ---------- landing: sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 750; letter-spacing: -0.03em; max-width: 820px; }
.section .intro { font-size: 18px; color: var(--ink-2); max-width: 760px; margin-top: 16px; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(11, 22, 38, 0.04); }
.section.alt .card { background: var(--bg); }
.card h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.card .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card .ic svg { width: 22px; height: 22px; }
.card .num { font-size: 13px; font-weight: 700; color: var(--brand); font-family: var(--mono); }

/* ---------- landing: two sides ----------
   Two columns, IT and the builder, with the contract as the wall between them. At rest they sit side
   by side inside the page. With .pinned (set by site.js on wide, tall, motion-friendly viewports) the
   band grows wider than the page, the section pins and scrolling pans the band from the IT side to the
   builder side; --p is the scroll progress 0..1. */
.sides { --p: 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sides .intro { margin-bottom: 0; }
.sides-stage { position: relative; max-width: 1180px; margin: 48px auto 0; padding: 0 24px; }
@media (max-width: 640px) { .sides-stage { padding: 0 16px; } }
.sides-track { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.side { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 22px; box-shadow: var(--shadow); }
.side .pill { margin-bottom: 0; }
.side h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin: 12px 0 0; }
.side dl { margin: 20px 0 0; display: grid; gap: 12px; flex: 1; }
.pair { display: grid; gap: 4px 18px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.pair dt { font-weight: 650; font-size: 15.5px; color: var(--ink); }
.pair dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.side footer { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; }
.side footer a.more { font-weight: 600; text-decoration: none; }
.sides-wall { position: relative; width: 44px; display: grid; place-items: center; }
.sides-wall::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line-2); }
.sides-wall span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); padding: 10px 0; }
.sides-hint, .sides-cap { display: none; }
.sides-close { font-size: 18px; color: var(--ink-2); max-width: 760px; margin: 40px 0 0; }
.sides-close b { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) {
  .sides-track { grid-template-columns: minmax(0, 1fr); }
  .sides-wall { width: auto; height: 40px; }
  .sides-wall::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; margin: -1px 0 0; }
  .sides-wall span { writing-mode: horizontal-tb; transform: none; padding: 0 10px; }
}

/* pinned: the band is wider than the page and pans with the scroll */
.sides.pinned {
  --head: 64px;
  --pad: max(24px, calc((100vw - 1180px) / 2));
  --inner: calc(100vw - 2 * var(--pad));
  --col: calc(var(--inner) * 0.72);
  --wall: 72px;
}
.sides.pinned .sides-stage { max-width: none; padding: 0; height: calc(100vh - var(--head) + 120vh); }
.sides.pinned .sides-pin { position: sticky; top: var(--head); height: calc(100vh - var(--head)); display: grid; align-content: center; overflow: hidden; }
.sides.pinned .sides-track {
  display: flex; align-items: stretch; width: calc(2 * var(--col) + var(--wall));
  transform: translateX(calc(var(--pad) + (var(--inner) - 2 * var(--col) - var(--wall)) * var(--p)));
  will-change: transform;
}
.sides.pinned .side { flex: none; width: var(--col); padding: 28px 32px 24px; }
.sides.pinned .side.it { transform: scale(calc(1 - 0.06 * var(--p))); opacity: calc(1 - 0.55 * var(--p)); transform-origin: right center; }
.sides.pinned .side.builder { transform: scale(calc(0.94 + 0.06 * var(--p))); opacity: calc(0.45 + 0.55 * var(--p)); transform-origin: left center; }
.sides.pinned .sides-wall { width: var(--wall); }
/* fears face the wall, answers face the outside: builder reads fear → answer, IT reads answer ← fear */
.sides.pinned .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); padding-top: 14px; }
.sides.pinned .pair dt::after { content: "→"; color: var(--brand); margin-left: 8px; }
.sides.pinned .side.it .pair { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.sides.pinned .side.it .pair dt { order: 2; text-align: right; }
.sides.pinned .side.it .pair dd { order: 1; }
.sides.pinned .side.it .pair dt::after { content: none; }
.sides.pinned .side.it .pair dt::before { content: "←"; color: var(--brand); margin-right: 8px; }
.sides.pinned .side.it header, .sides.pinned .side.it footer { text-align: right; }
.sides.pinned .side.it footer { justify-content: flex-end; }
.sides.pinned .sides-hint, .sides.pinned .sides-cap {
  display: block; position: absolute; left: 0; right: 0; text-align: center;
  font-size: 13px; color: var(--muted); pointer-events: none;
}
.sides.pinned .sides-cap { top: 18px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.sides.pinned .sides-hint { bottom: 16px; opacity: calc(1 - 3 * var(--p)); }

/* ---------- landing: scroll motion ----------
   Driven by site.js on wide, motion-friendly viewports only (html.js-motion). Elements with data-motion
   carry --d (centre relative to the viewport centre, -1..1), --a (|--d|) and --p (how far the 60 % line
   of the viewport has travelled down them, 0..1); <html> carries --sy (scroll offset, px as a number).
   Containers with data-reveal get .in once they enter the viewport; their children fade in staggered. */
.js-motion [data-reveal] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].in > * { opacity: 1; transform: none; }
[data-reveal] > :nth-child(2) { --i: 1; }
[data-reveal] > :nth-child(3) { --i: 2; }
[data-reveal] > :nth-child(4) { --i: 3; }
[data-reveal] > :nth-child(5) { --i: 4; }
[data-reveal] > :nth-child(6) { --i: 5; }
[data-reveal] > :nth-child(7) { --i: 6; }
[data-reveal] > :nth-child(8) { --i: 7; }
[data-reveal] > :nth-child(9) { --i: 8; }
[data-reveal] > :nth-child(10) { --i: 9; }

/* hero: the grid and the two screenshots lag behind the scroll, the back one most */
.js-motion .hero::before { top: -280px; transform: translateY(calc(var(--sy, 0) * 0.3px)); }
.js-motion .hero-shots .back { transform: translateY(calc(var(--sy, 0) * 0.12px)) scale(0.94); }
.js-motion .hero-shots .front { transform: translateY(calc(var(--sy, 0) * 0.05px)); }

/* demos: a screenshot is full size in the middle of the screen and shrinks towards the edges */
.js-motion .show-media[data-motion] { transform: translateY(calc(var(--d, 0) * -22px)) scale(calc(1 - 0.09 * var(--a, 0))); will-change: transform; }

/* assistant: the conversation plays as it scrolls in, one message after another */
.js-motion .chat[data-motion] > .msg, .js-motion .chat[data-motion] > .tool {
  --on: clamp(0, calc(var(--p, 0) * (var(--n, 6) + 1) - var(--k, 0)), 1);
  opacity: var(--on);
  transform: translateY(calc((1 - var(--on)) * 10px));
}

/* steps: a line through the numbers fills with the scroll and each number lights up in turn */
.js-motion .steps > div[data-motion] { position: relative; }
.js-motion .steps > div[data-motion]::before, .js-motion .steps > div[data-motion]::after {
  content: ""; position: absolute; left: 17px; top: 36px; width: 2px; height: calc(100% - 72px); background: var(--line-2); pointer-events: none;
}
.js-motion .steps > div[data-motion]::after { background: var(--brand); height: calc((100% - 72px) * var(--p, 0)); }
.js-motion .steps > div[data-motion] .n { position: relative; z-index: 1; background: linear-gradient(var(--brand-soft), var(--brand-soft)), var(--bg); }
.js-motion .section.alt .steps > div[data-motion] .n { background: linear-gradient(var(--brand-soft), var(--brand-soft)), var(--bg-2); }
.js-motion .steps > div[data-motion] .n::after {
  content: attr(data-n); position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; opacity: clamp(0, calc(var(--p, 0) * var(--n, 5) - var(--k, 0) - 0.15), 1);
}

/* showcase rows */
/* ---------- landing: modules ---------- */
.cards-link .card { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.cards-link .card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(11, 22, 38, 0.07); }
.cards-link .card h3 { color: var(--ink); }
.cards-cta { margin-top: 36px; }
.mod-code { max-width: 760px; margin: 40px 0 0; }
.mod-code pre { margin-bottom: 0; }
.mod-code > p { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; }
.mod-code > p a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.show { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 80px; }
.show:first-of-type { margin-top: 56px; }
.show.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.show.flip .show-media { order: 2; }
.show-text h3 { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 12px; }
.show-text .tagline { color: var(--ink-2); font-size: 16.5px; }
.show-text ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.show-text li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; }
.show-text li svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.show-text li b { color: var(--ink); font-weight: 650; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .show, .show.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 64px; }
  .show.flip .show-media { order: 0; }
}
.note-small { font-size: 13.5px; color: var(--muted); margin-top: 40px; text-align: center; }

/* architecture */
.arch { margin-top: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; overflow-x: auto; }
.arch svg { display: block; min-width: 760px; width: 100%; height: auto; }
.arch text { font-family: var(--font); }

/* scene walks (permits page): the scroll walks through the scenes of a view; site.js sets data-scene
   1..N and --q, the drawing progress inside a scene. */
.arch-stage { margin-top: 48px; }
.arch-scenes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.arch-scenes button { display: inline-flex; align-items: center; gap: 10px; font: 650 15px var(--font); color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: default; }
.arch-scenes button b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; flex: none; transition: background 0.25s, color 0.25s; }
.arch-scenes p { margin: 6px 0 0 38px; color: var(--ink-2); font-size: 15px; max-width: 760px; }
.arch-scenes li.on button { color: var(--brand); }
.arch-scenes li.on button b { background: var(--brand); color: #fff; }
/* pinned: the diagram stays, the tabs sit in a row and only the active text shows */
.arch-stage.pinned { height: calc(var(--pinh, 620px) + 220vh); }
.arch-stage.pinned .arch-pin { position: sticky; top: 84px; }
.arch-stage.pinned .arch-scenes { display: grid; grid-template-columns: repeat(5, auto) 1fr; gap: 12px 26px; margin-top: 18px; align-items: center; }
.arch-stage.pinned .arch-scenes li { display: contents; }
.arch-stage.pinned .arch-scenes button { grid-row: 1; cursor: pointer; color: var(--ink-2); }
.arch-stage.pinned .arch-scenes button:hover { color: var(--ink); }
.arch-stage.pinned .arch-scenes li.on button { color: var(--brand); }
.arch-stage.pinned .arch-scenes p { grid-row: 2; grid-column: 1 / -1; margin: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.arch-stage.pinned .arch-scenes li.on p { opacity: 1; pointer-events: auto; }

/* terminal that types itself (site.js) */
.caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: var(--code-ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* steps */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--brand-soft); color: var(--brand); }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* checklist grid */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
@media (max-width: 780px) { .checks { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.check svg { width: 22px; height: 22px; color: var(--good); margin-top: 1px; }
.check b { display: block; font-size: 16px; margin-bottom: 2px; }
.check span { color: var(--ink-2); font-size: 15px; }

/* assistant: sample conversation and example asks */
.chat { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.chat .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 600 12px var(--mono); color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg.me { justify-self: end; background: #1f5fae; color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { justify-self: start; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.tool { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--bg-3); border: 1px solid transparent; border-radius: 8px; padding: 4px 10px; }
.tool b { color: var(--ink); font-weight: 600; }
.tool .rd { color: var(--good); font-weight: 700; }
.tool .wr { color: var(--warn); font-weight: 700; }
.tool.ask { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.asks { margin-top: 56px; }
.asks > b { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.asks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.asks li { border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: 7px 15px; font-size: 14.5px; color: var(--ink); }

/* tech strip */
.tech { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tech span { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--bg); }
.tech span b { color: var(--ink); font-weight: 650; }

/* faq */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* contact */
.contact {
  border-radius: 20px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(110, 231, 216, 0.25), transparent 60%), linear-gradient(135deg, #0d2d54, #1f5fae);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.contact h2 { color: #fff; }
.contact p { color: #cfe0f5; font-size: 17px; margin-top: 14px; }
.contact .who { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; padding: 24px; }
.contact .who b { display: block; font-size: 18px; }
.contact .who span { color: #b9cde6; font-size: 14.5px; }
.contact .who a.mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 650; margin: 14px 0 18px; word-break: break-all; }
.contact .who a.mail svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .sp { flex: 1; }

/* ---------- code ---------- */
pre {
  background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 18px 20px; margin: 0 0 1.4em;
  overflow-x: auto; font-size: 13.5px; line-height: 1.65; border: 1px solid var(--code-line); tab-size: 2;
}
pre code { font-size: inherit; background: none; padding: 0; color: inherit; border: 0; }
:not(pre) > code { font-size: 0.88em; background: var(--inline-code); padding: 0.12em 0.38em; border-radius: 5px; color: var(--ink); }
.tok-c { color: #6b7d96; font-style: italic; }
.tok-s { color: #9ad58b; }
.tok-k { color: #c49cf5; }
.tok-n { color: #f7b267; }
.tok-f { color: #79c0ff; }
.tok-p { color: #e3a3c9; }
.code-title { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--mono); color: var(--muted); margin: 0 0 8px; }
.code-title + pre { margin-top: 0; }

/* ---------- guides ---------- */
.doc-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.doc-hero .wrap { padding-top: 64px; padding-bottom: 52px; }
.doc-hero .kicker { margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 750; letter-spacing: -0.035em; max-width: 880px; }
.doc-hero .lead { font-size: 19px; color: var(--ink-2); max-width: 800px; margin-top: 18px; }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.doc-hero .meta span { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; background: var(--bg); }

.doc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; padding-right: 6px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-color: var(--line-2); }
.toc a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
@media (max-width: 980px) {
  .doc { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-2); }
}

.article { min-width: 0; max-width: 820px; }
.article section { padding-top: 8px; margin-bottom: 64px; }
.article h2 { font-size: 30px; font-weight: 750; letter-spacing: -0.025em; margin-bottom: 18px; }
.article h2 .sn { font: 600 15px var(--mono); color: var(--brand); margin-right: 12px; vertical-align: 0.2em; }
.article h3 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.article h2 code, .article h3 code { background: none; padding: 0; font-size: 0.86em; color: inherit; }
.article p, .article li { color: var(--ink-2); font-size: 16.5px; }
.article p b, .article li b, .article p strong { color: var(--ink); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: 6px; }
.article .lede { font-size: 18.5px; color: var(--ink); line-height: 1.6; }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tbl th { text-align: left; font-weight: 650; color: var(--ink); background: var(--bg-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td:first-child { color: var(--ink); }
table.tbl code { white-space: nowrap; }

.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; border-radius: 12px; padding: 16px 18px; margin: 0 0 1.6em; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.callout svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); font-size: 15.5px; }
.callout p + p { margin-top: 8px; }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout.warn svg { color: var(--warn); }
.callout.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.callout.good svg { color: var(--good); }

/* plain-language reading of code */
.read { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 1.8em; }
.read pre { margin: 0; border-radius: 0; border: 0; height: 100%; font-size: 12.5px; }
.read .say { padding: 18px 20px; background: var(--bg-2); }
.read .say b.t { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.read .say ol { margin: 0; padding-left: 20px; }
.read .say li { font-size: 15px; margin-bottom: 9px; }
@media (max-width: 860px) { .read { grid-template-columns: 1fr; } }

.flowfig { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 1.6em; background: var(--bg-2); overflow-x: auto; }
.flowfig svg { display: block; min-width: 640px; width: 100%; height: auto; }
.flowfig text { font-family: var(--font); }
.figcap { font-size: 13.5px; color: var(--muted); margin: -0.8em 0 1.8em; }

.qa { counter-reset: qa; list-style: none; padding: 0 !important; }
.qa li { counter-increment: qa; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.qa li::before { content: counter(qa); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.qa li b { display: block; margin-bottom: 2px; }

.next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.next a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); background: var(--bg); }
.next a:hover { border-color: var(--brand); }
.next a small { display: block; color: var(--muted); font-size: 13px; }
.next a b { font-size: 17px; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } }

/* ---------- permits page ---------- */
.hero.slim .wrap { padding-bottom: 96px; }
@media (max-width: 640px) { .hero.slim .wrap { padding-bottom: 64px; } }
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav .opt2 { display: none; } }
@media (max-width: 1080px) { .nav .opt { display: none; } }

.card ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.card ul.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; }
.card ul.ticks li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--good); }
.card ul.ticks.shut li svg { color: var(--brand); }
.card ul.ticks b { color: var(--ink); font-weight: 650; }
.card .foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* deck: a contract on the left, an admin block on the right, walked through by the scroll like the
   architecture diagram (site.js sets data-scene 1..N on .deck). Elements with .dim fade unless they
   carry the scene's s-class, .fN lights up in scene N. Inside .sw only the child for the current scene
   shows (.v1 … .v5, .v0 without a scene); a segmented state shows its option for the scene (.k0 … .k5). */
.deck { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
@media (max-width: 1060px) { .deck { grid-template-columns: minmax(0, 1fr); } }
.deck .pane-t { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--mono); color: var(--muted); margin: 0 0 8px; }
.deck .pane-t i { font-style: normal; color: var(--ink-2); }
.deck pre { margin: 0; font-size: 12px; line-height: 1.8; padding: 16px 18px; }
.deck .dim { transition: opacity 0.35s ease, background 0.35s ease, box-shadow 0.35s ease; }
.deck .req { border-radius: 4px; padding: 1px 2px; margin: 0 -2px; }
.deck[data-scene="1"] .dim:not(.s1), .deck[data-scene="2"] .dim:not(.s2), .deck[data-scene="3"] .dim:not(.s3),
.deck[data-scene="4"] .dim:not(.s4), .deck[data-scene="5"] .dim:not(.s5) { opacity: 0.3; }
.deck[data-scene="1"] .req.f1, .deck[data-scene="2"] .req.f2, .deck[data-scene="3"] .req.f3,
.deck[data-scene="4"] .req.f4, .deck[data-scene="5"] .req.f5 { background: rgba(92, 155, 234, 0.26); box-shadow: 0 0 0 1px rgba(127, 178, 242, 0.65); }
.deck[data-scene="1"] tr.f1 td, .deck[data-scene="2"] tr.f2 td, .deck[data-scene="3"] tr.f3 td,
.deck[data-scene="4"] tr.f4 td, .deck[data-scene="5"] tr.f5 td { background: var(--brand-soft); }
.deck[data-scene="1"] .f1 .fx, .deck[data-scene="2"] .f2 .fx, .deck[data-scene="3"] .f3 .fx,
.deck[data-scene="4"] .f4 .fx, .deck[data-scene="5"] .f5 .fx { font-weight: 650; }
.deck .sw > * { display: none; }
.deck:not([data-scene]) .sw > .v0, .deck[data-scene="1"] .sw > .v1, .deck[data-scene="2"] .sw > .v2,
.deck[data-scene="3"] .sw > .v3, .deck[data-scene="4"] .sw > .v4, .deck[data-scene="5"] .sw > .v5 { display: inline-block; }

/* the admin block, drawn in the site's colours */
.panel { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; background: #28282a; color: #bbbcbf; font: 500 12.5px var(--font); }
.panel-bar b { color: #86abd9; font-weight: 700; }
.panel-bar span:last-child { color: #fbfbfc; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.panel-head h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .cnt { font-size: 13px; color: var(--ink-2); }
.panel-head .pbtn { margin-left: auto; font: 600 12.5px var(--font); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; color: var(--ink); background: var(--bg); }
.panel-head .pbtn.press { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ptbl-wrap { overflow-x: auto; }
table.ptbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ptbl th { text-align: left; font: 650 11px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
table.ptbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); transition: background 0.35s ease; }
table.ptbl tr:last-child td { border-bottom: 0; }
table.ptbl td.k { font: 600 12px var(--mono); color: var(--muted); white-space: nowrap; }
table.ptbl td.n { font: 500 12.5px var(--mono); color: var(--ink); line-height: 1.9; }
table.ptbl td.n .nm { white-space: nowrap; margin-right: 2px; }
table.ptbl td.n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
table.ptbl th.run, table.ptbl td.run { background: var(--bg-2); border-left: 1px dashed var(--line-2); }
table.ptbl td.run { font: 500 12px var(--mono); white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font: 600 11.5px var(--font); }
.seg .o { padding: 3px 7px; color: var(--muted); border-left: 1px solid var(--line-2); transition: background 0.3s ease, color 0.3s ease; white-space: nowrap; }
.seg .o:first-child { border-left: 0; }
.deck:not([data-scene]) .seg .p.k0, .deck[data-scene="1"] .seg .p.k1, .deck[data-scene="2"] .seg .p.k2, .deck[data-scene="3"] .seg .p.k3, .deck[data-scene="4"] .seg .p.k4, .deck[data-scene="5"] .seg .p.k5,
.seg .p.on { background: var(--good-soft); color: var(--good); }
.deck:not([data-scene]) .seg .d.k0, .deck[data-scene="1"] .seg .d.k1, .deck[data-scene="2"] .seg .d.k2, .deck[data-scene="3"] .seg .d.k3, .deck[data-scene="4"] .seg .d.k4, .deck[data-scene="5"] .seg .d.k5,
.seg .d.on { background: var(--bad-soft); color: var(--bad); }
.deck:not([data-scene]) .seg .x.k0, .deck[data-scene="1"] .seg .x.k1, .deck[data-scene="2"] .seg .x.k2, .deck[data-scene="3"] .seg .x.k3, .deck[data-scene="4"] .seg .x.k4, .deck[data-scene="5"] .seg .x.k5,
.seg .x.on { background: var(--bg-3); color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1.5 var(--font); border-radius: 999px; padding: 1px 7px; margin-right: 4px; white-space: nowrap; background: var(--bg-3); color: var(--ink-2); }
.tag.new { background: var(--brand-soft); color: var(--brand-ink); }
.tag.app { background: color-mix(in srgb, #6b4fbb 14%, transparent); color: #6b4fbb; }
.tag.own { background: var(--warn-soft); color: var(--warn); }
.tag.idp { background: color-mix(in srgb, #0e7c86 14%, transparent); color: #0e7c86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.app { color: #b7a3f2; } :root:not([data-theme="light"]) .tag.idp { color: #6fd3dc; } }
:root[data-theme="dark"] .tag.app { color: #b7a3f2; }
:root[data-theme="dark"] .tag.idp { color: #6fd3dc; }
.fx { align-items: center; gap: 6px; }
.fx.ok, .fx .ok { color: var(--good); }
.fx.no, .fx .no { color: var(--bad); }
.fx.mut { color: var(--muted); }
.val { font: 500 12px var(--mono); color: var(--ink); }
.val.enc { color: var(--muted); }
.val.warn { color: var(--warn); font-family: var(--font); font-weight: 600; }
.src { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; font: 500 12px var(--font); color: var(--ink); white-space: nowrap; background: var(--bg); }
.src::after { content: "▾"; color: var(--muted); font-size: 10px; margin-left: 6px; }
.src.none { color: var(--muted); }
.src.shared { border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand-ink); }
.panel-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--ink-2); background: var(--bg-2); min-height: 40px; align-items: center; }
.panel-foot b { color: var(--ink); font-weight: 600; }
.deck-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* who sees what */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
@media (max-width: 1060px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .roles { grid-template-columns: minmax(0, 1fr); } }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.role b { display: block; font-size: 16px; margin-bottom: 4px; }
.role .does { font-size: 13px; font-weight: 650; color: var(--brand); margin-bottom: 10px; display: block; }
.role p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* landing page: permits teaser */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin-top: 48px; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .cards { margin-top: 0; grid-template-columns: 1fr; gap: 14px; }
.split .card { padding: 20px 22px; display: grid; grid-template-columns: 42px 1fr; gap: 0 16px; }
.split .card .ic { grid-row: span 2; }
.split .card h3 { margin: 0 0 4px; font-size: 17px; }
.more-link { display: inline-flex; margin-top: 28px; font-weight: 650; text-decoration: none; }
