/* ---- GUIDE PAGES ---- */

/* Quick facts box */
.quick-facts {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.quick-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hanging indent, NOT flex. These rows carry inline links and multiple text
   runs, and in a flex container every one of those becomes its own flex item —
   the label, the prose, the <a>, and the trailing ")." each got a column, so a
   sourced row wrapped into a narrow ragged mess. Block + negative text-indent
   keeps the label in its own gutter while the value stays one continuous
   inline flow, wrapping under itself however much markup it contains. */
.quick-facts ul li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0;
  display: block;
  padding-left: 148px;
  text-indent: -148px;
}

.quick-facts ul li::before {
  display: none;
}

.quick-facts ul li strong {
  color: var(--text);
  font-weight: 500;
  /* border-box: this 148px IS the gutter the value hangs from, and the 8px
     padding lives inside it as the gap. Label text occupies 140px. */
  display: inline-block;
  width: 148px;
  padding-right: 8px;
  text-indent: 0;
  vertical-align: top;
}

/* Phone tree steps */
.phone-tree {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

.phone-tree ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tree;
}

.phone-tree ol li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 32px;
  position: relative;
  margin-bottom: 8px;
  counter-increment: tree;
}

.phone-tree ol li::before {
  content: counter(tree);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tree code {
  font-family: var(--sans);
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Script blocks */
.script-block {
  background: var(--surface);
  border-left: 2px solid var(--text-faint);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.script-block p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0;
}

.script-block .label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-style: normal;
}

/* FAQ — generated from each guide's FAQPage JSON-LD by scripts/build-guide-faq.mjs.
   The answers have to be visible on the page for the rich result to be legitimate,
   so this section is never collapsed or hidden. */
.guide-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.guide-faq > h2 {
  margin-top: 0;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Related guides */
.related-guides {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-guides h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-guides ul li {
  padding-left: 0;
  margin-bottom: 0;
}

.related-guides ul li::before {
  display: none;
}

.related-guides ul li a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.related-guides ul li a::before {
  content: '\2192';
  color: var(--text-faint);
  transition: color 0.3s, transform 0.3s;
}

.related-guides ul li a:hover {
  color: var(--text);
}

.related-guides ul li a:hover::before {
  color: var(--text-dim);
  transform: translateX(3px);
}

/* Breadcrumb — pull up into main's 120px top padding so it sits closer to the nav */
.breadcrumb {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Reduce top padding on guide pages (main's default is 120px, too much with breadcrumb) */
main:has(.breadcrumb) {
  padding-top: 88px;
}

.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--text-dim);
}

.breadcrumb span {
  color: var(--text-faint);
}

/* Guide intro */
.guide-intro {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

/* Tips list */
.tip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.tip-list li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 0;
  margin-bottom: 0;
}

.tip-list li::before {
  display: none;
}

.tip-list li:last-child {
  border-bottom: none;
}

.tip-list li strong {
  color: var(--text);
  font-weight: 500;
}

/* Verify callout */
.verify {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

/* Guide index page */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.guide-card {
  display: block;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.guide-card:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.guide-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.guide-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0;
}

.guide-category {
  margin-bottom: 48px;
}

.guide-category h2 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .quick-facts { padding: 20px 20px; }
  /* Stack the label above the value: the 148px gutter the desktop rule hangs
     from does not fit beside text in a ~310px column, and forced the row to
     overflow the viewport. `flex-direction` no longer applies here — the row is
     display:block now — so both the indent and the fixed label width have to be
     undone explicitly. */
  .quick-facts ul li { padding-left: 0; text-indent: 0; }
  .quick-facts ul li strong { display: block; width: auto; padding-right: 0; }
  .phone-tree { padding: 20px; }
  .script-block { padding: 16px 20px; }
}
