/* How to Draw Scout — lesson styles, layered on site.css + latin.css */
.hd * { box-sizing: border-box; }
.hd { overflow-x: hidden; }

.hd-card {
  display: flex;
  gap: .9rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, #fff, var(--pw, #F6EAF9));
  border: 1.5px solid var(--purple-light, #D4A8E0);
  border-radius: 18px;
  padding: .85rem 1rem;
  box-shadow: var(--shadow-soft, 0 8px 24px -16px rgba(19,47,18,.28));
}
.hd-card img { width: 88px; height: 88px; flex-shrink: 0; }
.hd-card .n { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--p, #8922AA); }
.hd-card strong { display: block; font: 700 1.2rem var(--serif-display); color: var(--g3, #255D25); margin: .1rem 0; }
.hd-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.hd-card:hover { border-color: var(--p, #8922AA); }

/* Stage */
.hd-stage-wrap {
  background: #fff;
  border: 1px solid #E6EDE4;
  border-radius: 22px;
  padding: .8rem .8rem 1rem;
  box-shadow: var(--shadow-soft);
  margin: .8rem 0 1.2rem;
}
.hd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin: 0 0 .6rem;
}
.hd-pill {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  border: 1.5px solid #E6EDE4;
  background: #fff;
  font: 700 .95rem var(--sans);
  color: var(--g3, #255D25);
  cursor: pointer;
}
.hd-pill:hover, .hd-pill:focus-visible { border-color: var(--p, #8922AA); outline: none; }
.hd-pill[aria-current="step"] { background: var(--p, #8922AA); color: #fff; border-color: var(--p, #8922AA); }

.hd-stage-frame {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}
.hd-stage {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #F6EAF9 0%, #fff 42%, #EFFAE5 100%);
  border-radius: 20px;
  border: 1px solid #E6EDE4;
  overflow: hidden;
}
.hd-stage svg { width: 100%; height: 100%; display: block; }
.hd-stage path.is-old { stroke: #C5CDC4; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.hd-stage path.is-new { stroke: #8922AA; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.hd-stage path.is-fill { /* color step fills set in JS */ }
.hd-badge {
  position: absolute; left: .7rem; top: .7rem;
  background: #8922AA; color: #fff;
  font: 700 .78rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
}

.hd-caption {
  text-align: center;
  margin: .8rem auto .3rem;
  max-width: 36rem;
}
.hd-caption .step-title {
  font: 700 1.25rem var(--serif-display);
  color: var(--g3, #255D25);
  margin: 0 0 .25rem;
}
.hd-caption p { margin: 0; color: var(--ink-soft); line-height: 1.5; font-size: 1.05rem; }

.hd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  margin: .85rem 0 .4rem;
}
.hd-controls .btn { min-height: 44px; min-width: 44px; }
.hd-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  justify-content: center;
  align-items: center;
  margin: .4rem 0 0;
}
.hd-speed { display: inline-flex; border: 1.5px solid #E6EDE4; border-radius: 999px; overflow: hidden; }
.hd-speed button {
  min-height: 44px; padding: .4rem .85rem;
  border: 0; background: #fff; color: var(--g3, #255D25);
  font: 600 .88rem var(--sans); cursor: pointer;
}
.hd-speed button + button { border-left: 1px solid #E6EDE4; }
.hd-speed button[aria-pressed="true"] { background: var(--g3, #255D25); color: #fff; }
.hd-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; cursor: pointer; font: 600 .92rem var(--sans); color: var(--g3, #255D25);
}
.hd-toggle input { width: 20px; height: 20px; accent-color: #8922AA; }

/* Tips + colors + gallery */
.hd-tips { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 640px) { .hd-tips { grid-template-columns: 1fr 1fr; } }
.hd-tip {
  background: #fff; border: 1px solid #E6EDE4; border-left: 5px solid var(--p, #8922AA);
  border-radius: 14px; padding: .75rem .9rem;
}
.hd-tip.green { border-left-color: var(--g1, #388C37); }
.hd-tip b { display: block; color: var(--g3, #255D25); font-family: var(--serif-display); margin-bottom: .15rem; }
.hd-tip p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

.hd-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .55rem; }
.hd-swatch {
  display: grid; grid-template-columns: 44px 1fr; gap: .65rem; align-items: center;
  background: #fff; border: 1px solid #E6EDE4; border-radius: 14px; padding: .55rem .7rem;
}
.hd-chip {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(27,42,28,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.hd-swatch b { display: block; color: var(--g3, #255D25); font-size: .95rem; }
.hd-swatch small { color: var(--ink-faint); font-size: .82rem; }
.hd-hex { font: 600 .78rem ui-monospace, monospace; color: var(--pd, #502161); }

.hd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: .6rem;
}
.hd-shot {
  margin: 0; background: #fff; border: 1px solid #E6EDE4; border-radius: 16px;
  padding: .45rem; text-align: center; cursor: pointer; width: 100%;
  font: inherit; color: inherit;
}
.hd-shot img, .hd-shot svg { width: 100%; height: auto; display: block; }
.hd-shot figcaption, .hd-shot .cap { display: block; font-size: .82rem; color: var(--g3, #255D25); margin-top: .25rem; font-weight: 600; }
.hd-shot:hover, .hd-shot:focus-visible { border-color: var(--p, #8922AA); outline: none; }

.hd-print-cards { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 720px) { .hd-print-cards { grid-template-columns: 1fr 1fr; } }
.hd-print-card {
  background: #fff; border: 1px solid #E6EDE4; border-radius: 18px; padding: .9rem;
}
.hd-print-card h3 { margin: 0 0 .35rem; }
.hd-print-card p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.hd-thumb { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto .6rem; border: 1px solid #E6EDE4; border-radius: 12px; background: #fff; }

/* Print sheets: hidden on screen, one Letter page each */
.sheet { display: none; }
.sheet-steps, .sheet-coloring { height: 10.16in; flex-direction: column; }
.sheet-head, .sheet-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9pt; color: #5C6B60; flex-shrink: 0;
}
.sheet-head { border-bottom: 2.5px solid #388C37; padding-bottom: 6px; margin-bottom: 8px; }
.sheet-head .brand { display: flex; align-items: center; gap: 8px; }
.sheet-head img { height: 28px; width: auto; }
.sheet-head h1 { font: 700 16pt var(--serif-display, Georgia, serif); color: #255D25; margin: 0; }
.sheet-head .tag { color: #8922AA; font-weight: 700; font-style: italic; }
.sheet-foot { border-top: 1.5px solid #388C37; padding-top: 5px; margin-top: 8px; color: #5C6B60; font-size: 8.5pt; }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.sheet-cell {
  border: 1px solid #D3DCD0; border-radius: 8px; padding: 5px 6px 4px;
  display: flex; flex-direction: column; min-height: 0;
}
.sheet-cell .n { font: 700 8pt var(--sans, sans-serif); color: #8922AA; letter-spacing: .06em; text-transform: uppercase; }
.sheet-cell img, .sheet-cell svg { width: 100%; flex: 1; height: 0; min-height: 0; object-fit: contain; }
.sheet-cell p { margin: 3px 0 0; font-size: 8pt; line-height: 1.25; color: #27211E; flex-shrink: 0; }
.sheet-cell.practice { grid-column: span 2; }
.sheet-practice {
  flex: 1; border: 1.5px dashed #B7C4B4; border-radius: 8px; margin-top: 4px;
  min-height: 0;
}
.sheet-coloring .color-scout { width: 6.8in; height: 6.8in; flex: 1 1 auto; max-height: 7.3in; max-width: 7.3in; display: block; margin: .15in auto; object-fit: contain; }
.sheet-key { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin: 8px 0 0; flex-shrink: 0; }
.sheet-key .sw { display: flex; align-items: center; gap: 6px; font-size: 8.5pt; color: #27211E; }
.sheet-key i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(27,42,28,.2); display: inline-block; }

@page { size: Letter; margin: .42in; }
@media print {
  html, body { background: #fff !important; }
  body.has-dock { padding-bottom: 0 !important; }
  .site-header, .site-footer, .site-dock, .sl-noprint, .skip, #pwa-tip { display: none !important; }
  .sl-main, .sl-hero, .hd-stage-wrap, .hd-tips, .hd-swatches, .hd-gallery, .hd-print-cards, .hd-card { display: none !important; }
  main { padding: 0 !important; }
  .sheet { display: none; }
  body[data-print="steps"] .sheet-steps { display: flex !important; flex-direction: column !important; }
  body[data-print="coloring"] .sheet-coloring { display: flex !important; flex-direction: column !important; }
  body[data-print="steps"] .sl-hero,
  body[data-print="coloring"] .sl-hero,
  body[data-print="steps"] .sl-main,
  body[data-print="coloring"] .sl-main { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-stage path { transition: none !important; animation: none !important; }
}

.ms-print-head { display: none; }
