/* =========================================================
   Detroit Airport Car · article.css
   Long-form guides, blog posts and route guides.
   ========================================================= */
.ar, .rg {
  --ink: #0a0d14;
  --text: #1d222c;
  --muted: #5b6475;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --accent: #2751c5;
  --accent-soft: #eef2fc;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.ar *, .ar *::before, .ar *::after, .rg *, .rg *::before, .rg *::after { box-sizing: border-box; }

.ar-wrap { width: min(1180px, 90%); margin-inline: auto; }
.ar-wrap--text { width: min(800px, 90%); }

/* ---------- Breadcrumbs ---------- */
.ar-crumbs { border-bottom: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--muted); }
.ar-crumbs .ar-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.ar-crumbs a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ar-crumbs a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.ar-hero { background: var(--soft); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.ar-hero--index { padding: 80px 0 56px; }
.ar-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.ar-h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); margin: 0; }
.ar-lede { font-size: 19px; color: var(--muted); margin: 18px 0 0; }
.ar-meta { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.ar-index-nav { margin: 20px 0 0; font-weight: 600; }
.ar-index-nav a { color: var(--accent); }

/* ---------- Layout ---------- */
.ar-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 56px 0 80px; align-items: start; }
.ar-layout > .ar-body:only-child { grid-column: 1 / -1; max-width: 800px; margin-inline: auto; }

.ar-toc { position: sticky; top: 100px; font-size: 14px; }
.ar-toc summary { font-weight: 800; color: var(--ink); cursor: pointer; margin-bottom: 10px; list-style: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.ar-toc summary::-webkit-details-marker { display: none; }
.ar-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.ar-toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; line-height: 1.4; margin-left: -2px; border-left: 2px solid transparent; }
.ar-toc li a:hover { color: var(--ink); border-left-color: var(--accent); }
.ar-toc__cta { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; background: #fff; }
.ar-toc__cta strong { color: var(--ink); }

/* ---------- Body typography ---------- */
.ar-body { font-size: 17.5px; min-width: 0; }
.ar-body h2 { font-size: clamp(25px, 2.6vw, 31px); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); font-weight: 800; margin: 56px 0 16px; scroll-margin-top: 100px; }
.ar-body > h2:first-child, .ar-body > section:first-child > h2:first-child { margin-top: 0; }
.ar-body h3 { font-size: 21px; line-height: 1.3; color: var(--ink); font-weight: 700; margin: 36px 0 10px; scroll-margin-top: 100px; }
.ar-body h4 { font-size: 17.5px; color: var(--ink); margin: 24px 0 6px; }
.ar-body p { margin: 0 0 18px; }
.ar-body ul, .ar-body ol { margin: 0 0 20px; padding-left: 24px; }
.ar-body li { margin-bottom: 8px; }
.ar-body a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.ar-body strong { color: var(--ink); }
.ar-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 19px; color: var(--ink); }
.ar-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.ar-body img { max-width: 100%; height: auto; border-radius: 12px; }
.ar-body figure { margin: 28px 0; }
.ar-body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Key takeaways / summary box */
.ar-summary { background: var(--accent-soft); border-radius: 14px; padding: 24px 28px; margin: 0 0 36px; }
.ar-summary > strong:first-child, .ar-summary h2:first-child { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.ar-summary ul { margin: 0; }
.ar-summary li:last-child { margin-bottom: 0; }

/* Tables */
.ar-table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.ar-table caption { caption-side: bottom; text-align: left; padding: 10px 16px; font-size: 13.5px; color: var(--muted); }
.ar-table th, .ar-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ar-table thead th { background: var(--soft); color: var(--ink); font-weight: 800; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.ar-table tbody tr:last-child td { border-bottom: 0; }
.ar-table td.num, .ar-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Callouts */
.ar-callout, .ar-example { margin: 28px 0; padding: 20px 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 16.5px; }
.ar-callout > :last-child, .ar-example > :last-child { margin-bottom: 0; }
.ar-callout--tip { background: #effaf3; border-color: #cdebd8; }
.ar-callout--warn { background: #fff8eb; border-color: #f4dfb5; }
.ar-example { background: #fff; border-left: 4px solid var(--accent); }
.ar-example > strong:first-child { display: block; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* Lists */
.ar-checklist { list-style: none; padding-left: 0 !important; }
.ar-checklist li { position: relative; padding-left: 30px; }
.ar-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.ar-steps { list-style: none; counter-reset: s; padding-left: 0 !important; }
.ar-steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; }
.ar-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }

/* Inline CTA */
.ar-cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0; padding: 22px 26px; border-radius: 14px; background: var(--ink); color: #fff; }
.ar-cta-inline p { margin: 0; font-weight: 600; color: #fff; }
.ar-cta-inline .ar-btn { background: #fff; color: var(--ink) !important; }

/* Buttons */
.ar-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 24px; border-radius: 8px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none !important; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.ar-btn:hover { background: #1c2230; }
.ar-btn--line { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.ar-btn--line:hover { background: var(--soft); border-color: var(--ink); }
.ar-link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* FAQ */
.ar-faq { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.ar-faq h2 { margin-top: 32px; }
.ar-faq__item { border-bottom: 1px solid var(--line); }
.ar-faq__item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 17px; }
.ar-faq__item summary::-webkit-details-marker { display: none; }
.ar-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.ar-faq__item[open] summary::after { transform: rotate(45deg); }
.ar-faq__item p { margin: 0 0 20px; color: var(--muted); }

/* End CTA */
.ar-endcta { margin-top: 56px; padding: 36px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.ar-endcta h2 { margin: 0 0 8px !important; font-size: 26px; color: var(--ink); }
.ar-endcta p { margin: 0; color: var(--muted); }
.ar-endcta--index { margin: 24px auto 96px; }
.ar-endcta--index a:not(.ar-btn) { color: var(--accent); font-weight: 700; }

/* Related / index cards */
.ar-related { background: var(--soft); padding: 72px 0; border-top: 1px solid var(--line); }
.ar-related--index { background: #fff; border-top: 0; padding: 56px 0 24px; }
.ar-related h2 { font-size: 28px; color: var(--ink); margin: 0 0 28px; font-weight: 800; }
.ar-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ar-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.ar-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,13,20,.08); }
.ar-card strong { font-size: 18.5px; line-height: 1.35; color: var(--ink); }
.ar-card__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ar-card__text { font-size: 15px; color: var(--muted); line-height: 1.55; }
.ar-card__meta { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ---------- Route guide block (inside city pages) ---------- */
.rg { padding: 80px 0; background: #fff; border-top: 1px solid var(--line); }
.rg-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 40px; }
.rg-facts div { background: #fff; padding: 20px 22px; }
.rg-facts strong { display: block; font-size: 22px; color: var(--ink); font-weight: 800; line-height: 1.2; }
.rg-facts span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Focus */
.ar a:focus-visible, .ar summary:focus-visible, .rg a:focus-visible, .rg summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ar-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .ar-toc { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
  .ar-toc details:not([open]) summary { margin-bottom: 0; }
  .ar-toc__cta { display: none; }
  .ar-cards { grid-template-columns: repeat(2, 1fr); }
  .rg-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ar-hero { padding: 40px 0 32px; }
  .ar-body { font-size: 17px; }
  .ar-cards { grid-template-columns: 1fr; }
  .ar-endcta { padding: 26px 22px; }
  .ar-actions .ar-btn { width: 100%; }
  .ar-cta-inline .ar-btn { width: 100%; }
}

/* Real-review slot (renders only when data/business.js has reviews) */
.rv-slot { margin: 32px 0; display: grid; gap: 16px; }
.rv-slot h3 { margin: 0 0 4px; }
.rv-card { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rv-stars { color: #e3a008; letter-spacing: 2px; font-size: 15px; }
.rv-card blockquote { margin: 8px 0 10px; padding: 0; border: 0; font-size: 17px; color: var(--ink); }
.rv-card figcaption { font-size: 14px; color: var(--muted); }
.rv-more { margin: 0; }
