/*
 * foil.guide styles. Plain CSS via Propshaft — no build step.
 */

:root {
  --blue-50: #eef6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;

  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f4f8fc;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

.site-header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: white;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.site-header .wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-header .logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.site-header .logo span {
  color: var(--blue-100);
}

.site-header .site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header .site-nav a {
  color: var(--blue-100);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header .site-nav a:hover {
  color: white;
}

.site-header .site-search {
  margin-left: auto;
  flex: 0 1 260px;
  min-width: 140px;
}

.site-header .site-search-input {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-family: inherit;
}

.site-header .site-search-input::placeholder {
  color: var(--blue-100);
  opacity: 0.9;
}

.site-header .site-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.site-header .locale-switcher {
  flex-shrink: 0;
}

.site-header .locale-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 22px 4px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}

.site-header .locale-select:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.site-header .locale-select option {
  color: var(--ink);
  background: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px 32px;
}

.site-footer .wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--blue-600);
}

/* --- Static pages (about) --------------------------------------------- */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 16px;
}

.page-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.page h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.page p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.page-signoff {
  font-weight: 700;
  color: var(--blue-900);
}

.page-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--blue-900);
}

h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 32px 0 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Filter form */

.filter-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.filter-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.filter-field select,
.filter-field input[type="number"] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.filter-disciplines {
  margin-top: 14px;
}

.filter-disciplines > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.filter-discipline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-secondary {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.no-results {
  color: var(--muted);
  font-size: 15px;
  padding: 24px 0;
}

/* Compare */

.compare-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.compare-bar .btn-primary {
  margin-left: auto;
}

.compare-bar .btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.clear-selection {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.result-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

p.result-count {
  margin: 0 0 14px;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.view-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.view-link.active {
  background: var(--blue-600);
  color: white;
}

/* Sortable spec table (front-wing index, table view). Shares the compare
   table's cell styling; the header links carry the sort state. */
.spec-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.spec-table thead th {
  background: var(--blue-50);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-900);
}

.spec-table th.num,
.spec-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.spec-table tbody tr:hover {
  background: var(--blue-50);
}

.spec-table-name {
  font-weight: 600;
}

.spec-table-disciplines {
  font-size: 13px;
  color: var(--muted);
}

.sort-link {
  color: inherit;
}

.sort-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--blue-200);
  vertical-align: middle;
}

.sort-link.active::after {
  border-bottom-color: var(--blue-600);
}

.sort-link.active.desc::after {
  border-bottom: none;
  border-top: 5px solid var(--blue-600);
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.compare-table thead th {
  vertical-align: top;
  background: var(--blue-50);
}

.compare-table tbody th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.compare-brand {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
}

.compare-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.compare-size {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Diff highlighting: identical rows fade back, the objectively best cell
   (lightest, cheapest, highest AR, earliest take-off) steps forward. */
.compare-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -8px 0 14px;
}

.compare-legend {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.compare-table thead th {
  position: relative;
  padding-right: 32px;
}

.compare-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}

.compare-remove:hover {
  color: var(--ink);
}

.compare-table tr.same td,
.compare-table tr.same th {
  color: var(--muted);
  opacity: 0.6;
}

.compare-table td.best {
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
}

/* "Add to comparison" on the wing page */

.compare-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.compare-toggle .btn-secondary[aria-pressed="true"] {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.compare-toggle-status {
  font-size: 13px;
  color: var(--muted);
}

/* Front wing line grid (index) */

.line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.line-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.line-card .brand,
.similar-card .brand {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
}

.line-card .line-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 14px;
}

.line-released {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-check {
  cursor: pointer;
}

.size-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.size-chip:hover {
  background: var(--blue-100);
  border-color: var(--blue-400);
}

.size-chip .size-name {
  font-size: 14px;
  color: var(--blue-700);
}

.size-chip .size-area {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.stat {
  background: var(--blue-50);
  border-radius: 8px;
  padding: 8px 10px;
}

.stat .label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat .value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge.skill {
  background: var(--blue-900);
  color: white;
}

/* Brands */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(37, 99, 235, 0.12);
}

.brand-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.brand-card-count {
  font-size: 13px;
  color: var(--muted);
}

.brand-logo {
  object-fit: contain;
}

.brand-logo-card {
  max-height: 48px;
  max-width: 96px;
  margin-bottom: 4px;
}

.brand-logo-hero {
  max-height: 72px;
  max-width: 160px;
  margin-bottom: 12px;
}

/* Show page */

.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 8px;
}

.detail-hero .brand {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.detail-hero-meta + .detail-hero-meta {
  margin-top: 6px;
}

.line-description {
  margin: 14px 0 6px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.detail-image {
  display: block;
  max-width: 320px;
  max-height: 200px;
  width: auto;
  height: auto;
  margin: 14px 0 4px;
  border-radius: 8px;
}

.stat .hint {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.ratings {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.ratings li {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.ratings .bar {
  display: block;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.ratings .fill {
  display: block;
  height: 100%;
  background: var(--blue-600);
  border-radius: 4px;
}

.ratings .value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ratings-note,
.compare-hint {
  font-size: 12px;
  opacity: 0.7;
}

.compare-hint {
  font-weight: normal;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.set-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.set-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}

.set-list .set-name {
  font-weight: 700;
  color: var(--blue-900);
  display: block;
  margin-bottom: 4px;
}

.provenance {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* "Spotted a wrong number?" form under the specs */

.report {
  margin-top: 14px;
  font-size: 14px;
}

.report summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-600);
}

.report-intro {
  color: var(--muted);
  margin: 10px 0;
}

.report-form {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.report-form label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 6px;
}

.report-form textarea,
.report-form input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
}

.report-form .btn-primary {
  justify-self: start;
  margin-top: 8px;
}

.report-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
}

.flash-notice {
  background: var(--blue-50);
  color: var(--blue-900);
  border: 1px solid var(--blue-200);
}

.flash-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Landing page */

.home-hero {
  text-align: center;
  padding: 24px 0 8px;
}

.home-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}

.home-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 auto 16px;
}

.home-lede {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-large {
  padding: 13px 26px;
  font-size: 16px;
}

a.btn-primary {
  display: inline-block;
  color: white;
}

.home-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 44px auto 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-stat {
  text-align: center;
  min-width: 96px;
}

.home-stat dt {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.home-stat dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.home-section {
  margin-top: 56px;
}

.home-section h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.home-section-lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

.home-section-more {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.home-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.home-component {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.home-component:hover {
  transform: translateY(-2px);
  border-color: var(--blue-400);
  color: var(--ink);
}

.home-component-primary {
  background: linear-gradient(160deg, var(--blue-50), var(--surface));
  border-color: var(--blue-200);
}

.home-component-count {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-600);
  line-height: 1;
}

.home-component-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-900);
  margin-top: 6px;
}

.home-component-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.home-component-cta {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
}

.home-chips,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.home-chip:hover,
.chip:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
}

.home-chip-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 999px;
  padding: 2px 8px;
}

.home-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.home-steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 68px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-steps strong {
  font-size: 16px;
  color: var(--blue-900);
}

.home-steps span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.home-about {
  padding: 32px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-about h2 {
  color: white;
  margin-top: 0;
}

.home-about p {
  max-width: 680px;
  line-height: 1.6;
  color: var(--blue-100);
  font-size: 15px;
}

.home-about .home-cta-line {
  margin: 20px 0 0;
}

.home-about .btn-primary {
  background: white;
  color: var(--blue-700);
}

.home-about .btn-primary:hover {
  background: var(--blue-50);
}

/* --- Similar wings (front wing show page) ------------------------------ */

.section-lede {
  color: var(--muted);
  font-size: 14px;
  margin: -6px 0 14px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.similar-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.similar-card .similar-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  color: var(--ink);
}

.similar-card .similar-link:hover .name {
  color: var(--blue-700);
}

.similar-card .name {
  font-size: 15px;
  font-weight: 700;
}

.similar-card .spec {
  font-size: 12px;
  color: var(--muted);
}

.similar-card .compare-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.similar-actions {
  margin: 16px 0 0;
}

/* --- Search ------------------------------------------------------------ */

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-form .search-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.search-form .search-input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.search-prompt,
.search-truncated {
  color: var(--muted);
  font-size: 14px;
}

.search-section h2 {
  margin-top: 24px;
}

@media (max-width: 600px) {
  .site-header .wrap {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-header .site-search {
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
  }

  .site-header .locale-switcher {
    margin-left: auto;
  }

  .compare-bar {
    flex-wrap: wrap;
  }

  .home-hero {
    text-align: left;
  }

  .home-hero h1,
  .home-lede {
    margin-left: 0;
  }

  .home-actions {
    justify-content: flex-start;
  }

  .home-stats {
    justify-content: space-between;
    gap: 16px 12px;
  }

  .home-about {
    padding: 24px;
  }
}

/* --- Spots ------------------------------------------------------------ */
.page-lede {
  color: var(--muted);
  max-width: 720px;
  margin: -6px 0 22px;
}
.continent-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.continent-nav .chip-count {
  font-weight: 500;
  color: var(--muted);
}
.continent {
  margin-bottom: 36px;
}
.country-heading {
  margin: 22px 0 10px;
  font-size: 17px;
  color: var(--blue-700);
}

/* Country flags (lipis/flag-icons SVGs). Inline next to a country name by
   default; .flag-hero is the large one in a spot page's hero. */
.flag {
  display: inline-block;
  height: 1em;
  width: 1.333em;
  vertical-align: -0.15em;
  margin-right: 0.45em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  object-fit: cover;
  background: var(--surface);
}
.flag-1x1 {
  width: 1em;
}
.flag-hero {
  float: right;
  height: 54px;
  width: 72px;
  margin: 0 0 12px 16px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.1);
}
.detail-hero .brand a .flag {
  vertical-align: -0.2em;
}
.spot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.spot-card:hover {
  border-color: var(--blue-400);
}
.spot-region {
  color: var(--muted);
  font-size: 13px;
  margin-top: -6px;
}
.spot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  font-size: 13px;
}
.spot-facts div {
  display: flex;
  gap: 6px;
}
.spot-facts dt {
  color: var(--muted);
}
.spot-facts dd {
  margin: 0;
  font-weight: 600;
}
.spot-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.spot-summary-full {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 760px;
/* Pagination (index pages) */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 28px 0 8px;
  font-size: 14px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pagination-link,
.pagination-page {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--blue-600);
  text-decoration: none;
  line-height: 1;
}

.pagination-page {
  min-width: 34px;
  text-align: center;
}

.pagination-link:hover,
.pagination-page:hover {
  border-color: var(--blue-600);
}

.pagination-page.is-current {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  font-weight: 600;
}

.pagination-link.is-disabled {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

/* Spot photos (SpotPhoto) and the map on the spot pages. */
.spot-hero-photo {
  margin: -24px -24px 18px;
}
.spot-hero-photo .spot-photo-hero {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.photo-credit {
  padding: 6px 24px 0;
  font-size: 12px;
  color: var(--muted);
}
.photo-credit a {
  color: inherit;
}
.spot-card .spot-photo-card {
  display: block;
  width: calc(100% + 36px);
  margin: -18px -18px 4px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.spot-map-section {
  margin-top: 28px;
}
.spot-map {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.spot-map noscript {
  display: block;
  padding: 24px;
}
.map-links {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 600px) {
  .spot-hero-photo .spot-photo-hero { max-height: 260px; }
  .spot-map { height: 280px; }
}
