/* ── IC Theme — Dark-first, terminal meets fintech ────────────────────────── */

:root {
  --bg:         #0C1116;
  --bg-surface: #141B22;
  --bg-card:    rgba(33, 33, 33, 0.6);
  --border:     #27313C;
  --text:       #E5E7EB;
  --text-muted: #9CA3AF;
  --text-dim:   #64748b;
  --accent:     #1DE9B6;
  --accent-hover: #17C9A0;
  --blue:       #1DB6E9;
  --amber:      #FAAA00;
  --red:        #FF5963;
  --purple:     #A78BFA;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Mono', monospace;
  --radius:     12px;
  --radius-sm:  8px;
  --max-width:  1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 17, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; gap: 2rem;
}
.logo { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.logo-bracket { color: var(--text-dim); }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.header-ctas { display: flex; gap: 0.5rem; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); padding: 0.625rem 1.5rem; font-size: 0.9375rem; }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8125rem; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 0.625rem 1.5rem; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.875rem 2.5rem; font-size: 1.0625rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 8rem 2rem 6rem; overflow: hidden;
}
#particles-js { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent); }
.hero .subtitle { font-size: 1.25rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 2.5rem; max-width: 560px; margin-inline: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-query {
  margin-top: 4rem; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem; max-width: 720px; margin-inline: auto; text-align: left;
}
.hero-query code { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); display: block; white-space: pre; overflow-x: auto; }
.hero-query .comment { color: var(--text-dim); }
.hero-query .keyword { color: var(--accent); font-weight: 700; }
.hero-query .string { color: var(--amber); }

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section { padding: 6rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.section-label { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.section h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section .lead { font-size: 1.125rem; color: var(--text-muted); max-width: 640px; margin-bottom: 3rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-card); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color 0.2s;
}
.card:hover { border-color: var(--text-dim); }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }
.card-icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 1rem; display: block; }
.card-icon svg { width: 100%; height: 100%; display: block; }

.icon { display: inline-flex; width: var(--icon-size, 24px); height: var(--icon-size, 24px); color: var(--accent); vertical-align: middle; }
.icon svg { width: 100%; height: 100%; display: block; }

/* ── Blog ─────────────────────────────────────────────────────────────────── */

.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--text-dim); }
.post-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-meta { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 0.75rem; }

/* ── Blog index (list page) ───────────────────────────────────────────────── */

.blog-index { display: flex; flex-direction: column; gap: 4rem; }
.blog-index-header { max-width: 720px; }
.blog-index-title { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0.5rem 0 1.25rem; }
.blog-index-lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.6; }

.blog-series { display: flex; flex-direction: column; gap: 2rem; }
.blog-series-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.blog-series-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.25rem; }
.blog-series-count { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--bg-card); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.blog-card:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.blog-card-tour { border-left: 3px solid var(--border); }

.blog-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
  letter-spacing: 0.02em;
}
.blog-card-meta time { color: var(--text-dim); }
.blog-card-ordinal { color: var(--text-muted); font-weight: 700; }
.blog-card-readtime { color: var(--text-dim); }
.blog-card-dot { color: var(--border); }

.blog-card-title { font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.blog-card-title a { color: var(--text); transition: color 0.15s; }
.blog-card-title a:hover { color: var(--accent); }
/* Make the whole card click-target via the title link, without losing real anchors */
.blog-card-title a::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
}
.blog-card-cta { position: relative; z-index: 1; }

.blog-card-desc { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

.blog-card-tags {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  list-style: none; padding: 0; margin: 0;
}
.blog-card-tags li {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.blog-card-cta {
  margin-top: auto;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.blog-card:hover .blog-card-cta { gap: 0.65rem; }

.blog-empty {
  text-align: center; color: var(--text-muted); padding: 3rem 0;
  font-style: italic;
}

@media (max-width: 720px) {
  .blog-index-title { font-size: 2.25rem; }
  .blog-index-lead { font-size: 1rem; }
  .blog-series-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Blog single (article) ────────────────────────────────────────────────── */

.article { max-width: 760px; margin: 0 auto; padding: 6rem 2rem 4rem; }

.article-header { margin-bottom: 3rem; }
.article-crumb { margin-bottom: 1.5rem; font-family: var(--mono); font-size: 0.8125rem; }
.article-crumb a { color: var(--text-dim); transition: color 0.15s; }
.article-crumb a:hover { color: var(--accent); }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.article-tags li {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.article-title {
  font-size: 2.75rem; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 1.25rem;
}
.article-lead {
  font-size: 1.25rem; line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--text-dim);
}
.article-meta time { color: var(--text-dim); }
.article-meta-dot { color: var(--border); }
.article-meta-tour { color: var(--text-muted); font-weight: 600; }

.article-rule { border: none; height: 1px; background: var(--border); margin: 2.5rem 0 0; }

/* ── Article body — prose ────────────────────────────────────────────────── */

.article-body { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.article-body > * + * { margin-top: 1.25rem; }
.article-body > h2 + p,
.article-body > h3 + p { margin-top: 1rem; }

.article-body h2 {
  font-size: 1.625rem; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 3.5rem !important; margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.5rem !important; margin-bottom: 0.5rem;
}
.article-body h4 { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-top: 2rem !important; }

.article-body p { color: var(--text); }
.article-body p:first-of-type { font-size: 1.125rem; color: var(--text); }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(29, 233, 182, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.article-body a:hover { text-decoration-color: var(--accent); }

.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--text); font-style: italic; }

.article-body ul,
.article-body ol {
  padding-left: 1.5rem; color: var(--text);
}
.article-body li { margin-top: 0.5rem; }
.article-body li::marker { color: var(--text-muted); }
.article-body ul li::marker { content: "▸ "; }
.article-body li > strong:first-child { color: var(--text); }

.article-body blockquote {
  border-left: 3px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Inline code: text carries the accent; surface is neutral. */
.article-body code {
  font-family: var(--mono); font-size: 0.875em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  word-break: break-word;
}
.article-body a code { color: inherit; }

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-body thead { background: rgba(255, 255, 255, 0.03); }
.article-body th {
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body td:first-child code { white-space: nowrap; }

/* Horizontal rule */
.article-body hr {
  border: none; height: 1px; background: var(--border); margin: 2rem 0;
}

/* ── Article code blocks ─────────────────────────────────────────────────── */

.article-body .codeblock {
  position: relative;
  margin: 1.5rem 0;
  background: #11161c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-body .codeblock .highlight,
.article-body .codeblock pre {
  background: transparent !important;
  margin: 0;
  border: none;
  border-radius: 0;
}
.article-body pre,
.article-body .highlight pre {
  padding: 1.25rem 3.5rem 1.25rem 1.25rem;
  overflow-x: auto;
  position: relative;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Language pill in upper-right corner */
.article-body .codeblock[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem; right: 0.6rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  pointer-events: none;
}
.article-body .codeblock[data-lang="icql"]::before {
  color: var(--accent); border-color: rgba(29,233,182,0.25); background: rgba(29,233,182,0.08);
}
.article-body .codeblock[data-lang="sh"]::before,
.article-body .codeblock[data-lang="shell"]::before,
.article-body .codeblock[data-lang="bash"]::before {
  color: var(--blue); border-color: rgba(29,182,233,0.25); background: rgba(29,182,233,0.06);
}
.article-body .codeblock[data-lang="python"]::before,
.article-body .codeblock[data-lang="py"]::before {
  color: var(--amber); border-color: rgba(250,170,0,0.25); background: rgba(250,170,0,0.06);
}

/* Top accent line on every code block — neutral; per-language chip carries colour. */
.article-body .codeblock::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 1;
}

.article-body pre code {
  background: none; border: none; padding: 0; color: var(--text);
  font-family: var(--mono); font-size: inherit;
  display: block;
}
.article-body pre code .tk-s { color: #FBC04E; }            /* strings — amber */
.article-body pre code .tk-k { color: #C792EA; font-weight: 600; } /* keywords — purple */
.article-body pre code .tk-a { color: var(--accent); font-weight: 700; } /* arrows — teal */
.article-body pre code .tk-o { color: var(--blue); }       /* operators — cyan */
.article-body pre code .tk-c { color: var(--text-dim); font-style: italic; } /* comments */
.article-body pre code .tk-n { color: #FBC04E; }           /* numbers — amber */

/* Tweak chroma Dracula output to match the rest of the page */
.article-body .chroma { background: transparent !important; color: var(--text); }
.article-body .chroma .c, .article-body .chroma .c1, .article-body .chroma .cm { color: var(--text-dim); font-style: italic; }
.article-body .chroma .k, .article-body .chroma .kn, .article-body .chroma .kc, .article-body .chroma .kd, .article-body .chroma .kr { color: #C792EA; font-weight: 600; }
.article-body .chroma .s, .article-body .chroma .s1, .article-body .chroma .s2, .article-body .chroma .sb, .article-body .chroma .sd { color: #FBC04E; }
.article-body .chroma .nb, .article-body .chroma .nf, .article-body .chroma .nx { color: var(--accent); }
.article-body .chroma .mi, .article-body .chroma .mf { color: #FBC04E; }
.article-body .chroma .o, .article-body .chroma .ow { color: var(--blue); }
.article-body .chroma .nv, .article-body .chroma .vi { color: var(--text); }

/* ── Tour navigation footer ──────────────────────────────────────────────── */

.article-tour-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-tour-card {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}
.article-tour-card:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.article-tour-prev { text-align: left; }
.article-tour-next { text-align: right; }
.article-tour-empty { background: transparent; border-color: transparent; pointer-events: none; }
.article-tour-dir {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.article-tour-label { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
.article-tour-title { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--text); margin-top: 0.2rem; }
.article-tour-card:hover .article-tour-title { color: var(--accent); }

/* ── Callouts ───────────────────────────────────────────────────────────── */

.callout {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.callout-icon {
  font-family: var(--mono); font-weight: 700;
  width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-size: 0.875rem;
}
.callout-body p { margin: 0; }
.callout-body p + p { margin-top: 0.5rem; }
.callout-title { font-weight: 700; color: var(--text); margin-bottom: 0.25rem !important; }
.callout-note { border-left-color: var(--border); }
.callout-note .callout-icon { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.callout-tip { border-left-color: var(--blue); background: rgba(29,182,233,0.04); }
.callout-tip .callout-icon { background: rgba(29,182,233,0.12); color: var(--blue); }
.callout-warn { border-left-color: var(--amber); background: rgba(250,170,0,0.04); }
.callout-warn .callout-icon { background: rgba(250,170,0,0.15); color: var(--amber); }
.callout-key { border-left-color: var(--purple); background: rgba(167,139,250,0.04); }
.callout-key .callout-icon { background: rgba(167,139,250,0.15); color: var(--purple); }

/* ── ICQL walk diagram ──────────────────────────────────────────────────── */

.icql-walk {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.icql-walk-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
  justify-content: center;
}
.icql-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 8.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(29,233,182,0.06);
  border: 1px solid rgba(29,233,182,0.25);
  text-align: center;
}
.icql-node-type {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.icql-node-label {
  font-family: var(--mono); font-size: 0.9375rem; font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
  word-break: break-all;
}
/* Node-type variants */
.icql-node-cluster { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.3); }
.icql-node-cluster .icql-node-type { color: var(--purple); }
.icql-node-campaign { background: rgba(250,170,0,0.08); border-color: rgba(250,170,0,0.3); }
.icql-node-campaign .icql-node-type { color: var(--amber); }
.icql-node-hbi { background: rgba(255,89,99,0.06); border-color: rgba(255,89,99,0.3); }
.icql-node-hbi .icql-node-type { color: var(--red); }
.icql-node-event { background: rgba(29,182,233,0.06); border-color: rgba(29,182,233,0.3); }
.icql-node-event .icql-node-type { color: var(--blue); }

.icql-edge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  padding: 0 0.5rem;
  min-width: 5rem;
}
.icql-edge-label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: var(--accent);
  background: var(--bg-surface);
  padding: 0 0.4rem;
  position: relative; z-index: 1;
}
.icql-edge-line {
  width: 100%;
  height: 2px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(29,233,182,0.3) 0%, var(--accent) 50%, rgba(29,233,182,0.3) 100%);
  position: relative;
}
.icql-edge-line::after {
  content: "▸";
  position: absolute;
  right: -4px; top: -10px;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.icql-walk figcaption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ── Legacy .post-content (still used by faq/features pages) ─────────────── */

.post-content { max-width: 720px; margin: 0 auto; }
.post-content h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.post-content h2 { font-size: 1.75rem; margin-top: 3rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content code:not(.article-body code) { font-family: var(--mono); font-size: 0.875em; background: var(--bg-surface); padding: 0.15em 0.4em; border-radius: 4px; }

/* ── Mobile article tweaks ───────────────────────────────────────────────── */

@media (max-width: 720px) {
  .article { padding: 5rem 1.25rem 3rem; }
  .article-title { font-size: 2rem; }
  .article-lead { font-size: 1.0625rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.375rem; }
  .article-tour-nav { grid-template-columns: 1fr; }
  .icql-walk-row { flex-direction: column; align-items: stretch; }
  .icql-edge { transform: rotate(90deg); margin: 0.5rem auto; min-width: 3rem; }
}

/* ── Contact form ─────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.375rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: 0.9375rem; outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-surface); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: repeat(4, 1fr) 280px; } }

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }
.footer-link-todo {
  color: var(--text-dim);
  border-bottom: 1px dashed transparent;
}
.footer-link-todo::after {
  content: "·";
  margin-left: 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.footer-link-todo:hover { color: var(--text); border-bottom-color: rgba(250, 170, 0, 0.4); }

/* Subscribe form — slots into Resources column at <1280px, fifth column at ≥1280px. */
.footer-col-subscribe { grid-column: 1 / -1; }
@media (min-width: 640px)  { .footer-col-subscribe { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-col-subscribe { grid-column: span 4; } }
@media (min-width: 1280px) { .footer-col-subscribe { grid-column: auto; } }

.footer-subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 360px;
}
.footer-subscribe input[type="email"] {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.footer-subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(29, 233, 182, 0.25);
}
.footer-subscribe-btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.footer-subscribe-btn:hover { background: var(--accent-hover); }
.footer-subscribe-status {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-dim);
  min-height: 1.1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
}
.footer-bottom-brand .logo { font-family: var(--mono); font-size: 1.125rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom-copy { font-size: 0.75rem; color: var(--text-dim); margin: 0; }
.footer-bottom-copy a { color: var(--text-muted); }
.footer-bottom-copy a:hover { color: var(--accent); }
.footer-bottom-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 768px) {
  .footer-bottom-social { justify-content: flex-end; }
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}
.footer-social-link:hover { color: var(--accent); border-color: rgba(29, 233, 182, 0.4); }
.footer-social-link svg { width: 16px; height: 16px; display: block; }
.footer-social-link.footer-link-todo::after { display: none; }

/* ── Features page ───────────────────────────────────────────────────────── */

.features-hero {
  padding: 7rem 2rem 3rem; text-align: center;
}
.features-hero-content { max-width: 780px; margin: 0 auto; }
.features-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.features-hero .section-label { font-size: 1rem; margin-bottom: 0.5rem; }
.hero-products {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-top: 2.5rem; text-align: center;
}
.hero-product {
  padding: 1.5rem 1.25rem; width: 240px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s;
}
.hero-product:hover { border-color: var(--text-dim); }
.hero-product-name {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
.hero-product-desc {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; margin: 0;
}

.feature-section {
  padding: 3.5rem 2rem 1.5rem; text-align: center;
  border-top: 1px solid var(--border);
}
.feature-section-inner { max-width: 640px; margin: 0 auto; }
.feature-section .section-label { font-size: 1.25rem; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.feature-section-heading { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; line-height: 1.2; }
.feature-section .lead { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

.feature-detail { padding: 2rem 2rem 3rem; }
.feature-detail-inner {
  /* No max-width: parent .features-layout (1.5× page width) caps it. */
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.feature-detail-inner.reverse .feature-detail-text { order: 2; }
.feature-detail-inner.reverse .feature-detail-visual { order: 1; }
.feature-detail-text { min-width: 0; }
.feature-detail-visual { min-width: 0; }

.feature-detail h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-number {
  font-family: var(--mono); font-size: inherit; font-weight: 700;
  color: var(--text-muted); margin-right: 0.625rem;
}
.feature-headline {
  font-size: 1.125rem; font-weight: 600; line-height: 1.3;
  margin-bottom: 1rem; color: var(--text);
}
.feature-detail p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.6; font-size: 0.875rem; }
.feature-detail em { color: var(--text); font-style: normal; font-weight: 600; }
.feature-detail strong { color: var(--text); font-weight: 600; }

/* Deploy modes */
.feature-deploy-modes { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.deploy-mode { display: flex; align-items: center; gap: 1rem; }
.deploy-cmd {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.4rem 0.75rem; color: var(--text); white-space: nowrap; min-width: 170px;
}
.deploy-label { font-size: 0.8125rem; color: var(--text-dim); }

/* Terminal window */
.terminal-window {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.terminal-bar {
  display: flex; gap: 6px; padding: 0.75rem 1rem;
  background: rgba(39, 49, 60, 0.5); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.terminal-body {
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7;
  padding: 1.25rem 1.5rem; color: var(--text); overflow-x: auto; margin: 0;
  background: transparent; border: none;
}
.t-prompt { color: var(--text-dim); }
.t-cmd { color: var(--text); font-weight: 600; }
.t-dim { color: var(--text-dim); }
.t-str { color: var(--amber); }
.t-accent { color: var(--accent); }

/* Graph diagram */
.graph-diagram {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Automation stack */
.automation-stack {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.auto-layer { padding: 1.5rem 2rem; }
.auto-layer ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.375rem; }
.auto-layer li { font-size: 0.875rem; color: var(--text-muted); padding-left: 1.25rem; position: relative; }
.auto-layer li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; }
.auto-layer-automated li::before { background: var(--accent); }
.auto-layer-manual li::before { background: var(--blue); }
.auto-tag {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
}
.auto-tag.manual { color: var(--blue); }
.auto-divider {
  border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  padding: 0.5rem 2rem; background: rgba(39, 49, 60, 0.3);
}
.auto-divider span { font-size: 0.75rem; color: var(--text-dim); font-style: italic; }

/* Permission clusters (features/04-permissions) */
.permission-clusters {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem 1.375rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pc-eyebrow {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent);
}
.pc-badge {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  background: rgba(100, 116, 139, 0.16); border: 1px solid var(--border);
  color: var(--text-muted);
}
.pc-colhead {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 0 0.75rem; margin-bottom: -0.6rem;
}
.pc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem;
  align-items: center; padding: 0.6rem 0.75rem; border-radius: 4px;
  background: rgba(39, 49, 60, 0.38); border-left: 2px solid var(--border);
}
.pc-name { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--text); }
.pc-who { grid-column: 1 / -1; font-size: 0.6875rem; color: var(--text-muted); }
.pc-chip {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid var(--border);
}
.pc-open { border-left-color: rgba(29, 233, 182, 0.65); }
.pc-open .pc-chip { background: rgba(29, 233, 182, 0.14); border-color: rgba(29, 233, 182, 0.3); color: var(--accent); }
.pc-members { border-left-color: rgba(29, 182, 233, 0.65); }
.pc-members .pc-chip { background: rgba(29, 182, 233, 0.13); border-color: rgba(29, 182, 233, 0.3); color: var(--blue); }
.pc-review { border-left-color: rgba(250, 170, 0, 0.65); }
.pc-review .pc-chip { background: rgba(250, 170, 0, 0.13); border-color: rgba(250, 170, 0, 0.3); color: var(--amber); }
.pc-foot {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim);
  border-top: 1px dashed var(--border); padding-top: 0.75rem; text-align: center;
}

/* Signature chain (features/06-consortium-provenance) */
.signature-chain {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.5rem; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sc-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center;
}
.sc-node {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.625rem 0.875rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(39, 49, 60, 0.5);
  min-width: 120px; text-align: center;
}
.sc-node .sc-label { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.sc-node .sc-sub { font-size: 0.6875rem; color: var(--text-dim); font-style: italic; }
.sc-sender { background: rgba(29, 233, 182, 0.08); border-color: rgba(29, 233, 182, 0.3); }
.sc-sender .sc-label { color: var(--accent); }
.sc-recipient { background: rgba(29, 182, 233, 0.08); border-color: rgba(29, 182, 233, 0.3); }
.sc-recipient .sc-label { color: var(--blue); }
.sc-payload, .sc-ledger {
  background: rgba(29, 233, 182, 0.04); border-style: dashed;
}
.sc-ciphertext { background: rgba(39, 49, 60, 0.3); font-family: var(--mono); }
.sc-op {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.6875rem;
  color: var(--text-muted);
}
.sc-arrow { color: var(--accent); font-size: 0.9rem; }
.sc-row-broker { padding: 0.25rem 0; }
.sc-broker {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
  border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  padding: 0.5rem 1.5rem; background: rgba(39, 49, 60, 0.3);
  width: 100%; text-align: center; font-style: italic;
}

/* Ledger scroll (features/07-consortium-ledger) */
.ledger-scroll {
  padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.5rem;
}
.ls-db-label {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border);
}
.ls-entries {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.ls-entry {
  display: grid;
  grid-template-columns: 45px 90px 1fr auto;
  align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.6rem; font-family: var(--mono); font-size: 0.75rem;
  background: rgba(39, 49, 60, 0.4); border-left: 2px solid var(--border);
  border-radius: 3px;
}
.ls-entry .ls-tx { color: var(--text-dim); }
.ls-entry .ls-type {
  color: var(--accent); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.6875rem;
}
.ls-entry .ls-detail { color: var(--text); }
.ls-entry .ls-hash { color: var(--text-dim); font-size: 0.6875rem; }
.ls-entry-share { border-left-color: rgba(29, 233, 182, 0.5); }
.ls-entry-retract { border-left-color: rgba(250, 170, 0, 0.5); }
.ls-entry-retract .ls-type { color: var(--amber, #FAAA00); }
.ls-footer {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim);
  text-align: center; padding-top: 0.5rem; border-top: 1px dashed var(--border);
  font-style: italic;
}

/* ── Docs landing ─────────────────────────────────────────────────────────── */

.docs-hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 6rem 2rem 3rem;
}
.docs-hero-inner { max-width: 820px; }
.docs-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; margin: 0.5rem 0 1rem; }
.docs-hero-lead { font-size: 1.0625rem; color: var(--text-muted); max-width: 700px; line-height: 1.6; }

.docs-downloads, .docs-quickstart, .docs-compose, .docs-next, .docs-content {
  max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.docs-compose-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch;
  margin: 1.5rem 0 0;
}
.docs-compose-download {
  display: inline-flex; flex-direction: column; gap: 0.25rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: background 0.12s, border-color 0.12s;
  min-width: 240px;
}
.docs-compose-download:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-dim);
}
.docs-compose-filename {
  font-family: var(--mono); font-weight: 600; color: var(--text);
  font-size: 0.9375rem;
}
.docs-compose-cta {
  color: var(--accent); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.docs-compose-curl {
  flex: 1; min-width: 240px; margin: 0;
  padding: 0.875rem 1rem;
  background: rgba(12, 17, 22, 0.6);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow-x: auto;
}
.docs-compose-curl code {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--text);
  white-space: nowrap; background: none; padding: 0;
}
.docs-section-inner { max-width: 1100px; margin: 0 auto; }
.docs-section-heading {
  font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem;
}
.docs-section-lead {
  color: var(--text-muted); margin: 0 0 1.5rem; font-size: 0.9375rem;
}
.docs-release-tag {
  font-family: var(--mono); font-size: 0.8125rem;
  padding: 0.15rem 0.5rem; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-muted);
}

.downloads-table-wrap {
  margin: 1.5rem 0; overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.downloads-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.downloads-table thead th {
  text-align: left; padding: 0.7rem 1rem;
  font-weight: 600; color: var(--text-muted);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: rgba(39, 49, 60, 0.4);
}
.downloads-table tbody td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.downloads-table tbody tr:last-child td { border-bottom: none; }
.downloads-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.downloads-table .dl-os { font-weight: 600; color: var(--text); white-space: nowrap; }
.downloads-table .dl-arch { color: var(--text-muted); white-space: nowrap; }
.downloads-table .dl-file a {
  font-family: var(--mono); font-size: 0.8125rem;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.downloads-table .dl-file a:hover { text-decoration: underline; }
.downloads-table .dl-sha code {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim); word-break: break-all; user-select: all;
}
/* One-click copy on the checksum. A bare button so the hash still reads as
   text; the affordance shows on hover/focus rather than competing with the
   download link for attention. */
.downloads-table .dl-sha-copy {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 0.2rem 0.35rem; margin: -0.2rem -0.35rem;
  font: inherit; color: inherit; position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.downloads-table .dl-sha-copy:hover,
.downloads-table .dl-sha-copy:focus-visible {
  background: rgba(39, 49, 60, 0.55); border-color: var(--border);
}
.downloads-table .dl-sha-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.downloads-table .dl-sha-copy:hover code { color: var(--text-muted); }
.downloads-table .dl-sha-copy.is-copied { border-color: var(--accent); }
.downloads-table .dl-sha-copy.is-copied code { color: var(--accent); }
.downloads-table .dl-sha-copy.is-copied::after {
  content: "copied"; position: absolute; right: 0.35rem; top: 50%;
  transform: translateY(-50%); font-family: var(--mono); font-size: 0.625rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  background: var(--bg-surface); padding: 0.1rem 0.35rem; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .downloads-table .dl-sha-copy { transition: none; }
}
.download-note {
  font-size: 0.8125rem; color: var(--text-muted); margin-top: 1rem;
}
.download-note code {
  font-family: var(--mono); background: rgba(39, 49, 60, 0.6);
  padding: 0.1rem 0.3rem; border-radius: 3px; color: var(--accent);
}

.quickstart-steps {
  list-style: none; counter-reset: qs; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.quickstart-step {
  counter-increment: qs; position: relative;
  padding: 1rem 1.25rem 1rem 4rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.quickstart-step::before {
  content: counter(qs);
  position: absolute; left: 1rem; top: 0.85rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  color: var(--text-muted); font-family: var(--mono); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.quickstart-step-title { font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.quickstart-step-body { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.quickstart-step-body code {
  font-family: var(--mono); background: rgba(39, 49, 60, 0.6);
  padding: 0.1rem 0.3rem; border-radius: 3px; color: var(--accent);
}

.docs-next-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.docs-prose {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65;
}
.docs-prose p { margin: 0 0 1rem; }
.docs-prose a { color: var(--accent); }
.docs-next-card {
  padding: 1.25rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.15s;
}
.docs-next-card:hover {
  border-color: var(--text-dim);
}
.docs-next-title { font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.docs-next-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* Artifact chips */
.artifact-types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.artifact-chip {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  padding: 0.35rem 0.75rem; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* CTA */
.feature-cta {
  padding: 4rem 2rem; text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.feature-cta-inner { max-width: 480px; margin: 0 auto; }
.feature-cta h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-cta p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* ── Pricing page ────────────────────────────────────────────────────────── */

.pricing-section { padding: 0 2rem 4rem; }

/* Tabs */
.pricing-tabs {
  display: inline-flex;
  margin: 0 auto 1.5rem;
  padding: 0.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 0.25rem;
}
.pricing-section { display: flex; flex-direction: column; align-items: center; }
.pricing-tab {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
.pricing-tab:hover { color: var(--text); }
.pricing-tab.active {
  background: var(--accent);
  color: var(--bg);
}

/* Global billing toggle — sits directly above the pricing grid (one instance
   per panel, JS-synced) so it reads as a control on the prices, not a second
   level of the audience tabs above it. */
.billing-toggle-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 2rem;
}
.billing-toggle {
  display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--border); border-radius: 8px;
}
.billing-option {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border: none; border-radius: 6px;
  background: transparent; color: var(--text-muted); cursor: pointer;
}
.billing-option:hover { color: var(--text); }
.billing-option.active {
  background: rgba(29, 233, 182, 0.15);
  color: var(--accent);
}

/* Price variants swapped by the toggle (annual is the default). */
.pricing-variant-monthly { display: none; }
.billing-monthly .pricing-variant-monthly { display: block; }
.billing-monthly .pricing-variant-annual { display: none; }
.pricing-variant { margin-bottom: 1.25rem; }
.pricing-variant .pricing-price { margin-bottom: 0.75rem; }
.pricing-variant .pricing-annual-note { margin-top: 0; margin-bottom: 0; }
.pricing-unit {
  display: inline-block;
  font-size: 0.75rem; color: var(--text-dim); font-weight: 500;
  line-height: 1.35; text-align: left;
}
.pricing-meta {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-muted); letter-spacing: 0.02em;
  margin: -0.25rem 0 0.75rem;
}

/* Panels */
.pricing-panel { display: none; width: 100%; }
.pricing-panel.active { display: block; }
.pricing-panel-desc {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.pricing-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.pricing-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}
.pricing-grid-5 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .pricing-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--text-dim); }
.pricing-card-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(29, 233, 182, 0.08);
}
.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent); color: var(--bg); padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.pricing-tier-name {
  font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem;
}
.pricing-description {
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5;
}
.pricing-price {
  display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 1.5rem;
}
.pricing-amount {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em; line-height: 1;
}
.pricing-amount-text {
  font-size: 1.75rem;
  color: var(--text);
}
.pricing-interval {
  font-size: 0.875rem; color: var(--text-dim); font-weight: 500;
}
.pricing-annual-note {
  font-family: var(--mono); font-size: 0.8125rem;
  color: var(--text);
  margin-top: -0.75rem; margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.pricing-save-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--bg); background: var(--accent);
  padding: 0.15rem 0.45rem; border-radius: 6px;
  vertical-align: 0.05em;
}
.pricing-cta {
  width: 100%; text-align: center; margin-bottom: 2rem;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.625rem; flex: 1;
}
.pricing-features li {
  font-size: 0.8125rem; color: var(--text-muted); padding-left: 1.25rem;
  position: relative; line-height: 1.5;
}
.pricing-features li::before {
  content: ''; position: absolute; left: 0; top: 0.45em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
}

@media (max-width: 768px) {
  .pricing-grid,
  .pricing-grid-2,
  .pricing-grid-5 { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-tabs { width: 100%; }
  .pricing-tab { flex: 1; padding: 0.55rem 0.75rem; font-size: 0.8125rem; }
}

/* ── FAQ page ────────────────────────────────────────────────────────────── */

.faq-section { padding: 0 2rem 4rem; }
.faq-inner { max-width: 720px; margin: 0 auto; }

.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 {
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; background: var(--bg-card); transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--text-dim); }
.faq-item summary {
  padding: 0.875rem 1.25rem; cursor: pointer; font-size: 0.9375rem; font-weight: 500;
  color: var(--text); list-style: none; display: flex; align-items: center; gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+'; font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--text-muted); flex-shrink: 0; width: 1.25rem; text-align: center;
  transition: color 0.15s;
}
.faq-item[open] summary::before { content: '\2212'; }
.faq-item summary:hover { color: var(--text); }
.faq-item summary:hover::before { color: var(--text); }
.faq-answer { padding: 0 1.25rem 1rem 3.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem; }

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
  padding: 2rem;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .hero .subtitle { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  /* Defensive: if any page re-introduces .hero-query inside the hero, hide it
     on mobile so the CTAs stay above the fold. Below-the-fold .hero-query
     elsewhere (e.g. "Query in ICQL" section on /intel-consortium/) is untouched. */
  .hero > .hero-content > .hero-query,
  .hero > .hero-query { display: none; }
  .section { padding: 4rem 1rem; }
  .features-hero { padding: 6rem 1rem 2rem; }
  .hero-products { flex-direction: column; align-items: center; }
  .hero-product { width: 100%; max-width: 280px; }
  .features-hero h1 { font-size: 1.75rem; }
  .feature-section h2 { font-size: 1.5rem; }
  .feature-detail-inner, .feature-detail-inner.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .feature-detail-inner.reverse .feature-detail-text { order: 1; }
  .feature-detail-inner.reverse .feature-detail-visual { order: 2; }
  .permission-clusters { padding: 1.25rem 1rem; }
  .pc-row { grid-template-columns: 1fr; justify-items: start; }
  .deploy-mode { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* ── Shared Insights ─────────────────────────────────────────────────────── */
/* Public surface for insights published by member orgs. Styles below extend
   the existing palette with intel-card and intel-* tokens; nothing here
   redefines a base token. */

.intel-list-hero {
  padding: 6rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.intel-list-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.intel-list-hero h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intel-list-hero .lead a {
  color: var(--accent);
  text-decoration: none;
}
.intel-list-hero .lead a:hover { text-decoration: underline; }

.intel-list-section {
  padding: 3rem 2rem;
}
.intel-list-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.intel-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms, transform 120ms;
}
.intel-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}
.intel-card-hero {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.intel-card-body { padding: 1.25rem; }
.intel-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.intel-card-org {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.intel-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.intel-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.intel-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text-dim);
}
.intel-card-type {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.intel-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* Single insight page */
.intel-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
}
.intel-hero img.intel-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.intel-header {
  margin-top: 2rem;
}
.intel-header-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.intel-meta-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(29, 182, 233, 0.1);
  color: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.intel-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.intel-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.intel-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.intel-byline-org {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.intel-byline-org:hover { color: var(--accent); }
.intel-byline-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}
.intel-byline-sep { color: var(--text-dim); }

.intel-body {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.intel-body-inner {
  font-size: 1rem;
  line-height: 1.7;
}
.intel-body-inner h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.intel-body-inner h3 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.intel-body-inner p { margin: 1rem 0; }
.intel-body-inner code {
  font-family: var(--mono);
  background: var(--bg-surface);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.intel-body-inner pre {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.intel-body-inner pre code { background: transparent; padding: 0; }

.intel-icql {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.intel-icql-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.intel-icql-header p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.intel-icql-code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.intel-cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: var(--radius);
}
.intel-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.intel-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.intel-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Per-org listing page */
.intel-org-hero {
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}
.intel-org-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.intel-org-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.intel-org-bio {
  color: var(--text-muted);
  margin: 0.5rem 0;
}
.intel-org-website {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9rem;
  text-decoration: none;
}
.intel-org-website:hover { text-decoration: underline; }

/* Retracted insight */
.intel-retracted {
  padding: 6rem 2rem;
  text-align: center;
}
.intel-retracted-inner {
  max-width: 640px;
  margin: 0 auto;
}
.intel-retracted h1 {
  color: var(--amber);
  margin-bottom: 1rem;
}
.intel-retracted-byline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.intel-retracted-reason {
  border-left: 3px solid var(--amber);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}
.intel-retracted-generic {
  color: var(--text-dim);
  font-style: italic;
  margin: 1rem 0;
}

/* Hero embed shortcode */
.intel-hero-embed {
  margin: 2rem 0;
}
.intel-hero-embed img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.intel-hero-embed figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Threat-tree shortcode */
.threat-tree {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--accent);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* TLP badge — used in both list and single layouts */
.tlp-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
/* ──────────────────────────────────────────────────────────────────────────
 * Pid4 rebrand · M10 follow-up
 *
 *   APPLY: append the contents of this file to themes/ic-theme/assets/css/main.css.
 *   These rules don't override existing tokens — they only add the new
 *   primitives the rebranded chrome and brand-hub home need.
 *   The .logo-bracket rule in main.css can stay as dead code until you
 *   want to clean up; nothing references it anymore.
 * ────────────────────────────────────────────────────────────────────────── */

/* ── Logo wordmark (replaces .logo-bracket "[IC]") ─────────────────────── */

.logo-wordmark {
  /* inherits .logo color (teal) and font-family (mono) */
  letter-spacing: -0.02em;
}

/* ── Brand-hub home: product slate ─────────────────────────────────────── */

.product-slate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .product-slate { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}
.product-card-soon {
  border-style: dashed;
  opacity: 0.7;
}
.product-card-soon:hover {
  transform: none;
  border-color: var(--border);
  opacity: 0.85;
}

.product-card-meta { margin-bottom: 1rem; }
.product-card-status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  color: var(--accent);
  background: rgba(29, 233, 182, 0.1);
  border: 1px solid rgba(29, 233, 182, 0.25);
  display: inline-block;
}
.product-card-soon .product-card-status {
  color: var(--text-dim);
  background: rgba(100, 116, 139, 0.08);
  border-color: var(--border);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.product-card h3 .product-card-short {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.product-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.product-card-cta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.product-card:hover .product-card-cta { gap: 0.65rem; }
.product-card-cta-secondary {
  color: var(--text-muted);
  padding-left: 0.875rem;
  border-left: 1px solid var(--border);
}
.product-card-cta-secondary:hover { color: var(--accent); }

/* ── Brand-hub home: beliefs ───────────────────────────────────────────── */

.beliefs {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .beliefs { grid-template-columns: 1fr; } }

.beliefs li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.beliefs li strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}
.beliefs li span {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Glossary (used on /about/) ────────────────────────────────────────── */

.glossary {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 2rem 2.5rem;
}
.glossary p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.glossary p:last-child { margin-bottom: 0; }
.glossary b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── IC page: centered intro for the "Query in ICQL" section ───────────── */

.section-icql-intro { text-align: center; }
.section-icql-intro .lead { margin-left: auto; margin-right: auto; }

/* ── ICQL editor demo (mirrors the in-app cmd+K palette) ────────────────── */

.icql-editor-section {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icql-editor-intro {
  max-width: 640px;
  text-align: center;
  margin-bottom: 2rem;
}
.icql-editor-intro .lead { margin: 0 auto; }
.icql-editor-intro kbd {
  font-family: var(--mono);
  font-size: 0.8125em;
  padding: 0.05em 0.45em;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text);
}

.icql-editor {
  width: 100%;
  max-width: 760px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-align: left;
}
.icql-editor-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.icql-editor-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.icql-editor-shortcut kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text);
  min-width: 1.4em;
  text-align: center;
}
.icql-editor-title { flex: 1; color: var(--text); }
.icql-editor-mode {
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stacked editor: transparent textarea above a tokenised <pre>. */
.icql-editor-input-wrap {
  position: relative;
  display: grid;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
}
.icql-editor-highlight,
.icql-editor-input {
  grid-area: 1 / 1;
  padding: 1rem 1.25rem;
  margin: 0;
  border: 0;
  font: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  background: transparent;
  letter-spacing: normal;
}
.icql-editor-highlight {
  color: var(--text);
  pointer-events: none;
  min-height: calc(6 * 1.5em + 2rem);
}
.icql-editor-input {
  resize: vertical;
  min-height: calc(6 * 1.5em + 2rem);
  color: transparent;
  caret-color: var(--accent);
  outline: none;
}
.icql-editor-input::selection { background: rgba(29, 233, 182, 0.25); }

/* Token colours — mirrors article-body chroma map. */
.icql-editor-highlight .ie-k { color: var(--accent); font-weight: 700; }
.icql-editor-highlight .ie-s { color: var(--amber); }
.icql-editor-highlight .ie-c { color: var(--text-dim); font-style: italic; }
.icql-editor-highlight .ie-a { color: var(--accent); font-weight: 700; }
.icql-editor-highlight .ie-n { color: var(--amber); }
.icql-editor-highlight .ie-o { color: var(--blue); }
.icql-editor-highlight .ie-placeholder { color: var(--text-dim); font-style: italic; }

/* Autocomplete dropdown — fixed-positioned at the caret in viewport
   coordinates, so it escapes the editor card's `overflow: hidden` clip
   and stacks above everything regardless of ancestor z-index. */
.icql-editor-suggest {
  position: fixed;
  z-index: 1000;
  list-style: none;
  padding: 0.3rem;
  margin: 0;
  min-width: 200px;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.icql-editor-suggest[hidden] { display: none; }
.ie-suggest-item {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ie-suggest-item-active,
.ie-suggest-item:hover { background: rgba(29, 233, 182, 0.12); color: var(--accent); }

/* Footer: starter chips + run link. */
.icql-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-wrap: wrap;
}
.icql-editor-starters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.icql-starter {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.icql-starter:hover { color: var(--text); border-color: var(--text-dim); }
.icql-editor-run {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.icql-editor-run:hover { color: var(--accent-hover); }

@media (max-width: 768px) {
  .icql-editor { max-width: 100%; }
  .icql-editor-footer { flex-direction: column; align-items: stretch; }
  .icql-editor-run { text-align: right; }
}

/* ── Shared chrome for the in-app-style demo panels ────────────────────── */

.sharing-demo,
.sharing-demo-chrome,
.sharing-demo-shortcut,
.sharing-demo-shortcut kbd,
.sharing-demo-title,
.sharing-demo-mode,
.sharing-demo-footer,
.sharing-demo-link,
.sharing-demo-link:hover,
.sharing-demo-section,
.sharing-demo-intro,
.sharing-demo-intro .lead,
.sharing-demo-intro code,
/* ── Sharing log entries ───────────────────────────────────────────────── */

.sharing-log {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.sharing-log-entry {
  display: grid;
  grid-template-columns: 5rem minmax(8rem, auto) 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.sharing-log-entry:last-child { border-bottom: 0; }
.sharing-log-time { color: var(--text-dim); }
.sharing-log-org { color: var(--text); font-weight: 600; }
.sharing-log-sig {
  color: var(--accent);
  margin-left: 0.2rem;
  font-weight: 700;
  cursor: help;
}
.sharing-log-verb {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  text-align: center;
}
.sharing-log-verb-share    { color: var(--accent); background: rgba(29, 233, 182, 0.1); border: 1px solid rgba(29, 233, 182, 0.25); }
.sharing-log-verb-bolo     { color: var(--red);    background: rgba(255, 89, 99, 0.1);  border: 1px solid rgba(255, 89, 99, 0.25); }
.sharing-log-verb-insight  { color: var(--blue);   background: rgba(29, 182, 233, 0.1); border: 1px solid rgba(29, 182, 233, 0.25); }
.sharing-log-verb-approve  { color: var(--text);   background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.sharing-log-verb-fp       { color: var(--amber);  background: rgba(250, 170, 0, 0.1);  border: 1px solid rgba(250, 170, 0, 0.25); }
.sharing-log-verb-retract  { color: var(--purple); background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.3); }
.sharing-log-target { color: var(--text-muted); }
.sharing-log-target code {
  font-family: var(--mono);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}
.sharing-log-target em { color: var(--text); font-style: italic; }
.sharing-log-tlp {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  text-align: center;
}
.sharing-log-tlp-white { color: #E5E7EB; background: #374151; }
.sharing-log-tlp-green { color: #4ade80; background: #14532d; }
.sharing-log-tlp-amber { color: var(--amber); background: #451a03; }
.sharing-log-tlp-red   { color: var(--red); background: #450a0a; }

@media (max-width: 768px) {
  .sharing-demo,
  .sharing-log-entry {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
  }
  .sharing-log-time { font-size: 0.6875rem; }
}

/* ── Bounty cards ──────────────────────────────────────────────────────── */

/* ── Product showcase: annotated screenshot rows ────────────────────────── */

.product-showcase {
  max-width: calc(var(--max-width) * 1.5);
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .showcase-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .showcase-row-reverse .showcase-text { order: 2; }
  .showcase-row-reverse .showcase-frame { order: 1; }
}

.showcase-text { max-width: 460px; }
.showcase-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}
.showcase-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.showcase-body kbd {
  font-family: var(--mono);
  font-size: 0.8125em;
  padding: 0.05em 0.45em;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text);
  white-space: nowrap;
}
.showcase-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.showcase-bullets li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 1.5rem;
  position: relative;
}
.showcase-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-dim);
  font-family: var(--mono);
}

.showcase-frame {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.showcase-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-surface);
}

/* Reuse the existing chrome-dot/url-pill styles from the old strip — the
   showcase chrome shares the same visual vocabulary. */
.hero-shot-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.hero-shot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.hero-shot-dot-r { background: var(--red); }
.hero-shot-dot-a { background: var(--amber); }
.hero-shot-dot-g { background: var(--accent); }
.hero-shot-url {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero { padding: 5rem 1.25rem 3rem; }
  .product-showcase { padding: 0 1.25rem 3rem; gap: 3rem; }
  .showcase-heading { font-size: 1.5rem; }
}

/* ── Hero clauses + jump links ─────────────────────────────────────────── */

.hero h1 em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-clause { display: inline; }
@media (min-width: 1024px) {
  .hero-clause { display: block; }
}

.hero-anchor-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: -1.25rem auto 2rem;
  max-width: 640px;
}
.hero-anchor-link {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s;
}
.hero-anchor-link span { color: var(--accent); margin-left: 0.15rem; }
.hero-anchor-link:hover { color: var(--text); }

/* ── Tag chips → clickable links (extends existing .blog-card-tags / .article-tags) */

.blog-card-tags li a,
.article-tags li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.blog-card-tags li:hover { border-color: var(--text-dim); }
.blog-card-tags li:hover a { color: var(--text); }
.article-tags li:hover { background: rgba(255, 255, 255, 0.06); }

/* ── Taxonomy index (/tags/) ───────────────────────────────────────────── */

.taxonomy-index { display: flex; flex-direction: column; gap: 2.5rem; }
.taxonomy-header { max-width: 720px; }
.taxonomy-title { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0.5rem 0 0.75rem; }
.taxonomy-lead { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.6; }
.taxonomy-lead code {
  font-family: var(--mono); font-size: 0.9375rem; color: var(--accent);
  background: rgba(255, 255, 255, 0.04); padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
}

.taxonomy-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}
.taxonomy-list-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.taxonomy-list-link:hover {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.taxonomy-list-name { font-family: var(--mono); font-size: 0.875rem; }
.taxonomy-list-count {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}

.taxonomy-term { display: flex; flex-direction: column; gap: 2.5rem; }
.taxonomy-term .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

/* ── Related posts (blog/single.html foot) ─────────────────────────────── */

.related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
  margin: 0 0 1.5rem;
}
.related .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Pagefind search box ───────────────────────────────────────────────── */

.blog-search {
  margin: 0 0 3rem;
  --pagefind-ui-primary:           var(--accent);
  --pagefind-ui-text:              var(--text);
  --pagefind-ui-background:        var(--bg-surface);
  --pagefind-ui-border:            var(--border);
  --pagefind-ui-tag:               var(--bg-card);
  --pagefind-ui-border-width:      1px;
  --pagefind-ui-border-radius:     var(--radius-sm);
  --pagefind-ui-image-border-radius: var(--radius-sm);
  --pagefind-ui-font:              var(--mono);
  --pagefind-ui-message-size:      0.9375rem;
}
.blog-search .pagefind-ui__search-input {
  font-family: var(--mono);
  font-size: 0.9375rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-search .pagefind-ui__search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(29, 233, 182, 0.25);
}
.blog-search .pagefind-ui__search-clear { color: var(--text-muted); }
.blog-search .pagefind-ui__result-title a { color: var(--accent); }
.blog-search .pagefind-ui__result-title a:hover { color: var(--accent-hover); }
.blog-search .pagefind-ui__result-excerpt { color: var(--text-muted); }
.blog-search .pagefind-ui__result-excerpt mark { background: rgba(29, 233, 182, 0.18); color: var(--accent); }

/* ── Trust page: sticky TOC, headings, subprocessors, placeholder ───────── */

.trust-section { padding-top: 3rem; }
.trust-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .trust-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
}

.trust-toc {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
@media (min-width: 1024px) {
  .trust-toc { position: sticky; top: 88px; }
}
.trust-toc-label {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.trust-toc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  counter-reset: trust-toc;
}
.trust-toc-list li { counter-increment: trust-toc; }
.trust-toc-list li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.15rem 0;
  transition: color 0.15s;
}
.trust-toc-list li a::before {
  content: counter(trust-toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim);
  flex-shrink: 0;
}
.trust-toc-list li a:hover { color: var(--accent); }

.trust-body { max-width: 760px; }
.trust-body > p,
.trust-body > ul,
.trust-body > ol,
.trust-body > figure,
.trust-body > pre,
.trust-body > table { margin: 0 0 1.25rem; color: var(--text-muted); line-height: 1.65; }
.trust-body > p:last-child { margin-bottom: 0; }
.trust-body a { color: var(--accent); }
.trust-body a:hover { color: var(--accent-hover); }
.trust-body code {
  font-family: var(--mono); font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.trust-body ul, .trust-body ol { padding-left: 1.25rem; }
.trust-body li { margin-bottom: 0.5rem; }
.trust-body li::marker { color: var(--text-muted); }
.trust-body strong { color: var(--text); }

.trust-heading {
  scroll-margin-top: 96px;
  position: relative;
}
.trust-heading-h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.trust-body > .trust-heading-h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.trust-heading-h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.trust-heading-link {
  margin-left: 0.5rem;
  font-family: var(--mono); font-weight: 700;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  text-decoration: none;
}
.trust-heading:hover .trust-heading-link,
.trust-heading-link:focus { opacity: 1; color: var(--accent); }

/* Real table for subprocessors (and any other tables in trust content). */
.trust-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-body table th,
.trust-body table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.trust-body table tr:last-child th,
.trust-body table tr:last-child td { border-bottom: 0; }
.trust-body table th {
  background: var(--bg-card);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
}
.trust-body table td { color: var(--text-muted); }
.trust-body table td:first-child { color: var(--text); font-weight: 600; }

/* Image placeholder (used for the architecture diagram and any future ones). */
.image-placeholder { margin: 1.5rem 0 2rem; }
.image-placeholder-box {
  width: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem;
}
.image-placeholder-label {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.image-placeholder-dims {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
}
.image-placeholder-caption {
  margin-top: 0.6rem; font-size: 0.8125rem; color: var(--text-muted);
  font-style: italic;
}
.image-placeholder-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

/* ── Pricing extra-link (under primary CTA on Enterprise card) ─────────── */

.pricing-extra-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s;
}
.pricing-extra-link:hover { color: var(--accent); }
.pricing-extra-link span { color: var(--accent); }

/* ── Features: sticky TOC, anchor links on headings ──────────────────────── */

.features-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* Match the /intel-consortium/ product showcase width so feature-detail
     rows have the same horizontal breathing room across both pages. */
  max-width: calc(var(--max-width) * 1.5);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (min-width: 1024px) {
  .features-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.features-toc {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0;
}
@media (min-width: 1024px) {
  .features-toc { position: sticky; top: 6rem; padding: 1.25rem 1.5rem; }
}

.toc-details { padding: 0; }
.toc-summary {
  display: list-item;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  user-select: none;
  position: relative;
}
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary::after {
  content: "▾";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: var(--text-dim);
  font-size: 0.75rem;
  transition: transform 0.15s;
}
.toc-details[open] .toc-summary::after { transform: translateY(-50%) rotate(180deg); }
@media (min-width: 1024px) {
  .toc-summary { display: none; }
}

.toc-list {
  list-style: none;
  padding: 0 1.25rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .toc-list { padding: 0; }
}
.toc-group { display: flex; flex-direction: column; gap: 0.35rem; }
.toc-group-link {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.toc-group-link:hover { color: var(--text); }
.toc-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.toc-sublist a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  display: block;
  line-height: 1.4;
  transition: color 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  margin-left: -0.6rem;
}
.toc-sublist a:hover { color: var(--text); }
.toc-sublist a.toc-active { color: var(--accent); border-left-color: var(--accent); }

/* Section anchor scroll-margin so anchors don't land under the fixed header. */
.features-body section[id] { scroll-margin-top: 96px; }

/* Hover-revealed # anchor inside each section's heading. */
.features-body h2,
.features-body h3 { position: relative; }
.feature-anchor {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  vertical-align: baseline;
}
.features-body h2:hover .feature-anchor,
.features-body h3:hover .feature-anchor,
.feature-anchor:focus { opacity: 1; color: var(--accent); }
.feature-anchor-copied {
  opacity: 1 !important;
  color: var(--accent) !important;
}
.feature-anchor-copied::after {
  content: "copied";
  margin-left: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Pricing compare table ─────────────────────────────────────────────── */

.pricing-compare {
  padding: 4rem 2rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.pricing-compare-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.pricing-compare-head { max-width: 720px; margin-bottom: 0.5rem; }
.pricing-compare-head h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.pricing-compare-head .lead { font-size: 1rem; color: var(--text-muted); margin: 0; }

/* Section = a <details> wrapping a single table. */
.pcc-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
}
.pcc-section-summary {
  display: list-item;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.pcc-section-summary::-webkit-details-marker { display: none; }
.pcc-section[open] .pcc-section-summary { border-bottom-color: var(--border); }
.pcc-section-chevron { transition: transform 0.15s; }
.pcc-section[open] .pcc-section-chevron { transform: rotate(180deg); }

.pcc-section-body { overflow-x: auto; }

.pcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: fixed;
}
.pcc-col-feature { width: 28%; min-width: 200px; }
.pcc-col-tier    { width: 14.4%; min-width: 110px; }

.pcc-table thead th {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.pcc-table thead th.pcc-feature { text-align: left; }

.pcc-table tbody th.pcc-feature {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky; left: 0; z-index: 2;
}
.pcc-table tbody tr:last-child th,
.pcc-table tbody tr:last-child td { border-bottom: none; }

.pcc-cell {
  text-align: center;
  padding: 0.7rem 0.5rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.35;
}
.pcc-yes { color: var(--accent); font-size: 1rem; font-weight: 700; }
.pcc-no  { color: var(--text-dim); font-size: 1rem; }
.pcc-na  { color: var(--text-dim); font-family: var(--mono); }
.pcc-val { color: var(--text); }

/* Team column emphasis — echoes the "Most Popular" card. */
.pcc-table thead th.pcc-tier-team,
.pcc-cell-team {
  border-left: 1px solid rgba(29, 233, 182, 0.18);
  border-right: 1px solid rgba(29, 233, 182, 0.18);
}
.pcc-table thead th.pcc-tier-team {
  color: var(--accent);
}
.pcc-table tbody tr:first-child .pcc-cell-team { border-top: 1px solid rgba(29, 233, 182, 0.18); }
.pcc-table tbody tr:last-child .pcc-cell-team { border-bottom: 1px solid rgba(29, 233, 182, 0.18); }

/* Desktop: force every section open, hide the toggle. */
@media (min-width: 1024px) {
  .pcc-section-summary { display: none; }
  .pcc-section { background: var(--bg-surface); }
  /* Always-open: rely on the `open` attribute already being set in HTML. */
}

@media (max-width: 768px) {
  .pricing-compare { padding: 3rem 1rem 4rem; }
  .pcc-col-feature { width: 45%; min-width: 160px; }
  .pcc-col-tier    { width: 28%;  min-width: 110px; }
  .pcc-cell { padding: 0.6rem 0.4rem; font-size: 0.8125rem; }
}

/* Changelog (#797) — data/changelog.yaml via _default/changelog.html */
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog-release { padding: 2rem 0; border-top: 1px solid var(--border); }
.changelog-release:first-child { border-top: none; padding-top: 0; }
.changelog-release-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.changelog-version { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.changelog-version:hover { text-decoration: underline; }
.changelog-date { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }
.changelog-summary { color: var(--text-muted); margin: 0 0 1rem; }
.changelog-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.changelog-change { display: flex; align-items: baseline; gap: 0.75rem; }
.changelog-change-text { color: var(--text); line-height: 1.5; }
.changelog-chip {
  flex-shrink: 0; font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem; border-radius: 6px; min-width: 70px; text-align: center;
}
.changelog-chip-feature  { background: rgba(29,233,182,0.15); color: var(--accent); }
.changelog-chip-fix      { background: rgba(29,182,233,0.15); color: var(--blue); }
.changelog-chip-change   { background: rgba(250,170,0,0.15);  color: var(--amber); }
.changelog-chip-security { background: rgba(255,89,99,0.15);  color: var(--red); }
