/* Tutorial styles stay local to the guide; colors follow the site theme. */
body.tutorial-page main { max-width: 1080px; }
.tutorial-content { padding: 20px 0 0; }
.tutorial-intro { max-width: 720px; }
.tutorial-content .eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.5px; }
.tutorial-intro h1 { font: 500 38px/1.4 var(--serif); letter-spacing: 1px; }
.tutorial-content p { line-height: 1.9; }
.tutorial-content .tutorial-lead { margin: 20px 0 10px; color: var(--ink); font-size: 16px; }
.tutorial-content .tutorial-intro-note { margin: 0; font-size: 12px; }
.tutorial-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 34px 0 22px; }
.tutorial-paths a { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: var(--paper); color: var(--ink); text-decoration: none; }
.tutorial-paths a:last-child { border-top-color: var(--accent); }
.tutorial-paths a:hover { border-color: var(--green); }
.path-level { color: var(--green); font: 12px var(--mono); }
.tutorial-paths a:last-child .path-level { color: var(--accent); }
.tutorial-paths strong { font: 500 23px/1.5 var(--serif); }
.tutorial-paths a > span:last-child { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.tutorial-paths b { color: var(--green); font-size: 17px; }
.tutorial-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 0 18px; color: var(--muted); font-size: 11px; }
.tutorial-legend > span { display: flex; align-items: center; gap: 7px; }
.legend-cell { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--grid); background: var(--paper); font: 15px/1 var(--sans); font-style: normal; }
.is-filled { background: var(--green); }
.is-certain { background: var(--accent); }
.tutorial-tier { margin-top: 22px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.tier-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.tier-heading h2 { font: 500 28px/1.5 var(--serif); letter-spacing: 0; }
.tier-heading .eyebrow { color: var(--green); margin-bottom: 8px; }
#advanced .tier-heading .eyebrow { color: var(--accent); }
.tier-note { flex-shrink: 0; color: var(--muted); font-size: 11px; padding-bottom: 7px; }
.tutorial-content .tier-intro { max-width: 750px; margin: 16px 0 8px; }
.tutorial-lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.lesson-copy { position: relative; padding-left: 34px; }
.lesson-number { position: absolute; left: 0; top: 4px; color: var(--muted); font: 12px/1.6 var(--mono); }
.tutorial-content h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.65; }
.lesson-copy p { margin: 12px 0 0; font-size: 13px; }
.tutorial-content strong { color: var(--ink); font-weight: 600; }
.tutorial-example { margin: 0; padding: 24px 18px 18px; border: 1px solid var(--line); background: var(--paper); }
.example-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.example-clue { min-width: 45px; flex-shrink: 0; color: var(--ink); font: 13px/1.5 var(--mono); text-align: right; }
.example-cells { display: flex; border: 1px solid var(--grid); }
.example-cell { display: grid; place-items: center; width: 25px; height: 25px; border-right: 1px solid var(--grid); font: 20px/1 var(--sans); color: var(--muted); }
.example-cell:last-child { border-right: 0; }
.example-cell.is-filled, .example-cell.is-certain { box-shadow: inset 0 0 0 2px var(--paper); }
.example-cell.is-unknown { color: var(--muted); }
.tutorial-example figcaption { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.tutorial-callout { padding: 22px 24px; background: var(--paper); border-left: 2px solid var(--green); font-size: 13px; }
.tutorial-callout ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.tutorial-callout li { padding: 3px 0; }
.tutorial-controls { padding: 28px 0 0; }
.tutorial-controls dl { margin: 18px 0 0; }
.tutorial-controls dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tutorial-controls dt { font-weight: 600; }
.tutorial-controls dd { margin: 0; color: var(--muted); line-height: 1.85; }
kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 2px; font: 11px var(--mono); white-space: nowrap; }
.tier-finish { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 28px; }
.tier-finish p { margin: 0; font-size: 13px; }
.tutorial-content .tutorial-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; flex-shrink: 0; min-height: 44px; padding: 10px 18px; border: 1px solid var(--green); color: var(--paper); background: var(--green); text-decoration: none; font-size: 13px; }
.tutorial-cta:hover { opacity: .85; }
.tutorial-reminder { padding: 26px 28px; margin-top: 28px; background: var(--paper); border-left: 2px solid var(--accent); }
.tutorial-reminder ul { padding-left: 18px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.tutorial-reminder li { padding: 5px 0; line-height: 1.85; }
.tutorial-content .tutorial-reminder p { margin: 14px 0 0; font-size: 12px; }
.tutorial-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 24px 0 12px; font-size: 12px; }
@media (max-width: 800px) {
  .tutorial-intro h1 { font-size: 32px; }
  .tutorial-lesson { grid-template-columns: 1fr; gap: 20px; }
  .tutorial-example, .tutorial-callout { margin-left: 34px; }
  .tutorial-paths strong { font-size: 20px; }
  .tier-heading h2 { font-size: 24px; }
  .tier-note { display: none; }
}
@media (max-width: 520px) {
  .tutorial-content { padding-top: 12px; }
  .tutorial-intro h1 { font-size: 27px; }
  .tutorial-content .tutorial-lead { font-size: 14px; }
  .tutorial-paths { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .tutorial-paths a { padding: 18px; gap: 7px; }
  .tutorial-legend { gap: 12px 18px; }
  .tutorial-tier { padding-top: 24px; }
  .tier-heading h2 { font-size: 22px; }
  .tutorial-content .tier-intro { font-size: 13px; }
  .tutorial-example { margin-left: 0; padding: 22px 12px 16px; }
  .example-line { gap: 9px; }
  .example-clue { min-width: 42px; font-size: 12px; }
  .example-cell { width: 23px; height: 25px; }
  .tutorial-callout { margin-left: 0; }
  .tutorial-controls dl > div { grid-template-columns: 1fr; gap: 5px; }
  .tier-finish { align-items: start; flex-direction: column; gap: 16px; }
  .tutorial-reminder { padding: 22px 18px; }
}
@media (max-width: 359px) {
  .example-cell { width: 20px; height: 24px; }
  .example-line { gap: 6px; }
  .example-clue { min-width: 38px; }
}
