/* PriceHiked: Mobbin-style visual language.
   Pure white canvas, Inter everywhere (bold, tightly tracked headings), light-gray filled
   panels instead of shadows, pill-shaped buttons and controls, a big gray search pill in the nav.
   Red is reserved for price increases; green for savings and kept promises. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #f5f5f5;
  --panel-hover: #eeeeee;
  --text: #111111;
  --text-2: #3a3a3a;
  --muted: #6e6e6e;
  --faint: #a6a6a6;
  --line: #efefef;
  --border: #e8e8e8;
  --border-2: #d6d6d6;
  --tint: #f2f2f2;
  --tint-hover: #e8e8e8;
  --ink: #111111;
  --ink-hover: #333333;

  --red: #dc2626;
  --red-ink: #b91c1c;
  --red-bg: #fef2f2;
  --red-line: #fecaca;
  --green: #16a34a;
  --green-ink: #15803d;
  --green-bg: #f0fdf4;
  --green-line: #bbf7d0;
  --amber-ink: #b45309;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;

  --shadow-card: 0 0 0 1px #ebebeb;
  --shadow-float: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 44px -14px rgba(0, 0, 0, 0.2);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: 32px;
  --nav-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(10, 10, 10, 0.12); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
#app:focus { outline: none; }
[hidden] { display: none !important; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.num, .table td, .price { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.up { color: var(--red); }
.down { color: var(--green-ink); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.center { text-align: center; }
.link { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.ext::after { content: " ↗"; font-size: 0.85em; color: var(--faint); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.lede { max-width: 560px; margin: 18px auto 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.lede-left { max-width: 640px; margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.045em; color: var(--text); flex: none; }
.logo-mark { width: 26px; height: 26px; color: var(--text); transform: rotate(-6deg); }
.nav-links { display: flex; gap: 22px; flex: none; }
.nav-links a { font-size: 15px; font-weight: 550; color: var(--muted); transition: color 0.15s; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-search { position: relative; flex: 1 1 auto; max-width: 520px; margin: 0 auto; }
.nav-search > .i { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.nav-search input {
  width: 100%; height: 46px; padding: 0 18px 0 46px; border: 0; border-radius: 999px;
  background: var(--tint); font-size: 15px; outline: none; transition: background 0.15s, box-shadow 0.15s;
}
.nav-search input::placeholder { color: #8a8a8a; }
.nav-search input:focus { background: #fff; box-shadow: 0 0 0 1px var(--border-2), 0 0 0 4px rgba(0, 0, 0, 0.04); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-float); }
.search-results[hidden] { display: none; }
.sr-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.sr-item:hover, .sr-item.active { background: var(--tint); }
.sr-main b { display: block; font-size: 14px; font-weight: 650; }
.sr-main small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-add .i { width: 15px; height: 15px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; color: var(--text); }
.menu-btn .i { width: 20px; height: 20px; }
.menu-btn:hover { background: var(--tint); }
.mobile-menu { display: none; padding: 10px var(--gutter) 16px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu .nav-search { display: block; max-width: none; margin: 4px 0 8px; }
.mobile-menu a, .mobile-menu > button { display: block; width: 100%; padding: 12px 2px; text-align: left; font-size: 16px; font-weight: 550; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .sr-item { border-bottom: 0; padding: 8px 10px; font-size: inherit; }
.nav.open .mobile-menu { display: block; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: -0.01em;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer; user-select: none;
}
.btn:active { transform: translateY(0.5px); }
.btn .i { width: 16px; height: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: var(--tint); color: var(--text); }
.btn-light:hover { background: var(--tint-hover); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--tint); color: var(--text); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
.btn-xs .i { width: 13px; height: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-lg .i { width: 17px; height: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.input {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid transparent; background: var(--tint);
  font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder { color: #8f8f8f; }
.input:focus { background: #fff; border-color: var(--border-2); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04); }
.input.invalid { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 11px center;
}
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.field .hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.45; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p, 50%) 100% no-repeat, #e7e7e7;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.18);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #e7e7e7; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.18); }

/* ---------- badges, tiles, chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--b-bg, #f4f4f5); color: var(--b-fg, #52525b);
  box-shadow: inset 0 0 0 1px var(--b-line, #e4e4e7);
  font-variant-numeric: tabular-nums;
}
.badge .i { width: 12px; height: 12px; }
.badge.red { --b-bg: var(--red-bg); --b-fg: var(--red-ink); --b-line: var(--red-line); }
.badge.green { --b-bg: var(--green-bg); --b-fg: var(--green-ink); --b-line: var(--green-line); }
.badge.amber { --b-bg: var(--amber-bg); --b-fg: var(--amber-ink); --b-line: var(--amber-line); }
.badge.dark { --b-bg: var(--ink); --b-fg: #fafafa; --b-line: var(--ink); }
.badge.outline { --b-bg: transparent; --b-fg: var(--muted); --b-line: var(--border); }
.badge.lg { height: 26px; padding: 0 10px; font-size: 13px; }

.tile {
  --s: 28px;
  display: inline-block; flex: none; overflow: hidden;
  width: var(--s); height: var(--s); line-height: var(--s);
  border-radius: calc(var(--s) * 0.27);
  background: var(--c, #333); color: var(--fg, #fff);
  text-align: center; font-family: var(--font-sans); font-weight: 650;
  font-size: calc(var(--s) * 0.5); letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  vertical-align: middle; user-select: none;
}
.tile.sm-glyph { font-size: calc(var(--s) * 0.4); }
.tile { position: relative; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile.has-logo { background: #fff; color: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); }

.seg {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--tint);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg button:hover, .seg a:hover { color: var(--text); }
.seg [aria-selected="true"], .seg .on {
  background: #fff; color: var(--text); font-weight: 650;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.seg .i { width: 15px; height: 15px; }
.seg .count { font-size: 12px; color: var(--faint); font-weight: 500; }
.seg-sm { padding: 3px; }
.seg-sm button, .seg-sm a { height: 30px; padding: 0 13px; font-size: 13px; gap: 6px; }

/* Underlined tabs, like Mobbin's Latest / Most popular row. */
.tabs { display: flex; gap: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  position: relative; display: inline-flex; align-items: center; height: 40px;
  font-size: 15px; font-weight: 550; color: var(--muted); white-space: nowrap; letter-spacing: -0.01em;
  transition: color 0.15s;
}
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected="true"] { color: var(--text); font-weight: 650; }
.tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card); min-width: 0; }
.card.fill { background: var(--panel); box-shadow: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.card-title .i { width: 17px; height: 17px; color: var(--muted); }
.card-b { padding: 20px; }
.card-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.card-pad { padding: 24px; }

/* ---------- page tops ---------- */
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--tint);
  font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 24px; max-width: 100%;
}
.pill-link:hover { background: var(--tint-hover); }
.pill-link .sep { width: 1px; height: 12px; background: var(--border); }
.pill-link .go { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.pill-link .i { width: 13px; height: 13px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); flex: none; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.05); } }

.form-ok {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
  border-radius: 12px; background: var(--green-bg); box-shadow: inset 0 0 0 1px var(--green-line);
  color: #14532d; font-size: 14px; text-align: left; line-height: 1.5;
}
.form-ok .i { width: 18px; height: 18px; color: var(--green-ink); margin-top: 1px; }
.form-ok small { display: block; color: #3f6b4f; font-size: 12.5px; margin-top: 2px; }
.form-err {
  display: flex; align-items: flex-start; gap: 10px; flex-basis: 100%; padding: 12px 14px;
  border-radius: 12px; background: var(--red-bg); box-shadow: inset 0 0 0 1px var(--red-line);
  color: var(--red-ink); font-size: 13.5px; line-height: 1.5; text-align: left;
}
.form-err .i { width: 17px; height: 17px; margin-top: 2px; }
.form-err a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-fail-spot]:empty { display: none; }

/* ---------- the board (home, /hikes, /products) ---------- */
.board-wrap { padding-top: 22px; }
.toolbar { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.board-search { position: relative; display: block; }
.board-search > .i { position: absolute; left: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--muted); pointer-events: none; }
.board-search input {
  width: 230px; height: 36px; padding: 0 14px 0 35px; border: 0; border-radius: 999px;
  background: var(--tint); font-size: 14px; outline: none; transition: background 0.15s, box-shadow 0.15s;
}
.board-search input::placeholder { color: #8a8a8a; }
.board-search input:focus { background: #fff; box-shadow: 0 0 0 1px var(--border-2), 0 0 0 4px rgba(0, 0, 0, 0.04); }
/* Sort: a pill button and a floating menu in the same style as the search results. */
.sort-menu { position: relative; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--tint); font-size: 13.5px; color: var(--text); white-space: nowrap; transition: background 0.15s, box-shadow 0.15s;
}
.sort-btn:hover, .sort-menu.open .sort-btn { background: var(--tint-hover); }
.sort-btn .k { color: var(--muted); font-size: 13px; }
.sort-btn b { font-weight: 650; }
.sort-btn .i { width: 15px; height: 15px; color: var(--muted); transition: transform 0.15s; }
.sort-menu.open .sort-btn .i { transform: rotate(180deg); }
.sort-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 236px; padding: 6px;
  border-radius: 18px; background: #fff; box-shadow: var(--shadow-float); animation: pop-in 0.12s ease-out;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.sort-pop-h { padding: 8px 12px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.sort-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 38px; padding: 0 12px;
  border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); text-align: left; white-space: nowrap;
}
.sort-opt:hover, .sort-opt:focus-visible { background: var(--tint); color: var(--text); outline: none; }
.sort-opt[aria-selected="true"] { color: var(--text); font-weight: 650; }
.sort-opt .i { width: 16px; height: 16px; color: var(--text); }
.board-banner {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  margin: 28px 0 0; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--tint);
  font-size: 14.5px; color: var(--text-2);
}
.board-banner .mini-form { margin-left: auto; flex: 0 1 360px; }
.board-banner .mini-form .input { background: #fff; }
.pill-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 750; letter-spacing: 0.05em; }

.b-sizes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 16px; font-size: 13px; color: var(--muted); }

.b-cols, .b-main {
  display: grid; align-items: center; gap: 20px;
  grid-template-columns: 112px minmax(180px, 0.9fr) minmax(190px, 0.95fr) minmax(280px, 1.45fr) 20px;
}
.b-cols { padding: 0 22px 8px; }
.b-colbtn {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start; height: 26px; margin-left: -8px; padding: 0 8px;
  border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--muted); white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.b-colbtn:hover { background: var(--tint); color: var(--text); }
.b-colbtn.on { color: var(--text); font-weight: 650; }
.b-colbtn .arr { font-size: 11px; color: var(--faint); }
.b-colbtn.on .arr { color: var(--text); }
.b-collabel { justify-self: start; font-size: 12.5px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.slot.on-board { margin: 0 0 14px; }
.alt-text > b.what-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.b-row { margin-bottom: 8px; border-radius: 20px; background: var(--panel); transition: background 0.15s; }
.b-row:hover { background: var(--panel-hover); }
.b-row.mine, .b-row.mine:hover { background: #fdf7e3; }
.b-row.flash { animation: row-flash 2.4s ease-out; }
@keyframes row-flash { 0%, 35% { box-shadow: 0 0 0 2px var(--ink); } 100% { box-shadow: 0 0 0 2px transparent; } }
.b-main { width: 100%; padding: 16px 22px; text-align: left; border-radius: 20px; cursor: pointer; }
.b-main.static { cursor: default; }
.b-chg { display: flex; align-items: center; gap: 10px; }
.b-rank { width: 18px; font: 600 13px/1 var(--font-sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.chg-pct { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.045em; color: var(--red); font-variant-numeric: tabular-nums; }
.last-hike b { display: block; font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.last-hike b.warn { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; color: var(--amber-ink); }
.last-hike small { display: block; font-size: 12px; color: var(--muted); }
.last-hike.none b { font-size: 14px; font-weight: 600; color: var(--faint); }
/* The product cell is a link to its page; the rest of the row opens the cheaper options. */
.b-tool { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; justify-self: start; border-radius: 12px; }
.b-tool > span { min-width: 0; }
.b-tool b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.b-tool small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tool small .i { width: 12px; height: 12px; vertical-align: -1px; }
a.b-tool:hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.b-tool .go { display: inline-block; margin-left: 5px; color: var(--muted); opacity: 0; transform: translateX(-3px); transition: opacity 0.15s, transform 0.15s; }
.b-tool .go .i { width: 14px; height: 14px; vertical-align: -2px; }
a.b-tool:hover .go, a.b-tool:focus-visible .go { opacity: 1; transform: none; }
.b-what { min-width: 0; }
.what-main { display: block; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.what-main s { color: var(--faint); }
.what-main b { font-weight: 750; }
.what-main .arr { color: var(--faint); font-size: 14px; margin: 0 6px; }
.b-new { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 6px; font: 700 10.5px/1.35 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--ink); vertical-align: 2px; }
.what-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.what-text { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-alts { display: flex; align-items: center; gap: 12px; min-width: 0; }
.alt-stack { display: flex; gap: 4px; flex: none; }
.alt-stack .more { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #fff; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.alt-text { min-width: 0; font-size: 15px; }
.alt-text > b { font-weight: 700; letter-spacing: -0.01em; }
.alt-text > span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-chev { display: grid; place-items: center; color: var(--faint); transition: transform 0.2s, color 0.2s; }
.b-chev .i { width: 18px; height: 18px; }
.b-main:hover .b-chev { color: var(--text); }
.b-remove { width: 28px; height: 28px; margin-left: -4px; border-radius: 999px; }
.b-remove:hover { background: #fff; color: var(--red); }
.b-row.open .b-chev { transform: rotate(180deg); color: var(--text); }

.b-detail { padding: 0 22px 22px 154px; }
.b-sum { max-width: 760px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.b-label { margin: 14px 0 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.b-list { background: #fff; border-radius: 16px; }
.b-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px auto; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.b-list li:last-child { border-bottom: 0; }
.b-alt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b-alt b { display: block; font-size: 14px; font-weight: 600; }
.b-alt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-alt:hover b { text-decoration: underline; text-underline-offset: 3px; }
.b-price { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-price small { display: block; font-size: 12px; }
.b-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

.strip { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--panel); box-shadow: none; }
.strip p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.strip .mini-form .input { background: #fff; }
.strip .mini-form { width: 100%; }

/* ---------- tables ---------- */
/* position: relative keeps absolutely positioned bits (sr-only labels) inside the scroll area. */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff;
}
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .ta-r { text-align: right; }
.table .ta-c { text-align: center; }
.tool-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tool-cell b { font-weight: 600; letter-spacing: -0.01em; }
.tool-cell small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.price { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 1px; }
.price-note { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.bar { width: 96px; height: 6px; border-radius: 99px; background: #f1f1f1; overflow: hidden; flex: none; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: #cfcfcf; }

/* ---------- sections ---------- */
.section { padding-top: 76px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 8px; font-size: 16px; line-height: 1.6; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.offer-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--panel); box-shadow: none; }
.offer-card .price-big { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.offer-card .price-big small { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 500; }
/* Launch pricing: the list price struck through with a green line, next to the price paid today. */
.was { color: var(--faint); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.offer-card .price-big .was { font-size: 24px; letter-spacing: -0.03em; margin-right: 2px; }
.launch-note { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.offer-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.offer-card .btn { align-self: flex-start; margin-top: auto; }
.offer-card .btn-light { background: #fff; }
.icon-box { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.icon-box .i { width: 17px; height: 17px; }

/* ---------- page head ---------- */
.page-head { position: relative; isolation: isolate; padding: 36px 0 28px; }
.page-head.centered { text-align: center; padding: 52px 0 36px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--border-2); }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.btn-md { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 9px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 26px; background: var(--panel); border-radius: 20px; overflow: hidden; }
.fact { padding: 18px 20px; border-left: 1px solid #e9e9e9; min-width: 0; }
.fact:first-child { border-left: 0; }
.fact .k { font-size: 12.5px; color: var(--muted); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.fact .v { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-top: 4px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fact .v.serif { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.045em; }
.fact .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.main-col { display: grid; gap: 20px; min-width: 0; }
.aside { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }

/* ---------- hike page parts ---------- */
.tldr li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.tldr li + li { margin-top: 10px; }
.tldr li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.changed { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.changed .side { padding: 14px 16px; border-radius: 12px; background: #fafafa; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.55; }
.changed .side.after { background: var(--red-bg); box-shadow: inset 0 0 0 1px var(--red-line); }
.changed .side .k { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.changed .arrow { display: grid; place-items: center; color: var(--faint); }

.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-n { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.045em; }
.ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.calc-say { margin: 18px 0 14px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.calc-say b { color: var(--text); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 128px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .who span { overflow: hidden; text-overflow: ellipsis; }
.hbar { height: 24px; border-radius: 6px; background: #f6f6f6; position: relative; overflow: hidden; }
.hbar > i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: #dedede; transition: width 0.35s ease; }
.hbar.before > i { background: #e9e9e9; }
.hbar.after > i { background: #f6a5a5; }
.hbar.best > i { background: #86d6a2; }
.bar-row .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row .amt b { font-weight: 600; }
.bar-row .amt small { display: block; font-size: 11.5px; color: var(--muted); white-space: normal; line-height: 1.35; }
.bar-row.divider { border-top: 1px dashed var(--border); padding-top: 8px; }

.alt-list { display: grid; }
.alt {
  display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.alt:last-child { border-bottom: 0; }
.alt-rank { font-size: 13px; color: var(--faint); font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.alt-main { min-width: 0; }
.alt-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alt-name a { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.alt-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.alt-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.alt-price { text-align: right; white-space: nowrap; }
.alt-price b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.alt-price small { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.alt-actions { display: flex; align-items: center; gap: 6px; }
.vote {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border);
  font-variant-numeric: tabular-nums; background: #fff;
}
.vote .i { width: 13px; height: 13px; }
.vote:hover { background: #f7f7f7; }
.vote.on { background: var(--ink); color: #fff; box-shadow: none; }

.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 14px 18px 4px; padding: 13px 15px; border-radius: 12px;
  border: 1px dashed var(--border-2); background: repeating-linear-gradient(-45deg, #fcfcfc 0 8px, #f8f8f8 8px 16px);
  font-size: 13.5px; color: var(--text-2);
}
.slot b { color: var(--text); }
/* A paid slot: same place and label, solid card instead of the dashed "open" placeholder. */
.slot.sponsor { border: 1px solid var(--border); background: #fff; }
.sp-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.sp-main > div { min-width: 0; overflow-wrap: anywhere; }
.sp-name { font-weight: 650; color: var(--text); }
.sp-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sponsor picker popup: search + category tabs, then one row per product with logo, name and site. */
.sp-tools { display: grid; gap: 10px; }
.sp-tools .seg { justify-self: start; max-width: 100%; }
.sp-list { display: grid; gap: 6px; max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 2px 6px; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px transparent; transition: background 0.12s, box-shadow 0.12s; }
.sp-row:hover { background: var(--panel-hover); }
.sp-row.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sp-pick { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; }
.sp-pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); flex: none; }
.sp-pick > span { display: grid; gap: 1px; min-width: 0; }
.sp-pick b { font-size: 14.5px; font-weight: 650; }
.sp-pick small { font-size: 12.5px; color: var(--muted); }
.sp-live { color: var(--green-ink); }
.sp-site { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); padding: 6px 8px; border-radius: 999px; }
.sp-site:hover { color: var(--text); background: var(--tint); }
.sp-site .i { width: 13px; height: 13px; }
.modal-f [data-sponsor-total] { min-width: 0; font-size: 14px; }
.modal-f [data-sponsor-total] .form-err { margin: 0; }
.ad-done { max-width: 620px; margin: 22px auto 0; text-align: left; }
@media (max-width: 560px) {
  .sp-site { padding: 6px 4px; font-size: 0; gap: 0; }
  .sp-site .i { width: 15px; height: 15px; }
}
.slot .tag { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); display: block; margin-bottom: 4px; }

.dest-tabs { padding: 12px 18px 0; }
.mig-progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mig-progress .bar { width: 120px; }
.mig-progress .bar > i { background: var(--ink); transition: width 0.3s; }
.steps { padding: 4px 18px 8px; }
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.step:last-child { border-bottom: 0; }
.step-check {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px;
  box-shadow: inset 0 0 0 1.5px #d4d4d4; color: transparent; background: #fff; transition: background 0.15s, box-shadow 0.15s;
}
.step-check .i { width: 14px; height: 14px; }
.step-check:hover { box-shadow: inset 0 0 0 1.5px #a3a3a3; }
.step.done .step-check { background: var(--ink); box-shadow: none; color: #fff; }
.step-title { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.step.done .step-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.step-body { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.step-body a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.step-time { font-size: 11.5px; color: var(--faint); margin-left: 6px; font-weight: 400; }

.poll { display: grid; gap: 8px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 42px; padding: 0 14px; border-radius: 10px; background: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; font-weight: 500; width: 100%;
}
.poll-opt:hover { box-shadow: inset 0 0 0 1px var(--border-2); }
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: #f3f3f3; transition: width 0.5s ease; z-index: 0; }
.poll-opt.mine .fill { background: #ececec; }
.poll-opt.mine { box-shadow: inset 0 0 0 1.5px var(--ink); }
.poll-opt > span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.poll-opt .pc { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; font-size: 13px; }

.reacts { display: grid; }
.react { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.react:first-child { padding-top: 4px; }
.react:last-child { border-bottom: 0; padding-bottom: 0; }
.react-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.react-meta b { color: var(--text); font-weight: 600; }
.react p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.react a.src { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.react a.src:hover { color: var(--text); }
.src-ico { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font: 700 10px/1 var(--font-sans); color: #fff; background: #111; flex: none; }
.src-ico.reddit { background: #ff4500; }
.src-ico.hn { background: #ff6600; }
.src-ico.blog { background: #737373; }
.src-ico.yt { background: #e62117; }
.src-ico.ih { background: #0e2439; }
.sent { font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 99px; background: #f4f4f5; color: #52525b; }
.sent.angry { background: var(--red-bg); color: var(--red-ink); }
.sent.switching { background: var(--amber-bg); color: var(--amber-ink); }
.sent.defending { background: var(--green-bg); color: var(--green-ink); }

.src-list li { font-size: 13px; line-height: 1.5; padding: 7px 0; border-bottom: 1px solid var(--line); }
.src-list li:last-child { border-bottom: 0; }
.src-list a { color: var(--text-2); }
.src-list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.alt.mine { background: #fdf7e3; }
.alt-name b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.card-f-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; color: var(--text); }
.card-f-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-f-link .i { width: 14px; height: 14px; }

/* ---------- product page ---------- */
.hike-head .card-b { display: grid; gap: 10px; padding: 22px 24px; }
.hike-head .h2 { max-width: 820px; }
.hike-head .hl { color: var(--red); }
.hh-sum { max-width: 760px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.hh-facts { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 13.5px; }
.hh-facts b { font-weight: 650; }
.tool-hero { display: flex; align-items: center; gap: 16px; }
.tool-hero .h1 { line-height: 1; }
.tool-hero .sub { font-size: 14px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 11px var(--font-sans); fill: #a3a3a3; }
.chart .lbl { fill: var(--text); font-weight: 600; font-size: 12px; }
.chart .grid { stroke: #f0f0f0; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.log .what { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.log .ba { margin-top: 6px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.log .ba b { color: var(--text-2); font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.plan { padding: 16px; border-radius: 16px; background: var(--panel); }
.plan .n { font-size: 13px; font-weight: 650; }
.plan .p { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin: 4px 0; line-height: 1.15; }
.plan .d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.promise { padding: 14px 16px; border-radius: 12px; background: var(--green-bg); box-shadow: inset 0 0 0 1px var(--green-line); font-size: 14px; line-height: 1.55; color: #14532d; }
.promise .k { font-size: 12px; font-weight: 600; color: var(--green-ink); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ---------- rule cards (advertise) and the pledge badge ---------- */
.rule { padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); box-shadow: none; }
.rule .n { font: 700 12px/1 var(--font-sans); letter-spacing: 0.05em; color: var(--faint); }
.rule h3 { font-family: var(--font-display); font-weight: 750; font-size: 21px; letter-spacing: -0.035em; line-height: 1.2; }
.rule p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.badge-stage { display: grid; place-items: center; min-height: 168px; border-radius: 16px; background: #fff; transition: background 0.2s; }
.badge-stage.dark { background: #161616; }
.code {
  position: relative; margin-top: 12px; padding: 14px 16px; padding-right: 92px; border-radius: 12px;
  background: #111; color: #e5e5e5; font: 12px/1.6 var(--font-mono); overflow-x: auto; white-space: pre;
}
.code .btn { position: absolute; top: 9px; right: 9px; background: #2a2a2a; color: #f5f5f5; }
.code .btn:hover { background: #3a3a3a; }

/* ---------- forms, alerts, advertise ---------- */
.form-card { padding: 22px; display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 7px; border-radius: 999px;
  background: var(--tint); font-size: 13.5px; font-weight: 550; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--tint-hover); }
.chip.on { background: var(--ink); color: #fff; }
.chip.on::after { content: ""; width: 14px; height: 14px; margin-left: 2px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.chip.plain { padding-left: 14px; }
.stack-group + .stack-group { margin-top: 18px; }
.stack-group h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stack-group h4 .i { color: var(--muted); }
.sum-big { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.sum-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum-list li:last-child { border-bottom: 0; }
.sum-list .p { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; font-weight: 500; line-height: 1.35;
}
.radio input { accent-color: var(--ink); margin: 2px 0 0; }
.radio small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }

.cal { display: grid; grid-template-columns: 124px repeat(8, minmax(64px, 1fr)); gap: 6px; min-width: 760px; }
.cal-h { font-size: 11.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; padding-bottom: 2px; line-height: 1.3; }
.cal-h b { display: block; color: var(--text-2); font-weight: 600; font-size: 12px; }
.cal-cat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.cal-cat .i { color: var(--muted); }
.cal-cell {
  height: 42px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--text-2);
  background: #fff; box-shadow: inset 0 0 0 1px var(--border); transition: background 0.12s, box-shadow 0.12s, color 0.12s;
}
.cal-cell:hover:not(.booked):not(.sel) { box-shadow: inset 0 0 0 1px var(--border-2); background: #fafafa; }
.cal-cell.sel:hover { background: var(--ink-hover); }
.cal-cell.booked { background: repeating-linear-gradient(-45deg, #f6f6f6 0 6px, #fbfbfb 6px 12px); color: var(--faint); cursor: not-allowed; }
.cal-cell.sel { background: var(--ink); color: #fff; box-shadow: none; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-weight: 750; font-size: 24px; letter-spacing: -0.035em; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 8px; display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

.empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.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; }

.bar-row-wrap.first { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; }

/* ---------- add-your-product popup ---------- */
.modal {
  width: min(640px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0;
  border-radius: 24px; background: #fff; color: var(--text); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 32px 80px -24px rgba(0, 0, 0, 0.4);
}
.modal::backdrop { background: rgba(17, 17, 17, 0.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
html:has(.modal[open]) { overflow: hidden; }
/* The card scrolls, not the dialog, so clicks on its scrollbar never count as clicks outside. */
.modal-card { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.modal-h {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.modal-title { font-size: 22px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.2; }
.modal-sub { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.modal-sub b { color: var(--text); font-weight: 600; }
.modal-x { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--tint); color: var(--text); transition: background 0.15s; }
.modal-x:hover { background: var(--tint-hover); }
.modal-x .i { width: 18px; height: 18px; }
.modal-b { display: grid; gap: 16px; padding: 18px 24px 0; }
.modal-f {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 2px -24px 0; padding: 14px 24px 18px; background: #fff; border-top: 1px solid var(--line);
}
.modal-f .btn:last-child { margin-left: auto; }
.field-l { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.input-money { position: relative; display: block; }
.input-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }
.input-money .input { padding-left: 27px; }
.chips-sm .chip { height: 32px; padding: 0 12px 0 6px; font-size: 13px; gap: 6px; }
.chips-sm .chip-more { padding: 0 12px; gap: 5px; font-weight: 700; letter-spacing: 0.05em; }
.chip-more span { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.opt-block { padding: 14px 16px; border-radius: 16px; background: var(--panel); transition: background 0.15s, box-shadow 0.15s; }
.opt-block.on { background: var(--green-bg); box-shadow: inset 0 0 0 1px var(--green-line); }
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-row b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.switch-row b .i { width: 16px; height: 16px; color: var(--green-ink); }
.switch-row small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.switch { position: relative; flex: none; width: 38px; height: 22px; margin-top: 1px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d4d4d4; transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.pledge-more { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--green-line); }
.pledge-more[hidden] { display: none; }
.pledge-rules { display: grid; gap: 10px; }
.pledge-rules li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.pledge-rules .n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--green-line); font-size: 11px; font-weight: 700; color: var(--green-ink); }
.pledge-rules b { font-weight: 650; }
.pledge-rules small { display: block; font-size: 12.5px; color: var(--muted); }
.pledge-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pledge-row .seg { background: #fff; }
.pledge-row .seg [aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.badge-mini svg { display: block; width: 200px; height: auto; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 400; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.15s, background 0.15s;
}
.opt-card:hover { box-shadow: inset 0 0 0 1px var(--border-2); }
.opt-card:has(input:checked) { background: #fafafa; box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt-card input { flex: none; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--ink); }
.opt-card b { display: block; font-size: 13.5px; font-weight: 650; }
.opt-card em { margin-left: 4px; font-style: normal; font-weight: 500; color: var(--muted); }
.opt-card small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.done-ico { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-line); }
.done-ico .i { width: 20px; height: 20px; }
.done-rank { padding: 14px 16px; border-radius: 14px; background: var(--panel); font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.done-rank b { color: var(--text); }
.modal .badge-stage { min-height: 108px; background: var(--panel); }
.modal .badge-stage.dark { background: #161616; }
.modal .field > .seg { justify-self: start; }
.modal .code { margin-top: 8px; }

/* ---------- footer & toast ---------- */
.footer { margin-top: 96px; padding: 52px 0 32px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; max-width: 360px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) button { display: block; padding: 4px 0; text-align: left; font-size: 14px; color: var(--muted); }
.footer-grid > div:not(.footer-brand) a:hover, .footer-grid > div:not(.footer-brand) button:hover { color: var(--text); }
.mini-form { display: flex; gap: 6px; }
.mini-form .input { height: 40px; font-size: 14px; border-radius: 999px; padding: 0 16px; }
.mini-form .btn { height: 40px; }
.footer .form-ok { margin: 0; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.footer-bottom .muted { max-width: 680px; line-height: 1.6; }
.footer-legal { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--text); }
/* Policy pages (terms.html, privacy.html, refunds.html) only show the bottom row. */
.footer.slim { margin-top: 64px; padding-top: 28px; }
.footer.slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.prose .updated { font-size: 13px; color: var(--muted); }
.prose h2:first-child { margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px);
  padding: 11px 15px; border-radius: 11px; background: var(--ink); color: #fafafa; font-size: 13.5px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35); transition: opacity 0.2s, transform 0.2s;
}
.toast .i { width: 16px; height: 16px; color: #86efac; }
.toast.bad .i { color: #fca5a5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1000px) {
  /* The board stacks into cards once five columns stop fitting. */
  .b-cols { display: none; }
  .b-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px;
    grid-template-areas: "tool chg" "what alts";
  }
  .b-tool { grid-area: tool; }
  .b-chg { grid-area: chg; justify-self: end; }
  .b-what { grid-area: what; }
  .b-alts { grid-area: alts; }
  .b-chev { display: none; }
  .b-row.mine { position: relative; }
  .b-row.mine .b-remove { display: grid; position: absolute; right: 12px; bottom: 12px; }
  .b-detail { padding: 2px 20px 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-add { display: none; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav-inner { height: 64px; }
  .nav-inner > .nav-search { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right .btn { height: 36px; padding: 0 14px; }
  .hide-sm { display: none !important; }
  .pill-link { margin-bottom: 20px; font-size: 12px; }
  .lede { font-size: 16px; line-height: 1.65; }
  .board-wrap { padding-top: 16px; }
  .toolbar { gap: 10px 16px; margin-bottom: 14px; }
  .toolbar-right { width: 100%; margin-left: 0; }
  .board-search { flex: 1 1 auto; }
  .board-search input { width: 100%; }
  .board-banner { padding: 12px; }
  .board-banner .mini-form { flex: 1 1 100%; margin-left: 0; }
  .b-main { padding: 14px 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; grid-template-areas: "tool chg" "what what" "alts alts"; }
  .chg-pct { font-size: 24px; }
  .b-detail { padding: 2px 16px 16px; }
  .b-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .b-alt { grid-area: 1 / 1; }
  .b-price { grid-area: 1 / 2; }
  .b-offer { grid-area: 2 / 1; }
  .b-list li > .btn { grid-area: 2 / 2; justify-self: end; }
  .b-foot { padding: 12px 16px; }
  .table th, .table td { padding: 10px 8px; }
  .table th:first-child, .table td:first-child { padding-left: 12px; }
  .table th:last-child, .table td:last-child { padding-right: 12px; }
  .tool-cell small { max-width: 150px; }
  .section { padding-top: 56px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact { padding: 14px; }
  .fact .v.serif { font-size: 26px; }
  .bar-row { grid-template-columns: 104px minmax(0, 1fr) 96px; gap: 8px; font-size: 12.5px; }
  .alt { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; }
  .alt-rank { display: none; }
  .alt-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .changed { grid-template-columns: 1fr; }
  .changed .arrow { transform: rotate(90deg); }
  .field-row, .radio-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .slot { margin: 12px 14px 4px; }
  .steps { padding: 4px 14px 8px; }
  .dest-tabs { padding: 12px 14px 0; }
  .hike-head .card-b { padding: 18px; }
  /* The popup becomes a sheet that rises from the bottom. */
  .modal { width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal-card { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .modal-h { padding: 18px 16px 14px; }
  .modal-title { font-size: 20px; }
  .modal-b { padding: 16px 16px 0; }
  .modal-f { margin: 2px -16px 0; padding: 12px 16px 16px; }
  .opt-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
