/* TripRanked — shared styles */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --blue: #0369a1;
  --blue-soft: #e0f2fe;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --gold: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --max: 960px;
  --nav-h: 64px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Sticky nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--blue); }
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}

/* Layout */
main { flex: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--blue-soft) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-explain {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--teal-dark) !important;
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.meta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.card .rank-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* Ranked list cards */
.rank-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }

.rank-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
}
.rank-num {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.rank-body h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.best-for {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}
.pros-cons ul { padding-left: 1.15rem; color: var(--muted); }
.pros-cons strong { display: block; margin-bottom: 0.25rem; color: var(--ink); font-size: 0.85rem; }
.rank-actions { margin-top: 0.5rem; }

/* Table */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
td a.btn { white-space: nowrap; }

.editorial-banner {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 1.75rem;
}

.prose { max-width: 40rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h2 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; color: var(--ink); }
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--muted); }
.prose li { margin-bottom: 0.35rem; }

.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.25rem; }
.cta-band .btn { background: #fff; color: var(--teal-dark) !important; }
.cta-band .btn:hover { background: var(--teal-light); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 0.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; list-style: none; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-note { margin-top: 1.25rem; max-width: var(--max); margin-left: auto; margin-right: auto; font-size: 0.8rem; }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-num { margin-bottom: 0; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 1.75rem 1.25rem; }
}
