/* -------------------------------------------------------------
 * WanderAgent — shared styles for /guides and /compare pages.
 *
 * Self-contained: mirrors the design tokens in style.css so content
 * pages match the landing site without pulling in the 1,400-line
 * landing layout. Keep the token block in sync with style.css.
 * ------------------------------------------------------------- */

:root {
  --background: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #EFF6FF;
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --secondary: #0F766E;
  --text-primary: #1C1917;
  --text-secondary: #4B5563;
  --outline: #EAE8E4;
  --shadow: rgba(28, 25, 23, 0.06);
  --card-radius: 24px;
  --button-radius: 20px;
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --background: #090D16;
  --surface: #0F172A;
  --surface-alt: #1E3A8A;
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --secondary: #14B8A6;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --outline: #1F2937;
  --shadow: rgba(0, 0, 0, 0.2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip-to-content:focus { left: 0; }

/* ---------- Header ---------- */

.content-header {
  border-bottom: 1px solid var(--outline);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.content-header-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.0625rem;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.header-right { display: flex; align-items: center; gap: 8px; }

.header-nav {
  display: flex;
  gap: 18px;
  font-size: 0.9375rem;
}
.header-nav a { color: var(--text-secondary); text-decoration: none; }
.header-nav a:hover { color: var(--primary); }

.icon-button {
  background: none;
  border: 1px solid var(--outline);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.icon-button:hover { color: var(--primary); border-color: var(--primary); }
.icon-button svg { width: 18px; height: 18px; }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* ---------- Article ---------- */

.content-main { max-width: 780px; margin: 0 auto; padding: 40px 24px 88px; }

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface-alt);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
[data-theme="dark"] .eyebrow { color: #BFDBFE; }

h1 {
  font-family: var(--font-headings);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.standfirst {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.meta { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 36px; }

h2 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

h3 {
  font-family: var(--font-headings);
  font-size: 1.1875rem;
  margin: 30px 0 10px;
}

p { margin-bottom: 18px; }

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

ul, ol { margin: 0 0 20px 22px; }
li { margin-bottom: 9px; }

strong { font-weight: 600; }

blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
}

table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
}
thead th {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-alt);
  white-space: nowrap;
}
[data-theme="dark"] thead th { background: #16223d; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--font-headings);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-headings);
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--outline); }
.faq-body { padding: 16px 0 4px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Guide index cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--card-radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px var(--shadow);
}
.guide-card:hover { border-color: var(--primary); }
.guide-card h2 { font-size: 1.125rem; margin: 0 0 8px; }
.guide-card p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }

/* ---------- CTA ---------- */

.cta {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--card-radius);
  padding: 32px;
  margin-top: 52px;
  text-align: center;
  box-shadow: 0 2px 14px var(--shadow);
}
.cta h2 { margin: 0 0 10px; font-size: 1.375rem; }
.cta p { color: var(--text-secondary); margin-bottom: 22px; }

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--button-radius);
  font-family: var(--font-headings);
}
.button:hover { background: var(--primary-hover); color: #fff; }

/* ---------- Related ---------- */

.related { margin-top: 48px; border-top: 1px solid var(--outline); padding-top: 26px; }
.related h2 { font-size: 1.125rem; margin: 0 0 12px; }
.related ul { margin-left: 20px; }

/* ---------- Footer ---------- */

.content-footer {
  border-top: 1px solid var(--outline);
  background: var(--surface);
  padding: 28px 24px;
}
.content-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.content-footer a { color: var(--text-secondary); text-decoration: none; }
.content-footer a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .header-nav { display: none; }
  .content-main { padding: 28px 20px 64px; }
  .cta { padding: 26px 20px; }
}
