/* ShmupKit documentation — shared page styles.
   Built from the site shell's tokens (--accent, --bg, --fg, --muted, --surface,
   --surface-tint, --border, --note-bg, --shadow) so palettes and dark mode carry through. */

/* Hero */
.tutorial-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 48px); }
.hero-subtitle { font-size: clamp(15px, 1.8vw, 19px); color: var(--muted); margin-top: 12px; max-width: 56ch; }
.gradient-text { color: var(--accent); }
.tutorial-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.tutorial-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* Numbered steps */
.tutorial-step { border-left: 3px solid var(--accent); padding: 20px 0 20px 24px; margin: 32px 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 800; border-radius: 50%; margin-bottom: 12px; }
.step-title { font-size: clamp(17px, 2vw, 22px); margin-bottom: 8px; }
.step-description { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Blocks */
.code-block { background: var(--surface); border: 1.5px solid var(--border); border-radius: 3px 8px 4px 6px; padding: 16px 20px; font-size: 13px; line-height: 1.7; margin: 16px 0; overflow-x: auto; white-space: pre-wrap; }
.code-keyword { color: var(--accent); font-weight: 700; }
.code-comment { color: var(--muted); }
.code-value { color: var(--fg); font-weight: 600; }
.note-box { background: var(--note-bg); border-left: 3px solid var(--accent); padding: 14px 18px; font-size: 14px; line-height: 1.55; margin: 16px 0; border-radius: 0 6px 6px 0; }
.checklist { background: var(--surface-tint); border: 2px solid var(--border); border-radius: 3px 10px 4px 8px; padding: 24px; margin: 32px 0; }
.checklist h3 { margin-bottom: 16px; }
.checklist ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { font-size: 14px; padding-left: 24px; position: relative; line-height: 1.55; }
.checklist li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Card grids */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.usage-card { background: var(--surface-tint); border: 2px solid var(--border); border-radius: 3px 10px 4px 8px; padding: 18px; }
.usage-card h4 { font-size: 14px; margin-bottom: 8px; }
.usage-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.usage-card a { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--accent); text-decoration: underline; }

/* Docs navigation */
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.doc-nav a { font-size: 13px; padding: 6px 14px; background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: 20px; color: var(--fg); text-decoration: none; }
.doc-nav a:hover { border-color: var(--accent); color: var(--accent); }
.doc-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

/* Property tables */
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 14px; background: var(--surface-tint); border: 2px solid var(--border); border-radius: 3px 10px 4px 8px; overflow: hidden; }
.doc-table th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.doc-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { font-weight: 700; white-space: nowrap; }
.doc-table code { color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table thead { display: none; }
  .doc-table tr { border-bottom: 2px solid var(--border); }
  .doc-table tr:last-child { border-bottom: none; }
  .doc-table td { border-bottom: none; padding-bottom: 4px; }
  .doc-table td:first-child { padding-bottom: 0; color: var(--accent); white-space: normal; }
}

/* Typography helpers */
.doc-h2 { margin-top: clamp(36px, 5vw, 56px); }
.doc-h3 { margin-top: clamp(24px, 3vw, 36px); margin-bottom: 4px; }
.doc-lead { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 68ch; }
.doc-lead + .doc-lead { margin-top: 12px; }
ul.doc-lead, ol.doc-lead { padding-left: 20px; }
ul.doc-lead li, ol.doc-lead li { margin-bottom: 8px; }

/* Pattern illustrations */
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 20px 0; }
.pattern-card { background: var(--surface); border: 2px solid var(--border); border-radius: 3px 10px 4px 8px; padding: 18px; text-align: center; }
.pattern-art { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: 4px; line-height: 1.2; margin-bottom: 10px; }
.pattern-card h4 { font-size: 13px; margin-bottom: 6px; }
.pattern-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Class reference chip */
.doc-class { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--surface-tint); border: 1.5px solid var(--border); border-radius: 20px; padding: 3px 12px; margin-bottom: 10px; }
