/* draw.how — house styles.
 *
 * Loaded after Bootstrap and after styles.css. Deliberately small: the lesson
 * page has a ten-second-to-interactive budget on throttled mobile
 * (docs/UX-AND-RETENTION.md S9 invariant 1) and CSS is on the critical path.
 */

:root {
  --dh-ink: #1b1b1f;
  --dh-paper: #fbfaf7;
  --dh-line: #e4e0d8;
  --dh-accent: #e8552b;
  --dh-accent-dark: #c8431f;
  --dh-muted: #6b6862;
  --dh-radius: 14px;
}

body {
  background: var(--dh-paper);
  color: var(--dh-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1080;
  background: var(--dh-ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

/* --- nav / brand ------------------------------------------------------- */

.dh-nav {
  background: var(--dh-paper);
  border-bottom: 1px solid var(--dh-line);
}

.dh-brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--dh-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dh-brand:hover { color: var(--dh-ink); }
.dh-brand-mark { transform: rotate(-12deg); font-size: 1.2em; }
.dh-brand-dot { color: var(--dh-accent); }

.dh-nav .nav-link {
  color: var(--dh-muted);
  font-weight: 500;
}
.dh-nav .nav-link:hover,
.dh-nav .nav-link.active { color: var(--dh-ink); }

.btn-dh {
  background: var(--dh-accent);
  border: 1px solid var(--dh-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
}
.btn-dh:hover, .btn-dh:focus {
  background: var(--dh-accent-dark);
  border-color: var(--dh-accent-dark);
  color: #fff;
}

/* Visible focus everywhere — docs/TEMPLATE-STANDARD.md 6.2. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, label.btn:focus-visible {
  outline: 3px solid var(--dh-accent);
  outline-offset: 2px;
}

/* --- lesson page ------------------------------------------------------- */

.dh-lesson-wrap { padding: 0 0 3rem; }

.dh-breadcrumb { padding: 0.9rem 0 0.2rem; }
.dh-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--dh-muted);
}
.dh-breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
/* Breadcrumb links are small text, so give them a real tap area on touch
   without changing how they look. */
.dh-breadcrumb a {
  color: var(--dh-muted);
  text-decoration: none;
  display: inline-block;
  min-height: 40px;
  line-height: 40px;
  padding: 0 0.15rem;
}
.dh-breadcrumb ol { align-items: center; }
.dh-breadcrumb a:hover { color: var(--dh-ink); text-decoration: underline; }

.dh-lesson-h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.5rem;
}

.dh-lesson-meta { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dh-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--dh-line);
  color: var(--dh-muted);
}
.dh-chip-free { border-color: var(--dh-accent); color: var(--dh-accent); }

/* --- the studio (canvas + steps) --------------------------------------- */

.dh-studio { padding: 0 0 1.5rem; }

.dh-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .dh-studio-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.dh-canvas-shell {
  position: relative;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dh-canvas {
  display: block;
  width: 100%;
  /* Square, and never taller than the viewport, so the canvas is reachable
     without scrolling on a phone. */
  height: min(72vh, 620px);
  touch-action: none;
  cursor: crosshair;
  background: #fff;
}

.dh-nudge { animation: dh-nudge 0.6s ease; }
@keyframes dh-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.dh-noscript {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: #fff;
  color: var(--dh-muted);
}

.dh-tools {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.dh-tool {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--dh-line);
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.dh-tool.is-active { border-color: var(--dh-ink); background: var(--dh-ink); color: #fff; }
.dh-tool.is-off { opacity: 0.45; }
.dh-tool-danger:hover { border-color: #b00020; color: #b00020; }

.dh-step-col {
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  padding: 1.1rem;
}

.dh-step-count { font-size: 0.8rem; color: var(--dh-muted); margin: 0 0 0.3rem; font-weight: 600; }
.dh-step-instruction { font-size: 1.12rem; line-height: 1.45; margin: 0 0 1rem; }

.dh-step-nav { display: flex; gap: 0.5rem; }
.dh-step-nav .btn { flex: 1; border-radius: 999px; font-weight: 600; }

/* The no-gate escape hatch. Always visible, never styled as failure. */
.dh-bailout {
  display: block;
  width: 100%;
  min-height: 44px;      /* real tap target - it is the no-gate escape hatch */
  margin-top: 0.7rem;
  background: none;
  border: 0;
  color: var(--dh-muted);
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.6rem 0.4rem;
}
.dh-bailout:hover { color: var(--dh-ink); }

.dh-paper-path {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--dh-line);
}
.dh-paper-lead { font-weight: 700; font-size: 0.92rem; margin: 0 0 0.5rem; }
.dh-paper-note { font-size: 0.78rem; color: var(--dh-muted); margin: 0.5rem 0 0; }

/* --- lesson body ------------------------------------------------------- */

.dh-lesson-body { max-width: 760px; }
.dh-lesson-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
  letter-spacing: -0.01em;
}
.dh-prose p { line-height: 1.65; }

.dh-step-list { list-style: none; padding: 0; margin: 0; }
.dh-step-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dh-line);
  align-items: start;
}
@media (min-width: 700px) { .dh-step-item { grid-template-columns: 180px minmax(0, 1fr); } }

.dh-step-figure img, .dh-step-svg {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: 10px;
}
.dh-step-n { font-size: 0.78rem; font-weight: 700; color: var(--dh-accent); margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dh-step-text p:last-child { margin: 0; line-height: 1.6; }

.dh-skill-links { margin-top: 0.8rem; }
.dh-skill-chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  margin: 0.15rem 0.2rem 0.15rem 0;
  text-decoration: none;
  color: var(--dh-muted);
}

.dh-faq dt { font-weight: 700; margin-top: 1rem; }
.dh-faq dd { margin: 0.3rem 0 0; color: var(--dh-muted); line-height: 1.6; }

.dh-related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
}
.dh-related-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--dh-ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.dh-related-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: 10px;
}
.dh-related-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: 10px;
  font-size: 1.6rem;
}
.dh-related-name { display: block; margin-top: 0.35rem; }

/* --- home -------------------------------------------------------------- */

.dh-hero { padding: 3rem 0 2rem; text-align: center; }
.dh-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}
.dh-hero p.lead { color: var(--dh-muted); max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.1rem; }

.dh-subject-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.9rem;
}
.dh-subject-grid a {
  display: block;
  padding: 1.1rem 0.8rem;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  text-align: center;
  text-decoration: none;
  color: var(--dh-ink);
  font-weight: 600;
}
.dh-subject-grid a:hover { border-color: var(--dh-accent); }

/* --- homepage hero: copy on the left, a REAL canvas on the right -------- */

.dh-home-hero {
  padding: 1.1rem 0 2.4rem;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(232, 85, 43, 0.10), transparent 60%),
    radial-gradient(760px 380px at 92% 8%, rgba(58, 122, 214, 0.10), transparent 62%);
  /* Faint ruled paper, so the whole page reads as a sketchbook. */
  background-color: var(--dh-paper);
  position: relative;
  overflow: hidden;
}
.dh-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 27, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 31, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.dh-home-hero > .container { position: relative; }

/* Mobile DOM order is head -> canvas -> rest, so the canvas lands directly
   under the headline and stays above the fold on a 667px iPhone SE. Desktop
   reassembles it into two columns with grid areas - no `order`, so tab order
   always matches visual order. */
.dh-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "canvas" "rest";
  gap: 1rem;
  align-items: start;
}
.dh-home-head { grid-area: head; }
.dh-home-canvas-col { grid-area: canvas; }
.dh-home-rest { grid-area: rest; margin-top: 0.4rem; }

@media (min-width: 950px) {
  .dh-home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head   canvas"
      "rest   canvas";
    grid-template-rows: auto 1fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: center;
  }
  .dh-home-canvas-col { align-self: center; }
  .dh-home-rest { margin-top: 1.2rem; }
}

.dh-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dh-accent);
  background: rgba(232, 85, 43, 0.10);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  margin-bottom: 0.6rem;
}

/* Sized so the headline never eats the fold on a small phone: at 375px this
   resolves to ~2.06rem, leaving room for the canvas underneath. */
.dh-home-h1 {
  font-size: clamp(1.95rem, 5.6vw, 4.1rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

/* Short line that carries the promise on mobile, where the longer lead copy
   now sits below the canvas. Hidden on desktop, where the lead is adjacent. */
.dh-home-sub {
  font-size: 1rem;
  color: var(--dh-muted);
  margin: 0 0 0.85rem;
  max-width: 30rem;
}
@media (min-width: 950px) { .dh-home-sub { display: none; } }

@media (min-width: 950px) {
  .dh-eyebrow { font-size: 0.76rem; padding: 0.32rem 0.8rem; margin-bottom: 1rem; }
  .dh-home-h1 { margin-bottom: 1rem; }
}
.dh-home-h1-accent {
  display: block;
  color: var(--dh-accent);
  /* Hand-drawn underline, because a drawing site should look drawn. */
  position: relative;
}
.dh-home-h1-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: -0.12em;
  height: 0.09em;
  background: var(--dh-accent);
  border-radius: 999px;
  transform: rotate(-0.6deg);
  opacity: 0.35;
}

.dh-home-lead {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--dh-muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.dh-home-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }
.dh-home-cta .btn-lg { padding: 0.7rem 1.6rem; font-size: 1.02rem; }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--dh-line);
  color: var(--dh-ink);
  font-weight: 600;
  border-radius: 999px;
}
.btn-ghost:hover { border-color: var(--dh-ink); color: var(--dh-ink); }

.dh-home-points { list-style: none; padding: 0; margin: 0; }
.dh-home-points li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--dh-muted);
  font-size: 0.95rem;
  padding: 0.22rem 0;
}
.dh-tick { color: var(--dh-accent); font-weight: 800; }

/* the canvas card */

.dh-home-canvas-frame {
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(27, 27, 31, 0.45);
  overflow: hidden;
  /* No tilt on phones: a rotated frame at full container width visually clips
     its own corners against the viewport edge. The charm is only affordable
     where there is margin to absorb it. */
}
@media (min-width: 950px) { .dh-home-canvas-frame { transform: rotate(0.7deg); } }

.dh-home-canvas-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--dh-line);
  background: #fbfaf8;
}
.dh-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dh-dot-a { background: #f0685a; }
.dh-dot-b { background: #f4c04e; }
.dh-dot-c { background: #62c07b; }
.dh-home-canvas-label {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dh-muted);
}

.dh-canvas-shell-home { border: 0; border-radius: 0; box-shadow: none; }
/* Tall enough to draw in, short enough that the frame's footer controls also
   fit above the fold on a 667px phone. */
.dh-canvas-home { height: min(38vh, 300px); }
@media (min-width: 950px) { .dh-canvas-home { height: min(52vh, 400px); } }

.dh-canvas-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dh-muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed var(--dh-line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  pointer-events: none;
  animation: dh-bob 2.4s ease-in-out infinite;
}
.dh-canvas-hint.is-gone { display: none; }
@keyframes dh-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50%      { transform: translateX(-50%) translateY(-4px); opacity: 1; }
}

.dh-home-canvas-foot { padding: 0.85rem; border-top: 1px solid var(--dh-line); }
.dh-home-step { font-size: 0.98rem; margin: 0 0 0.7rem; }
.dh-home-tools {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.dh-home-tools .dh-tools { margin-top: 0; }
/* 44px on touch: these are the primary controls of the hero and were the last
   sub-40px targets on every phone profile. Desktop can afford to be compact. */
.dh-home-tools .dh-tool { width: 44px; height: 44px; font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) {
  .dh-home-tools .dh-tool { width: 38px; height: 38px; font-size: 0.98rem; }
}
.dh-home-next { border-radius: 999px; min-height: 44px; }
.dh-home-caption { margin: 0.5rem 0 0; font-size: 0.85rem; }
.dh-home-caption a {
  color: var(--dh-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.dh-home-caption a:hover { text-decoration: underline; }

/* --- showcase: real drawings that draw themselves ---------------------- */

.dh-showcase { padding: 3.2rem 0 1rem; }

.dh-section-h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.4rem;
}
.dh-section-sub { color: var(--dh-muted); margin-bottom: 1.6rem; max-width: 42rem; }

.dh-showcase-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.dh-showcase-card a {
  display: block;
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  text-decoration: none;
  color: var(--dh-ink);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.dh-showcase-card a:hover {
  transform: translateY(-3px);
  border-color: var(--dh-accent);
  box-shadow: 0 14px 26px -18px rgba(27, 27, 31, 0.5);
}

.dh-showcase-art {
  display: block;
  padding: 0.6rem;
  color: var(--dh-ink);
  background:
    linear-gradient(180deg, #fff 0%, #fdfcfa 100%);
}
.dh-showcase-art svg { display: block; width: 100%; height: auto; }

/* The drawing is VISIBLE by default. The draw-on animation is a pure
   enhancement, armed only once home.js has added .dh-anim to <html> — so a
   JS failure, a blocked script or an IntersectionObserver that never fires
   leaves the artwork on screen rather than hiding it forever. Getting this
   backwards is the classic scroll-reveal bug where content is invisible to
   anyone the observer misses.

   pathLength="1" normalises every path, so one dash rule animates them all
   regardless of their real length. */
.dh-anim .dh-draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.dh-anim .dh-showcase-card.is-drawn .dh-draw-path {
  animation: dh-draw-on 0.65s ease forwards;
  animation-delay: calc(var(--p, 0) * 0.075s + var(--dh-delay, 0) * 0.05s);
}
@keyframes dh-draw-on { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dh-anim .dh-draw-path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .dh-anim .dh-showcase-card.is-drawn .dh-draw-path { animation: none; }
  .dh-canvas-hint { animation: none; }
  .dh-showcase-card a:hover { transform: none; }
}

.dh-showcase-meta {
  display: block;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid var(--dh-line);
}
.dh-showcase-name { display: block; font-weight: 700; font-size: 0.98rem; }
.dh-showcase-sub { display: block; font-size: 0.78rem; color: var(--dh-muted); margin-top: 0.12rem; }
.dh-showcase-more { margin-top: 1.4rem; }

/* --- how it goes -------------------------------------------------------- */

.dh-how { padding: 3rem 0 1rem; }
.dh-how-grid {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  counter-reset: dh-how;
}
.dh-how-grid li {
  background: #fff;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  padding: 1.2rem 1.1rem;
}
.dh-how-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dh-accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.dh-how-grid h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.35rem; }
.dh-how-grid p { margin: 0; color: var(--dh-muted); font-size: 0.92rem; line-height: 1.55; }

/* --- why ---------------------------------------------------------------- */

.dh-why { padding: 3rem 0 3.5rem; }
.dh-why-inner { max-width: 720px; }
.dh-promise {
  border-left: 3px solid var(--dh-accent);
  padding-left: 1rem;
  color: var(--dh-ink);
  font-weight: 500;
}

/* --- progress / critique ----------------------------------------------- */

.dh-score-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.dh-score-name { flex: 0 0 150px; font-size: 0.9rem; font-weight: 600; }
.dh-score-bar { flex: 1; height: 10px; background: var(--dh-line); border-radius: 999px; overflow: hidden; }
.dh-score-fill { height: 100%; background: var(--dh-accent); }
.dh-score-val { flex: 0 0 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; }

.dh-onething {
  background: #fff;
  border: 2px solid var(--dh-accent);
  border-radius: var(--dh-radius);
  padding: 1.3rem;
  margin: 1.5rem 0;
}
.dh-onething h2 { margin-top: 0; font-size: 1.15rem; }

.dh-streak { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }

/* --- practice ---------------------------------------------------------- */

.dh-timer {
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.dh-ref-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--dh-radius);
  border: 1px solid var(--dh-line);
}

/* --- footer ------------------------------------------------------------ */

.dh-footer {
  background: #fff;
  border-top: 1px solid var(--dh-line);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}
.dh-foot-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dh-muted); font-weight: 700; }
.dh-foot-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.dh-foot-list a { color: var(--dh-ink); text-decoration: none; font-size: 0.92rem; line-height: 1.9; }
.dh-foot-list a:hover { text-decoration: underline; }
.dh-foot-note { margin-top: 2rem; font-size: 0.85rem; color: var(--dh-muted); max-width: 46rem; }
.dh-foot-copy { font-size: 0.85rem; color: var(--dh-muted); margin: 0.4rem 0 0; }

.dh-empty { color: var(--dh-muted); font-size: 0.9rem; }

@media print {
  .dh-nav, .dh-footer, .dh-studio, .dh-tools, .dh-paper-path, .dh-related { display: none !important; }
  .dh-step-item { break-inside: avoid; }
}
