/* GetDirect — add-on styles for the content pages (cities, price index, fees, calculators).
   Uses only the tokens already defined in /css/tokens.css. Load after site.css. */

/* Wider body for pages built around tables and tools */
.doc.gd-wide > .prose { grid-column: 4 / -1; }
@media (max-width: 60rem) { .doc.gd-wide > .prose { grid-column: 1 / -1; } }

/* Answer box: the one-paragraph answer that AI tools and skimmers read first */
.gd-answer {
  margin: 0 0 var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-paper-2);
  border: 1px solid var(--color-paper-3);
  border-radius: var(--radius-card);
}
.gd-answer > :first-child { margin-top: 0; }
.gd-answer > :last-child { margin-bottom: 0; }
.gd-answer strong:first-child { color: var(--color-accent-text); }

/* Tables: scroll on small screens instead of squashing */
.gd-table { overflow-x: auto; margin: var(--space-lg) 0 var(--space-xl); -webkit-overflow-scrolling: touch; }
.gd-table table { min-width: 34rem; }
.gd-table caption { caption-side: bottom; text-align: left; padding-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); }
.prose thead th { font-weight: 600; color: var(--color-ink); border-bottom-color: var(--color-ink-2); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tr.is-best td { background: var(--color-paper-2); font-weight: 600; }

/* Stat tiles */
.gd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0 var(--space-xl); }
.gd-stat { padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.gd-stat b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.gd-stat span { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }

/* Card grid (cities, help topics, plans) */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0 var(--space-xl); padding: 0; list-style: none; }
.gd-cards > li { margin: 0; }
.gd-card { display: block; height: 100%; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); color: inherit; text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
a.gd-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.gd-card h3 { margin: 0 0 var(--space-2xs); font-size: var(--text-lg); }
.gd-card p { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.gd-card .gd-price { display: block; margin: var(--space-sm) 0; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; }
.gd-card ul { margin: var(--space-sm) 0 0; padding-left: 1.1em; font-size: var(--text-sm); }
.gd-card--featured { border: 2px solid var(--color-accent); }

/* Badges */
.gd-badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; background: var(--color-paper-3); color: var(--color-accent-text); vertical-align: middle; }
.gd-badge--deal { background: var(--color-deal-soft); color: var(--color-deal-strong); }
.gd-badge--soon { background: var(--color-rule); color: var(--color-muted); }

/* Timeline (fee tracker) */
.gd-timeline { list-style: none; margin: var(--space-lg) 0 var(--space-xl); padding: 0; border-left: 2px solid var(--color-rule); }
.gd-timeline li { position: relative; margin: 0; padding: 0 0 var(--space-lg) var(--space-lg); }
.gd-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-accent); }
.gd-timeline time { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-text); }

/* Calculator */
.gd-calc { margin: var(--space-lg) 0 var(--space-xl); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.gd-calc__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-md); }
.gd-field label { display: block; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: 600; }
.gd-field small { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.gd-field input { width: 100%; height: 48px; padding: 0 var(--space-sm); font: inherit; color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-muted); border-radius: var(--radius-input); }
.gd-field input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.gd-calc__out { margin-top: var(--space-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-md); }
.gd-calc__out .gd-stat--win { border-color: var(--color-accent); background: var(--color-paper-2); }
.gd-calc__note { margin: var(--space-md) 0 0; font-size: var(--text-xs); color: var(--color-muted); }

/* Glossary */
.gd-glossary dt { margin-top: var(--space-lg); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; scroll-margin-top: 96px; }
.gd-glossary dd { margin: var(--space-2xs) 0 0; }

/* Closing call to action */
.gd-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.gd-cta__in h2 { margin: 0 0 var(--space-xs); }
.gd-cta__in .lead { margin: 0; max-width: 36rem; }

/* Source notes */
.gd-sources { font-size: var(--text-sm); color: var(--color-ink-2); }
.gd-sources li { margin-bottom: var(--space-2xs); }

/* Announcement strip (e.g. cab fare comparison coming soon) */
.gd-announce { background: var(--color-paper-2); border-bottom: 1px solid var(--color-paper-3); font-size: var(--text-sm); }
.gd-announce a { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 0; color: var(--color-ink); text-decoration: none; }
.gd-announce a:hover { text-decoration: underline; }

/* Reviews */
.gd-quote { margin: 0; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }
.gd-quote p { margin: 0 0 var(--space-sm); font-size: var(--text-lg); line-height: 1.45; }
.gd-quote cite { font-style: normal; font-size: var(--text-sm); color: var(--color-muted); }
