/* ==========================================================================
   AMORA Studios - guides
   Loaded after ledger.css by guides.html and every guide page. Styles the
   short answer box, the long-form prose, the FAQ, related links, the
   glossary, and the guides hub. ledger.css still provides the masthead,
   hero, buttons, ink band, and footer.
   ========================================================================== */

.byline { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.byline a { color: var(--ink); display: inline-block; padding: 10px 0; margin: -10px 0; }

/* The direct answer, first thing under the heading. Search and answer
   engines quote this block, so it stays a single plain paragraph. */
.answer {
  margin-top: 28px; max-width: 66ch; padding: 18px 22px;
  background: var(--paper-warm); border-left: 3px solid var(--stamp); border-radius: 0 4px 4px 0;
}
.answer__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stamp); margin-bottom: 8px; }
.answer p:last-child { color: var(--ink); font-size: 17px; line-height: 1.6; }

/* ---- prose ---- */
.guide-body { max-width: 740px; padding: 60px 0 40px; }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.prose section:last-child { border-bottom: none; margin-bottom: 0; }
.prose .step { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; text-wrap: balance; margin-bottom: 16px; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 20px; margin: 22px 0 10px; }
.prose p { color: var(--faint); font-size: 16.5px; max-width: 64ch; margin-bottom: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--stamp); }
.prose ul, .prose ol { max-width: 64ch; margin: 4px 0 16px; display: grid; gap: 10px; }
.prose li { list-style: none; position: relative; padding-left: 26px; color: var(--faint); font-size: 16px; }
.prose ul > li::before { content: "✓"; position: absolute; left: 0; color: var(--stamp); font-weight: 600; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 34px; }
.prose ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; line-height: 19px; text-align: center; color: var(--ink);
}
.prose blockquote {
  max-width: 60ch; margin: 6px 0 18px; padding: 14px 18px; border: 1px dashed var(--rule-strong); border-radius: 4px;
  font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink); background: var(--paper);
}

/* ---- glossary ---- */
.glossary { max-width: 64ch; border-top: 1px solid var(--rule-strong); }
.glossary div { padding: 16px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.glossary dt { font-family: var(--display); font-weight: 500; font-size: 19px; margin-bottom: 4px; }
.glossary dd { color: var(--faint); font-size: 15.5px; }

/* ---- images (matches the approved imagery on the other pages) ---- */
.image-note { margin: 26px 0 0; min-width: 0; }
.image-note img { display: block; width: 100%; height: auto; }
.image-note figcaption { margin-top: 12px; font: 11px/1.6 var(--mono); letter-spacing: .05em; color: var(--sage); }
.guide-art { max-width: 360px; margin: 24px auto 28px; padding: 16px 28px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); background: var(--paper-warm); }
.guide-art figcaption { text-align: center; }

/* ---- FAQ ---- */
.guide-faq details { border-bottom: 1px solid var(--rule); max-width: 64ch; }
.guide-faq details:first-of-type { border-top: 1px solid var(--rule-strong); }
.guide-faq summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: 18px 2px; font-family: var(--display); font-weight: 500; font-size: 18.5px; color: var(--ink);
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--stamp); transition: rotate 0.2s; }
.guide-faq details[open] summary::after { rotate: 45deg; }
.guide-faq details p { padding: 0 2px 6px; }

/* ---- related guides ---- */
.related { max-width: 740px; padding: 10px 0 80px; }
.related .ledger__head a { font-family: var(--mono); font-size: 12px; color: var(--stamp); display: inline-block; padding: 12px 0; margin: -12px 0; }
.related ul { list-style: none; }
.related li { border-bottom: 1px solid var(--rule); }
.related li:last-child { border-bottom: none; }
.related li a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; color: var(--ink); text-decoration: none; font-size: 15.5px; transition: background 0.15s; }
.related li a::after { content: "→"; color: var(--stamp); font-family: var(--mono); }
.related li a:hover { background: rgba(169, 123, 37, 0.06); }

/* ---- guides hub: a ruled index, not cards ---- */
.hub { padding: 56px 0 90px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; align-items: start; }
@media (max-width: 820px) { .hub { grid-template-columns: 1fr; gap: 40px; } }
.hub__group h2 {
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stamp); padding-bottom: 10px; border-bottom: 1.5px solid var(--ink);
}
.hub__list { list-style: none; }
.hub__list li { border-bottom: 1px solid var(--rule); }
.hub__list a {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 13px 2px;
  text-decoration: none; color: var(--ink);
}
.hub__icon { grid-row: span 2; color: var(--sage); padding-top: 3px; }
.hub__icon svg { width: 18px; height: 18px; display: block; }
.hub__title { font-family: var(--display); font-weight: 500; font-size: 17.5px; line-height: 1.3; transition: color 0.15s; }
.hub__desc { color: var(--faint); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.hub__list a:hover .hub__title { color: var(--stamp); }
.hub__list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
