/* TravelSystemFit — design v2 (Rehana's revision, Nov 1, 2026).
   Tokens: petrol primary, warm ivory, sand surface, coral accent.
   Type: Fredoka for headings, Poppins for body, both self-hosted woff2 subsets.
   Headings in Title Case for this site, by the owner's order.
   Passes: Impeccable, unslop redline (quiet chrome, one accent, 4px rhythm,
   no gradients or glows), taste-skill, ui-ux-pro-max. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #1D5C7A;
  --primary-dark: #174A61;
  --accent: #CE4419;
  --bg: #FDFBF6;
  --surface: #F5F0E6;
  --card: #FFFFFF;
  --text: #1C2B33;
  --secondary: #43545E;
  --muted: #5C6F78;
  --nofit: #B03A2E;
  --hairline: rgba(28, 43, 51, 0.14);
  --hairline-soft: rgba(28, 43, 51, 0.08);
  --radius: 8px;
  --radius-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Demo note bar */
.demo-note {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--secondary);
}
.demo-note .wrap { padding-top: 8px; padding-bottom: 8px; }
.demo-note strong { font-weight: 500; color: var(--text); }

/* Header */
.site-head {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: relative;
}
.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  flex: none;
}
.wordmark:hover { color: var(--text); }
.mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mark svg { display: block; }
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.main-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.icon-btn {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--secondary);
  cursor: pointer;
  flex: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface); }

/* Search panel */
.search-panel {
  border-bottom: 1px solid var(--hairline);
  background: var(--card);
  padding: 20px 0 24px;
}
.search-panel[hidden] { display: none; }
.search-box { max-width: 720px; }
.search-box label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.search-box input {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.search-results { max-width: 720px; margin-top: 8px; }
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline-soft);
  text-decoration: none;
  color: var(--text);
}
.search-results a:hover { color: var(--primary); }
.search-results .kind { color: var(--muted); font-size: 13px; white-space: nowrap; }
.search-none { color: var(--secondary); font-size: 14px; padding: 12px 4px; }

/* Hero + finder */
.hero { padding: 56px 0 64px; }
.kicker { color: var(--secondary); font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: 46px; max-width: 15em; letter-spacing: 0; }
.lede {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.55;
  max-width: 37rem;
  margin-top: 16px;
}
.finder-band {
  background: var(--surface);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 40px 0;
}
.finder {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
}
.finder h2 { font-size: 22px; margin-bottom: 4px; }
.finder .sub { color: var(--secondary); font-size: 15px; margin-bottom: 20px; }
.finder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.field { min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 160ms var(--ease);
}
.field select:hover { border-color: rgba(28, 43, 51, 0.3); }
.btn {
  min-height: 48px;
  padding: 12px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(0.98); }
.finder-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 24px;
  color: var(--secondary);
  font-size: 14px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .dot { width: 7px; height: 7px; top: 0; }

/* Fit label — the signature element */
.fit-label {
  margin-top: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--card);
  padding: 24px;
  position: relative;
}
.fit-label::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.fit-label .pair { font-size: 14px; color: var(--secondary); margin-bottom: 8px; padding-right: 32px; }
.fit-label .verdict {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex: none;
  position: relative;
  top: 1px;
}
.dot-fits { background: var(--primary); }
.dot-adapter { background: var(--accent); }
.dot-no { background: var(--nofit); }
.dot-unlisted { background: var(--muted); }
.fit-label .detail { margin-top: 12px; color: var(--secondary); max-width: 44rem; }
.sku-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.source-line {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--secondary);
}
.result-empty { color: var(--secondary); margin-top: 24px; }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hairline-soft); }
.section h2 { font-size: 29px; margin-bottom: 12px; }
.section .intro { color: var(--secondary); max-width: 44rem; }
.band { background: var(--surface); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.band + .section { border-top: none; }

/* Directory */
.directory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.dir-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  min-width: 0;
}
.dir-card h3 { font-size: 19px; margin-bottom: 4px; }
.dir-card .sub { color: var(--secondary); font-size: 14px; margin-bottom: 12px; }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 15px;
}
.dir-list li > span, .dir-list li > a { min-width: 0; }
.dir-list .count { font-family: var(--font-mono); font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dir-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--secondary); font-size: 15px; }

/* Pair list */
.pair-list { margin-top: 24px; border-top: 1px solid var(--hairline); }
.pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  text-decoration: none;
  color: var(--text);
}
a.pair-row:hover .pair-name { color: var(--primary); }
.pair-name { font-weight: 500; }
.pair-sub { color: var(--secondary); font-size: 14px; }
.pair-verdict { font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.pair-verdict .dot { width: 9px; height: 9px; top: 0; }
.v-fits { color: var(--primary); }
.v-adapter { color: var(--accent); }
.v-no { color: var(--nofit); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.stat .figure {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--secondary); font-size: 14px; margin-top: 8px; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--secondary); padding: 24px 0 0; }
.crumbs a { color: var(--secondary); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; color: var(--muted); }

/* Reading pages */
.page-head { padding: 24px 0 8px; }
.page-head h1 { font-size: 38px; max-width: 21em; }
.answer-first { font-size: 18px; color: var(--secondary); max-width: 44rem; margin-top: 16px; }
.answer-first strong { color: var(--text); font-weight: 500; }
.prose { max-width: 44rem; padding-bottom: 16px; }
.prose h2 { font-size: 25px; margin: 44px 0 12px; padding-top: 28px; border-top: 1px solid var(--hairline-soft); }
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 32px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .note { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.prose .note p { margin: 0; color: var(--secondary); font-size: 15px; }
.prose .note strong { color: var(--text); font-weight: 500; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.summary-strip .cell { border-top: 2px solid var(--primary); padding-top: 12px; min-width: 0; }
.stat, .step { min-width: 0; }
.summary-strip .figure { font-family: var(--font-head); font-weight: 600; font-size: 26px; font-variant-numeric: tabular-nums; }
.summary-strip .label { color: var(--secondary); font-size: 14px; margin-top: 4px; }

/* Hub matrix table */
.matrix-wrap { margin-top: 8px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
table.matrix caption {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  padding: 28px 0 12px;
}
table.matrix th {
  text-align: left;
  font-weight: 500;
  color: var(--secondary);
  font-size: 13px;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
table.matrix th:first-child { border-radius: var(--radius) 0 0 0; }
table.matrix th:last-child { border-radius: 0 var(--radius) 0 0; }
table.matrix td { padding: 14px 16px 14px 12px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; }
table.matrix td.seat { font-weight: 500; }
table.matrix .mono { font-family: var(--font-mono); font-size: 13px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); margin-top: 24px; padding: 48px 0 40px; background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h3 { font-size: 16px; margin-bottom: 14px; }
.foot-about { color: var(--secondary); font-size: 14px; max-width: 30rem; margin-top: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-links a { color: var(--secondary); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-bar {
  border-top: 1px solid var(--hairline-soft);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  color: var(--muted);
  font-size: 13px;
}

/* Scroll to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(28, 43, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), background-color 160ms var(--ease);
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }

/* Small screens */
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  /* Header categories stack under the logo */
  .site-head .wrap { padding: 0; }
  .head-row { flex-wrap: wrap; gap: 0; min-height: 0; padding: 12px 16px 0; }
  .wordmark { font-size: 18px; }
  .head-row .icon-btn { margin-left: auto; }
  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    border-top: 1px solid var(--hairline-soft);
    padding: 8px 0 12px;
    flex-wrap: wrap;
    gap: 2px;
  }
  .main-nav a { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 34px; }
  .page-head h1 { font-size: 29px; }
  .finder { padding: 20px; }
  .finder-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .dir-list .count { white-space: normal; text-align: right; }
  .pair-verdict { white-space: normal; text-align: right; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .summary-strip { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 44px 0; }

  /* Standing mobile table rule: label-left / data-right stacked blocks */
  table.matrix thead { position: absolute; left: -9999px; top: -9999px; }
  table.matrix, table.matrix tbody, table.matrix tr, table.matrix td { display: block; width: 100%; }
  table.matrix tr {
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--card);
  }
  table.matrix tr:nth-child(even) { background: var(--surface); }
  table.matrix td {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border: none;
    padding: 6px 0;
    text-align: right;
  }
  table.matrix td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--secondary);
    font-size: 13px;
    text-align: left;
    flex: none;
  }
  table.matrix td.seat { font-size: 16px; }
  table.matrix td.seat::before { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
