/* Talira: base styles and page layouts. Colours and sizes come from tokens.css, components from components.css. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
/* A heading opened from a # link lands with room above it, clear of the sticky header. */
[id] { scroll-margin-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: var(--text-md)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
/* A page's title, wherever its section doesn't size it: the same size as the browse and docs pages' titles. */
h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
b, strong { font-weight: 600; }

/* === Links === */
/* A link looks like a link without hovering (docs/DESIGN_SYSTEM.md, "Links"): --link and always underlined, wherever
   it sits in text. Hover darkens it (brightens it in dark mode) and doubles the underline; focus gets the ring below.
   Navigation, buttons, tabs, cards that are wholly a link and titles that link their item set their own looks, and
   nothing else turns a link back into plain text. The layer puts these under every other rule, whatever its
   specificity, so a component's colour holds on hover too (the wordmark, a menu's rows). */
@layer base {
  a {
    color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    transition: color var(--dur) var(--ease), text-decoration-thickness var(--dur) var(--ease);
  }
  a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
  /* A heading that links its item (a result's, a post's, a standard's name) is a title, not text: ink, turning the
     accent on hover. */
  :is(h1, h2, h3, h4) > a { color: inherit; text-decoration: none; }
  :is(h1, h2, h3, h4) > a:hover { color: var(--accent); }
}
/* The ring follows each element's own corners; only links (square by default) get rounded ones. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a:not(.button):focus-visible { border-radius: 4px; }
code, kbd, pre, samp { font-family: var(--mono); }

/* === Page layout: browse prose === */
/* A page's width: main is 1160px with 24px gutters (16px on a phone); a section of prose and forms keeps to
   720px, a list of listings (.browse) to 960px. */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px 96px; }
.compare h1, .prose h1, .connect h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.045em; margin: 48px 0 20px; }
.prose { max-width: 720px; }
.prose pre { background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--radius-md); padding: 14px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: 0.88em; }
.prose dt { font: 500 var(--text-sm) var(--mono); margin-top: 16px; }
.prose dd { margin: 4px 0 0; color: var(--ink-2); }
.browse { max-width: 960px; padding-top: 48px; }
.browse h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 12px; }
@media (max-width: 760px) { main { padding: 0 16px 64px; } }

/* === Header: brand mark mark-* nav-catalog nav-docs nav-friends nav-icon nav-label nav-lists nav-more nav-search nav-stack top top-inner === */
/* Header: sticky, on the page's colour with a blur, a hairline under it. */
.top {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.top-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1160px; height: 60px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.mark { width: 24px; height: 24px; display: block; }
.mark-tile { fill: var(--mark-tile); }
.mark-edge { fill: none; stroke: var(--mark-edge); stroke-width: 1.5; }
/* A row, so the menus (a <details> each) sit in line with the links. */
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav > a:not(.button), .top nav .products-menu-button, .top nav .account-menu-button {
  padding: 6px 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--ink-2); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.top nav > a:not(.button):hover, .top nav .products-menu-button:hover, .top nav .account-menu-button:hover { color: var(--ink); background: var(--raised); }
.top nav > .button { margin-left: 8px; }
.top nav .kbd { margin-left: 6px; }
.top nav :is(.account-menu-list, .products-menu-list) a { margin: 0; font-size: var(--control); color: var(--ink); }
/* On a phone the logo is the way to search, so the header keeps room for the rest. */
.nav-icon { display: none; }
/* Tablets and phones: the header stays on one line down to 360px. Search and Products become icons (their words stay
   for screen readers), and Lists and Friends move into the Products menu. Below 560px Catalog and Stack go there too,
   and below 420px Docs, and the button says Connect. */
/* Narrow desktops: Lists moves into the Products menu first, so the header stays on one line. */
@media (max-width: 960px) {
  .top nav .nav-lists { display: none; }
  .top nav .products-menu-list a.products-menu-lists:not([hidden]) { display: grid; }
}
@media (max-width: 760px) {
  .top-inner { height: 56px; padding: 0 16px; gap: 8px; }
  .brand { font-size: 17px; }
  .mark { width: 22px; height: 22px; }
  .top nav { gap: 2px; }
  .top nav > a:not(.button), .top nav .products-menu-button, .top nav .account-menu-button { padding: 6px 8px; }
  .top nav .nav-search { display: inline-flex; }
  .top nav .kbd { display: none; }
  .top nav > .button { margin-left: 6px; }
  .nav-icon { display: block; width: 18px; height: 18px; }
  .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The open menu hangs from the header's right edge, so it never runs off a phone's screen. */
  .top nav .products-menu { position: static; }
  .top nav .products-menu-list { left: auto; right: 16px; top: calc(100% - 4px); }
  .top nav :is(.nav-lists, .nav-friends) { display: none; }
  .top nav .products-menu-list a:is(.products-menu-lists, .products-menu-friends):not([hidden]) { display: grid; }
}
@media (max-width: 560px) {
  .top nav :is(.nav-catalog, .nav-stack) { display: none; }
  .top nav .products-menu-list a.products-menu-catalog, .top nav .products-menu-list a.products-menu-stack:not([hidden]) { display: grid; }
}
@media (max-width: 420px) {
  /* Room for Sign in or the account menu: Docs is in the Products menu and the footer. */
  .top nav .nav-docs { display: none; }
  .top nav .products-menu-list a.products-menu-docs { display: grid; }
  .nav-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* === Footer: foot foot-* === */
/* The footer (views/footer.rs COLUMNS): the wordmark and what Talira is, the site's pages in columns under short
   headings, then the company line with the theme switch at its right. Five columns from 960px, three on a tablet, two
   on a phone; a column never splits. Each link is a 32px row on touch screens. Its small text is --ink-2. */
.foot { border-top: 1px solid var(--rule); color: var(--ink-2); font-size: var(--text-sm); }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 40px 24px 48px; }
.foot-brand .brand { font-size: 18px; }
.foot-brand p { max-width: 68ch; margin: 12px 0 0; }
.foot-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; }
.foot-column h2 { margin: 0 0 12px; font-size: var(--text-sm); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
.foot-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-column a { color: var(--ink-2); text-decoration: none; }
.foot-column a:hover { color: var(--ink); }
.foot-base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding-top: 20px;
  border-top: 1px solid var(--rule); font-size: var(--text-xs);
}
.foot-base p { margin: 0; }
@media (max-width: 960px) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .foot-inner { padding: 32px 16px 40px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 28px; }
}
@media (pointer: coarse) {
  .foot-column ul { gap: 0; }
  .foot-column a { display: inline-block; padding: 5px 0; }
}

/* === Hero: compact count hero hero-* === */
/* Hero: a page's title, its lede and its main actions. The home page's sits on a faint grid, beside an agent's call. */
.hero { position: relative; padding: 64px 0 24px; }
.hero.compact { padding: 32px 0 8px; }
.hero h1 { font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 20px; max-width: 13.5em; overflow-wrap: anywhere; text-wrap: balance; }
.hero-home { padding-bottom: 8px; }
.hero-home::before {
  content: ""; position: absolute; inset: 0 -24px -120px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-grid .lede { margin-bottom: 0; max-width: 46ch; }
.hero-home .search { margin-top: 48px; }
.count { font-size: var(--text-sm); color: var(--ink-3); margin: 14px 0 0; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 0; }
.hero-note { margin: 20px 0 0; font-size: var(--text-sm); color: var(--ink-3); max-width: 60ch; }
@media (max-width: 760px) { .hero { padding-top: 40px; } }

/* === Home page: agent-* examples examples-label k mapping mapping-* v === */
/* The home page's examples: searches to try, as pills under the search box. */
.examples { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-sm); }
.examples-label { color: var(--ink-3); margin-right: 2px; }
.examples a {
  display: block; max-width: 100%; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-2); text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.examples li { min-width: 0; max-width: 100%; }
.examples a:hover { color: var(--ink); border-color: var(--ink-3); }

/* Agent call: the home page's example of an agent's search call over MCP, and Talira's ranked answer under it. */
.agent-call { margin: 0; min-width: 0; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.agent-call figcaption { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: var(--text-xs); color: var(--ink-2); }
.agent-call figcaption code { color: var(--ink); }
.agent-call pre { margin: 0; padding: 16px; font: 12.5px/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; background: var(--raised); }
.agent-call .k { color: var(--ink); }
.agent-call .v { color: var(--accent); }
.agent-results { padding: 12px 16px 16px; border-top: 1px solid var(--rule); }
.agent-results-label { margin: 0; font-size: var(--text-xs); color: var(--ink-3); }
.agent-results ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.agent-results li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 0; }
.agent-results .logo { width: 26px; height: 26px; }
.agent-result-name { min-width: 0; font-weight: 500; font-size: var(--text-sm); color: var(--ink); text-decoration: none; }
.agent-result-name:hover { color: var(--accent); }
.agent-result-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: var(--text-xs); color: var(--ink-3); }
.agent-result-name small.is-warn { color: var(--warn); }
.agent-result-fit { font: 500 var(--text-sm)/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .agent-call pre { white-space: pre; overflow-x: auto; font-size: 11.5px; } }

/* Problem in, listing out: the home page's rows of a problem as a listing states it, an arrow, and the listing. */
.mapping { margin: 32px 0 0; border-top: 1px solid var(--rule); max-width: 1000px; }
.mapping-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 28px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.mapping-row q { color: var(--ink); font-size: var(--text-lg); letter-spacing: -0.01em; quotes: "\201C" "\201D"; }
.mapping-arrow { color: var(--ink-3); }
.mapping-arrow svg { display: block; width: 18px; height: 18px; }
.mapping-listing { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.mapping-listing b { font-weight: 600; }
.mapping-listing span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--ink-3); }
.mapping-listing:hover b { color: var(--accent); }
@media (max-width: 640px) {
  .mapping-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mapping-arrow { display: none; }
  .mapping-row q { font-size: var(--text-md); }
}

/* === Search results: conf conf-* evidence hit hit-forks hits lowconf meta rank read-as reasons results scores search-title tagline warnings === */
/* Search results: the meta line, then each result with its scores in a column at the right. */
.results { max-width: none; }
.results .meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: var(--text-sm); color: var(--ink-3);
  margin: 32px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.results .meta a { margin-left: auto; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.conf::first-letter { text-transform: uppercase; }
.conf::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.conf-high { color: var(--ok); }
.conf-medium { color: var(--warn); }
.conf-low { color: var(--bad); }
.lowconf { color: var(--bad); margin: 16px 0 0; }
.read-as { font-size: var(--text-sm); color: var(--ink-2); margin: 12px 0 0; }
.results .notice { margin: 16px 0 0; }
.hits { list-style: none; padding: 0; margin: 0; }
.hit { display: grid; grid-template-columns: 28px minmax(0, 1fr) 160px; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rank { font: 500 var(--text-sm)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); padding-top: 9px; }
.hit:first-child .rank { color: var(--accent); }
.hit :is(h2, h3) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 4px; }
.hit :is(h2, h3) > a { text-decoration: none; }
.hit :is(h2, h3) > a:hover { color: var(--accent); }
.hit :is(h2, h3) > .cite { margin-left: -10px; }
.hit :is(h2, h3) .logo { margin: 0; }
.hit :is(h2, h3) .chip { margin: 0; letter-spacing: 0; }
/* Why it's shown: a Tip beside the name, closer to it than the chips are. */
.hit :is(h2, h3) > .tip-button { margin-left: -4px; }
.tagline { margin: 0 0 10px; color: var(--ink-2); max-width: 70ch; }
/* What people with a similar problem did with a result (outcome reports). */
.evidence { margin: 0 0 8px; font-size: var(--text-sm); color: var(--ink-2); }
.reasons { margin: 0; font-size: var(--text-sm); color: var(--ink-3); }
.warnings { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-wash); font-size: var(--text-sm); color: var(--warn); max-width: 70ch; }
.hit-forks { margin: 6px 0 0; font-size: var(--text-sm); color: var(--ink-2); }
.hit .fork-of { margin: 0 0 6px; font-size: var(--text-sm); }
/* A result's heading in a page's prose (a person's stacks, one per row) keeps the result's spacing over `.prose h2`'s. */
.prose .hit h2 { margin: 0 0 4px; }
.scores { display: grid; gap: 14px; align-content: start; padding-top: 8px; }
.search-title { font-size: var(--text-xl); letter-spacing: -0.025em; margin: 0 0 12px; }
@media (max-width: 760px) {
  .hit { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
  .hit :is(h2, h3) { font-size: 19px; }
  .scores { grid-column: 2; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 0; }
  .results .meta a { margin-left: 0; }
}

/* === Listing page: alt-list alts desc features fork-of forks kv links no problems proof small tool-* unk yes === */
/* A listing's page: its title, links and the two columns (its crumb is the Page header's .crumb). */
.tool-head { padding: 32px 0 8px; }
.fork-of { font-size: var(--text-md); color: var(--ink-2); max-width: 70ch; margin: 0 0 12px; }
.tool-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 14px; }
.tool-title { display: flex; align-items: center; gap: 20px; margin: 0 0 14px; }
.tool-title h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tool-title { gap: 14px; } .tool-title .logo-lg { width: 52px; height: 52px; } }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: var(--text-sm); font-weight: 500;
  color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease);
}
.links a:hover { border-color: var(--ink-3); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--rule); }
.tool-grid h2, .alts h2, .listing-board h2, .prose h2 { font-size: var(--text-xl); letter-spacing: -0.025em; margin: 40px 0 12px; }
.tool-report { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.desc { font-size: var(--text-lg); line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.desc p { margin: 0 0 14px; }
.desc code, .problems code, .features code, .edition code, .compare code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 4px; padding: 0.08em 0.3em; overflow-wrap: anywhere; }
.problems, .features, .proof, .forks { padding-left: 20px; max-width: 70ch; }
.problems li, .features li, .proof li { margin-bottom: 8px; }
.problems li::marker, .features li::marker, .proof li::marker { color: var(--ink-3); }
/* The problem a search result's link named (#solves-<anchor>), which talira.js puts first. */
.problems li.is-match { font-weight: 600; color: var(--ink); }
/* Small print: a quieter line or list under a section. Only a list is indented, for its bullets: a paragraph lines up
   with the text around it (the foot of a listing's page, under "Report a problem with this page"). */
.small { font-size: var(--text-sm); color: var(--ink-2); margin: 12px 0 0; }
ul.small, ol.small { padding-left: 18px; }
.kv { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.kv th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 8px 12px 8px 0; vertical-align: top; width: 42%; }
.kv td { padding: 8px 0; overflow-wrap: anywhere; color: var(--ink); vertical-align: top; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--rule); }
.yes { color: var(--ok); font-weight: 500; }
.no, .unk { color: var(--ink-3); }
.alts h3 { font-size: var(--text-lg); letter-spacing: -0.015em; line-height: 1.3; margin: 28px 0 4px; }
.alts h3 + p.muted { margin: 0 0 8px; }
.alt-list { padding-left: 24px; }
.alt-list li { margin-bottom: 8px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* === Compare: compare matrix === */
/* Compare: the listings side by side in a table that scrolls sideways inside its box. */
.matrix { border-collapse: collapse; font-size: var(--text-sm); min-width: 640px; width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--rule); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; }
.matrix thead th { font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.015em; }
.matrix tbody th { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.matrix .meter { grid-template-columns: 0 auto; }

/* === Connect: client-tabs connect local-note panel-* search-by-url tab-list tab-panel url-* === */
/* Connect: the MCP address in a box on the soft shadow, then the clients' setup steps. */
.connect { max-width: 760px; }
.connect h2 { font-size: var(--text-xl); letter-spacing: -0.025em; margin: 48px 0 10px; }
.url-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--card); border-radius: var(--radius-lg);
  padding: 12px 12px 12px 20px; box-shadow: var(--shadow);
}
.url-label { font-size: var(--text-xs); color: var(--ink-3); }
.url-box code { font: 500 var(--text-md) var(--mono); flex: 1 1 260px; word-break: break-all; }
.local-note { font-size: var(--text-sm); color: var(--warn); margin: 14px 0 0; }
.search-by-url code { overflow-wrap: anywhere; }

/* Connect's clients: a radio per client, its label a tab, the chosen one ink on the surface. Works without JS. */
.client-tabs { margin-top: 36px; }
.client-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.tab-list label {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: var(--radius-sm); cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tab-list label:hover { color: var(--ink); background: var(--raised); }
.tab-panel { display: none; padding-top: 18px; }
.tab-panel ol { padding-left: 22px; }
.tab-panel li { margin-bottom: 6px; }
#tab-claude:checked ~ .panel-claude, #tab-chatgpt:checked ~ .panel-chatgpt, #tab-claude-code:checked ~ .panel-claude-code,
#tab-codex:checked ~ .panel-codex, #tab-cursor:checked ~ .panel-cursor, #tab-vscode:checked ~ .panel-vscode,
#tab-gemini:checked ~ .panel-gemini, #tab-other:checked ~ .panel-other { display: block; }
#tab-claude:checked ~ .tab-list label[for="tab-claude"], #tab-chatgpt:checked ~ .tab-list label[for="tab-chatgpt"],
#tab-claude-code:checked ~ .tab-list label[for="tab-claude-code"], #tab-codex:checked ~ .tab-list label[for="tab-codex"],
#tab-cursor:checked ~ .tab-list label[for="tab-cursor"], #tab-vscode:checked ~ .tab-list label[for="tab-vscode"],
#tab-gemini:checked ~ .tab-list label[for="tab-gemini"], #tab-other:checked ~ .tab-list label[for="tab-other"] {
  color: var(--ink); background: var(--card); box-shadow: var(--ring);
}
#tab-claude:focus-visible ~ .tab-list label[for="tab-claude"], #tab-chatgpt:focus-visible ~ .tab-list label[for="tab-chatgpt"],
#tab-claude-code:focus-visible ~ .tab-list label[for="tab-claude-code"], #tab-codex:focus-visible ~ .tab-list label[for="tab-codex"],
#tab-cursor:focus-visible ~ .tab-list label[for="tab-cursor"], #tab-vscode:focus-visible ~ .tab-list label[for="tab-vscode"],
#tab-gemini:focus-visible ~ .tab-list label[for="tab-gemini"], #tab-other:focus-visible ~ .tab-list label[for="tab-other"] {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.connect code { font-family: var(--mono); font-size: 0.9em; }

/* === Benchmark: benchmark benchmark-* === */
/* /benchmark: the published agent benchmark. Wider than prose for its tables; its text keeps to reading width. */
.prose.benchmark { max-width: 960px; }
.benchmark > p, .benchmark > ul, .benchmark .facts { max-width: 70ch; }
.benchmark h2 { font-size: var(--text-xl); letter-spacing: -0.025em; margin: var(--space-7) 0 var(--space-3); }
.benchmark h3 { margin: var(--space-5) 0 var(--space-2); }
.benchmark .table-wrap { margin: 0 0 var(--space-4); }
.benchmark-kinds { columns: 2 260px; padding-left: 18px; }
.benchmark-problems { list-style: none; padding: 0; max-width: 70ch; }
.benchmark-problems li { padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.benchmark-problems li:first-child { border-top: 0; padding-top: 0; }
.benchmark-problems .muted { margin-left: var(--space-2); }
.benchmark-rates { display: block; margin-top: var(--space-1); font-variant-numeric: tabular-nums; }
.benchmark-problems q { display: block; margin-top: var(--space-1); color: var(--ink-2); }
.benchmark-sample blockquote { margin: 0 0 var(--space-3); padding-left: var(--space-3); border-left: 2px solid var(--rule); color: var(--ink-2); }
.benchmark-sample h3 { font-size: var(--text-md); margin: 0 0 var(--space-2); }

/* === Product pages: closing journey pitch pitch-lede points product-* said === */
/* Homepage and product pages: sections of a heading, a lede and points, each a hairline above it. */
.pitch { max-width: none; padding: 96px 0 0; }
.pitch h2 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 12px; max-width: 24em; }
.pitch-lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 62ch; margin: 0 0 32px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; max-width: 960px; }
.points > div { border-top: 1px solid var(--rule); padding-top: 16px; }
.points h3, .journey h3 { font-size: var(--text-lg); letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 6px; }
.points p, .journey p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.journey { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 720px; }
.journey li { counter-increment: step; position: relative; padding: 0 0 32px 56px; }
.journey li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font: 500 var(--text-sm)/1 var(--mono); background: var(--card); color: var(--ink);
  box-shadow: var(--ring); font-variant-numeric: tabular-nums;
}
.journey li:first-child::before { background: var(--accent-wash); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; width: 1px; background: var(--rule); }
.journey .said {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 0; padding: 12px 16px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--radius-md); color: var(--ink); font-size: var(--text-sm);
}
.closing { margin: 48px 0 0; }
@media (max-width: 760px) {
  .points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pitch { padding-top: 64px; }
  .pitch h2 { font-size: 26px; }
  .journey li { padding-left: 48px; }
}
.journey .said dt { color: var(--ink-3); }
.journey .said dd { margin: 0; }

/* Product pages (/products and each product's page): a hero, an example of the product, then sections made of
   .pitch and .points. */
.product-hero .hero-actions { margin-bottom: 40px; }
.product-list { padding-top: 16px; }
.product-list h2 { font-size: var(--text-xl); letter-spacing: -0.025em; line-height: 1.3; margin: 0 0 8px; }
.product-list h2 a { text-decoration: none; }
.product-list h2 a:hover { color: var(--accent); }
.points .code { margin: 14px 0 0; }
.points code, .pitch-lede code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 4px; padding: 0.08em 0.3em; overflow-wrap: anywhere; }
.points .code code { background: none; box-shadow: none; padding: 0; }
.pitch .example { margin-top: 8px; }
.pitch .table-wrap { margin: 0 0 8px; }
.pitch .data-table code { font-family: var(--mono); font-size: 0.92em; }

/* === Filter links: type-nav === */
/* Filter links: a list's narrower views as pills, each with its count, the one shown in ink. */
.type-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; font-size: var(--text-sm); }
.type-nav a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.type-nav a:hover { color: var(--ink); border-color: var(--ink-3); }
.type-nav a[aria-current] { font-weight: 500; color: var(--ink); border-color: var(--ink); }
.type-nav + .filter-tools { margin-top: -8px; }

/* === Catalog pages: browse-list === */
/* Catalog and type pages: their listings' cards without the rank column. */
.browse-list .hit { grid-template-columns: minmax(0, 1fr) 160px; }
@media (max-width: 640px) { .browse-list .hit { grid-template-columns: minmax(0, 1fr); } .browse-list .scores { grid-column: 1; } }

/* === Editions: edition edition-* editions hit-editions === */
/* Editions: the hosted service and the self-hosted ones, side by side */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 8px; }
.edition { border-radius: var(--radius-md); padding: 16px 20px; background: var(--card); box-shadow: var(--ring); }
.edition h3 { margin: 0 0 4px; font-size: var(--text-lg); letter-spacing: -0.015em; }
.edition-meta { margin: 0 0 6px; font-size: var(--text-sm); color: var(--ink-3); }
.edition-price { margin: 0 0 8px; font-weight: 500; }
.edition-label { margin: 12px 0 0; font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.edition .small { margin-top: 4px; }
.hit-editions { margin: 0 0 8px; font-size: var(--text-sm); color: var(--ink-2); }

/* === Design gallery: design design-account design-cards design-chat design-form design-frame design-frame-flush design-meters design-products design-raised design-ring design-row design-shadow design-shadows design-side-nav design-themes swatch swatches type-sample type-sizes === */
/* /design: the component gallery */
.design { max-width: 860px; }
.design-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.design-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0 8px; }
.swatches, .type-sizes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.swatches li, .type-sizes li { display: grid; grid-template-columns: 44px 150px 1fr; align-items: center; gap: 12px; }
.type-sizes li { grid-template-columns: 220px 120px 1fr; }
.swatch { width: 44px; height: 28px; border-radius: var(--radius-sm); background: var(--swatch); box-shadow: inset 0 0 0 1px var(--rule); }
.type-sample { font-size: var(--size); }
.design-meters { max-width: 320px; display: grid; gap: 14px; }
.design-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin: 12px 0 8px; }
.design-cards figure { margin: 0; }
.design-cards img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--ring); }
.design-cards figcaption { margin-top: 6px; font-size: var(--text-sm); color: var(--ink-2); }
.design-frame { border-radius: var(--radius-md); box-shadow: var(--ring); padding: 0 16px 16px; margin: 12px 0 8px; }
.design-frame-flush { padding: 0; overflow: hidden; }
.design-form { max-width: 520px; }
.design-shadows { display: flex; flex-wrap: wrap; gap: 20px; margin: 12px 0 8px; }
.design-shadows div { display: grid; place-items: center; width: 160px; height: 88px; border-radius: var(--radius-md); background: var(--card); font-size: var(--text-sm); color: var(--ink-2); }
.design-shadows .design-ring { box-shadow: var(--ring); }
.design-shadows .design-shadow { box-shadow: var(--shadow); }
.design-shadows .design-raised { background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); }
/* The support chat's states, drawn in the page's flow instead of floating */
.design-chat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; margin: 12px 0 8px; }
.design-chat figure { margin: 0; }
.design-chat .support-chat-panel { position: static; width: auto; height: 460px; }
.design-chat figcaption { margin-top: 8px; font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 640px) {
  .swatches li { grid-template-columns: 44px 1fr; }
  .swatches li .muted, .type-sizes li .muted { grid-column: 2; }
  .type-sizes li { grid-template-columns: 1fr; }
}
.design-account { display: flex; justify-content: flex-end; max-width: 420px; padding-bottom: 110px; }
.design-products { padding-bottom: 300px; }
.design-products .products-menu { margin-left: 0; display: inline-block; }
.design-side-nav { max-width: 260px; margin: 12px 0 24px; }

/* === Article: article article-meta newer siblings === */
/* Blog posts and changelog entries (their lists use .browse) */
.article { max-width: 760px; padding-top: 48px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 14px; }
.article-meta { font-size: var(--text-sm); color: var(--ink-3); margin: 0 0 32px; }
.article-meta:has(+ .lede) { margin-bottom: 12px; }
.article .crumb + .article-meta { margin-bottom: 10px; }
.article-meta .chip { margin-bottom: 0; }
.siblings { display: flex; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.siblings a { display: grid; gap: 2px; max-width: 48%; font-weight: 500; color: var(--ink); text-decoration: none; }
.siblings a:hover { color: var(--accent); }
.siblings a span { font-size: var(--text-xs); font-weight: 400; color: var(--ink-3); }
.siblings .newer { margin-left: auto; text-align: right; }

/* === Submit: submit-* === */
/* Submit your product, and a submission's page; the same form asks for a feature on a board and suggests a standard.
   A note after the fields (who sees the request) keeps a block's gap above the button. */
.submit-form { margin: 8px 0 32px; }
.submit-form > .field-hint { margin: 0 0 var(--space-5); }
.submit-launch { min-width: 0; margin: 8px 0 0; padding: 0; border: 0; }
.submit-launch > legend { padding: 0; margin: 0 0 4px; font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.submit-launch .field-check { margin: 4px 0 18px; }

/* === Account pages: account account-form === */
/* Sign-in, sign-up and the other account pages. */
.account { max-width: 520px; }
/* "Create your Talira account" (26 characters) on one line in the 520px column. */
.account h1 { font-size: clamp(24px, calc((100vw - 32px) / 12.6), 36px); }
/* With no lede under it (the sign-in page), the heading needs more room above the buttons. */
.account .page-header:not(:has(> .lede)) { margin-bottom: 32px; }
.account-form { margin: 8px 0 28px; }
.account-form .field { max-width: 420px; }

/* === Settings: api-token credits-* friends-list linked-* profile-links-fields settings settings-* === */
/* The account settings and the pages that share their header (/stack, /friends, /organizations). */
.settings { max-width: 720px; }
.settings h2 { margin-top: 40px; }
.settings-methods { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.settings-methods li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.settings-methods form { margin: 0; }
/* A row's text (a name with a line under it) takes the width the row has, so its button stays at the right however long
   the line is, and goes under it only when the row is too narrow for both (a stack's or a list's description). */
.settings-methods li > .workspace-row { flex: 1 1 16rem; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-method-name { font-weight: 600; }
/* Settings → Sign-in: each linked account in four parts. The provider (icon and name) has its own column, so the
   accounts line up after it; then which account it is and when it was linked; then Unlink. On a phone the account and
   date go under the provider, and Unlink stays at the right. */
.linked-accounts { list-style: none; padding: 0; margin: 0 0 var(--space-5); border-top: 1px solid var(--rule); }
.linked-account { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-5); row-gap: var(--space-1); padding: var(--space-3) 0; min-height: 56px; border-bottom: 1px solid var(--rule); }
.linked-account-provider { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.linked-account-name { font-weight: 600; }
.linked-account-detail { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-4); row-gap: 2px; min-width: 0; }
.linked-account-id { overflow-wrap: anywhere; }
.linked-account-date { color: var(--ink-3); font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.linked-account-action { justify-self: end; font-size: var(--text-sm); }
.linked-account-action form { margin: 0; }
.linked-accounts-note { font-size: var(--text-sm); margin: calc(-1 * var(--space-2)) 0 var(--space-5); max-width: 420px; }
@media (max-width: 560px) {
  .linked-account { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); }
  .linked-account-provider { grid-column: 1; grid-row: 1; }
  .linked-account-detail { grid-column: 1; grid-row: 2; flex-direction: column; align-items: flex-start; padding-left: calc(18px + var(--space-2)); }
  .linked-account-action { grid-column: 2; grid-row: 1 / span 2; }
}
/* Settings → Credits: the balance, and each history line's change (added credits in the accent colour). */
.credits-balance { font-size: var(--text-lg); margin: 0 0 8px; }
.credits-balance-number { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.credits-change { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.credits-up { color: var(--accent); }
.settings-methods code { overflow-wrap: anywhere; }
/* A new API token, shown once: on its own line, wrapping anywhere so it fits a phone, and selected whole on a click. */
.api-token { display: block; overflow-wrap: anywhere; user-select: all; font-size: var(--text-sm); }

/* === Text styles: lede muted num === */
/* Last, so they win over a section's own colour and size (`muted small`, a list's quiet line). */
/* A page's lede, the paragraph under its title. */
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 60ch; margin: 0 0 32px; text-wrap: pretty; }
/* Quiet small text: a caption, a date, a note. */
.muted { color: var(--ink-3); font-size: var(--text-sm); }
/* Numbers that line up: tabular figures. */
.num { font-variant-numeric: tabular-nums; }
