:root {
  --paper: #f7f4ed;
  --paper-2: #efeae0;
  --ink: #14130f;
  --ink-soft: #3a382f;
  --muted: #6d6859;
  --rule: #d9d3c4;
  --rule-strong: #b9b2a0;
  --accent: #b0341d;
  --accent-ink: #fff8f4;
  --ok: #2c6243;
  --warn: #8a5a12;
  --bad: #8f2b2b;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121210;
    --paper-2: #191917;
    --ink: #f2efe6;
    --ink-soft: #d8d3c6;
    --muted: #96907f;
    --rule: #2b2a26;
    --rule-strong: #45433b;
    --accent: #e4674c;
    --accent-ink: #1a0d09;
    --ok: #7fbf98;
    --warn: #d6a55f;
    --bad: #e08a8a;
  }
}

* { box-sizing: border-box; }

/* Author display rules beat the UA [hidden] rule. Without this, filtered
   rows stay visible even though the JS sets .hidden = true. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px 24px; padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--mono);
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot {
  width: 9px; height: 9px; background: var(--accent); display: inline-block;
}
.wordmark .sub { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) {
  .site-nav { gap: 14px; font-size: 12.5px; }
  .wordmark .sub { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { display: none; }
}
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 0.98; letter-spacing: -0.025em;
  font-weight: 400; margin: 0 0 26px; max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede {
  font-size: 1.06rem; max-width: 62ch; color: var(--ink-soft); margin: 0 0 34px;
}
.hero .lede strong { font-weight: 600; color: var(--ink); }
.hero .cmd { max-width: 100%; font-size: 13px; }

/* ---------- command block ---------- */
.cmd {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  /* Fixed dark surface: --ink flips to near-white in dark mode, which made
     the command and the copy button invisible. */
  background: #14130f; color: #f4f1e8;
  border-left: 3px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  padding: 14px 16px; width: 100%; max-width: 540px;
  font-family: var(--mono); font-size: 13.5px;
}
.cmd .prompt { color: var(--accent); user-select: none; flex: 0 0 auto; }
/* min-width:0 is what lets a flex child shrink instead of pushing the button off-screen */
.cmd code {
  flex: 1 1 180px; min-width: 0; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; scrollbar-width: none; -ms-overflow-style: none;
  transition: opacity .18s ease, transform .18s ease;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd code.swap { opacity: 0; transform: translateY(4px); }
.cmd button {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; background: rgba(255,255,255,.07); color: #efe9db;
  border: 1px solid #6f6a5c; padding: 6px 10px; cursor: pointer; border-radius: 2px;
}
@media (max-width: 560px) {
  .cmd { padding: 12px; gap: 10px; }
  .cmd code {
    flex-basis: calc(100% - 26px); font-size: 12.5px;
    white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden;
  }
  .cmd button { margin-left: auto; }
}
.cmd button:hover { color: #f4f1e8; border-color: #f4f1e8; }
.cmd button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; }
.hero-links a { color: var(--muted); }
.hero-links a:hover { color: var(--accent); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.stats div { padding: 26px 0; border-right: 1px solid var(--rule); padding-left: 22px; }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block; font-family: var(--mono); font-size: 1.9rem;
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
}
.stats span {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-bottom: 1px solid var(--rule); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(3), .stats div:nth-child(4) { border-bottom: 0; }
  .stats div:nth-child(3) { padding-left: 0; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 34px; }
h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.08; margin: 0;
}
h3 { font-size: 1rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head .more { font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; }
.section-head .more:hover { color: var(--accent); }
p { margin: 0 0 1em; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.three p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.three .num {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 12px;
}
@media (max-width: 820px) { .three { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cat-grid a {
  background: var(--paper); padding: 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 4px;
}
.cat-grid a:hover { background: var(--paper-2); color: var(--ink); }
.cat-grid .name { font-size: 14.5px; font-weight: 500; }
.cat-grid .count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- rows / listing ---------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1fr minmax(120px, 190px) 92px;
  gap: 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.row:hover { background: var(--paper-2); color: var(--ink); }
.row > span { min-width: 0; }
.row .r-name { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; display: block; }
.row .r-desc {
  display: block; font-weight: 400; color: var(--muted); font-size: 13px;
  margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .r-src {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .r-lic { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }
@media (max-width: 720px) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main lic" "src src";
    gap: 4px 12px;
  }
  .row > span:first-child { grid-area: main; min-width: 0; }
  .row .r-src { grid-area: src; font-size: 11px; }
  .row .r-lic { grid-area: lic; }
}

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule-strong); padding: 2px 6px; border-radius: 2px;
  text-decoration: none; white-space: nowrap;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.ok { color: var(--ok); border-color: currentColor; }
.tag.warn { color: var(--warn); border-color: currentColor; }
.tag.bad { color: var(--bad); border-color: currentColor; }

/* ---------- browse controls ---------- */
.controls {
  display: grid; grid-template-columns: 1fr 200px 200px;
  gap: 12px; padding: 20px 0 8px;
}
.controls input, .controls select {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 2px;
  padding: 10px 11px; width: 100%;
}
.controls input:focus, .controls select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.controls input::placeholder { color: var(--muted); }
.browse-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  padding: 14px 0 10px; border-bottom: 1px solid var(--rule);
}
@media (max-width: 780px) { .controls { grid-template-columns: 1fr; } }

.empty { padding: 48px 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* ---------- detail ---------- */
.crumbs { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 26px 0 0; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 7px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; padding: 34px 0 80px; }
.detail > * { min-width: 0; }
.detail h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; margin: 6px 0 18px;
}
.detail .summary { font-size: 1.02rem; color: var(--ink-soft); max-width: 64ch; }
.detail h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin: 40px 0 12px; }
.detail .prose { color: var(--ink-soft); font-size: 0.95rem; }

.aside-card {
  border: 1px solid var(--rule); background: var(--paper-2);
  padding: 20px; position: sticky; top: 20px;
}
.aside-card h2 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500;
}
.meta { display: grid; gap: 10px; margin: 0; }
.meta div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 12.5px; }
.meta dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 2px; }
.meta dd { margin: 0; overflow-wrap: anywhere; word-break: break-word; }
.aside-card .cmd { margin-top: 18px; max-width: none; font-size: 11.5px; padding: 10px 11px; flex-wrap: wrap; }
.aside-card .note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.btn {
  display: inline-block; max-width: 100%; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  border-radius: 2px; margin-top: 16px;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside-card { position: static; }
}

/* ---------- sources table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  font-weight: 500; padding: 0 0 10px; border-bottom: 1px solid var(--rule-strong);
}
.table td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td:last-child, .table th:last-child { text-align: right; }
.table .mono { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--paper-2); padding: 22px 24px; margin: 34px 0 0;
  font-size: 0.93rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 12.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }

/* ---------- rendered skill content ---------- */
.skill-content { max-width: 72ch; color: var(--ink-soft); font-size: 0.94rem; }
.skill-content > h3 { font-family: var(--sans); font-size: 1rem; color: var(--ink); margin: 30px 0 10px; }
.skill-content > h4, .skill-content > h5 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 26px 0 8px;
}
.skill-content p { margin: 0 0 12px; }
.skill-content ul, .skill-content ol { margin: 0 0 14px; padding-left: 20px; }
.skill-content li { margin: 4px 0; }
.skill-content strong { color: var(--ink); }
.skill-content code {
  font-family: var(--mono); font-size: 0.85em; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 1px 4px; border-radius: 2px;
}
.skill-content pre {
  /* Fixed surface: --ink flips to near-white in dark mode and made code invisible. */
  background: #14130f; color: #efeade; padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  overflow-x: auto; margin: 0 0 18px; border-radius: 2px;
  max-width: 100%;
}
.skill-content pre code {
  background: none; border: 0; padding: 0; color: inherit;
  font-size: 12.5px; line-height: 1.55;
}
.skill-content blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent); color: var(--muted);
}
.skill-content hr { border: 0; border-top: 1px solid var(--rule); margin: 26px 0; }
.skill-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 12.5px; }
.skill-content th, .skill-content td { border: 1px solid var(--rule); padding: 6px 9px; text-align: left; vertical-align: top; }
.skill-content th {
  background: var(--paper-2); font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}

/* ---------- utilities ---------- */
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* ---------- responsive table wrapper ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 520px; }

/* Below 640px the tables become stacked rows: labels on the left, values right. */
@media (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  .table-scroll .table { min-width: 0; }
  .table { display: block; }
  .table thead { display: none; }
  .table tbody, .table tr { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    width: 100%; padding: 2px 0; border: 0; text-align: left;
  }
  .table td::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted); flex: 0 0 auto;
  }
  .table td:last-child { text-align: right; }
  .table td[data-label="Repository"] > div { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .detail { gap: 32px; padding: 24px 0 56px; }
  .skill-content table { display: block; overflow-x: auto; }
  .aside-card { padding: 16px; }
}

/* ---------- share row ---------- */
.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 20px; font-family: var(--mono); font-size: 11px;
}
.share-label {
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-size: 10px;
}
.share a, .share button {
  font: inherit; color: var(--muted); background: none; border: 0;
  border-bottom: 1px solid var(--rule-strong); padding: 0 0 1px;
  cursor: pointer; text-decoration: none;
}
.share a:hover, .share button:hover { color: var(--accent); border-color: var(--accent); }


/* ---------- hero skill graph ---------- */
.hero-art .ring { transform-box: view-box; transform-origin: 240px 240px; }
.hero-art .ring-a { animation: aid-spin 44s linear infinite; }
.hero-art .ring-b { animation: aid-spin 30s linear infinite reverse; }
.hero-art .ring-c { animation: aid-spin 20s linear infinite; }
.hero-art .core { transform-box: view-box; transform-origin: 240px 240px; animation: aid-pulse 5s ease-in-out infinite; }
.hero-art .halo { transform-box: fill-box; transform-origin: center; animation: aid-node 4.8s ease-in-out infinite; }
.hero-art .node:nth-child(2) .halo { animation-delay: 1.2s; }
.hero-art .node:nth-child(3) .halo { animation-delay: 2.4s; }
.hero-art .node:nth-child(4) .halo { animation-delay: 3.6s; }
.hero-art .blink circle:nth-child(2) { animation-delay: .8s; }
.hero-art .blink circle:nth-child(3) { animation-delay: 1.6s; }
.hero-art .blink circle:nth-child(4) { animation-delay: 2.4s; }
.hero-art .glow { animation: aid-glow 6s ease-in-out infinite; }
.hero-art .blink { animation: aid-blink 3.4s ease-in-out infinite; }
@keyframes aid-spin { to { transform: rotate(360deg); } }
@keyframes aid-pulse { 0%,100% { opacity:.92; transform: rotate(45deg) scale(.98); } 50% { opacity:1; transform: rotate(45deg) scale(1.07); } }
@keyframes aid-node { 0%,100% { opacity:.28; transform: scale(.8); } 50% { opacity:.85; transform: scale(1.35); } }
@keyframes aid-glow { 0%,100% { opacity:.55; } 50% { opacity:.9; } }
@keyframes aid-blink { 0%,100% { opacity:.25; } 50% { opacity:1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .ring, .hero-art .core, .hero-art .halo, .hero-art .glow, .hero-art .blink { animation: none; }
}

/* ---------- role grid ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 36px; }
.role-card { background: var(--paper); padding: 22px; }
.role-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 8px; }
.role-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 14px; }
.role-card .tags .tag { font-size: 10px; }

/* ---------- bundles ---------- */
.bundle { border-top: 1px solid var(--rule); padding: 28px 0; }
.bundle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 6px; }
.bundle p { color: var(--ink-soft); font-size: 0.93rem; max-width: 62ch; }
.bundle .cmd { margin: 16px 0; }
.bundle-skills { list-style: none; padding: 0; margin: 16px 0 0; columns: 2; column-gap: 28px; }
.bundle-skills li { break-inside: avoid; padding: 4px 0; font-size: 13px; }
.bundle-skills .mono { color: var(--muted); font-size: 10.5px; }
@media (max-width: 640px) { .bundle-skills { columns: 1; } }

/* ---------- split section + copyable AI prompt ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.prompt-block {
  background: #14130f; color: #efeade; border-left: 3px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  margin-top: 18px;
}
.prompt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid #2b2a26;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: #b9b2a0;
}
.prompt-head button {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(255,255,255,.07); color: #efe9db;
  border: 1px solid #6f6a5c; padding: 5px 8px; cursor: pointer; border-radius: 2px;
}
.prompt-head button:hover { color: #fff; border-color: #fff; }
.prompt-block pre {
  margin: 0; padding: 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; color: #efeade;
}
.prompt-block code { color: inherit; background: none; border: 0; padding: 0; }

/* ---------- support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.support-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 22px; }
.support-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 8px; }
.support-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 16px; }
.support-card img { display: block; width: 180px; height: 180px; margin: 0 0 16px; }
@media (max-width: 700px) { .support-grid { grid-template-columns: 1fr; } }
