/* FinderCamp — DESIGN.md "Clean data". Tokens first, then components. Mobile first. */

:root {
  --bg: #FFFFFF;
  --surface-muted: #F6F7F9;
  --segment-bg: #F1F3F5;
  --text: #15191E;
  --text-2: #3B434C;
  --text-3: #5E6670;
  --text-4: #8A929B;
  --border: #E6E8EB;
  --border-row: #EEF0F2;
  --border-control: #D5D9DE;
  --accent: #1A56C4;
  --accent-hover: #123F91;
  --fit: #1E7B45;
  --ink-button: #15191E;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 16px;
  --max: 1200px;
}

/* Fonts: DESIGN.md wants self-hosted IBM Plex. The files are not installed (Tyler chose system fonts for now, 2026-10-18), so no
   @font-face rules are active: they would trigger a 404 per file on every page view. To enable Plex, add the six WOFF2 files named in
   assets/fonts/README.md and paste docs/plex-font-face.css above this comment. The --sans/--mono stacks already list Plex first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
.num { text-align: right; font-family: var(--mono); font-weight: 500; }
.fc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc-skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; border: 1px solid var(--border); border-radius: 3px; z-index: 10; }
.fc-skip:focus { left: 8px; }

.fc-wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.fc-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; }
.fc-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.fc-logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.fc-logo__mark { width: 18px; height: 18px; border-radius: 3px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.fc-logo__word { font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.fc-menu-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; }
.fc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 5; }
.fc-nav.is-open { display: block; }
.fc-nav__list { list-style: none; margin: 0; padding: 8px var(--gutter) 12px; }
.fc-nav__list a { display: block; min-height: 44px; line-height: 44px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.fc-nav__list .fc-nav__accent a, .fc-nav__list .current-menu-item a { color: var(--accent); font-weight: 600; }

/* Title block */
.fc-title { padding-top: 16px; }
.fc-crumb { font-size: 13px; color: var(--text-3); }
.fc-crumb a { color: var(--text-3); text-decoration: none; }
.fc-crumb a:hover { color: var(--text); }
.fc-h1 { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.15; }
.fc-sub-title { margin-top: 4px; font-size: 16px; color: var(--text-2); }
.fc-fresh { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.fc-fresh__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--fit); flex: none; }
.fc-h2 { font-size: 16px; font-weight: 600; }
.fc-label { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; }

/* Stat strip */
.fc-stats { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 4px; }
.fc-stat { padding: 10px; border-right: 1px solid var(--border); min-width: 0; }
.fc-stat:last-child, .fc-stat:nth-child(4) { border-right: 0; }
.fc-stat__n { font-family: var(--mono); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-stat__l { font-size: 11.5px; color: var(--text-3); }
.fc-stat__n--long { font-size: 13.5px; line-height: 23px; }
.fc-stat--desktop { display: none; }

/* Layout */
.fc-layout { display: flex; flex-direction: column; }
.fc-side { display: contents; }
.fc-content { min-width: 0; }
.fc-content--narrow { max-width: 680px; }

/* Rig control: sticky bar on mobile */
.fc-rig { position: sticky; top: 0; z-index: 2; margin: 16px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter); background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fc-rig__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-seg { display: flex; padding: 3px; gap: 2px; background: var(--segment-bg); border-radius: 4px; }
.fc-seg__btn { min-height: 34px; padding: 0 14px; border: 0; border-radius: 2px; background: transparent; color: var(--text-2); font-size: 14px; }
.fc-seg__btn[aria-pressed="true"] { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.fc-lengths { display: flex; gap: 6px; margin-top: 10px; }
.fc-len { flex: 1 1 0; min-height: 44px; border: 1px solid var(--border-control); border-radius: 3px; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; font-weight: 500; }
.fc-len[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.fc-rig__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fc-custom { display: none; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex: none; }
.fc-custom span { display: none; }
.fc-custom input { width: 88px; min-height: 36px; padding: 0 8px; border: 1px solid var(--border-control); border-radius: 3px; font-family: var(--mono); font-size: 13px; color: var(--text); }
.js .fc-custom { display: flex; }
.fc-fitline { margin: 0; font-size: 14px; color: var(--text-2); min-width: 0; }
.fc-fitline__count { color: var(--fit); }
.fc-fitline--table { display: none; }
.fc-help { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.fc-rig .fc-help { display: none; }
/* Phone order: rig bar, site list, then the booking callout (DESIGN.md mobile mock) */
.fc-rig { order: 0; }
.fc-content { order: 1; }
.fc-callout { order: 2; }

/* Callout */
.fc-callout { margin-top: 24px; padding: 16px; background: var(--surface-muted); border-radius: 4px; }
.fc-callout p { margin: 4px 0 12px; font-size: 14px; color: var(--text-2); }
.fc-btn-dark, .fc-btn-light { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ink-button); }
.fc-btn-dark { background: var(--ink-button); color: #fff; }
.fc-btn-dark:hover { color: #fff; background: #000; }
.fc-btn-light { background: var(--bg); color: var(--text); border-color: var(--border-control); }

/* Sites header + table */
.fc-sites-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 20px; }
.fc-sites-head .fc-h2 { display: none; }
.fc-tablewrap { margin-top: 0; }
.fc-table { width: 100%; font-size: 14.5px; }
.fc-table th { font-weight: 600; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; white-space: nowrap; }
.fc-table th.num { text-align: right; }

/* Mobile: table becomes a list of tappable rows (roles keep the semantics) */
.fc-table[data-fc-table], .fc-table[data-fc-table] thead, .fc-table[data-fc-table] tbody, .fc-table[data-fc-table] tr { display: block; }
.fc-table[data-fc-table] thead tr { display: grid; grid-template-columns: 64px 1fr 92px 22px; gap: 8px; padding: 10px 0 8px; border-bottom: 1px solid var(--border); }
.fc-table[data-fc-table] thead th { padding: 0; }
.fc-table[data-fc-table] thead .fc-c-loop, .fc-table[data-fc-table] thead .fc-c-entry, .fc-table[data-fc-table] thead .fc-c-surface, .fc-table[data-fc-table] thead .fc-c-cg, .fc-table[data-fc-table] thead .fc-typelabel { display: none; }
.fc-table[data-fc-table] thead .fc-c-max { text-align: left; font-family: var(--sans); }
.fc-table[data-fc-table] thead .fc-c-book span[aria-hidden] { display: none; }
.fc-table[data-fc-table] tbody tr.fc-row { position: relative; display: grid; grid-template-columns: 64px 1fr 92px 22px; gap: 8px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border-row); }
.fc-table[data-fc-table] tbody td { padding: 0; display: block; min-width: 0; }
.fc-table[data-fc-table] tbody .fc-c-loop, .fc-table[data-fc-table] tbody .fc-c-entry, .fc-table[data-fc-table] tbody .fc-c-surface { display: none; }
.fc-table[data-fc-table] tbody .fc-c-cg { grid-column: 1 / -1; font-size: 12px; margin-top: -6px; margin-bottom: 6px; }
.fc-siteid { display: block; font-family: var(--mono); font-weight: 600; font-size: 14.5px; }
.fc-sub { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-max { display: block; font-family: var(--mono); font-weight: 500; font-size: 14.5px; }
.fc-c-max.num { text-align: left; }
/* Which max shows: trailer by default; the script flips the body class */
.js .fc-max--rv { display: none; }
.js body.fc-type-rv .fc-max--rv, .js .fc-type-rv .fc-max--rv { display: block; }
.js .fc-type-rv .fc-max--tr { display: none; }
html:not(.js) .fc-max--tr::before { content: "Trailer "; font-family: var(--sans); font-size: 11.5px; color: var(--text-3); }
html:not(.js) .fc-max--rv::before { content: "RV "; font-family: var(--sans); font-size: 11.5px; color: var(--text-3); }
.fc-status { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--text-3); min-height: 20px; }
.fc-status--fit { color: var(--fit); font-weight: 600; }
.fc-status--unlisted { color: var(--text-4); }
.fc-book { font-weight: 600; text-decoration: none; }
.fc-book__text { display: none; }
.fc-book__chev { display: inline-flex; color: var(--text-4); }
/* Whole row tappable on phones */
.fc-table[data-fc-table] tbody .fc-book::after { content: ""; position: absolute; inset: 0; }
.fc-table[data-fc-table] tbody tr.fc-row:hover { background: var(--surface-muted); }
/* Row ordering is done by the script (fits first); nothing here changes heights, so no layout shift. */
.fc-note { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.fc-criteria { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* Simple tables (loops, hub, front page) */
.fc-table--simple th, .fc-table--simple td, .fc-table--hub th, .fc-table--hub td { padding: 10px 8px; border-top: 1px solid var(--border-row); }
.fc-table--simple thead tr, .fc-table--hub thead tr { background: var(--surface-muted); }
.fc-table--simple th, .fc-table--hub th { border-top: 0; }
.fc-tablewrap--plain, .fc-table--hub { font-size: 14px; }
.fc-table--hub { min-width: 560px; }
.fc-tablewrap:has(.fc-table--hub), .fc-tablewrap--plain { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.fc-tablewrap--plain table { width: 100%; }
.fc-table--hub td:first-child a { font-weight: 600; text-decoration: none; }
.fc-fitcount { font-family: var(--mono); font-weight: 600; }
.fc-fitcount--fit { color: var(--fit); }
.fc-fitcount--none { color: var(--text-4); font-weight: 500; }

/* Prose */
.fc-prose-block { margin-top: 24px; max-width: 680px; }
.fc-prose-block p, .fc-prose p, .fc-prose li { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.fc-prose-block .fc-lead { color: var(--text); font-weight: 500; }
.fc-prose-block .fc-h2, .fc-prose h2 { margin-bottom: 6px; }
.fc-prose-block p + p, .fc-prose p + p { margin-top: 10px; }
.fc-prose h2 { font-size: 20px; font-weight: 600; margin-top: 24px; }
.fc-prose h3 { font-size: 16px; font-weight: 600; margin-top: 18px; margin-bottom: 4px; }
.fc-prose ul, .fc-prose ol { padding-left: 22px; }
.fc-prose table { width: 100%; font-size: 14.5px; }
.fc-prose th, .fc-prose td { padding: 8px; border-top: 1px solid var(--border-row); text-align: left; }
.fc-article { padding-top: 16px; max-width: 760px; padding-bottom: 32px; }
.fc-article .fc-prose { margin-top: 16px; }
.fc-disclosure { margin-top: 14px; padding: 12px; background: var(--surface-muted); border-radius: 4px; font-size: 13px; color: var(--text-2); }
.fc-list { list-style: none; padding: 0; margin: 0; }
.fc-list li { padding: 10px 0; border-bottom: 1px solid var(--border-row); }
.fc-list a { text-decoration: none; font-weight: 600; }
.fc-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 8px 0 0; }
.fc-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-row); font-size: 14px; }
.fc-facts dt { color: var(--text-3); }
.fc-facts dd { margin: 0; font-weight: 500; text-align: right; }
.fc-facts .fc-facts__long { flex-direction: column; gap: 2px; }
.fc-facts .fc-facts__long dd { text-align: left; font-weight: 400; color: var(--text-2); }

/* Forms (booking tool) */
.fc-form { display: grid; gap: 14px; margin-top: 20px; }
.fc-field span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.fc-field select, .fc-field input { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--border-control); border-radius: 3px; font: inherit; color: var(--text); background: var(--bg); }
.fc-result { margin-top: 20px; }
.fc-result__box { padding: 16px; background: var(--surface-muted); border-radius: 4px; }
.fc-result__big { font-family: var(--mono); font-weight: 600; font-size: 20px; }
.fc-result__small { margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* Front page */
.fc-front .fc-sub-title { max-width: 680px; }
.fc-front__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.fc-front__areas { padding-bottom: 32px; }
.fc-area { margin-top: 28px; }
.fc-area .fc-h2 { font-size: 20px; margin-bottom: 10px; }
.fc-area .fc-h2 a { color: var(--text); text-decoration: none; }

/* Footer */
.fc-footer { margin-top: 28px; border-top: 1px solid var(--border); }
.fc-footer__in { padding-top: 18px; padding-bottom: 32px; font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; gap: 6px; }
.fc-footer a { color: var(--text-3); }

/* Tablet and desktop */
@media (min-width: 680px) {
  .fc-fitline--table { display: block; }
  .fc-sites-head .fc-h2 { display: block; font-size: 20px; }
  .fc-rig .fc-fitline { display: none; }
  .fc-rig .fc-help { display: block; }
  .fc-rig__bottom { display: block; }
  .fc-custom span { display: inline; }
  .fc-custom input { width: 72px; }
  .fc-rig, .fc-content, .fc-callout { order: 0; }
  /* Table proper */
  .fc-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; margin-top: 12px; }
  .fc-table[data-fc-table] { min-width: 680px; }
  .fc-table[data-fc-table], .fc-table[data-fc-table] thead, .fc-table[data-fc-table] tbody { display: table; width: 100%; }
  .fc-table[data-fc-table] thead { display: table-header-group; }
  .fc-table[data-fc-table] tbody { display: table-row-group; }
  .fc-table[data-fc-table] tr, .fc-table[data-fc-table] thead tr, .fc-table[data-fc-table] tbody tr.fc-row { display: table-row; position: static; min-height: 0; border: 0; }
  .fc-table[data-fc-table] thead tr { background: var(--surface-muted); }
  .fc-table[data-fc-table] th, .fc-table[data-fc-table] tbody td { display: table-cell; padding: 10px 8px; font-size: 12px; }
  .fc-table[data-fc-table] tbody td { padding: 11px 8px; font-size: 14.5px; border-top: 1px solid var(--border-row); height: 46px; }
  .fc-table[data-fc-table] th:first-child, .fc-table[data-fc-table] td:first-child { padding-left: 16px; }
  .fc-table[data-fc-table] th:last-child, .fc-table[data-fc-table] td:last-child { padding-right: 16px; }
  .fc-table[data-fc-table] thead .fc-c-loop, .fc-table[data-fc-table] thead .fc-c-entry, .fc-table[data-fc-table] thead .fc-c-surface, .fc-table[data-fc-table] thead .fc-c-cg, .fc-table[data-fc-table] thead .fc-typelabel,
  .fc-table[data-fc-table] tbody .fc-c-loop, .fc-table[data-fc-table] tbody .fc-c-entry, .fc-table[data-fc-table] tbody .fc-c-surface { display: table-cell; }
  .fc-table[data-fc-table] thead .fc-c-max, .fc-c-max.num { text-align: right; }
  .fc-table[data-fc-table] thead .fc-c-book span[aria-hidden] { display: inline; }
  .fc-table[data-fc-table] tbody .fc-c-cg { font-size: 14.5px; margin: 0; }
  .fc-mobile-only { display: none !important; }
  .fc-c-loop, .fc-c-entry, .fc-c-surface { color: var(--text-2); }
  .fc-book__text { display: inline; }
  .fc-book__chev { display: none; }
  .fc-table[data-fc-table] tbody .fc-book::after { content: none; }
  .fc-table[data-fc-table] tbody tr.fc-row:hover { background: transparent; }
  .fc-table[data-fc-table] tbody .fc-siteid { font-size: 14.5px; }
  html:not(.js) .fc-max { display: inline; }
  html:not(.js) .fc-max--rv { margin-left: 10px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { line-height: 1.5; }
  .fc-header__in { min-height: 60px; }
  .fc-logo__mark { width: 20px; height: 20px; }
  .fc-logo__word { font-size: 18px; }
  .fc-menu-btn { display: none; }
  .fc-nav { display: block; position: static; border: 0; }
  .fc-nav__list { display: flex; gap: 28px; padding: 0; }
  .fc-nav__list a { min-height: 0; line-height: 1.5; font-size: 14.5px; }
  .fc-title { padding-top: 28px; }
  .fc-title__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .fc-crumb { font-size: 13.5px; }
  .fc-h1 { font-size: 36px; letter-spacing: -0.6px; line-height: 1.1; }
  .fc-sub-title { margin-top: 6px; font-size: 18px; }
  .fc-fresh { margin: 0 0 6px; font-size: 13px; }
  .fc-stats { margin-top: 20px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fc-stat { padding: 14px 18px; }
  .fc-stat:nth-child(4) { border-right: 1px solid var(--border); }
  .fc-stat:last-child { border-right: 0; }
  .fc-stat--desktop { display: block; }
  .fc-stat__n { font-size: 22px; }
  .fc-stat__l { font-size: 13px; }
  .fc-layout { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
  .fc-side { display: flex; flex-direction: column; gap: 16px; flex: 1 1 280px; max-width: 360px; min-width: 0; }
  .fc-content { flex: 999 1 560px; }
  .fc-rig { position: static; margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 4px; }
  .fc-rig__top { display: block; }
  .fc-rig__top .fc-label { font-size: 12.5px; }
  .fc-rig__top .fc-seg { margin-top: 12px; }
  .fc-seg__btn { flex: 1 1 0; min-height: 38px; }
  .fc-lengths { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fc-callout { margin-top: 0; padding: 18px; }
  .fc-sites-head { margin-top: 0; }
  .fc-h2 { font-size: 20px; }
  .fc-callout .fc-h2, .fc-rig .fc-h2 { font-size: 16px; }
  .fc-note { font-size: 12.5px; }
  .fc-footer__in { flex-direction: row; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 40px; font-size: 13px; }
  .fc-footer__in p:first-child { max-width: 600px; }
  .fc-prose-block { margin-top: 32px; }
  .fc-facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .fc-facts .fc-facts__long { grid-column: 1 / -1; }
}

@media print {
  .fc-header, .fc-footer, .fc-rig, .fc-callout, .fc-c-fit { display: none !important; }
}
