/* ── Guides ─────────────────────────────────────────────────────────────────
 * Long-form articles at /guides/. Built on .legal-doc (legal.css) for the
 * reading face and measure; this file adds only what an article has and a
 * contract does not: a byline, a short-answer box, tables, a closing CTA.
 * Square corners, per the editorial direction (tokens.css --radius: 0).
 */
.guide { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 5rem; }
.guide .ds-eyebrow { text-decoration: none; }

.guide__byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: -1.25rem 0 2.5rem;
}

.guide__draft {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  border: 1px solid var(--copper-border);
  background: var(--copper-tint);
  color: var(--text-primary);
  padding: 0.6rem 0.9rem;
  margin-bottom: 2rem;
}

/* The answer a searcher came for, before the detail. */
.guide__answer {
  border-left: 2px solid var(--copper);
  background: var(--bg-elevated);
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
}
.guide__answer > :last-child { margin-bottom: 0; }

.guide blockquote {
  border-left: 2px solid var(--border-subtle);
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
  font-style: italic;
}

/* Tables scroll inside their own box on a phone instead of widening the page. */
.guide__table { overflow-x: auto; margin: 0 0 1.5rem; }
.guide table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.guide th,
.guide td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.guide th { color: var(--text-primary); font-weight: 600; }
.guide td.num, .guide th.num { text-align: right; white-space: nowrap; }

.guide__cta {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 1.5rem;
  margin: 3rem 0 1.5rem;
}
.guide__cta h2 { margin-top: 0; }

.guide__disclaimer { font-size: 0.9rem; color: var(--text-secondary); }

.guide__sources { font-size: 0.9rem; }

.guide-list { list-style: none; padding-left: 0; }
.guide-list li { margin-bottom: 1.75rem; }
.guide-list a { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700; }
.guide-list__meta {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.4rem;
}

/* Long titles wrap to two or three lines; the body's 1.75 leading pulls them apart. */
.guide h1 { line-height: 1.15; }
.guide h2, .guide h3 { line-height: 1.3; }
.guide td, .guide th { line-height: 1.5; }

/* The CTA button sits inside .legal-doc, whose link rule (copper, underlined)
   would otherwise win over the button's own colours. Same solid treatment as
   the landing hero's CTAs (luxury.css), so it reads against the panel. */
.legal-doc .guide__cta a.ds-btn {
  text-decoration: none;
  color: #fff;
  background: rgba(13, 13, 13, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
}
[data-theme="light"] .legal-doc .guide__cta a.ds-btn {
  background: var(--text-primary);
  border-color: var(--text-primary);
}
