/* ==========================================================================
   overbid.in home: launch-site layout after peerpush.com (redesign 2026-12-05, owner's request:
   "I thought you are designing like peerpush"). Three columns: a Browse column on the left, the
   hero card and product cards in the middle, the Live Spotlight on the right. Our own accent and
   words. Chips stay white or neutral grey with solid coloured icons (owner's no-faded-colours rule).
   Only views/home.html loads this file.
   ========================================================================== */

body.dir-home {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f5f5f5;
  --side-bg: #fafafa;
  --text: #0a0a0a;
  --body: #404040;
  --muted: #737373;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --accent-hover: color-mix(in srgb, var(--accent) 82%, #000);
  --gold: #f5a524;
  --silver: #d4d4d8;
  --bronze: #c2711c;
  --radius: 12px;
  --page: min(1220px, 100vw - 40px);

  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  background-image: none;
}

body.dir-home::before,
body.dir-home::after {
  display: none !important;
}

/* ---------- Promo bar ---------- */
body.dir-home .promo-bar {
  background: var(--text);
  color: #fff;
  border-bottom: 0;
}
body.dir-home .promo-bar .promo-tag {
  background: var(--accent);
  color: #fff;
}
body.dir-home .promo-bar b {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Top bar: logo, search, links, two buttons ---------- */
body.dir-home .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 11px max(20px, calc((100vw - 1220px) / 2));
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
body.dir-home .logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 20px;
  flex-shrink: 0;
}
body.dir-home .logo-accent {
  color: var(--accent);
}
/* public/search.js puts its "Search products…" box into the top bar. */
body.dir-home .site-search {
  order: 1;
  flex: 0 1 340px;
  margin: 0;
}
.top-nav {
  order: 2;
}
body.dir-home .top-right {
  order: 3;
}
body.dir-home .site-search input {
  height: 42px;
  border-radius: 10px;
  border-color: var(--line-strong);
  font-size: 15px;
}
body.dir-home .site-stats {
  display: none !important;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
body.dir-home .top-link {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
body.dir-home .top-link:hover {
  background: var(--subtle);
}
body.dir-home .top-link.top-spot {
  color: var(--accent);
  font-weight: 600;
}
body.dir-home .top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-ghost,
body.dir-home .top-submit {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
body.dir-home .top-ghost {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: #fff;
}
.top-ghost:hover {
  background: var(--subtle);
}
body.dir-home .top-submit {
  border: 1.5px solid var(--text);
  background: var(--text);
  color: #fff;
}
body.dir-home .top-submit:hover {
  background: #262626;
}

/* ---------- Page and the three columns ---------- */
.dir-page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 0 72px;
}
.dir-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 0 26px;
  align-items: start;
}
.dir-main {
  min-width: 0;
  padding-top: 24px;
}

/* ---------- Left: Browse ---------- */
.browse-col {
  align-self: stretch;
  padding: 24px 14px 40px 0;
  border-right: 1px solid var(--line);
  background: var(--side-bg);
  box-shadow: -100vw 0 0 var(--side-bg);
  clip-path: inset(0 0 0 -100vw);
}
.browse {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.browse-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
}
.browse-title svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
}
.browse-sec + .browse-sec {
  margin-top: 20px;
}
.browse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
}
.browse-head span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.browse-head a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.browse-head a:hover {
  color: var(--text);
}
.browse-head a svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.browse ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.browse-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.browse-link:hover {
  background: #f0f0f0;
}
.browse-link[aria-current] {
  background: var(--text);
  color: #fff;
}
.browse-link span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browse-link b {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.browse-link[aria-current] b {
  color: #d4d4d4;
}
.browse-link .tab-icon,
.browse-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.browse-link[aria-current] .tab-icon {
  stroke: #fff;
}
.browse-link img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}
.browse-letter {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Middle: the hero card ---------- */
.dir-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.hero-proof b {
  color: var(--text);
  font-weight: 700;
}
.hero-avatars {
  display: inline-flex;
}
.hero-avatars img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.hero-avatars img + img {
  margin-left: -8px;
}
.dir-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.1vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.dir-hero h1 span {
  color: var(--accent);
}
.dir-hero-sub {
  max-width: 500px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.dir-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  height: 50px;
  margin-top: 20px;
  padding: 0 5px 0 14px;
  border: 1.5px solid var(--accent);
  border-radius: 11px;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.dir-search-box:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.dir-search-box > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.dir-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 15px var(--font-sans);
}
.dir-search-box input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.dir-search-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--subtle);
  color: var(--text);
  font: 600 14.5px var(--font-sans);
  cursor: pointer;
}
.dir-search-go:hover {
  background: #ebebeb;
}
.dir-search-go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.dir-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
}
.dir-btn-primary,
.dir-btn-spot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font: 600 16px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.dir-btn-primary {
  border: 0;
  background: var(--text);
  color: #fff;
}
.dir-btn-primary:hover {
  background: #262626;
}
.dir-btn-spot {
  border: 1.5px solid var(--text);
  background: #fff;
  color: var(--text);
}
.dir-btn-spot:hover {
  background: var(--subtle);
}
.dir-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--body);
  font: 500 15px var(--font-sans);
  cursor: pointer;
}
.dir-btn-link:hover {
  color: var(--text);
}
.dir-btn-link span {
  color: var(--accent);
  font-weight: 700;
}
.dir-btn-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-readby {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
}
.hf-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.explore-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.explore-line a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.explore-line a:hover {
  color: var(--accent);
}

/* ---------- Toolbar: heading, category filter, segmented tabs ---------- */
.dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  scroll-margin-top: 80px;
}
.dir-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dir-toolbar h2 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.dir-clear-btn {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--body);
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}
.dir-clear-btn:hover {
  border-color: var(--text);
  color: var(--text);
}
.dir-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The left column lists the categories on wide screens, so the dropdown only shows below that. */
.dir-cat-filter {
  display: none;
  position: relative;
}
body.dir-home .dir-cat-filter .icon-select {
  height: 40px;
  min-width: 150px;
  max-width: 220px;
  padding: 0 28px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--subtle);
  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 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-size: 13px;
  background-repeat: no-repeat;
  color: var(--text);
  font: 600 13.5px var(--font-sans);
  box-shadow: none;
}
body.dir-home .dir-cat-filter .icon-select b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dir-home .dir-cat-filter .icon-select .tab-icon {
  color: var(--accent);
}
body.dir-home .dir-cat-filter .icon-select-list {
  right: 0;
  left: auto;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -12px rgba(10, 10, 10, 0.22);
  z-index: 60;
}
.dir-sort {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 11px;
  background: var(--subtle);
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--body);
  font: 500 14.5px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}
.sort-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sort-btn:hover {
  color: var(--text);
}
.sort-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.12);
}

.sample-note {
  margin: 10px 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Product cards ---------- */
.dir-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dir-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dir-day:first-child {
  margin-top: 14px;
}
.dir-day h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.dir-day h3 span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dir-day.is-spot h3 {
  color: #b45309;
}
.dir-day.is-spot h3 svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.dir-day-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 13.5px var(--font-sans);
  cursor: pointer;
}
.dir-day-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dir-row {
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dir-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px -10px rgba(10, 10, 10, 0.2);
}
.dir-row.is-promoted {
  border: 1.5px solid var(--gold);
}
.dir-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}
.dir-row.has-rank .dir-row-main {
  grid-template-columns: 18px auto minmax(0, 1fr) auto;
}
.dir-rank {
  align-self: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dir-rank.r1,
.dir-rank.r2,
.dir-rank.r3 {
  color: var(--text);
  font-weight: 800;
}
.dir-row-logo {
  display: block;
  text-decoration: none;
}
.dir-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--hue, #0d7a5f);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.dir-mark.has-icon {
  background: #fff;
}
.dir-mark.has-icon.small-icon img {
  width: 28px;
  height: 28px;
}
.dir-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-row-body {
  min-width: 0;
}
.dir-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dir-card-name {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-card-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dir-verified {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #16a34a;
}
.dir-site {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 5px;
  color: var(--muted);
}
.dir-site:hover {
  color: var(--text);
  background: var(--subtle);
}
.dir-site svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.dir-tagline {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dir-boxes {
  display: flex;
  gap: 8px;
}
.dir-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 42px;
  height: 50px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: var(--subtle);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dir-box svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dir-box b {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dir-box:hover {
  background: var(--text);
  color: #fff;
}
.dir-box.is-bid svg {
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.5;
}
.dir-box.is-bid:hover svg {
  stroke: var(--gold);
}

.dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.dir-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: 600 12.5px var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.dir-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dir-chip.dir-cat-btn {
  border-color: var(--subtle);
  background: var(--subtle);
  cursor: pointer;
}
.dir-chip.dir-cat-btn:hover {
  border-color: var(--text);
  background: #fff;
}
.dir-chip.is-rank svg,
.dir-chip.is-paid svg {
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.5;
}
.dir-chip.is-rank.r1 {
  border-color: var(--gold);
}
.dir-chip.is-free {
  color: var(--body);
}
.dir-chip.is-free svg {
  stroke: var(--muted);
}
.dir-chip.is-new {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.dir-chip.is-host {
  max-width: 200px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 500;
  text-overflow: ellipsis;
}
.dir-chip.is-host:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ---------- Pager and empty state ---------- */
body.dir-home .board-pager {
  margin-top: 26px;
}
body.dir-home .board-pager button {
  border-radius: 9px;
}
body.dir-home .board-pager button[aria-current="page"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.dir-empty {
  margin-top: 14px;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.dir-empty h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dir-empty p {
  margin: 0 auto 18px;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--body);
}
.dir-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dir-empty-actions .dir-btn-primary,
.dir-empty-actions .dir-btn-spot {
  height: 40px;
  font-size: 14px;
}
body.dir-hydrated .ssr-fallback {
  display: none;
}

/* ---------- Spotlight column ---------- */
.spot-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.spot-panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px -18px rgba(10, 10, 10, 0.18);
  overflow: hidden;
}

.spot-claim-card {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.spot-claim-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.spot-claim-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #16a34a;
  animation: dir-live 2s ease-in-out infinite;
}
@keyframes dir-live {
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.spot-claim-top h3 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.spot-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
body.dir-home .spot-stepper .step {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--subtle);
  color: var(--text);
  cursor: pointer;
}
body.dir-home .spot-stepper .step:hover {
  background: var(--text);
  color: #fff;
}
body.dir-home .spot-stepper .step svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
body.dir-home #claim-price {
  min-width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.spot-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.spot-preset {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--body);
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.spot-preset:hover {
  border-color: var(--text);
  color: var(--text);
}
.spot-preset[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.spot-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spot-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spot-field:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
.spot-field svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}
.spot-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 14px var(--font-sans);
}
.spot-field input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.spot-found {
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--subtle);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.spot-select-wrap {
  position: relative;
  display: block;
}
body.dir-home .spot-select-wrap .icon-select {
  width: 100%;
  height: 40px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 13px;
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 14px;
  box-shadow: none;
}
body.dir-home .spot-select-wrap .icon-select:hover {
  border-color: var(--text);
}
body.dir-home .spot-select-wrap .icon-select:focus-visible,
body.dir-home .spot-select-wrap .icon-select[aria-expanded="true"] {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
body.dir-home .spot-select-wrap .icon-select b {
  color: var(--text);
  font-weight: 500;
}
body.dir-home .spot-select-wrap .icon-select.empty b {
  color: var(--muted);
  font-weight: 400;
}
body.dir-home .spot-select-wrap .icon-select .tab-icon {
  color: var(--accent);
}
body.dir-home .spot-select-wrap .icon-select-list {
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px -12px rgba(10, 10, 10, 0.22);
  z-index: 80;
}

.spot-submit {
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: 700 14px var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.spot-submit:hover {
  background: var(--accent-hover);
}
.spot-submit:active {
  transform: translateY(1px);
}
body.dir-home .spot-claim-card .claim-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #dc2626;
  text-align: left;
}

/* The ranking under the claim form */
.spot-card {
  padding: 14px 10px 10px;
}
.spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 8px;
}
.spot-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.spot-list-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.spot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.spot-row:hover {
  background: var(--subtle);
}

.spot-rank {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.spot-row.top-1 .spot-rank {
  background: var(--gold);
  color: #1c1300;
}
.spot-row.top-2 .spot-rank {
  background: var(--silver);
  color: #18181b;
}
.spot-row.top-3 .spot-rank {
  background: var(--bronze);
  color: #fff;
}

.spot-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--hue, #0d7a5f);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.spot-mark.has-icon {
  background: #fff;
}
.spot-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-who {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.spot-who b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
a.spot-who:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spot-who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.spot-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.spot-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.spot-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.spot-row.top-1 .spot-amount {
  color: var(--accent);
}
.spot-clicks {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.spot-take {
  display: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font: 700 12px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}
.spot-take:hover {
  background: var(--accent);
}
.spot-row:hover .spot-take,
.spot-row:focus-within .spot-take {
  display: inline-flex;
  align-items: center;
}
.spot-row:hover .spot-metrics,
.spot-row:focus-within .spot-metrics {
  display: none;
}
.spot-visit {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.spot-visit:hover {
  border-color: var(--text);
  color: var(--text);
}
.spot-visit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* "Your product here" row: where a bid would land. */
.spot-row.spot-open {
  padding: 0;
}
.spot-open-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.spot-row.spot-open:hover {
  background: none;
}
.spot-row.spot-open:hover .spot-open-btn {
  border-color: var(--text);
}
.spot-open-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-left: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.spot-row.spot-open.is-live-preview .spot-open-mark {
  font-size: 12.5px;
}
.spot-open-btn .spot-who b {
  color: var(--text);
}
.spot-open-cta {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.spot-row.spot-open:hover .spot-open-cta {
  background: var(--accent);
}
.spot-row.spot-open.is-live-preview .spot-open-btn {
  border-color: var(--accent);
  border-width: 2px;
  padding: 7px;
}

.spot-empty {
  padding: 10px 8px;
}
.spot-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--body);
}
.spot-more {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: 600 13px var(--font-sans);
  cursor: pointer;
}
.spot-more:hover {
  border-color: var(--text);
}
.spot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.spot-foot a {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.spot-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Other sidebar cards ---------- */
body.dir-home .spot-aside .side-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
body.dir-home .spot-aside .side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
body.dir-home .spot-aside .side-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
body.dir-home .spot-aside .side-head h2::before {
  display: none;
}
body.dir-home .spot-aside .side-best-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
body.dir-home .spot-aside .side-best-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-promo-dir {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.side-promo-dir:hover {
  transform: translateY(-2px);
}
.side-promo-dir .sp-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.side-promo-dir b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.side-promo-dir span {
  font-size: 13.5px;
  line-height: 1.5;
  color: #d4d4d8;
}
.side-promo-dir .sp-cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

/* ---------- Two ways to get discovered ---------- */
.dir-how {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.dir-how-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.dir-how-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.dir-how-head p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.dir-how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dir-how-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
}
.dir-how-card.is-dark {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.dir-how-card .how-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.dir-how-card .how-tag.gold {
  background: var(--gold);
  color: #1c1300;
}
.dir-how-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.dir-how-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.dir-how-card.is-dark p {
  color: #d4d4d8;
}
.how-link,
.how-link-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 11px;
  font: 700 14px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.how-link {
  border: 0;
  background: var(--text);
  color: #fff;
}
.how-link:hover {
  background: #27272a;
}
.how-link-btn {
  border: 0;
  background: #fff;
  color: var(--text);
}
.how-link-btn:hover {
  background: var(--gold);
}

/* ---------- Footer, featured strip, pay dialog ---------- */
.dir-bottom-featured {
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px 0 36px;
}
body.dir-home .featured-strip {
  margin-top: 0;
  border-color: var(--line);
}
body.dir-home .footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
body.dir-home .footer-cta {
  background: var(--text);
}
body.dir-home .footer-cta:hover {
  background: #27272a;
}
body.dir-home dialog.pay .btn {
  background: var(--text);
}
body.dir-home dialog.pay .btn:hover {
  background: #27272a;
}
body.dir-home dialog.pay .btn.soft {
  background: var(--subtle);
  color: var(--text);
}

/* ---------- Medium screens: no Browse column, the category dropdown shows instead ---------- */
@media (max-width: 1180px) {
  .top-nav .top-link:not(.top-spot) {
    display: none;
  }
  .dir-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .browse-col {
    display: none;
  }
  .dir-cat-filter {
    display: block;
  }
}

/* ---------- Tablet: one column, products first ---------- */
@media (max-width: 900px) {
  .top-ghost,
  .top-nav {
    display: none;
  }
  .dir-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .spot-aside {
    padding-top: 0;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  body.dir-home {
    --page: calc(100vw - 28px);
  }
  body.dir-home .topbar {
    padding: 10px 14px;
    gap: 10px;
  }
  body.dir-home .top-submit {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }
  .dir-main {
    padding-top: 14px;
  }
  .dir-hero {
    padding: 20px 16px 16px;
  }
  .dir-hero h1 {
    font-size: 27px;
  }
  .dir-hero-sub {
    font-size: 15px;
  }
  .dir-search-box {
    height: 48px;
  }
  .dir-search-go {
    padding: 0 11px;
  }
  .hero-avatars img:nth-child(n + 5) {
    display: none;
  }
  .dir-toolbar {
    flex-wrap: wrap;
  }
  .dir-toolbar-controls {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .dir-sort {
    display: flex;
  }
  .sort-btn {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }
  body.dir-home .dir-cat-filter .icon-select {
    width: 100%;
    max-width: none;
  }
  .dir-day h3 {
    font-size: 18px;
  }
  .dir-row {
    padding: 14px 12px 12px;
  }
  .dir-row-main {
    gap: 11px;
  }
  .dir-row.has-rank .dir-row-main {
    grid-template-columns: 14px auto minmax(0, 1fr) auto;
    gap: 9px;
  }
  .dir-mark {
    width: 40px;
    height: 40px;
  }
  .dir-card-name {
    font-size: 16px;
  }
  .dir-tagline {
    font-size: 14px;
  }
  .dir-boxes {
    gap: 6px;
  }
  .dir-box {
    min-width: 38px;
    height: 46px;
  }
  .dir-box.is-bid {
    display: none;
  }
  .dir-chips {
    flex-wrap: nowrap;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .spot-take {
    display: none !important;
  }
  .spot-row:hover .spot-metrics,
  .spot-row:focus-within .spot-metrics {
    display: flex;
  }
  .dir-how {
    margin-top: 48px;
    padding-top: 40px;
  }
  .dir-how-head h2 {
    font-size: 25px;
  }
  .dir-how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dir-how-card {
    padding: 22px;
  }
}

/* Logos with see-through corners show as they are (paintMark adds .clear). */
.dir-mark.has-icon.clear,
.spot-mark.has-icon.clear {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.dir-mark.clear img,
.spot-mark.clear img {
  object-fit: contain;
}

/* ==========================================================================
   COMPACT (owner's request, 2026-12-05: "make Live Spotlight compact, text looks oversized").
   Overrides the sizes above; the whole site is also drawn at 90% on wider screens (style.css).
   ========================================================================== */

/* Top bar and hero */
body.dir-home .top-link { font-size: 14px; padding: 7px 9px; }
.top-ghost, body.dir-home .top-submit { height: 38px; padding: 0 16px; font-size: 14px; }
body.dir-home .site-search input { height: 38px; font-size: 14px; }
.dir-hero { padding: 22px 22px 16px; }
.dir-hero h1 { font-size: clamp(26px, 2.6vw, 32px); }
.dir-hero-sub { font-size: 15px; }
.dir-search-box { height: 44px; margin-top: 16px; }
.dir-search-box input { font-size: 14px; }
.dir-search-go { height: 34px; font-size: 13.5px; }
.dir-btn-primary, .dir-btn-spot { height: 40px; font-size: 14.5px; padding: 0 18px; }
.dir-btn-link { font-size: 14px; }
.hero-readby { margin-top: 16px; padding-top: 12px; font-size: 12.5px; }

/* Browse column */
.browse-title { font-size: 14px; margin-bottom: 14px; }
.browse-title svg { width: 26px; height: 26px; }
.browse-head span, .browse-head a { font-size: 11.5px; }
.browse-link { min-height: 32px; font-size: 14px; }

/* Toolbar, sections and cards */
.dir-toolbar h2 { font-size: 18px; }
.sort-btn { height: 31px; padding: 0 14px; font-size: 13.5px; }
.dir-day h3 { font-size: 17px; }
.dir-grid { gap: 10px; }
.dir-row { padding: 13px 14px 12px; }
.dir-row-main { gap: 12px; }
.dir-mark { width: 42px; height: 42px; font-size: 17px; }
.dir-card-name { font-size: 16px; }
.dir-tagline { font-size: 14px; }
.dir-box { min-width: 38px; height: 44px; }
.dir-box b { font-size: 13px; }
.dir-chips { gap: 6px; margin-top: 10px; }
.dir-chip { height: 25px; padding: 0 10px; font-size: 12px; }

/* Live Spotlight: tighter than the first version, not cramped (owner, 2026-12-05: "a bit much compact") */
.spot-aside { gap: 14px; }
.spot-panel { border-radius: 16px; }
.spot-claim-card { padding: 15px 15px 14px; }
.spot-claim-top { margin-bottom: 12px; align-items: center; }
.spot-claim-kicker { font-size: 11px; gap: 7px; }
.live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #16a34a; }
.spot-claim-top h3 { margin-top: 4px; font-size: 19px; }
.spot-stepper { padding: 3px; gap: 3px; border-radius: 9px; }
body.dir-home .spot-stepper .step { width: 24px; height: 24px; border-radius: 6px; }
body.dir-home .spot-stepper .step svg { width: 12px; height: 12px; }
body.dir-home #claim-price { min-width: 36px; font-size: 14.5px; }
.spot-form { gap: 7px; }
.spot-field { height: 38px; padding: 0 10px; border-radius: 9px; }
.spot-field input { font-size: 13.5px; }
.spot-field svg { width: 14px; height: 14px; }
body.dir-home .spot-select-wrap .icon-select { height: 38px; border-radius: 9px; font-size: 13.5px; }
.spot-submit { height: 39px; border-radius: 9px; font-size: 13.5px; }
.spot-found { padding: 6px 9px; font-size: 12px; }
.spot-card { padding: 12px 8px 10px; }
.spot-head { padding: 0 7px 7px; }
.spot-head h2, .spot-list-count { font-size: 11px; }
.spot-list { gap: 1px; }
.spot-row { gap: 9px; padding: 7px; border-radius: 9px; }
.spot-rank { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.spot-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.spot-who b { font-size: 13.5px; }
.spot-who small { font-size: 11.5px; }
.spot-amount { font-size: 13.5px; }
.spot-clicks { font-size: 10.5px; }
.spot-take { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.spot-visit { width: 26px; height: 26px; border-radius: 7px; }
.spot-visit svg { width: 12px; height: 12px; }
.spot-open-btn { gap: 9px; padding: 7px; border-radius: 9px; }
.spot-row.spot-open.is-live-preview .spot-open-btn { padding: 6px; }
.spot-open-mark { width: 30px; height: 30px; margin-left: 29px; border-radius: 8px; font-size: 14px; }
.spot-open-cta { padding: 5px 8px; font-size: 11.5px; border-radius: 7px; }
.spot-more { height: 32px; margin-top: 8px; font-size: 12.5px; border-radius: 9px; }
.spot-foot { margin-top: 8px; padding: 9px 7px 0; font-size: 11.5px; }
body.dir-home .spot-aside .side-card { padding: 14px; border-radius: 16px; }
.side-promo-dir { padding: 18px; gap: 7px; border-radius: 16px; }
.side-promo-dir b { font-size: 17px; }
.side-promo-dir span { font-size: 13px; }
.side-promo-dir .sp-cta { padding: 7px 13px; font-size: 13px; }

/* The Browse column scrolls with the page: no inner scrollbar. */
.browse { position: static; max-height: none; overflow: visible; }

@media (max-width: 720px) {
  .dir-hero h1 { font-size: 25px; }
  .dir-btn-primary, .dir-btn-spot { height: 44px; }
  .dir-search-box { height: 46px; }
  .dir-search-box input, .spot-field input { font-size: 16px; }
  .spot-field, body.dir-home .spot-select-wrap .icon-select { height: 40px; }
  .spot-submit { height: 40px; }
}

/* ==========================================================================
   PRODUCT CARD, REDONE (owner's request, 2026-12-05: "redesign this card, do not show clicks,
   a visit icon to show a click takes you to their site"). Logo, then name, tagline and chips in
   one column, and a Visit button on the right, centred. No click counts on the card.
   ========================================================================== */
.dir-row { padding: 16px 16px 16px 16px; }
.dir-row-main { align-items: center; gap: 14px; }
.dir-row-logo { align-self: start; }
.dir-mark { width: 52px; height: 52px; border-radius: 12px; font-size: 20px; }
.dir-row-body { display: flex; flex-direction: column; gap: 2px; }
.dir-card-name { font-size: 16.5px; }
.dir-tagline { margin-top: 1px; -webkit-line-clamp: 1; }
.dir-chips { margin-top: 9px; gap: 6px; }
.dir-chip { height: 24px; padding: 0 9px; font-size: 11.5px; }

.dir-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 600 13.5px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dir-visit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.dir-visit:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.dir-visit:hover svg {
  transform: translate(2px, -2px);
}
.dir-row:hover .dir-visit {
  border-color: var(--text);
}

@media (max-width: 720px) {
  .dir-row { padding: 13px 12px; }
  .dir-row-main { gap: 11px; }
  .dir-mark { width: 44px; height: 44px; font-size: 17px; }
  .dir-card-name { font-size: 15.5px; }
  .dir-tagline { -webkit-line-clamp: 2; }
  /* Phones: the button shrinks to its arrow. */
  .dir-visit { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .dir-visit span { display: none; }
  .dir-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* Card, a bit more compact (owner's request, 2026-12-05: "still show clicks, compact a bit, no 'Visit' text"):
   the click count is plain grey text after the chips, and the site button is just the arrow. */
.dir-grid { gap: 8px; }
.dir-row { padding: 12px 14px; }
.dir-row-main { gap: 12px; }
.dir-mark { width: 44px; height: 44px; border-radius: 10px; font-size: 17px; }
.dir-card-name { font-size: 15.5px; }
.dir-tagline { font-size: 13.5px; }
.dir-chips { align-items: center; margin-top: 7px; gap: 5px; }
.dir-chip { height: 22px; padding: 0 8px; font-size: 11.5px; }
.dir-chip svg { width: 12px; height: 12px; }
.dir-clicks {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dir-clicks svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.dir-visit {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 9px;
}
.dir-visit svg { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .dir-row { padding: 11px 12px; }
  .dir-mark { width: 40px; height: 40px; font-size: 16px; }
  .dir-card-name { font-size: 15px; }
  .dir-visit { width: 34px; height: 34px; }
}

/* Phones: one line of tagline and one line of chips, the click count first so it never gets cut. */
@media (max-width: 720px) {
  .dir-tagline { -webkit-line-clamp: 1; }
  .dir-chips {
    flex-wrap: nowrap;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .dir-clicks { order: -1; margin: 0 3px 0 0; }
}

/* ==========================================================================
   SPOTLIGHT #1 AND THE OPEN SPOT (owner's request, 2026-12-05: "make rank 1 a bigger card like a
   sponsored one; make 'Your product here' a bit light, probably grey").
   ========================================================================== */
.spot-row.top-1 {
  position: relative;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 6px;
  padding: 12px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(180, 83, 9, 0.55);
}
.spot-row.top-1:hover {
  background: #fff;
  border-color: #d98a0b;
}
.spot-row.top-1 .spot-rank {
  display: none;
}
.spot-row.top-1 .spot-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  font-size: 18px;
}
.spot-sponsor {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -2px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
}
.spot-sponsor svg {
  width: 12px;
  height: 12px;
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.spot-row.top-1 .spot-who {
  flex: 1 1 0;
}
.spot-row.top-1 .spot-who b {
  font-size: 15.5px;
  letter-spacing: -0.015em;
}
.spot-row.top-1 .spot-who small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.spot-row.top-1 .spot-right {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.spot-row.top-1 .spot-amount {
  font-size: 16px;
  color: var(--accent);
}
.spot-row.top-1 .spot-clicks {
  font-size: 11px;
}
/* #1 keeps its amount showing on hover, with Take #1 under it. */
.spot-row.top-1:hover .spot-metrics,
.spot-row.top-1:focus-within .spot-metrics {
  display: flex;
}

/* "Your product here": quiet grey, so the real products lead. */
.spot-open-btn {
  border: 1px solid var(--line);
  background: #fafafa;
}
.spot-row.spot-open:hover .spot-open-btn {
  border-color: var(--line-strong);
  background: #f5f5f5;
}
.spot-open-mark {
  background: #e5e5e5;
  color: #737373;
}
.spot-open-btn .spot-who b {
  color: var(--body);
  font-weight: 600;
}
.spot-open-btn .spot-who small {
  color: var(--muted);
}
.spot-open-cta {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--body);
}
.spot-row.spot-open:hover .spot-open-cta {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
/* While a visitor types their site, the preview row still stands out. */
.spot-row.spot-open.is-live-preview .spot-open-btn {
  border-color: var(--accent);
  background: #fff;
}
.spot-row.spot-open.is-live-preview .spot-open-mark {
  background: var(--accent);
  color: #fff;
}
.spot-row.spot-open.is-live-preview .spot-who b {
  color: var(--text);
}

/* ============================================================================
   HERO: URL + CATEGORY + AUTOFILL (owner's request, 2026-12-05)
   One bordered row: website, a hairline, the category picker, a black "Autofill" button.
   Then a white preview card (grey edge, no tints) laid out like a product card.
   ============================================================================ */
.hero-submit {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  height: 52px;
  margin-top: 20px;
  padding: 0 5px 0 14px;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: box-shadow 0.15s ease;
}
.hero-submit:focus-within {
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}
.af-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 100%;
  cursor: text;
}
.af-field > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.af-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 15px var(--font-sans);
}
.af-field input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.af-cat {
  position: relative;
  flex: none;
  width: 172px;
  height: 30px;
  margin: 0 6px 0 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.af-cat select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
body.dir-home .af-cat .icon-select {
  height: 30px;
  padding: 0 24px 0 6px;
  border: 0;
  border-radius: 7px;
  background-color: transparent;
  background-position: right 6px center;
  background-size: 13px;
  box-shadow: none;
  color: var(--text);
  font: 600 14px var(--font-sans);
}
body.dir-home .af-cat .icon-select:hover,
body.dir-home .af-cat .icon-select[aria-expanded="true"] {
  background-color: var(--subtle);
}
body.dir-home .af-cat .icon-select.empty b {
  color: var(--muted);
  font-weight: 500;
}
body.dir-home .af-cat .icon-select .tab-icon {
  color: var(--accent);
}
body.dir-home .af-cat .icon-select-list {
  top: calc(100% + 12px);
  right: -6px;
  left: auto;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -12px rgba(10, 10, 10, 0.22);
  z-index: 60;
}
.af-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font: 600 14.5px var(--font-sans);
  cursor: pointer;
}
.af-go:hover {
  background: #262626;
}
.af-go:disabled {
  cursor: progress;
}
.af-go svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}
.hero-submit.is-busy .af-go svg {
  animation: af-spin 1s linear infinite;
}
@keyframes af-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-submit.is-busy .af-go svg { animation: none; }
}
.af-note {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.af-note.bad {
  color: #b42318;
  font-weight: 600;
}

/* The preview: how the product will look, then "List it free →". */
.af-preview {
  width: 100%;
  max-width: 560px;
  margin-top: 14px;
  text-align: left;
}
.af-preview[hidden] {
  display: none;
}
.af-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px -14px rgba(10, 10, 10, 0.2);
  overflow: hidden;
}
.af-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.af-close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.af-close:hover {
  background: #fff;
  color: var(--text);
}
.af-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}
.af-row .dir-mark {
  flex: none;
  width: 44px;
  height: 44px;
}
.af-body {
  flex: 1;
  min-width: 0;
}
.af-body b {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.af-body p {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.af-body p.is-empty {
  color: var(--muted);
  font-style: italic;
}
.af-body .dir-chips {
  margin-top: 8px;
}
.af-body .dir-chip {
  height: 24px;
  padding: 0 9px;
  font-size: 12px;
}
.af-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 0 14px 14px 70px;
}
.af-actions .dir-btn-primary {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.af-actions .dir-btn-link {
  font-size: 14px;
}

/* Phones: the row becomes a card of three lines (website, category, button), 16px text so iOS doesn't zoom. */
@media (max-width: 720px) {
  .hero-submit {
    flex-wrap: wrap;
    height: auto;
    padding: 4px;
    gap: 4px;
  }
  .af-field {
    flex-basis: 100%;
    height: 46px;
    padding: 0 10px;
  }
  .af-field input {
    font-size: 16px;
  }
  .af-cat {
    flex: 1;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0;
  }
  body.dir-home .af-cat .icon-select {
    height: 44px;
    padding-left: 10px;
    font-size: 15px;
  }
  body.dir-home .af-cat .icon-select-list {
    top: calc(100% + 6px);
    right: auto;
    left: 0;
  }
  .af-go {
    height: 44px;
    margin-top: 0;
  }
  .af-actions {
    padding-left: 14px;
  }
  .af-actions .dir-btn-primary {
    flex: 1;
  }
}
@media (max-width: 720px) {
  .af-actions {
    justify-content: center;
  }
}

/* ============================================================================
   SPOTLIGHT LIVE PREVIEW, ANIMATED (owner's request, 2026-12-06)
   While someone types their site into "Claim #1", their product is a real row: its own logo,
   a rank badge, a beam running round its edge, a caret on the name, a ▲/▼ chip when it moves.
   Rows glide to their new places (public/home.js, animateSpotlight). Solid colours only.
   ============================================================================ */
@property --beam {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.spot-row.spot-open.is-live-preview {
  position: relative;
  z-index: 2;
  margin: 3px 0;
}
.spot-row.spot-open.is-live-preview .spot-open-btn {
  position: relative;
  gap: 9px;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 11px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--beam), var(--accent) 0deg, var(--text) 70deg, var(--accent) 140deg, var(--accent) 360deg) border-box;
  box-shadow: 0 10px 24px -14px rgba(10, 10, 10, 0.35);
  animation: spot-beam 2.6s linear infinite;
}
@keyframes spot-beam {
  to { --beam: 360deg; }
}
.spot-row.spot-open.is-live-preview .spot-you-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 11.5px;
}
.spot-row.spot-open.is-live-preview .spot-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.spot-row.spot-open.is-live-preview .spot-who {
  flex: 1;
  min-width: 0;
}
.spot-row.spot-open.is-live-preview .spot-who b {
  color: var(--text);
  font-weight: 700;
}
.spot-row.spot-open.is-live-preview .spot-who small {
  color: var(--accent);
  font-weight: 600;
}
.spot-row.spot-open.is-live-preview .spot-open-cta {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.spot-row.spot-open.is-live-preview:hover .spot-open-cta {
  border-color: var(--accent);
  background: var(--accent);
}

/* A caret on the name while the visitor types it. */
.spot-list.typing .is-live-preview .spot-who b::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: spot-caret 1s steps(1) infinite;
}
@keyframes spot-caret {
  50% { opacity: 0; }
}

/* One ring when it arrives, or when it takes #1. */
.spot-open-btn.just-in::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 11px;
  pointer-events: none;
  animation: spot-ring 0.9s ease-out 1 forwards;
}
@keyframes spot-ring {
  from { box-shadow: 0 0 0 0 var(--accent); opacity: 0.55; }
  to { box-shadow: 0 0 0 12px var(--accent); opacity: 0; }
}

/* ▲ 2 / ▼ 1 floats up from the row and fades when its rank changes. */
.spot-delta {
  position: absolute;
  top: -4px;
  right: 10px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
  animation: spot-delta 1.1s ease-out 1 forwards;
}
.spot-delta.up {
  background: #16a34a;
}
.spot-delta.down {
  background: var(--text);
}
@keyframes spot-delta {
  0% { transform: translateY(6px) scale(0.7); opacity: 0; }
  20% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  70% { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* Landing at #1: the big gold card, with the beam in gold. */
.spot-row.spot-open.is-live-preview.lands-top .spot-open-btn {
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--beam), var(--gold) 0deg, var(--accent) 80deg, var(--gold) 160deg, var(--gold) 360deg) border-box;
  box-shadow: 0 10px 26px -14px rgba(180, 83, 9, 0.6);
}
.spot-row.spot-open.is-live-preview.lands-top .spot-you-rank {
  display: none;
}
.spot-row.spot-open.is-live-preview.lands-top .spot-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  font-size: 18px;
}
.spot-row.spot-open.is-live-preview.lands-top .spot-who b {
  font-size: 15.5px;
}
.spot-row.spot-open.is-live-preview.lands-top .spot-sponsor {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .spot-row.spot-open.is-live-preview .spot-open-btn,
  .spot-open-btn.just-in::before,
  .spot-list.typing .is-live-preview .spot-who b::after {
    animation: none;
  }
  .spot-row.spot-open.is-live-preview .spot-open-btn {
    border-color: var(--accent);
    background: #fff;
  }
  .spot-delta {
    display: none;
  }
}

/* ============================================================================
   SPOTLIGHT CLAIM IN ONE LINE (owner's request, 2026-12-06: the three-field form was a second copy
   of the hero's Autofill). URL and a "Bid #N" button in one bordered box; the category is asked in
   the checkout popup; "Not ready to bid? Launch free →" under it.
   ============================================================================ */
.spot-one-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 4px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spot-one-row:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
.spot-one .spot-field,
.spot-one .spot-field:focus-within {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 11px;
  border: 0;
  background: none;
  box-shadow: none;
}
.spot-one .spot-submit {
  flex: none;
  height: 32px;
  margin: 0;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}
.spot-free {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  text-decoration: none;
}
.spot-free b {
  color: var(--text);
  font-weight: 700;
}
.spot-free:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 720px) {
  .spot-one-row { height: 46px; }
  .spot-one .spot-submit { height: 36px; }
}

/* The category picker in the checkout popup: the same size as the website box, and its list opens
   inside the popup as one scrolling column, so nothing is cut off at the popup's edge. */
#pay .pay-cat .icon-select {
  padding: 8px 32px 8px 11px;
  border-radius: 9px;
  font-size: 13.5px;
}
#pay .pay-cat .icon-select-list {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  max-height: 210px;
  margin-top: 6px;
  overflow-y: auto;
  box-shadow: none;
}
#pay .pay-cat .icon-select-list[hidden] {
  display: none;
}
#pay .pay-cat .icon-select-list .icon-select-search {
  margin: 0 0 4px;
  border-radius: 0;
}

/* The Autofill preview's second button (owner's request, 2026-12-06: "make it better"): an outlined
   button beside "List it free →", with a gold trophy, the rank and the price in the accent. */
.af-spot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: 600 14.5px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.af-spot:hover {
  border-color: var(--text);
}
.af-spot:active {
  transform: translateY(1px);
}
.af-spot svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.af-spot b {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
}
.af-actions {
  gap: 8px;
}
@media (max-width: 720px) {
  .af-actions .af-spot {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================================
   SIDEBAR, OPTIMISED (owner's request, 2026-12-06: "Claim #1 - remove this. optimise the sidebar.
   card size changing on hover")
   - The header is one line: "Live Spotlight" and the − $X + stepper; the Bid #N button says the rank.
   - #1's Take and Visit buttons sit in its "#1 Spotlight" line, out of the flow, so hovering never
     changes the card's size; its right side is just the amount and clicks.
   - Row arrows are quiet (no box) until hovered; every row keeps one height on hover.
   ============================================================================ */
.spot-claim-card {
  padding: 13px 14px 12px;
}
.spot-claim-top {
  align-items: center;
  margin-bottom: 10px;
}
.spot-claim-kicker {
  color: var(--text);
}

/* #1: buttons in the label line. */
.spot-row.top-1 {
  gap: 10px;
  padding: 10px 11px 11px;
}
.spot-row.top-1 .spot-sponsor {
  min-height: 26px;
  margin: -2px 0 0;
  padding: 0 64px 7px 0;
}
.spot-row.top-1 .spot-right {
  position: static;
}
.spot-row.top-1 .spot-visit {
  position: absolute;
  top: 8px;
  right: 10px;
}
.spot-row.top-1 .spot-take {
  position: absolute;
  top: 8px;
  right: 42px;
  display: inline-flex;
  align-items: center;
  visibility: hidden;
}
.spot-row.top-1:hover .spot-take,
.spot-row.top-1:focus-within .spot-take {
  visibility: visible;
}
.spot-row.top-1 .spot-metrics,
.spot-row.top-1:hover .spot-metrics,
.spot-row.top-1:focus-within .spot-metrics {
  display: flex;
}
.spot-row.top-1 .spot-who small {
  -webkit-line-clamp: 2;
}

/* Other rows: Take #N covers the amount on hover (out of the flow), so the row never changes size
   and taglines keep their full width. */
.spot-row:not(.top-1):not(.spot-open) .spot-right {
  position: relative;
}
.spot-row:not(.top-1) .spot-take {
  position: absolute;
  top: 50%;
  right: 32px;
  display: inline-flex;
  align-items: center;
  transform: translateY(-50%);
  visibility: hidden;
}
.spot-row:not(.top-1):hover .spot-metrics,
.spot-row:not(.top-1):focus-within .spot-metrics {
  display: flex;
  visibility: hidden;
}
.spot-row:not(.top-1):hover .spot-take,
.spot-row:not(.top-1):focus-within .spot-take {
  visibility: visible;
}

/* Quiet arrows: no box until the row is hovered. */
.spot-visit {
  border-color: transparent;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.spot-row:hover .spot-visit,
.spot-visit:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

/* Touch screens have no hover: no Take buttons, arrows keep their box. */
@media (hover: none) {
  .spot-take,
  .spot-row.top-1 .spot-take {
    display: none !important;
  }
  .spot-visit {
    border-color: var(--line);
  }
}

/* No day headings any more (2026-12-06): a little room between the tabs and the first card. */
#dir-grid {
  margin-top: 6px;
}

/* Phones and tablets: the Spotlight panel sits between the hero and the products (public/home.js moves it). */
@media (max-width: 900px) {
  .dir-main > .spot-panel {
    margin: 18px 0 26px;
  }
}

/* ============================================================================
   COLUMNS SCROLL ON THEIR OWN, WIDER CENTRE (owner's request, 2026-12-06: "make sidebars, center
   scroll separately. make centre width bigger a bit"; overrides "the Browse column scrolls with the page").
   The page is 1320px wide (was 1220px) and Browse 210px (was 220px), so the centre gains about 110px.
   On wide screens both sidebars stay pinned under the top bar and scroll inside themselves; the centre
   scrolls with the page. Their scrollbars show only on hover.
   ============================================================================ */
body.dir-home {
  --page: min(1320px, 100vw - 40px);
  --pin-top: 74px;
  /* The page is drawn at 95% above 720px (style.css), and vh does not shrink with it. */
  --vh-fix: 1;
}
@media (min-width: 721px) {
  body.dir-home { --vh-fix: 0.95; }
}
body.dir-home .topbar {
  padding-left: max(20px, calc((100vw - 1320px) / 2));
  padding-right: max(20px, calc((100vw - 1320px) / 2));
}
@media (min-width: 1181px) {
  .dir-layout {
    grid-template-columns: 210px minmax(0, 1fr) 300px;
  }
}
.browse,
.spot-aside {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  overscroll-behavior: contain;
}
.browse:hover,
.spot-aside:hover {
  scrollbar-color: var(--line-strong) transparent;
}
@media (min-width: 1181px) {
  .browse {
    position: sticky;
    top: var(--pin-top);
    max-height: calc(100vh / var(--vh-fix) - var(--pin-top) - 12px);
    overflow-y: auto;
  }
}
@media (min-width: 901px) {
  .spot-aside {
    position: sticky;
    top: var(--pin-top);
    max-height: calc(100vh / var(--vh-fix) - var(--pin-top));
    overflow-y: auto;
    margin-top: 24px;
    padding: 0 4px 18px 2px;
  }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .dir-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
/* Inside the pinned Spotlight column, cards keep their height and the column scrolls instead. */
.spot-aside > * {
  flex-shrink: 0;
}

/* No scrollbars on the pinned sidebars (owner's request, 2026-12-06, "remove scroll bar"): they still
   scroll with the wheel, trackpad or touch. */
.browse,
.spot-aside,
.browse:hover,
.spot-aside:hover {
  scrollbar-width: none;
}
.browse::-webkit-scrollbar,
.spot-aside::-webkit-scrollbar {
  display: none;
}

/* "Two ways to get discovered", inside the centre column and compact (owner's request, 2026-12-06). */
.dir-main .dir-how {
  margin-top: 36px;
  padding-top: 26px;
}
.dir-main .dir-how-head {
  margin: 0 auto 16px;
}
.dir-main .dir-how-head h2 {
  font-size: 22px;
}
.dir-main .dir-how-head p {
  margin-top: 5px;
  font-size: 14px;
}
.dir-main .dir-how-grid {
  gap: 12px;
}
.dir-main .dir-how-card {
  gap: 7px;
  padding: 18px;
  border-radius: 14px;
}
.dir-main .dir-how-card .how-tag {
  padding: 2px 9px;
  font-size: 11px;
}
.dir-main .dir-how-card h3 {
  margin-top: 2px;
  font-size: 17px;
}
.dir-main .dir-how-card p {
  font-size: 13.5px;
  line-height: 1.55;
}
.dir-main .how-link,
.dir-main .how-link-btn {
  height: 36px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
}
.dir-main .dir-how-card > p {
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .dir-main .dir-how {
    margin-top: 28px;
    padding-top: 22px;
  }
  .dir-main .dir-how-head h2 {
    font-size: 20px;
  }
}

/* ============================================================================
   THREE COLUMNS THAT SCROLL APART (owner's request, 2026-12-06: "center scroll disturb sidebar too").
   On screens 901px and wider the page itself no longer scrolls: under the promo bar and top bar, the
   Browse column, the centre and the Spotlight column each scroll in their own box, so scrolling one never
   moves the others. The footer and the Featured strip sit at the end of the centre column (public/home.js
   moves them there, and back under the page on narrower screens). Phones keep one normal page scroll.
   ============================================================================ */
@media (min-width: 901px) {
  body.dir-home {
    display: flex;
    flex-direction: column;
    height: calc(100vh / var(--vh-fix));
    overflow: hidden;
  }
  body.dir-home > .promo-bar,
  body.dir-home > .topbar {
    flex: none;
  }
  body.dir-home > .topbar {
    position: relative;
  }
  body.dir-home > main.dir-page {
    flex: 1;
    min-height: 0;
    padding-bottom: 0;
  }
  body.dir-home .dir-layout {
    height: 100%;
    align-items: stretch;
  }
  body.dir-home .dir-main,
  body.dir-home .browse-col,
  body.dir-home .spot-aside {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  body.dir-home .dir-main::-webkit-scrollbar,
  body.dir-home .browse-col::-webkit-scrollbar,
  body.dir-home .spot-aside::-webkit-scrollbar {
    display: none;
  }
  body.dir-home .dir-main {
    padding: 24px 3px 0;
  }
  body.dir-home .browse {
    position: static;
    max-height: none;
    overflow: visible;
  }
  body.dir-home .spot-aside {
    position: static;
    max-height: none;
    margin-top: 0;
    padding: 24px 4px 24px 2px;
  }
  /* The footer at the end of the centre column: same content, sized to the column. */
  body.dir-home .dir-main > .footer {
    margin: 48px 0 0;
    padding: 30px 0 24px;
    border-top: 1px solid var(--line);
    background: none;
  }
  body.dir-home .dir-main > .footer .ft-cols {
    gap: 20px;
  }
  body.dir-home .dir-main > .dir-bottom-featured {
    max-width: none;
    padding: 0 0 24px;
  }
}

/* Paging back to the list top: room for the pinned top bar on phones, a little air on desktop. */
#products {
  scroll-margin-top: 12px;
}
@media (max-width: 900px) {
  #products {
    scroll-margin-top: 76px;
  }
}

/* ============================================================================
   MOVING STRIPS, TOP AND BOTTOM (owner's request, 2026-12-06: "moving panel with sponsored or featured
   startups, or any announcement like an end of season sale, at top and bottom"). `promoStrip` in
   server/app.js writes them: paid products (a gold bolt, "Sponsored"), then free listings, an
   "Advertise" chip every few products (opens the Spotlight claim) and `announcements` from config.js.
   White chips with grey edges on a light grey band; Advertise has a solid accent edge (no dashes, no tints).
   ============================================================================ */
.promo-strip {
  position: relative;
  overflow: hidden;
  background: #f7f7f8;
  padding: 7px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.promo-strip.is-top { border-bottom: 1px solid #ececef; }
.promo-strip.is-bottom { border-top: 1px solid #ececef; }
.ps-track {
  display: flex;
  width: max-content;
  animation: ps-roll 70s linear infinite;
}
.promo-strip.is-bottom .ps-track { animation-direction: reverse; animation-duration: 80s; }
.promo-strip:hover .ps-track,
.promo-strip:focus-within .ps-track { animation-play-state: paused; }
.ps-set {
  display: flex;
  gap: 8px;
  padding-right: 8px;
}
@keyframes ps-roll {
  to { transform: translateX(-50%); }
}
.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 5px;
  border: 1px solid #e3e3e8;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.ps-chip:hover { border-color: #c9c9d1; box-shadow: 0 2px 8px rgba(10, 10, 10, .07); }
.ps-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-chip img,
.ps-initial {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}
.ps-initial {
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ps-spons {
  width: 13px;
  height: 13px;
  flex: none;
  margin-left: -2px;
  fill: #d4a017;
}
.ps-chip svg:not(.ps-spons) {
  width: 15px;
  height: 15px;
  flex: none;
}
.ps-ad {
  padding-left: 11px;
  border-color: var(--accent);
  color: var(--accent);
}
.ps-ad svg { fill: var(--accent); }
.ps-ad:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ps-ad:hover svg { fill: #fff; }
.ps-note {
  padding-left: 11px;
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
.ps-note svg { fill: none; stroke: #f5c542; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ps-note:hover { border-color: #0a0a0a; background: #262626; }
@media (min-width: 901px) {
  body.dir-home > .promo-strip { flex: none; }
}
@media (max-width: 720px) {
  .promo-strip { padding: 6px 0; }
  .ps-chip { height: 30px; font-size: 12.5px; }
  .ps-chip img, .ps-initial { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-track { animation: none; }
  .ps-set[aria-hidden] { display: none; }
  .promo-strip { overflow-x: auto; scrollbar-width: none; }
  .promo-strip::-webkit-scrollbar { display: none; }
}

/* Tighter top (owner's request, 2026-12-06, "reduce this margin"): the three columns start 12px under
   the top strip, and the Browse column has no "Browse" title (removed from `browseSidebar`). */
body.dir-home .browse-col { padding-top: 14px; }
@media (min-width: 901px) {
  body.dir-home .dir-main { padding-top: 12px; }
  body.dir-home .spot-aside { padding-top: 12px; }
}

/* ============================================================================
   BID FROM THE HERO'S URL BOX (owner's request, 2026-12-06: "remove bid from sidebar, and show the
   button when the user enters the URL"). The hero's URL box and category belong to #claim-form
   (form="claim-form"); once a real site is typed (`has-site`), a bid row slides in under the box:
   a gold trophy, "Or bid for the Spotlight", − $X + and a black "Bid #N". The sidebar keeps only
   "Live Spotlight" and one "Claim #N · $X" button over the ranking.
   ============================================================================ */
.hero-bid {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.hero-bid.has-site {
  display: flex;
  animation: hb-in 0.28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hb-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.hb-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}
.hb-label svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: var(--gold);
  stroke: #b45309;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
body.dir-home .hb-stepper {
  flex: none;
  padding: 2px;
  gap: 2px;
  border-radius: 9px;
}
body.dir-home .hb-stepper .step {
  width: 28px;
  height: 28px;
}
body.dir-home .hb-stepper #claim-price {
  min-width: 46px;
  font-size: 15px;
}
.hb-go {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font: 700 14px var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.hb-go:hover { background: #262626; }
.hb-go:active { transform: translateY(1px); }
.dir-hero .spot-found {
  max-width: 560px;
  margin: 8px auto 0;
}
.dir-hero .claim-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #b42318;
  font-weight: 600;
}
@media (max-width: 560px) {
  .hero-bid { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .hb-label { flex-basis: 100%; padding-left: 4px; }
  body.dir-home .hb-stepper { flex: 1; justify-content: space-between; }
  body.dir-home .hb-stepper .step { width: 36px; height: 36px; }
  .hb-go { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bid.has-site { animation: none; }
}

/* The sidebar's header: "Live Spotlight" and one button. */
.spot-claim-card .spot-claim-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}
.spot-claim-btn {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font: 700 13px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}
.spot-claim-btn:hover { background: #262626; }
