/* Tutorials pages (hub + one page per role) — moved out of tutorials.html's inline <style>. */
/* tutorials-specific styles — complement styles.css, scoped to this page */
.tut { padding-top: 8px; }
.tut h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.tut .lede { color: var(--fg-dim); font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 0 6px; }

/* Role tab bar */
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 4px;
  border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.role-tab { appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--fg-dim); background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s, border-color .15s, background .15s, transform .1s; }
.role-tab:hover { color: var(--fg); border-color: var(--accent); }
.role-tab[aria-selected="true"] { color: #fff; background: var(--accent);
  border-color: var(--accent); box-shadow: 0 10px 24px -12px rgba(155,122,214,.7); }
.role-tab .ic { font-size: 15px; line-height: 1; }

.role-panel { display: none; animation: fade .25s ease; }
.role-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-intro { color: var(--fg-dim); line-height: 1.65; font-size: 15.5px;
  margin: 26px 0 8px; max-width: 680px; }
.panel-intro strong { color: var(--fg); }

/* Numbered flow */
.flow { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; }
.flow > li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.flow > li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--accent);
  box-shadow: 0 8px 20px -10px rgba(155,122,214,.7); }
.flow > li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--border), transparent); }
.flow > li:last-child::after { display: none; }
.flow h3 { margin: 4px 0 5px; font-size: 16.5px; color: var(--fg); }
.flow p { margin: 0; color: var(--fg-dim); line-height: 1.6; font-size: 14.5px; }
.flow code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 6px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent); white-space: nowrap; }

/* Recipe callout */
.recipe { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 4px; }
.recipe .r-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 8px; }
.recipe h4 { margin: 0 0 8px; font-size: 16px; color: var(--fg); }
.recipe p { margin: 0 0 10px; color: var(--fg-dim); line-height: 1.6; font-size: 14px; }
.recipe pre { background: #14111d; border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; overflow-x: auto; margin: 10px 0 0; line-height: 1.5; }
.recipe pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--fg); }
.recipe .cmt { color: var(--fg-dim); }
.recipe .ok  { color: #7BD88F; }
.recipe .kw  { color: var(--accent-2); }

/* Shared capabilities grid */
.caps { margin: 54px 0 0; padding-top: 30px; border-top: 1px solid var(--border); }
.caps h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.caps .sub { color: var(--fg-dim); margin: 0 0 20px; font-size: 15px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.cap { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 17px; transition: border-color .15s, transform .1s; }
.cap:hover { border-color: var(--accent); transform: translateY(-2px); }
.cap .ic { font-size: 20px; line-height: 1; display: block; margin-bottom: 9px; }
.cap h3 { margin: 0 0 4px; font-size: 15px; color: var(--fg); }
.cap p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-dim); }

.tut-cta { margin: 46px 0 10px; padding: 26px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.tut-cta h2 { margin: 0 0 6px; font-size: 22px; }
.tut-cta p { margin: 0 0 16px; color: var(--fg-dim); }

@media (max-width: 560px) {
  .flow > li { padding-left: 44px; }
  .flow > li::before { width: 28px; height: 28px; }
  .flow > li::after { left: 13px; }
}

/* Hub: one card per role, linking to its page. */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 30px 0 0; }
a.cap.role-card { display: block; text-decoration: none; color: inherit; }
.role-card h2 { margin: 0 0 6px; font-size: 17px; color: var(--fg); }
.role-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-dim); }
.role-card p strong { color: var(--fg); }
/* Role pages */
.crumb { margin: 0 0 14px; font-size: 14px; }
.crumb a { color: var(--fg-dim); }
.role-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0 0;
  padding-top: 22px; border-top: 1px solid var(--border); }
.role-others > span { color: var(--fg-dim); font-size: 14px; margin-right: 4px; }
.role-others a { font-size: 14px; font-weight: 600; color: var(--fg); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.role-others a:hover { border-color: var(--accent); }
.role-body { padding: 0; }  /* opt out of the landing page's global `section` padding */
