/* ===== Docs / Tutorials pages (tutorials.html hub + tutorials-*.html) ===== */

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .88em;
  background: rgba(232,68,10,.09);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.nav a[aria-current="page"] { color: var(--accent); }

/* ---- Hub hero ---- */
.tut-hero { padding: 64px 0 56px; text-align: center; }
.tut-hero-inner { max-width: 720px; margin: 0 auto; }
.tut-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 12px 0 18px;
}
.tut-hero .lede { font-size: 1.08rem; color: var(--text-2); max-width: 58ch; margin: 0 auto; }
.tut-hero .lede a { font-weight: 600; }

/* ---- Hub card grid ---- */
.tut-section { padding: 0 0 72px; }
.tut-section-alt { padding: 56px 0 72px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.tut-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tut-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #f0c3b0; color: var(--text); }
.tut-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(232,68,10,.12), rgba(255,90,30,.08));
  border: 1px solid rgba(232,68,10,.18);
  margin-bottom: 16px;
}
.tut-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.tut-card p { color: var(--text-2); font-size: .93rem; margin-bottom: 12px; }
.tut-card .tut-card-cta { color: var(--accent); font-weight: 700; font-size: .88rem; }

.tut-extra-card {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 18px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tut-extra-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #f0c3b0; color: var(--text); }
.tut-extra-card .tut-icon { flex-shrink: 0; margin-bottom: 0; }
.tut-extra-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tut-extra-card p { color: var(--text-2); font-size: .92rem; margin: 0; }

/* ---- Closing cross-links (hub) ---- */
.tut-next { padding: 64px 0 84px; text-align: center; }
.tut-next-inner { max-width: 640px; margin: 0 auto; }
.tut-next h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.tut-next-inner > p { color: var(--text-2); margin-bottom: 26px; }
.tut-next-secondary { margin-top: 20px; font-size: .92rem; color: var(--muted); }

/* ---- Individual tutorial page ---- */
.tut-crumb { padding: 28px 0 0; }
.tut-crumb a { font-weight: 600; font-size: .92rem; }
.tut-crumb a::before { content: "\2190"; margin-right: 6px; }

.tutorial-page { padding: 28px 0 72px; }
.tutorial-head { max-width: 780px; margin: 0 auto 40px; }
.tutorial-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.18;
  margin: 10px 0 14px;
}
.tutorial-head p { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }

.doc-body { max-width: 780px; margin: 0 auto; display: grid; gap: 30px; }
.doc-feature { padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.doc-feature:last-of-type { border-bottom: none; padding-bottom: 0; }
.doc-feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.doc-feature > p { font-size: .95rem; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.doc-settings { list-style: none; display: grid; gap: 9px; padding: 0; }
.doc-settings li { font-size: .92rem; color: var(--text-2); line-height: 1.55; padding-left: 20px; position: relative; }
.doc-settings li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.doc-settings li strong { color: var(--text); }

/* Tip callout (matches getting-started.html) */
.tip {
  background: linear-gradient(135deg, rgba(232,68,10,.07), rgba(255,90,30,.04));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: .9rem; color: var(--text-2); line-height: 1.55;
}
.tip strong { color: var(--accent-ink); font-weight: 700; }
.tip + .tip { margin-top: -18px; }

/* Prev/next pager */
.tut-pager {
  max-width: 780px; margin: 48px auto 0;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.tut-pager a {
  flex: 1 1 0;
  display: block;
  font-size: .9rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color .15s, color .15s, transform .15s;
}
.tut-pager a:hover { border-color: #f0c3b0; color: var(--accent); transform: translateY(-2px); }
.tut-pager .pager-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tut-pager .pager-next { text-align: right; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .tut-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tutorial-head, .doc-body, .tut-pager { max-width: 100%; }
}
@media (max-width: 600px) {
  .tut-grid { grid-template-columns: 1fr; }
  .tut-extra-card { flex-direction: column; align-items: flex-start; }
  .tut-pager { flex-direction: column; }
  .tut-pager .pager-next { text-align: left; }
}
