/* ═══════════════════════════════════════════
   COWBOY MCP — Styles
   Dev-Terminal direction: Linear/Vercel-dark
   × real terminal × restrained mint-green accent
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  /* surfaces */
  --bg:        #0a0a0b;
  --surface:   #0e0e11;
  --elev:      #131316;
  --elev-2:    #17171b;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);
  --border-3:  rgba(255, 255, 255, 0.22);

  /* ink */
  --text:      #ededee;
  --text-2:    #a2a2ab;
  --text-3:    #6c6c77;

  /* accent (used sparingly) */
  --green:     #34ff7a;
  --green-2:   #00cc52;
  --green-ink: #04140a;
  --amber:     #ffb000;
  --red:       #ff5f57;
  --cyan:      #6cb6ff;   /* syntax only */

  /* fonts */
  --sans:  'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Roboto Mono', ui-monospace, 'Consolas', 'Menlo', monospace;
  --pixel: 'Press Start 2P', monospace;

  --maxw: 1080px;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Ambient background: faint top glow + fine dot grid ─── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% -5%, rgba(52, 255, 122, 0.07), transparent 70%);
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
          mask: linear-gradient(180deg, #000, transparent 70%);
}

/* ─── Helpers ─── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.center .section-title,
.center .section-lead,
.center .eyebrow,
.center .bigstat { margin-left: auto; margin-right: auto; }

.t-green { color: var(--green); }
.t-amber { color: var(--amber); }
.t-dim   { color: var(--text-3); }
.mono    { font-family: var(--mono); }

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* ─── Screen Reader Only ─── */
.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;
}

/* ─── Focus Indicators ─── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Links ─── */
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: none; }

/* ─── Buttons ─── */
.btn {
  font-family: var(--mono);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-md { padding: 12px 20px; font-size: 14px; }

.btn-primary {
  background: var(--green);
  color: var(--green-ink);
  font-weight: 600;
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(52, 255, 122, 0.2), 0 8px 24px -8px rgba(52, 255, 122, 0.5);
}
.btn-primary:hover {
  background: #4dff8c;
  box-shadow: 0 0 0 1px rgba(52, 255, 122, 0.35), 0 10px 30px -8px rgba(52, 255, 122, 0.65);
}

.btn-ghost {
  background: var(--elev);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--elev-2);
  border-color: var(--border-3);
}

/* ─── Navigation ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}
.brand span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
  margin-right: 24px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-docs {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
}
.nav-docs:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--elev);
  border: 1px solid var(--border-2);
  border-radius: 7px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ─── Sections ─── */
.section {
  padding: 100px 0;
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 16px;
}
.eyebrow .c { color: var(--text-3); }

.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 44px;
  text-wrap: pretty;
}

/* ─── Hero ─── */
#hero {
  padding: 150px 24px 90px;
  text-align: center;
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 30px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--border-2); color: var(--text); text-decoration: none; }
.pill-tag { color: var(--green); font-weight: 600; }
.pill-arr { color: var(--text-3); }

.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto 22px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--green); }

/* rotating typewriter on the client name */
.type-rotator { white-space: nowrap; }
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 5px;
  border-radius: 1px;
  background: var(--green);
  vertical-align: baseline;
  transform: translateY(0.04em);
}
.type-cursor.blink { animation: blink 1.05s step-end infinite; }

.hero-sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-shot {
  max-width: 760px;
  margin: 54px auto 0;
  position: relative;
}
.hero-shot::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -1px;
  right: -1px;
  height: 120px;
  background: radial-gradient(60% 80% at 50% 0, rgba(52, 255, 122, 0.16), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* ─── Terminal Component ─── */
.term {
  background: linear-gradient(180deg, #101013, #0c0c0f);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  text-align: left;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; }
.tl.y { background: #febc2e; }
.tl.g { background: #28c840; }

.term-name {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.term-name b { color: var(--text-2); font-weight: 500; }

.term-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 184px;
}

.tline {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt { color: var(--green); }
.cmd-txt { color: var(--text); }

.out {
  opacity: 0;
  color: var(--text-3);
  transition: opacity 0.25s;
}
.out.show { opacity: 1; }

.out.ok { color: var(--green); }
.out.warn { color: var(--amber); }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── How It Works: demo ─── */
.demo {
  max-width: 780px;
  margin: 0 auto;
}

.segwrap { text-align: center; }

.segbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 auto 20px;
}

.seg {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 13px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.seg:hover { color: var(--text); }
.seg.active {
  color: var(--text);
  background: var(--elev-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ─── Get Started: steps ─── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.step:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: var(--elev);
}

.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  background: var(--elev);
  border: 1px solid var(--border-2);
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.step-desc .k { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }

.steps-apps {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  margin-top: 22px;
}
.steps-apps b { color: var(--text-2); font-weight: 500; }

.steps-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Capabilities ─── */
.bigstat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.bigstat-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--green);
}
.bigstat-label {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cap-cat {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-3);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.cap-cat:first-child { margin-top: 0; }

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.cap-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: var(--elev);
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.cap-card:hover::before { opacity: 0.6; }

.cap-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 8px;
}
.cap-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--elev);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ─── Security HUD ─── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sec-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.sec-panel:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: var(--elev);
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sec-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(52, 255, 122, 0.6);
  animation: secPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 0.3s);
}

@keyframes secPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(52, 255, 122, 0.5); opacity: 0.85; }
  50% { box-shadow: 0 0 12px rgba(52, 255, 122, 0.9); opacity: 1; }
}

.sec-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
  flex: 1;
}

.sec-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(52, 255, 122, 0.08);
  border: 1px solid rgba(52, 255, 122, 0.25);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.sec-badge--amber {
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.25);
}

.sec-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ─── FAQ ─── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-item[open] { background: var(--elev); border-color: var(--border-2); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--green);
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── Footer ─── */
#footer {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.footer-cta {
  text-align: center;
  padding: 90px 24px 70px;
}
.footer-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 14px;
  text-wrap: balance;
}
.footer-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-signoff {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--amber);
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* ── Pixel Art Horizon (subtle cowboy nod) ── */
.pixel-horizon {
  position: relative;
  width: 100%;
  line-height: 0;
  opacity: 0.4;
  -webkit-mask: linear-gradient(180deg, transparent, #000 60%);
          mask: linear-gradient(180deg, transparent, #000 60%);
}
#pixel-horizon-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to the hamburger below 1000px, wider than the 768px content
   breakpoint below: five .nav-links items plus the Docs/Install CTAs need
   more room than 768px leaves, and without this the row wraps mid-word or
   overflows in the 769-999px dead zone (tablets, half-snapped desktop
   windows). Kept as its own query so the 768px content breakpoint (hero,
   sections, footer, FAQ) is untouched. */
@media (max-width: 999px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }
  .nav-links a { padding: 10px 0; font-size: 15px; }
  .nav-toggle { display: flex; }
  .nav-docs { display: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 38px; letter-spacing: -1px; }
  .hero-sub { font-size: 17px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 27px; }

  .steps { grid-template-columns: 1fr; }
  .bigstat-num { font-size: 56px; }
  .footer-title { font-size: 30px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }

  .faq-item summary { font-size: 15px; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 18px; }
}

@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .bigstat { flex-direction: column; gap: 6px; align-items: center; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor { animation: none; opacity: 1; }
  .type-cursor.blink { animation: none; }
  .sec-dot { animation: none; }
  .out { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Guide / landing pages ─── */
.guide-prose { max-width: 720px; margin: 0 auto; }
.guide-prose p { color: var(--text-2); line-height: 1.7; font-size: 18px; }
.guide-prose p + p { margin-top: 16px; }
.guide-lead { font-size: 21px; color: var(--text); line-height: 1.55; }

/* connection diagram: WordPress ⇄ Cowboy MCP ⇄ AI app */
.diagram { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 8px auto 0; }
.diagram-node { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 14px 18px; font-family: var(--mono); font-size: 14px; color: var(--text); }
.diagram-node .c { color: var(--green); }
.diagram-arrow { color: var(--text-3); font-family: var(--mono); }

/* footer Guides group */
.footer-guides { display: flex; flex-direction: column; gap: 6px; }
.footer-guides a { color: var(--text-2); text-decoration: none; }
.footer-guides a:hover { color: var(--text); }

/* get-started guide links sub-line */
.step-links { margin-top: 8px; }

/* ─── Content Pages (Guides, News, About) ─── */
.prose-wrap { max-width: 704px; margin: 0 auto; padding: 112px 20px 64px; }
.breadcrumbs { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 32px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.article-header h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 12px; }
.byline { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 40px; }
.byline a { color: inherit; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 32px 0 8px; }
.prose p, .prose li { line-height: 1.7; color: var(--text-2); }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--elev); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--elev); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; margin: 16px 0 24px; }
.prose a { color: var(--green); }

/* News index list */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.news-list a { font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; }
.news-list a:hover { color: var(--green); }
.news-list p { margin: 6px 0 0; color: var(--text-2); line-height: 1.6; }
