/* Page-specific styles for inner pages. Loaded after site-station.css. */

/* ═══ Conductor page (docs/conductor.html) · .cd-page ═══════════════════ */
.cd-page .st-lead { max-width: 68ch; }
.cd-page .st-page-hero { padding-bottom: 40px; }
.cd-page .st-page-hero code, .cd-page .faq-item h3 code {
  font-family: var(--mono); font-size: 0.9em; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--text); background: transparent;
}
.cd-page .cd-toc {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
}
.cd-page .st-track { scroll-margin-top: 16px; }
.cd-page .st-body > p { max-width: 68ch; }
.cd-page .st-split > div > p { max-width: 68ch; }
.cd-page .st-clearance { margin-top: 6px; }
.cd-page .faq-list { max-width: 68ch; margin-top: 8px; }
.cd-page .faq-item { padding: 18px 0; border: 0; border-top: 1px solid var(--rule); }
.cd-page .faq-item:last-child { padding-bottom: 0; }
.cd-page .faq-item h3 {
  margin: 0 0 6px; font-family: inherit; font-size: 16px; font-weight: 600;
  letter-spacing: 0; text-transform: none; line-height: 1.4; color: var(--text);
}
.cd-page .faq-item p { margin: 0; }
.cd-page .cd-reference { margin-top: 20px; border: 1.5px solid var(--ink); }
.cd-page .cd-reference > summary {
  padding: 12px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
}
.cd-page .cd-reference[open] > summary { border-bottom: 1.5px solid var(--ink); }
.cd-page .cd-reference > summary:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.cd-page .cd-reference > :not(summary) { margin-left: 16px; margin-right: 16px; }
.cd-page .cd-reference h3 {
  margin: 30px 16px 10px; padding-top: 22px; border-top: 1px solid var(--rule);
  font-family: var(--display); font-size: 19px; font-weight: 700;
  letter-spacing: -0.015em; text-transform: none; line-height: 1.25; color: var(--text);
  scroll-margin-top: 16px;
}
.cd-page .cd-reference summary + h3 { margin-top: 0; border-top: 0; }
.cd-page .cd-reference p, .cd-page .cd-reference ul { max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
.cd-page .cd-reference ul { margin-top: 0; margin-bottom: 14px; padding-left: 1.2em; }
.cd-page .cd-reference li { margin-bottom: 6px; }
.cd-page .cd-reference p strong, .cd-page .cd-reference li strong { color: var(--text); }
.cd-page .cd-reference > :last-child { margin-bottom: 20px; }
.cd-page .cd-reference code { overflow-wrap: anywhere; }

/* ═══ Guide page (docs/guide.html) · .guide .gd-hero, .guide .faq-item ══ */
.guide .gd-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start;
}
.guide .gd-hero > .panel { margin-top: 6px; }
.guide .gd-hero h1 { margin-top: 0; }
.guide .gd-hero .lead { margin-bottom: 0; }
@media (max-width: 900px) {
  .guide .gd-hero { grid-template-columns: 1fr; gap: 24px; }
  .guide .gd-hero > .panel { margin-top: 0; }
}
.guide .faq-item h3 { margin: 0 0 8px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text); }
.guide .faq-item p { margin: 0; max-width: 68ch; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ═══ Shortcuts page (docs/shortcuts.html) · .shortcuts-page ════════════ */
.shortcuts-page .sc-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start;
}
.shortcuts-page .sc-hero > .panel { margin-top: 6px; }
.shortcuts-page .sc-hero h1 { margin-top: 0; }
.shortcuts-page .sc-hero .lead { max-width: 68ch; margin-bottom: 0; }
@media (max-width: 900px) {
  .shortcuts-page .sc-hero { grid-template-columns: 1fr; gap: 24px; }
  .shortcuts-page .sc-hero > .panel { margin-top: 0; }
}
.shortcuts-page .shortcuts-table { border: 1.5px solid var(--ink); border-radius: 0 !important; }
.shortcuts-page .shortcuts-table th { border-bottom: 1.5px solid var(--ink); }
.shortcuts-page .shortcuts-table th, .shortcuts-page .shortcuts-table td { border-bottom-color: var(--rule); }
.shortcuts-page .shortcuts-table thead th { border-bottom-color: var(--ink); }
.shortcuts-page .shortcuts-table td:first-child { color: var(--text); }
.shortcuts-page .shortcuts-table tbody tr:last-child td { border-bottom: 0; }

/* ═══ Manifesto page (docs/manifesto.html) · .manifesto-page ════════════ */
.manifesto-page .mf-label { white-space: nowrap; }
/* Conductor: the in-page links sit flush left (the site nav rule spreads its children). */
.cd-page .cd-toc { justify-content: flex-start; align-items: baseline; padding: 0; border: 0; min-height: 0; height: auto; position: static; background: none; }

/* ═══ AI coding page (docs/ai-coding.html) · .landing-page ══════════════ */
.landing-page .st-page-hero { padding-bottom: 40px; }
.landing-page .st-lead { max-width: 68ch; }
.landing-page .st-body h2 { max-width: 30ch; }
.landing-page .st-body p { max-width: 68ch; }
.landing-page .st-body h2 + .st-h3 { margin-top: 22px; }
.landing-page code {
  font-family: var(--mono); font-size: 0.9em; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--text); background: transparent;
  overflow-wrap: anywhere;
}
.landing-page .st-body h2 code { font-size: 0.8em; padding: 0 6px; font-weight: 500; letter-spacing: 0; }
.landing-page .st-body strong { color: var(--text); }
.landing-page .st-cta-row { margin-bottom: 0; }
.landing-page .faq-list { display: block; max-width: 68ch; margin-top: 8px; }
.landing-page .faq-item { padding: 18px 0; border: 0; border-top: 1px solid var(--rule); background: transparent; }
.landing-page .faq-item h3 {
  margin: 0 0 6px; font-family: inherit; font-size: 16px; font-weight: 600;
  letter-spacing: 0; text-transform: none; line-height: 1.4; color: var(--text);
}
.landing-page .faq-item p { margin: 0; }
.landing-page .landing-faq-more {
  margin: 0; padding-top: 18px; border-top: 1px solid var(--rule);
  max-width: 68ch; font-size: 14px;
}

/* ═══ Sponsor page (docs/sponsor.html) · .contribute-page ═══════════════ */
.contribute-page .contribute-layout {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start;
  max-width: none; margin: 0; padding: 48px 0 16px;
}
.contribute-page .support-stack { max-width: none; margin: 0; text-align: left; min-width: 0; }
.contribute-page .hero { padding: 0 0 32px; text-align: left; }
.contribute-page .hero h1 {
  margin: 0 0 18px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700;
  line-height: 1; letter-spacing: -0.035em; text-wrap: balance;
}
.contribute-page .hero-lead { margin: 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contribute-page .hero-lead strong { color: var(--text); }
.contribute-page .hero-funds { margin: 14px 0 0; max-width: 68ch; letter-spacing: 0; }
.contribute-page .contribute-panel { margin-top: 6px; }
.contribute-page .content {
  max-width: 600px; padding: 28px 32px; text-align: left;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 0;
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.contribute-page .mode-toggle { padding: 0; border: 1.5px solid var(--ink); border-radius: 0; background: transparent; }
.contribute-page .mode-btn { border-radius: 0; color: var(--text); box-shadow: none; }
.contribute-page .mode-btn + .mode-btn { border-left: 1.5px solid var(--ink); }
.contribute-page .mode-btn:hover { background: var(--accent-glow); }
.contribute-page .mode-btn.active { background: var(--text); color: var(--bg); box-shadow: none; }
.contribute-page .amount-label, .contribute-page .manage-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.contribute-page .manage-label::before { content: none; }
.contribute-page .amount-card { border: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.contribute-page .amount-card:hover { border-color: var(--ink); background: transparent; }
.contribute-page .amount-card--featured { border-color: var(--ink); background: transparent; }
.contribute-page .amount-card--featured:hover:not(.selected) { border-color: var(--ink); background: var(--accent-glow); }
.contribute-page .amount-card.selected { background: var(--text); color: var(--bg); border-color: var(--text); }
.contribute-page .amount-card.selected .amount-value,
.contribute-page .amount-card.selected .amount-sub { color: var(--bg); }
.contribute-page .amount-card:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.contribute-page .amount-note { max-width: 68ch; }
.contribute-page .custom-input, .contribute-page .manage-email { border: 1px solid var(--ink); border-radius: 0; background: transparent; }
.contribute-page .custom-input:focus, .contribute-page .manage-email:focus { outline: 2px solid var(--text); outline-offset: 2px; border-color: var(--ink); }
.contribute-page .checkout-btn {
  padding: 13px 24px; font-size: 13px;
  background: var(--text); color: var(--bg); border: 1.5px solid var(--text); border-radius: 2px; box-shadow: none;
}
.contribute-page .checkout-btn:hover:not(:disabled) { background: transparent; color: var(--text); border-color: var(--text); }
.contribute-page .fine-print, .contribute-page .error-msg { text-align: left; }
.contribute-page .manage-sub { border-top: 1px solid var(--rule); }
.contribute-page .manage-btn { color: var(--text); border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; }
.contribute-page .manage-btn:hover:not(:disabled) { background: var(--accent-glow); border-color: var(--ink); }
.contribute-page .manage-success { background: transparent; border: 1px solid var(--rule); border-radius: 0; }
.contribute-page .tip-term { color: var(--text); border-bottom: 1px dotted var(--text); }
.contribute-page .tip-bubble { background: var(--bg); border: 1.5px solid var(--ink); border-radius: 0; box-shadow: none; }
.contribute-page .tip-bubble::after { border-top-color: var(--ink); }
.contribute-page .success-panel { padding: 28px 32px; text-align: left; }
.contribute-page .success-panel h2 { font-size: 28px; letter-spacing: -0.025em; }
.contribute-page .success-panel p { font-size: 16px; line-height: 1.65; }
.contribute-page .success-links { justify-content: flex-start; }
.contribute-page .success-link { color: var(--text); border-bottom: 0; }
@media (max-width: 900px) {
  .contribute-page .contribute-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .contribute-page .content { max-width: none; }
  .contribute-page .contribute-panel { margin-top: 0; }
}
@media (max-width: 600px) {
  .contribute-page .content, .contribute-page .success-panel { padding: 22px 18px; }
}

/* ═══ Privacy and Terms (docs/privacy.html, docs/terms.html) · .legal-page */
.legal-page { font-family: inherit; }
.legal-page .legal-hero { padding: 48px 0 28px; }
.legal-page .legal-hero h1 {
  margin: 0 0 18px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700;
  line-height: 1; letter-spacing: -0.035em;
}
.legal-page .legal-hero-meta { max-width: 68ch; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
.legal-page .legal-content {
  max-width: 68ch; padding: 32px 0 0; background: transparent;
  border: 0; border-top: 1.5px solid var(--ink); border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.legal-page .legal-content h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.legal-page .legal-content h2:first-child { margin-top: 0; }
.legal-page .legal-content p, .legal-page .legal-content ul li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal-page .legal-content p { margin-bottom: 14px; }
.legal-page .legal-content ul { display: block; margin: 0 0 14px; padding: 0; list-style: none; }
.legal-page .legal-content ul li { display: block; position: relative; margin: 0 0 8px; padding-left: 1.3em; }
.legal-page .legal-content ul li::before {
  content: ''; position: absolute; left: 0.25em; top: 0.72em; margin: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--text);
}
.legal-page .legal-content a { color: var(--text); border-bottom: 0; }
.legal-page .legal-content strong { color: var(--text); }
.legal-page .legal-content code {
  font-family: var(--mono) !important; font-size: 0.9em !important; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--text); overflow-wrap: anywhere;
}
.legal-page .sep-line { margin: 28px 0; background: var(--rule); }

/* ═══ Changelog (docs/changelog.html, scripts/sync-changelog.mjs) · .changelog-page */
.changelog-page .st-page-hero { padding-bottom: 36px; }
.changelog-page .st-lead { max-width: 68ch; }
.changelog-page .changelog-meta { margin: 18px 0 0; font-size: 12px; }
.changelog-page .changelog-entry {
  margin: 0; overflow: visible; background: transparent;
  border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; box-shadow: none;
}
.changelog-page .changelog-entry:last-of-type { border-bottom: 1.5px solid var(--ink); }
.changelog-page .changelog-entry[open] { padding-bottom: 28px; }
.changelog-page .changelog-entry-head { justify-content: flex-start; flex-wrap: nowrap; gap: 0; padding: 18px 0; }
.changelog-page .changelog-entry-head::before { flex: 0 0 24px; margin: 0; color: var(--text); }
.changelog-page .changelog-entry-head:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.changelog-page .changelog-entry-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.02em;
}
.changelog-page .changelog-entry-title time {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted);
}
.changelog-page .changelog-entry .changelog-body { max-width: calc(68ch + 24px); padding: 0 0 0 24px; }
.changelog-page .changelog-body h3 {
  margin: 18px 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.changelog-page .changelog-body h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.changelog-page .changelog-body > :first-child { margin-top: 0; }
.changelog-page .changelog-body p, .changelog-page .changelog-body li { font-size: 15px; line-height: 1.65; color: var(--muted); }
.changelog-page .changelog-body ul { margin: 0 0 12px; padding-left: 1.2em; }
.changelog-page .changelog-body li { margin-bottom: 6px; }
.changelog-page .changelog-body strong { color: var(--text); }
.changelog-page .changelog-body code {
  font-family: var(--mono); font-size: 0.9em; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--text); overflow-wrap: anywhere;
}
.changelog-page .changelog-release-link { margin: 16px 0 0; font-family: var(--mono); font-size: 12px !important; }
.cd-page .st-page-hero > .st-no { margin-bottom: 14px; padding-top: 0; }
.manifesto-page .st-page-hero > .mf-label { margin-bottom: 14px; padding-top: 0; }
.manifesto-page .st-page-hero { padding-bottom: 56px; }
/* Adjustments: AI coding FAQ closing rule; legal meta line on one measure. */
.landing-page .faq-list { border-bottom: 1px solid var(--rule); }
.landing-page .landing-faq-more { border-top: 0; }
.legal-page .legal-hero-meta { max-width: none; }
/* Adjustments: changelog disclosure marker sits on the title line; the
   thank-you heading takes focus for screen readers without drawing a ring. */
.changelog-page .changelog-entry-head { align-items: baseline; }
.changelog-page .changelog-entry-head::before { font-size: 13px; transition: none; }
.changelog-page .changelog-entry[open] > .changelog-entry-head::before { content: '▾'; transform: none; }
.contribute-page .success-panel h2:focus { outline: none; }
/* Links in the hero leads: one ink underline, no second tinted border. */
.landing-page .prose-link, .changelog-page .prose-link { border-bottom: 0; }
