/* (3.18) the tutorials (tutorial.html): the home page's Part A look (home.css) + the click-through stage */
.tut-main { max-width: 1180px; padding-bottom: 48px; }
.tut-head { padding: clamp(24px, 4vw, 44px) 0 14px; }
.tut-head h1 { color: var(--navy); font-size: clamp(28px, 4vw, 42px); margin: 6px 0 8px; }
.tut-head p { color: var(--muted); margin: 0; font-size: 17px; }
@media (prefers-color-scheme: dark) { .tut-head h1, .tut-card b { color: var(--ink); } }

/* the list of tutorials */
.tut-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 10px 0 30px; }
.tut-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card, #fff); border: 1px solid var(--line); border-top: 3px solid var(--brass, var(--gold)); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow318, none); }
.tut-card:hover { border-color: var(--brass, var(--gold)); }
.tut-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
.tut-card .tc-txt { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.tut-card b { font-size: 19px; color: var(--navy); font-family: var(--serif); }
.tut-card span { color: var(--muted); font-size: 14.5px; }
.tut-card .tc-go { margin-top: 8px; color: var(--gold-text); font-weight: 600; font-size: 14.5px; }

/* one tutorial: the screenshot with the ring and the note beside it */
.tut-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.tut-fig { position: relative; margin: 0; direction: ltr; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow318, none); overflow: hidden; background: #f7f5f0; }
.tut-fig img { display: block; width: 100%; height: auto; }
.tut-ring { position: absolute; border: 3px solid #d39b2a; border-radius: 10px; box-shadow: 0 0 0 4px rgba(211,155,42,.28), 0 0 0 9999px rgba(14,26,46,.18); pointer-events: none; animation: tutPulse 1.6s ease-in-out infinite; }
.tut-ring.look { border-style: dashed; }
.tut-tag { position: absolute; transform: translateX(-50%); white-space: nowrap; background: #172D50; color: #fff; font: 600 13px/1 var(--ui); padding: 7px 11px; border-radius: 999px; border-bottom: 2px solid #B18745; pointer-events: none; }
.tut-tag::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 7px solid transparent; }
.tut-tag.up::after { top: 100%; border-top-color: #172D50; }
.tut-tag.down::after { bottom: 100%; border-bottom-color: #172D50; }
@keyframes tutPulse { 50% { box-shadow: 0 0 0 9px rgba(211,155,42,.12), 0 0 0 9999px rgba(14,26,46,.18); } }
@media (prefers-reduced-motion: reduce) { .tut-ring { animation: none; } }
.tut-note { position: sticky; top: 84px; background: var(--card, #fff); border: 1px solid var(--line); border-top: 3px solid var(--brass, var(--gold)); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow318, none); }
.tut-note p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.tut-note b { color: var(--navy); }
@media (prefers-color-scheme: dark) { .tut-note b { color: var(--gold-text); } }
.tut-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tut-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--brass, var(--gold)); background: transparent; padding: 0; cursor: pointer; }
.tut-dots button.on { background: var(--brass, var(--gold)); }
.tut-dots button.seen { background: color-mix(in srgb, var(--brass, var(--gold)) 35%, transparent); }
.tut-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tut-btns .btn[disabled] { opacity: .45; cursor: default; }
.tut-btns .btn.ghost { background: transparent; color: var(--ink); }
.tut-keys { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.tut-more { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.tut-more a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; background: var(--card, #fff); }
.tut-more a:hover { border-color: var(--brass, var(--gold)); }
@media (max-width: 860px) {
  .tut-stage { grid-template-columns: 1fr; }
  .tut-note { position: static; }
  .tut-tag { font-size: 11px; padding: 5px 8px; }
  .top nav > a#homeLink { display: none; }
}
