/* Guides: reading pages that never touch bank data. Loaded after styles.css. See docs/Design Guide.md */
.guide { max-width: calc(68ch + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 96px; }
.guide [id] { scroll-margin-top: 96px; }

.crumbs { margin: 0 0 18px; font-size: 15px; }
.crumbs a { color: var(--engrave); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.guide h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; text-wrap: balance; }
.guide .lede { margin-top: 20px; }
.guide .meta { margin: 16px 0 0; font-size: 15px; color: var(--ink-3); }
.guide h2 {
  font-family: var(--display); font-weight: 600; font-optical-sizing: none; font-variation-settings: 'opsz' 11;
  font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.005em;
  margin: 56px 0 14px; text-wrap: balance;
}
.guide h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 32px 0 8px; }
.guide p, .guide li { color: var(--ink-2); }
.guide p { margin: 0 0 16px; }
.guide ul, .guide ol { margin: 0 0 18px; padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide b { color: var(--ink); }
.guide p a, .guide li a, .guide td a {
  color: var(--ink); text-decoration-color: var(--copper);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.guide p a:hover, .guide li a:hover, .guide td a:hover { color: var(--copper-dark); }

/* The short version: a slip of sheet paper, like the privacy page */
.short { margin: 36px 0 8px; padding: 4px 24px 16px; background: var(--sheet); border-radius: 6px; border-left: 3px solid var(--engrave); }
.short h2 { margin: 18px 0 8px; font-size: 22px; }
.short ul { margin: 0; }

/* Real steps, in order: engraved numbers on a thread */
.guide .steps { list-style: none; margin: 12px 0 24px; padding: 0; counter-reset: step; }
.steps li { position: relative; margin: 0; padding: 4px 0 20px 52px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1.5px solid var(--engrave); border-radius: 50%; background: var(--sheet); color: var(--engrave);
  font: 600 17px/1 var(--display); font-variation-settings: 'opsz' 11;
}
.steps li::after { content: ''; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1.5px; background: var(--rule); }
.steps li:last-child { padding-bottom: 4px; }
.steps li:last-child::after { display: none; }

/* Fee and money tables: a statement sheet */
.sheet-table {
  width: 100%; margin: 8px 0 28px; border-collapse: collapse;
  background: var(--sheet); border-radius: 6px; box-shadow: 0 24px 60px -40px rgba(26, 34, 48, .45);
  font-size: 16px;
}
.sheet-table caption { padding: 0 0 10px; text-align: left; font-size: 15px; color: var(--ink-3); }
.sheet-table th, .sheet-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.sheet-table thead th { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.sheet-table tbody th { font-weight: 600; color: var(--ink); }
.sheet-table tbody tr:last-child > * { border-bottom: 0; }
.sheet-table .num { text-align: right; }
.sheet-table td.num { white-space: nowrap; font-weight: 600; color: var(--ink); }
.sheet-table small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--ink-3); }

/* Worked examples: a receipt of round, made-up numbers */
.calc { margin: 8px 0 28px; padding: 6px 20px; background: var(--sheet); border-radius: 6px; }
.calc div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.calc div + div { border-top: 1px solid var(--rule); }
.calc div.total { border-top: 2px solid var(--ink); }
.calc dt { color: var(--ink-2); }
.calc dd { margin: 0; white-space: nowrap; color: var(--ink); font: 600 22px/1.2 var(--display); font-variation-settings: 'opsz' 11; }

.note { margin: 24px 0; padding: 16px 20px; border: 1px dashed var(--ink-3); border-radius: 6px; }
.note p:last-child { margin: 0; }

/* The calm call to action */
.guide-cta { margin: 64px 0 0; padding: 30px 26px; border-radius: 6px; background: var(--night); color: var(--on-night); }
.guide-cta h2 { margin: 0 0 10px; color: var(--on-night); }
.guide-cta p { margin: 0 0 22px; color: var(--on-night-2); max-width: 34em; }
.guide-cta :focus-visible { outline-color: var(--copper-light); }

.sources { margin-top: 56px; border-top: 1px solid var(--rule); font-size: 15px; }
.sources h2 { margin: 28px 0 8px; font-size: 22px; }
.sources p, .sources li { color: var(--ink-3); }

.more-guides h2 { margin: 40px 0 8px; font-size: 22px; }
.more-guides ul { padding-left: 20px; }

/* Guides index: a ledger, one guide per line */
.ledger-head { display: flex; justify-content: space-between; margin: 44px 0 0; padding: 0 0 10px; border-bottom: 2px solid var(--ink); font-size: 14px; color: var(--ink-3); }
.guide .ledger { list-style: none; margin: 0; padding: 0; }
.guide .ledger li { margin: 0; border-bottom: 1px solid var(--rule); }
.ledger a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 22px 0; text-decoration: none; }
.ledger b {
  font: 600 clamp(22px, 2.4vw, 28px)/1.15 var(--display); font-optical-sizing: none; font-variation-settings: 'opsz' 11;
  color: var(--ink); text-wrap: balance;
}
.ledger .what { grid-column: 1; color: var(--ink-2); }
.ledger .time { grid-column: 2; grid-row: 1; align-self: baseline; padding-top: 4px; white-space: nowrap; font-size: 15px; color: var(--ink-3); }
.ledger a:hover b { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
