/* How-to / guide — numbered steps, sticky TOC, materials box, FAQ accordion. */

.ht-head { padding: clamp(40px, 5vw, 80px) 0 clamp(24px, 2.4vw, 36px); }
.ht-head .container {
  max-width: 920px; margin: 0 auto;
}
.ht-head .tag {
  display: inline-block; padding: 6px 14px; background: var(--pink); color: #fff;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px;
}
.ht-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 84px); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 22px; text-wrap: balance; max-width: 22ch;
}
.ht-head h1 em { font-style: italic; color: var(--green-700); }
.ht-head .dek {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.4; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px;
}

.ht-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0;
  padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.ht-stats .stat {
  padding: 0 clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--rule);
}
.ht-stats .stat:last-child { border-right: 0; }
.ht-stats .stat:first-child { padding-left: 0; }
.ht-stats .lbl {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 6px;
}
.ht-stats .val {
  font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1;
  color: var(--ink);
}

/* Hero image */
.ht-hero { padding: clamp(24px, 3vw, 48px) 0; }
.ht-hero .frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--stone); }
.ht-hero .frame img { width: 100%; height: 100%; object-fit: cover; }

/* Body with sticky TOC */
.ht-body {
  max-width: 1280px; margin: 0 auto; padding: clamp(32px, 4vw, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 3.5vw, 64px);
  align-items: start;
}
.ht-toc {
  position: sticky; top: 100px;
  padding: 20px 0; border-top: 1px solid var(--ink);
}
.ht-toc h3 {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 500;
}
.ht-toc ol { list-style: none; counter-reset: ht; padding: 0; margin: 0; }
.ht-toc li {
  counter-increment: ht;
  padding: 8px 0; border-bottom: 1px dashed var(--rule);
  font-size: 13px; line-height: 1.4;
}
.ht-toc li:last-child { border-bottom: 0; }
.ht-toc li::before {
  content: counter(ht, decimal-leading-zero) " ·";
  color: var(--green-700); font-family: var(--serif); font-style: italic;
  margin-right: 10px;
}
.ht-toc a { color: var(--ink-2); transition: color .2s; display: inline; }
.ht-toc a:hover, .ht-toc a.active { color: var(--green-700); }

.ht-materials {
  background: var(--cream-2); border-left: 3px solid var(--green-700);
  padding: 24px; margin-bottom: 32px;
}
.ht-materials h3 {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-700); font-weight: 500; margin: 0 0 14px;
}
.ht-materials ul { list-style: none; padding: 0; margin: 0; }
.ht-materials li {
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
  font-size: 16px; line-height: 1.4;
  display: flex; gap: 12px;
}
.ht-materials li:last-child { border-bottom: 0; }
.ht-materials li::before { content: "—"; color: var(--green-700); flex: none; font-family: var(--serif); }

.ht-steps { counter-reset: st; }
.ht-step {
  counter-increment: st;
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  padding: clamp(28px, 3vw, 48px) 0;
  border-top: 1px solid var(--rule);
}
.ht-step:first-child { border-top: 0; padding-top: 0; }
.ht-step-num::before {
  content: counter(st, decimal-leading-zero);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(40px, 3.5vw, 56px); line-height: 1;
  color: var(--green-700);
}
.ht-step h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2vw, 32px); line-height: 1.12;
  margin: 0 0 16px; letter-spacing: -.015em;
}
.ht-step h2::before { display: none; }
.ht-step p {
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--ink); margin: 0 0 .8em;
}
.ht-step .fig { margin: 18px 0; }
.ht-step .fig .frame { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--stone); }
.ht-step .fig .frame img { width: 100%; height: 100%; object-fit: cover; }
.ht-step .fig figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted); font-family: var(--sans);
}

/* FAQ */
.ht-faq {
  max-width: 920px; margin: 0 auto;
  padding: clamp(48px, 5vw, 88px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.ht-faq h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px); margin: 0 0 28px; letter-spacing: -.015em;
}
.ht-faq h2 em { font-style: italic; color: var(--green-700); }
.ht-faq details {
  border-top: 1px solid var(--rule); padding: 18px 0;
}
.ht-faq details:last-child { border-bottom: 1px solid var(--rule); }
.ht-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 22px; line-height: 1.3;
  color: var(--ink);
}
.ht-faq summary::-webkit-details-marker { display: none; }
.ht-faq summary::after {
  content: "+"; font-size: 24px; color: var(--green-700); transition: transform .2s;
}
.ht-faq details[open] summary::after { transform: rotate(45deg); }
.ht-faq details p {
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  margin: 12px 0 0; color: var(--ink-2);
}

.ht-closer {
  padding: clamp(48px, 5vw, 80px) 0; background: var(--cream-2);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.ht-closer p {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3; color: var(--ink); max-width: 40ch; margin: 0 auto 24px;
}

@media (max-width: 960px) {
  .ht-body { grid-template-columns: 1fr; }
  .ht-toc { position: relative; top: 0; }
  .ht-step { grid-template-columns: 1fr; gap: 8px; }
  .ht-stats { grid-template-columns: 1fr 1fr; }
  .ht-stats .stat { border-right: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .ht-stats .stat:last-child { border-bottom: 0; }
}
