/* Guide pages: a template to copy on the left, how to fill it in on the right. Same Ledger look as the tool. */

.guide-hero { padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); }
.guide-hero h1 { margin-top: 12px; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 16ch; }
.guide-hero h1 i { font-family: var(--serif); font-weight: 400; color: var(--orange); letter-spacing: -0.01em; }
.guide-hero .lede { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-top: 28px; border-top: 2px solid var(--ink); }

.sheet { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(17, 17, 16, .3); overflow: hidden; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: var(--tint); }
.sheet-bar span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.sheet pre { margin: 0; padding: 20px 18px 24px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre; overflow-x: auto; tab-size: 4; }
.sheet pre b { color: var(--orange-ink); font-weight: 600; }

.prose-g h2 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; margin-top: 40px; }
.prose-g h2:first-child { margin-top: 0; }
.prose-g p, .prose-g li { color: #3a3935; margin-top: 10px; max-width: 60ch; }
.prose-g ul, .prose-g ol { padding-left: 20px; }
.prose-g li::marker { color: var(--orange-ink); }
.prose-g strong { color: var(--ink); font-weight: 600; }
.prose-g .num-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); max-width: 60ch; }
.prose-g .num-row span:last-child { font-family: var(--serif); font-style: italic; font-size: 18px; white-space: nowrap; }
.prose-g .num-row.sum { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }
.prose-g .num-row.sum span:last-child { font-size: 28px; line-height: 1; }
.prose-g .rows-wrap { margin-top: 14px; }

.guide-cta { margin: clamp(48px, 7vw, 96px) 0 24px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr auto; gap: 24px clamp(24px, 4vw, 64px); align-items: center; }
.guide-cta h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.guide-cta p { color: #cfcdc6; margin-top: 10px; max-width: 54ch; }
.guide-cta .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.guide-cta .btn:hover { background: var(--bg); border-color: var(--bg); }

.more { margin: 32px 0 64px; }
.more h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 500; }
.more ul { list-style: none; padding: 0; margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.more a { display: block; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; transition: color .15s; }
.more a:hover { color: var(--orange-ink); }
.more a span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); letter-spacing: 0; }

@media (max-width: 860px) {
  .guide-grid, .guide-cta { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .more ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sheet pre { font-size: 11.5px; padding: 16px 14px 20px; }
}
