/* Guides: article reading layout and index cards. Uses tokens from styles.css. */

.breadcrumb { margin-bottom: 2rem; font-size: .875rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #5a5e57; }
.breadcrumb a { color: var(--muted); text-underline-offset: .2em; }
.breadcrumb a:hover { color: var(--ivory); }
.breadcrumb [aria-current] { color: var(--ivory); }

/* Article */
.guide { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--space-section); }
.guide__container { max-width: 48rem; }
.guide__head { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.guide__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
.guide__lead { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.55; color: var(--ivory); }
.guide__meta { margin-top: 1.25rem; color: var(--muted); font-size: .6875rem; }

.guide__body { display: grid; gap: 1.25rem; line-height: 1.7; }
.guide__body > * { min-width: 0; }
.guide__body h2 { margin-top: 1.5rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
.guide__body h3 { margin-top: .5rem; font-size: 1.2rem; line-height: 1.3; }
.guide__body p, .guide__body li { color: #dcd8cf; }
.guide__body a { color: var(--lime); text-underline-offset: .2em; }
.guide__body ul, .guide__body ol { display: grid; gap: .5rem; padding-left: 1.25rem; }
.guide__body ul { list-style: disc; }
.guide__body ol { list-style: decimal; }
.guide__body li::marker { color: var(--lime); }
.guide__body strong { color: var(--ivory); }

/* Direct answer box at the top of a guide */
.answer { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: var(--radius); background: var(--raised); }
.answer p { color: var(--ivory); }
.answer strong { white-space: nowrap; } /* keeps price ranges like "$129–$239" on one line */
.answer__label { display: block; margin-bottom: .4rem; color: var(--lime); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Tables scroll inside their own box on small screens */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.guide-table th, .guide-table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--raised); font-family: var(--font-display); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table tbody th { font-weight: 500; color: var(--muted); }

.note { color: var(--muted); font-size: .875rem; }

.guide__body .faq__list summary { font-size: 1.0625rem; }

.guide-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--lime); border-radius: var(--radius-lg); background: #1e211c;
}
.guide-cta__text { flex: 1 1 18rem; font: 600 1.125rem/1.4 var(--font-display); }

/* Index */
.guides .breadcrumb { margin-bottom: 2.5rem; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-card {
  display: grid; gap: .65rem; height: 100%; padding: 1.75rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.guide-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.guide-card__eyebrow { color: var(--lime); }
.guide-card__title { font: 700 1.375rem/1.2 var(--font-display); text-wrap: balance; }
.guide-card__desc { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.guide-card__meta { align-self: end; color: var(--muted); font-size: .625rem; }

@media (max-width: 760px) {
  .guide-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
}
