/* BestTravelScout — Shared Styles */
:root {
  /* Layout */
  --max-w: 840px;
  --max-w-wide: 1080px;
  --max-w-hero: 1200px;

  /* Colors — Deep ocean + sunset accent */
  --primary: #1B4965;
  --primary-light: #2D6A8F;
  --accent: #E8871E;
  --accent-hover: #D47618;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --bg: #fff;
  --bg-warm: #FDFAF6;
  --gray: #6b7280;
  --gray-light: #f8f9fb;
  --border: #e2e8f0;
  --green-bg: #f0fdf4;
  --red-bg: #fef2f2;
  --gold: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --green: #059669;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --red-light: #fee2e2;
  --yellow-light: #fef3c7;
  --green-light: #d1fae5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Typography */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* — Header Accent Bar — */
.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* — Site Header & Nav — */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .logo:hover { text-decoration: none; }
.logo-best { color: var(--primary); }
.logo-ts { color: var(--accent); }
.site-header nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }
.site-header nav a:hover::after,
.site-header nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.site-header nav a.active { color: var(--primary); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .site-header nav { display: none; flex-direction: column; width: 100%; gap: 0.75rem; padding-top: 0.75rem; }
  .site-header nav.open { display: flex; background: var(--primary); padding: 1rem; border-radius: 0 0 var(--radius) var(--radius); }
  .site-header nav.open a { color: #fff; padding: 0.5rem 0; }
  .site-header nav.open a::after { display: none; }
  .site-header .nav-inner { flex-wrap: wrap; }
}

/* — Container — */
.container { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem; }

/* — Breadcrumbs — */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); text-decoration: none; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; }
.breadcrumb a:hover { background: var(--gray-light); color: var(--accent); text-decoration: none; }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--border); font-size: 0.7rem; }

/* — Typography — */
h1, h2 { font-family: var(--font-display); }
h1 { font-size: 2.25rem; margin-bottom: 1rem; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 0.5rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--primary); }
p { margin-bottom: 1rem; line-height: 1.75; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* — Tables — */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; border: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th { background: var(--primary); color: #fff; border: none; padding: 0.6rem 0.8rem; text-align: left; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
td { border: none; border-bottom: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-light); }

/* — CTA Button — */
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(232,135,30,0.3);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,135,30,0.4);
  text-decoration: none;
}

/* — CTA Box — */
.cta-box {
  background: var(--bg-warm) !important;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

/* — Meta — */
.updated {
  display: inline-block;
  background: var(--gray-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.disclosure {
  border-left: 3px solid var(--primary);
  background: var(--gray-light);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* — Pros/Cons — */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros, .cons { padding: 1rem; border-radius: var(--radius); }
.pros { background: var(--green-bg); }
.cons { background: var(--red-bg); }
.pros h4, .cons h4 { margin-bottom: 0.5rem; }
.rating { color: var(--gold); }

/* — Deal Box — */
.deal-box {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.deal-box:hover { box-shadow: var(--shadow-md); }
.deal-box.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232,135,30,0.12);
}
.deal-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.deal-badge.value { background: #059669; }
.deal-badge.budget { background: var(--gold); color: var(--text); }
.deal-box h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.deal-box .deal-rating { color: var(--gold); margin-bottom: 0.5rem; }
.deal-box .deal-features { margin: 0.5rem 0 1rem 1.2rem; font-size: 0.95rem; }
.deal-box .deal-features li { margin-bottom: 0.25rem; }
.deal-box .deal-price { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }

/* — Author Bio — */
.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
}
.author-bio .author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-bio .author-info h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.author-bio .author-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 0; }
.author-bio .author-info a { font-size: 0.85rem; }

/* — Related Articles — */
.related-articles { margin: 2.5rem 0; }
.related-articles h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.4; }
.related-card h3 a { color: var(--text); }
.related-card h3 a:hover { color: var(--accent); }
.related-card p { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.4rem; }
.related-card .tag { display: inline-block; background: #eff6ff; color: var(--accent); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }

/* — Email Capture — */
.email-capture {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.email-capture h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: #fff; }
.email-capture p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.email-capture form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  align-items: stretch;
  flex-wrap: nowrap;
}
.email-capture input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}
.email-capture input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.email-capture input[type="email"]:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.email-capture button {
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.email-capture button:hover { background: var(--accent-hover); }
.email-capture .privacy-note { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.5rem; margin-bottom: 0; }
@media (max-width: 480px) {
  .email-capture form { flex-direction: column; }
}

/* — Trust Bar — */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background: var(--bg-warm);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray);
}
.trust-bar span { white-space: nowrap; }

/* — Methodology Badge — */
.methodology-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-warm);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.methodology-badge a { color: var(--primary); font-weight: 500; }
.methodology-badge a:hover { color: var(--accent); }

/* — Homepage — */
.subtitle { color: var(--gray); font-size: 1.1rem; margin-bottom: 2rem; }
.card-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0.5rem; }
.tag { display: inline-block; background: #eff6ff; color: var(--accent); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 500; margin-right: 0.3rem; }

/* — Site Footer — */
.site-footer {
  margin-top: 0;
  background: var(--primary);
  color: rgba(255,255,255,0.85);
}
.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 { font-size: 0.9rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; }
.footer-col p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; }
.footer-col ul a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .pros-cons { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  .hero-section { padding: 2.5rem 1rem; }
  .hero-section h1 { font-size: 2rem; }
  .cta-btn { display: block; text-align: center; }
  .trust-bar { gap: 1rem; font-size: 0.8rem; }
  .related-grid { grid-template-columns: 1fr; }
}

/* — Category / Hub Pages — */
.hero-section {
  background: var(--primary);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(232,135,30,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero-section h1 { color: #fff; position: relative; font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero-section p { color: rgba(255,255,255,0.85); position: relative; max-width: 640px; margin: 0 auto 1.5rem; }
.hero-section .cta-btn { position: relative; }

/* Quick Facts — At-a-Glance Info Card */
.quick-facts {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.quick-facts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Budget Breakdown */
.budget-table { margin: 1.5rem 0; }
.budget-table th:first-child { width: 30%; }

/* — Tool Pages — */
.tool-container { max-width: var(--max-w-wide); margin: 0 auto; padding: 2rem 1.5rem; }
.calculator-form { background: var(--gray-light); padding: 1.5rem; border-radius: var(--radius); margin: 1.5rem 0; }
.calculator-form label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; }
.calculator-form select, .calculator-form input {
  width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; margin-bottom: 1rem;
}
.calculator-form button {
  padding: 0.75rem 2rem; background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.calculator-form button:hover { background: var(--accent-hover); }
.result-panel {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: none;
}
.result-panel.visible { display: block; }

/* Tool pages — form groups, results, tabs */
.form-group { margin-bottom: 1rem; }
.results-panel { border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.results-panel h2 { margin-top: 0; }
.grand-total { font-size: 1.2rem; padding: 0.75rem; background: var(--gray-light); border-radius: 6px; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.cta-row .cta-button { text-decoration: none; text-align: center; flex: 1; min-width: 160px; }
.cta-secondary { background: var(--primary-light) !important; }
.cta-secondary:hover { background: var(--primary) !important; }
.cta-tertiary { background: #059669 !important; }
.cta-tertiary:hover { background: #047857 !important; }

.category-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.tab-button {
  padding: 0.6rem 1.2rem; border: 2px solid var(--border); background: #fff;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s;
}
.tab-button:hover { border-color: var(--accent); color: var(--accent); }
.tab-button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.category-panel { margin-bottom: 1.5rem; }

.email-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch; }
.email-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 0.6rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.95rem;
}
.email-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.email-form .cta-button { white-space: nowrap; }
.email-success { color: var(--accent); font-weight: 500; width: 100%; margin-top: 0.5rem; }

/* Country rental & road trip pages */
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
}
.fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; margin: 0.5rem 0; }
details summary { cursor: pointer; font-weight: 500; padding: 0.8rem 1rem; transition: background 0.15s; }
details summary:hover { background: var(--gray-light); }
details[open] summary { margin-bottom: 0; border-bottom: 1px solid var(--border); }
details[open] > :not(summary) { padding: 0 1rem; }
details[open] > :last-child { padding-bottom: 0.8rem; }
.email-disclaimer { font-size: 0.8rem; color: #888; margin-top: 0.3rem; }
.map-embed { margin: 1.5rem 0; }

/* — Article Meta (Phase 2A) — */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-meta__sep { color: var(--border); }

/* — Table of Contents (Phase 2B) — */
.toc {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-left: 4px solid var(--accent);
}
.toc__title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); margin-bottom: 0.75rem; }
.toc__list { margin: 0; padding-left: 1.25rem; }
.toc__list li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.toc__list a { color: var(--text); text-decoration: none; }
.toc__list a:hover { color: var(--accent); }

/* — Callout Boxes (Phase 2C) — */
.callout { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 4px solid; }
.callout__title { font-weight: 600; margin-bottom: 0.4rem; }
.callout--tip { background: #f0fdf4; border-color: #22c55e; }
.callout--tip .callout__title { color: #16a34a; }
.callout--warning { background: #fefce8; border-color: #eab308; }
.callout--warning .callout__title { color: #a16207; }
.callout--info { background: #eff6ff; border-color: #3b82f6; }
.callout--info .callout__title { color: #2563eb; }
.callout--money { background: #fef3c7; border-color: #f59e0b; }
.callout--money .callout__title { color: #b45309; }

/* — Author Bio Methodology (Phase 2D) — */
.author-bio__methodology {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--gray); margin-top: 0.5rem;
}

/* — Hub Card Grid (Phase 3A) — */
.hub-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.hub-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hub-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hub-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hub-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; }
.hub-card--featured { border-color: var(--accent); background: var(--bg-warm); border-width: 2px; }
.hub-card__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.hub-card__body { flex: 1; min-width: 0; }
.hub-card__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text); }
.hub-card__desc { font-size: 0.85rem; color: var(--gray); margin: 0; line-height: 1.4; }
.hub-card__tag {
  position: absolute; top: -8px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.hub-card__arrow { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; align-self: center; }

/* — Hub Hero (Phase 3B) — */
.hub-hero__stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.5rem; position: relative; }
.hub-hero__stat { text-align: center; }
.hub-hero__stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); display: block; }
.hub-hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.05em; }

/* — Compare Card (Phase 4A) — */
.compare-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; position: relative;
}
.compare-card--top { border-color: var(--accent); background: var(--bg-warm); border-width: 2px; }
.compare-card__badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; padding: 0.2rem 0.6rem;
  border-radius: 3px; text-transform: uppercase; font-weight: 600;
}
.compare-card__info { flex: 1; min-width: 0; }
.compare-card__name { font-weight: 600; font-size: 1rem; margin-bottom: 0.2rem; }
.compare-card__stars { color: var(--gold); font-size: 0.9rem; }
.compare-card__highlight { font-size: 0.85rem; color: var(--gray); margin-top: 0.2rem; }

/* — Inline CTA (Phase 4B) — */
.inline-cta {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
  margin: 2rem 0; background: var(--bg-warm);
}
.inline-cta__body { flex: 1; }
.inline-cta__body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.inline-cta__body p { margin: 0; font-size: 0.9rem; color: var(--gray); }
.inline-cta--subtle { background: var(--gray-light); border-color: var(--border); }

/* — Cross-Vertical Cards (Phase 5) — */
.cross-vertical { margin: 2.5rem 0; padding: 1.5rem; background: var(--gray-light); border-radius: var(--radius-lg); }
.cross-vertical__title { font-size: 1.1rem; margin-bottom: 1rem; }
.cross-vertical__title::after { display: none; }
.cross-vertical__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.cross-vertical__card { background: #fff; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.cross-vertical__card h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.cross-vertical__card ul { margin: 0; padding-left: 1rem; list-style: none; }
.cross-vertical__card ul li { margin-bottom: 0.3rem; font-size: 0.85rem; }
.cross-vertical__card ul li::before { content: '→ '; color: var(--accent); }
.cross-vertical__card ul li a { color: var(--text); text-decoration: none; }
.cross-vertical__card ul li a:hover { color: var(--accent); }

/* — Multi-CTA Box (Phase 5) — */
.multi-cta-box { background: #f0f7ff; padding: 1.5rem; border-radius: var(--radius-lg); margin: 2rem 0; text-align: center; }
.multi-cta-box h3 { margin-bottom: 0.5rem; }
.multi-cta-box p { color: var(--gray); margin-bottom: 1rem; }
.multi-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.multi-cta-buttons .cta-btn--hotels { background: #16a34a; }
.multi-cta-buttons .cta-btn--hotels:hover { background: #15803d; }
.multi-cta-buttons .cta-btn--cars { background: #ea580c; }
.multi-cta-buttons .cta-btn--cars:hover { background: #c2410c; }

/* — Disclosure (Phase 6A) — */
.disclosure__icon { flex-shrink: 0; font-size: 1rem; }

/* — Email Capture Benefits (Phase 8A) — */
.email-capture__benefits { list-style: none; margin: 0 auto 1rem; padding: 0; max-width: 320px; text-align: left; }
.email-capture__benefits li { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 0.3rem; }

/* — Bottom Nav (Phase 7A) — */
.bottom-nav { display: none; }

/* — Sticky CTA (Phase 7C) — */
.sticky-cta { display: none; }

@media (max-width: 768px) {
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border); z-index: 100;
    justify-content: space-around; padding: 0.4rem 0;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.65rem; color: var(--gray); text-decoration: none;
    padding: 0.3rem 0.5rem; min-height: 48px; justify-content: center;
  }
  .bottom-nav a span { margin-top: 0.15rem; }
  .bottom-nav a:hover, .bottom-nav a.active { color: var(--accent); text-decoration: none; }
  body { padding-bottom: 60px; }
  .sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 0.75rem 1rem; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px); border-top: 1px solid var(--border); z-index: 101;
    text-align: center;
  }
  .sticky-cta .cta-btn { display: block; margin: 0; }
  .sticky-cta + .bottom-nav { display: none; }
  .hub-grid--3, .hub-grid--4 { grid-template-columns: 1fr; }
  .hub-grid--2 { grid-template-columns: 1fr; }
  .compare-card { flex-wrap: wrap; }
  .compare-card .cta-btn { width: 100%; text-align: center; }
  .inline-cta { flex-direction: column; text-align: center; }
  .hub-hero__stats { gap: 1.5rem; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .hub-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hub-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hub-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr; }
  .hero-section { padding: 3rem 1.5rem; }
  .hero-section h1 { font-size: 2rem; }
  .hub-hero__stats { gap: 1.5rem; }
}

/* — Smooth scroll for TOC — */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* — Focus/keyboard accessibility — */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* — Responsive tables — */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.table-wrap table { margin: 0; }

/* — iPhone safe-area for bottom nav — */
.bottom-nav { padding-bottom: max(0.4rem, env(safe-area-inset-bottom)); }

/* — Cross-vertical card hover — */
.cross-vertical__card { transition: transform 0.2s, box-shadow 0.2s; }
.cross-vertical__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* — Hero vertical gradients (Phase 7A) — */
.hero-section--flights { background: linear-gradient(135deg, #1B4965 0%, #2d3a6d 100%); }
.hero-section--hotels { background: linear-gradient(135deg, #1B4965 0%, #2d5a3d 100%); }
.hero-section--car-rental { background: linear-gradient(135deg, #1B4965 0%, #4a3520 100%); }
.hero-section--insurance { background: linear-gradient(135deg, #1B4965 0%, #3d2d5a 100%); }
.hero-section--budget { background: linear-gradient(135deg, #1B4965 0%, #5a4d2d 100%); }

/* — Section dividers (Phase 7B) — */
.section-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 2.5rem 0; }

/* — Hub card featured accent (Phase 7D) — */
.hub-card--featured { border-left: 4px solid var(--accent); }

/* — Hub card accent variant — */
.hub-card--accent {
  border-left: 3px solid var(--accent);
}

/* — Hub intro (Phase 8A) — */
.hub-intro { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }

/* — Hub quicklinks (Phase 8B) — */
.hub-quicklinks { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.hub-quicklinks a { white-space: nowrap; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); background: var(--gray-light); color: var(--text); font-size: 0.85rem; text-decoration: none; }
.hub-quicklinks a:hover { background: var(--accent); color: #fff; }

/* — Trust section (Phase 8C) — */
.trust-section { background: var(--gray-light); padding: 2rem 1.5rem; margin: 2rem 0 0; border-radius: var(--radius-lg); }
.trust-section h2 { text-align: center; font-size: 1.3rem; margin-bottom: 1.5rem; }
.trust-section h2::after { margin: 0.5rem auto 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: var(--max-w); margin: 0 auto; }
.trust-item { text-align: center; font-size: 0.9rem; line-height: 1.6; }

/* — Inline-style replacements: score-card, highlight-box, provider-rec, neighborhood-card, tip-card, route-airports — */
.score-card { background: var(--gray-light); padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); margin: 1rem 0; }
.highlight-box { background: var(--blue-light); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; }
.provider-rec { padding: 1.2rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid var(--border); }
.provider-rec:nth-child(odd) { background: var(--gray-light); }
.provider-rec:nth-child(even) { background: #fff; }
.neighborhood-card { background: var(--gray-light); padding: 1.2rem; border-radius: var(--radius); margin: 0.5rem 0; border: 1px solid var(--border); }
.tip-card { background: var(--green-bg); padding: 1rem; border-radius: var(--radius); margin: 0.5rem 0; display: flex; justify-content: space-between; align-items: center; }
.tip-card__savings { color: var(--green); white-space: nowrap; margin-left: 1rem; font-weight: 700; }
.route-airports { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.route-airports__panel { background: var(--gray-light); padding: 1.2rem; border-radius: var(--radius); }
@media (max-width: 600px) {
  .route-airports { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .quick-facts {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 0.75rem;
    gap: 0.4rem;
  }
  .fact { padding: 0.5rem 0.6rem; }
  .fact-label { font-size: 0.68rem; }
  .fact-value { font-size: 0.9rem; }
}

/* — Homepage (Phase 4) — */
.home-verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.home-vertical-card { text-align: center; padding: 2rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.2s, box-shadow 0.2s; }
.home-vertical-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-vertical-card a { text-decoration: none; color: var(--text); }
.home-vertical-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.home-vertical-card__title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.home-vertical-card__count { font-size: 0.85rem; color: var(--gray); }

/* — Pros/cons heading colors — */
.pros h3 { color: #16a34a; }
.cons h3 { color: #dc2626; }

/* — Demand badges (seasonal pricing) — */
.demand-badge { display: inline-block; padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.demand-badge--low { background: #dcfce7; color: #166534; }
.demand-badge--medium { background: #fef3c7; color: #92400e; }
.demand-badge--high { background: #fee2e2; color: #991b1b; }

/* — Contextual links callout — */
.contextual-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); font-size: 0.95rem; }
.contextual-links strong { margin-right: 0.25rem; }
.contextual-links a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contextual-links a:hover { color: var(--accent); }

/* — Hub editorial section — */
.hub-editorial { max-width: var(--max-w); margin: 1.5rem auto 2rem; padding: 0; line-height: 1.7; color: var(--text); }
.hub-editorial h2 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--primary); }
.hub-editorial p { margin-bottom: 1rem; }
.hub-editorial a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* — Neighborhood quick-nav grid (in-page anchors) — */
.neighborhood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.neighborhood-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--bg); transition: box-shadow 0.2s; }
.neighborhood-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.neighborhood-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.neighborhood-card h3 a { color: var(--primary); text-decoration: none; }
.neighborhood-card h3 a:hover { color: var(--accent); text-decoration: underline; }

/* — Budget progress bars — */
.budget-bar-cell { position: relative; min-width: 100px; }
.budget-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.budget-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); min-width: 4px; transition: width 0.3s ease; }
.budget-bar--mid { background: linear-gradient(90deg, var(--accent), #f59e0b); }
@media (max-width: 640px) { .budget-bar-wrap { flex-direction: column; align-items: flex-start; gap: 0.2rem; } }

/* — Responsive image figure — */
.content-figure { margin: 1.5rem 0; }
.content-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.content-figure figcaption { font-size: 0.85rem; color: var(--gray); margin-top: 0.5rem; text-align: center; font-style: italic; }

/* — Quick Answer (AI optimization) — */
.quick-answer { background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; }
.quick-answer__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; }
.quick-answer p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text); }

/* — Data page table — */
.data-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table th.sortable:hover { background: var(--gray-light); }
.sort-icon { font-size: 0.7em; opacity: 0.4; margin-left: 0.25em; }
.data-source { font-size: 0.85rem; color: var(--gray); font-style: italic; margin: 0.5rem 0 1.5rem; }
.data-notes { font-size: 0.9rem; color: var(--gray); margin-top: 0.75rem; }
.embed-section { background: var(--gray-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.embed-code { background: #1a1a2e; color: #e2e8f0; padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.85rem; }

/* — Company badges (airport pages) — */
.company-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.company-badge { display: inline-block; padding: 0.4rem 0.8rem; background: var(--gray-light); border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; font-weight: 500; }

/* — City grid (monthly guides, destinations) — */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.city-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: var(--bg); transition: box-shadow 0.2s; }
.city-card:hover { box-shadow: var(--shadow-md); }
.city-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.city-card h3 a { color: var(--primary); text-decoration: none; }
.city-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.city-card__details { display: flex; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--gray); }
.city-card__weather { }
.city-card__price { }
.city-events { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* — Temperature chart (best-time pages) — */
.temp-chart { margin: 1.5rem 0; }
.temp-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.temp-bar__label { width: 2.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.temp-bar__fill { background: linear-gradient(90deg, var(--primary-light), var(--accent)); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 2rem; text-align: right; }

/* — Crowd badges (best-time pages) — */
.crowd-badge { display: inline-block; padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #fff; text-transform: capitalize; }

/* — Quick facts (best-time, destinations) — */
.quick-facts { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); }
.quick-facts__item { font-size: 0.95rem; }

/* — Vertical nav (destination overview) — */
.vertical-nav { margin: 2rem 0; }
.vertical-nav h2 { margin-bottom: 1rem; }
.vertical-nav__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.vertical-nav__item { display: block; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: box-shadow 0.2s, border-color 0.2s; }
.vertical-nav__item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.vertical-nav__item strong { display: block; margin-bottom: 0.25rem; }
.vertical-nav__item br + * { font-size: 0.85rem; color: var(--gray); }

/* — Guide category badge — */
.guide-category-badge { display: inline-block; padding: 0.3rem 0.75rem; background: var(--gray-light); border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; color: var(--text-secondary); margin-bottom: 0.75rem; }

/* — Related guides — */
.related-guides { background: var(--gray-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.related-guides h3 { margin: 0 0 0.75rem; font-size: 1.1rem; color: var(--primary); }
.related-guides ul { list-style: none; padding: 0; }
.related-guides li { margin-bottom: 0.5rem; }
.related-guides a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.related-guides a:hover { color: var(--accent); }

/* — Exit intent popup — */
.exit-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.exit-modal { background: #fff; border-radius: var(--radius-lg); padding: 2rem; max-width: 440px; width: 90%; position: relative; box-shadow: var(--shadow-lg); text-align: center; }
.exit-modal h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary); }
.exit-modal p { color: var(--gray); margin-bottom: 1rem; }
.exit-modal .email-form { display: flex; gap: 0.5rem; }
.exit-modal .email-form input[type="email"] { flex: 1; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; }
.exit-modal .cta-btn { white-space: nowrap; }
.exit-close { position: absolute; top: 0.5rem; right: 0.75rem; border: none; background: none; font-size: 1.5rem; color: var(--gray); cursor: pointer; line-height: 1; }
.exit-close:hover { color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hub Cross-Links */
.hub-cross-links { background: var(--bg-alt, #f8f9fa); padding: 2.5rem 1.5rem; margin-top: 2rem; }
.hub-cross-links h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }
.hub-xlink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; max-width: var(--max-w-wide); margin: 0 auto; }
.hub-xlink-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: box-shadow 0.15s, border-color 0.15s; }
.hub-xlink-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.hub-xlink-icon { font-size: 1.4rem; }
.hub-xlink-label { font-weight: 600; font-size: 1rem; color: var(--primary); }
.hub-xlink-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.4; }

/* Algorithmic Related Pages */
.algo-related { margin: 2rem 0; padding: 1.5rem; background: var(--bg-alt, #f8f9fa); border-radius: var(--radius, 8px); }
.algo-related h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.algo-related__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem; }
.algo-related__list li { margin: 0; }
.algo-related__list a { display: block; padding: 0.6rem 0.8rem; background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius, 8px); text-decoration: none; color: var(--primary, #2563eb); font-size: 0.9rem; transition: border-color 0.15s, box-shadow 0.15s; }
.algo-related__list a:hover { border-color: var(--primary, #2563eb); box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,0.1)); }
/* Author Profile Pages */
.author-profile { max-width: 720px; }
.author-profile__header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.author-avatar--large { width: 80px; height: 80px; font-size: 1.8rem; }
.author-profile__role { color: var(--gray, #64748b); font-size: 1rem; margin: 0.25rem 0; }
.author-profile__credentials ul { list-style: disc; padding-left: 1.5rem; }
.author-articles ul { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.author-articles li { break-inside: avoid; margin-bottom: 0.4rem; }
.author-articles a { color: var(--primary, #2563eb); text-decoration: none; font-size: 0.9rem; }
.author-articles a:hover { text-decoration: underline; }
/* Author bio named variant */
.author-bio__role { color: var(--gray, #64748b); font-size: 0.85rem; margin: 0 0 0.5rem; }
.author-bio__credential { display: inline-block; background: var(--bg-alt, #f1f5f9); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.78rem; margin-right: 0.4rem; margin-bottom: 0.3rem; }
.author-bio__links { margin-top: 0.5rem; font-size: 0.82rem; }
.author-bio__links span { margin-right: 1rem; }
/* Authors hub grid */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.author-card { padding: 1.5rem; background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius, 8px); }
.author-card h2 { font-size: 1.15rem; margin: 0.75rem 0 0.25rem; }
.author-card__role { color: var(--gray, #64748b); font-size: 0.85rem; margin: 0 0 0.5rem; }
.author-card__creds { list-style: none; padding: 0; margin: 0.75rem 0; }
.author-card__creds li { font-size: 0.82rem; color: var(--gray, #64748b); }
.author-card__creds li::before { content: "\2713 "; color: var(--success, #16a34a); }
@media (max-width: 640px) { .author-articles ul { columns: 1; } .algo-related__list { grid-template-columns: 1fr; } }
