  /* Listing page layout */
  .page-head {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 18px 0 12px;
  }
  .page-head h1 {
    font-family: 'Mona Sans', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 800;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  .page-head .summary {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 0;
  }
  .page-head .summary strong { color: var(--ink); }
  .page-head .stats {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--ink-3);
    flex-wrap: wrap;
  }
  .page-head .stats strong { color: var(--ink); font-weight: 700; }

  .intro-copy {
    background: var(--bg-2);
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .intro-copy p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: none;
  }

  /* Main layout — sidebar + listings */
  .listing-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 24px 0;
    align-items: start;
  }
  @media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }
  /* The top 728x90 leaderboard (paid banner OR AdSense fallback) is desktop-only —
     ALWAYS hidden on mobile (a leaderboard doesn't fit a phone width). */
  @media (max-width: 768px) { .ribbon-banner { display: none !important; } }

  /* Filter sidebar */
  .filter-side {
    position: sticky;
    top: 100px;
  }
  .filter-side .filter-group {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .filter-side .filter-group:first-child { padding-top: 0; }
  .filter-side h4,
  .filter-side .filter-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 10px;
  }
  .filter-side .filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin: 2px 0;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
  }
  .filter-side .filter-option:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    border-color: color-mix(in srgb, var(--accent) 26%, var(--rule));
    transform: translateX(1px);
  }
  .filter-side .filter-option:has(input:checked) {
    color: var(--ink);
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 54%),
      color-mix(in srgb, var(--accent) 11%, var(--bg-2));
    border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
    box-shadow: inset 3px 0 0 var(--accent), 0 8px 18px color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .filter-side .filter-option:has(input:focus-visible) {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
  }
  .filter-side a.filter-option { text-decoration: none; }
  .filter-side .filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
  }
  .filter-side .filter-option .count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink);
    min-width: 28px;
    text-align: right;
    line-height: 1;
    opacity: 1;
  }
  .filter-side .filter-option:has(input:checked) .count {
    color: var(--accent);
    opacity: 1;
    font-weight: 800;
  }
  .filter-side .filter-option label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }
  .filter-side .filter-option label::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--ink-3) 66%, var(--rule));
    background: color-mix(in srgb, var(--bg) 88%, var(--ink) 3%);
    box-shadow: inset 0 0 0 4px var(--bg);
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  .filter-side .filter-option:has(input:checked) label::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px var(--bg), 0 0 0 4px color-mix(in srgb, var(--accent) 17%, transparent);
  }
  .filter-side .filter-option:hover label::before { transform: scale(1.06); }
  .filter-side .date-pill {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
  }
  .filter-side .clear-link {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 12px;
    display: inline-block;
  }
  .ad-slot {
    margin-top: 24px;
  }
  /* Keep the responsive AdSense unit within the sidebar column width. */
  .filter-side .ad-slot { overflow: hidden; }
  .filter-side .ad-slot .adsbygoogle { display: block; width: 100%; max-width: 100%; }
  .ad-slot-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--ink-2);
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
  }
  .ad-slot-box {
    background: var(--bg-2);
    border: 1px dashed var(--rule-2);
    border-radius: 4px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ad-slot-box.ad-image-link {
    border-style: solid;
    overflow: hidden;
    background: #050505;
  }
  .ad-slot-box.ad-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
  .ad-slot-placeholder {
    text-align: center;
    color: var(--ink-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .ad-slot-placeholder span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-4);
    margin-top: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* Sort + results count bar */
  .sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
  }
  .sort-bar .count {
    font-size: 13px;
    color: var(--ink-2);
  }
  .sort-bar .count strong { color: var(--ink); font-weight: 700; }
  .sort-bar select {
    padding: 6px 10px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: var(--paper);
  }

  /* Vendor grid */
  .vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 1100px) { .vendor-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .vendor-grid { grid-template-columns: 1fr; } }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 32px 0;
  }
  .pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--paper);
  }
  .pagination a:hover { background: var(--bg-2); }
  .pagination .now { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .pagination .disabled { color: var(--ink-2); opacity: 1; background: var(--bg-2); }
  .pagination .gap { border: none; background: transparent; color: var(--ink-3); padding: 8px 2px; }

  /* FAQ */
  .faq {
    background: var(--bg-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 48px 0;
    margin-top: 32px;
  }
  .faq h2 {
    font-family: 'Mona Sans', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 800;
    font-size: 26px;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
  }
  .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  @media (max-width: 800px) { .faq-list { grid-template-columns: 1fr; } }
  .faq-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 18px 20px;
  }
  .faq-item h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .faq-item p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
  }

  /* Related strips */
  .related-block {
    padding: 32px 0;
    border-top: 1px solid var(--rule);
  }
  .related-block h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
  }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
  }
  @media (max-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
  .related-tile {
    background: var(--paper);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ink-2);
  }
  .related-tile:hover { background: var(--bg-2); color: var(--ink); }
  .related-tile .nm { font-weight: 700; color: var(--ink); }
  .related-tile .ct { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-2); margin-top: 2px; }

  .cross-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  @media (max-width: 800px) { .cross-cats { grid-template-columns: 1fr 1fr; } }
  .cross-cat {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .15s;
  }
  .cross-cat:hover { border-color: var(--accent); }
  .cross-cat .nm { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  .cross-cat .ct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
  .cross-cat .arrow { color: var(--accent); font-weight: 800; }

  /* ---- Equal-height cards: pin footer to bottom regardless of desc length ---- */
  /* Bronze cards are blocks by default — make them flex columns so body fills
     the grid cell and footer pins to bottom via auto margin. */
  .ad-bronze { display: flex; flex-direction: column; height: 100%; }
  .ad-bronze .ad-body { flex: 1; display: flex; flex-direction: column; }
  .ad-bronze .ad-footer { margin-top: auto; }

  /* Silver: body lives in the right grid column. Ensure it fills cell height so
     the footer's existing `margin-top: auto` actually has room to push the
     button to the bottom when desc is short. */
  .ad-silver .ad-body { min-height: 100%; }

  /* Vendor description "...more" link — wires to profile page when those ship */
  .ad-desc .ad-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    white-space: nowrap;
  }
  .ad-desc .ad-more:hover { text-decoration: underline; }

  /* ---- Event-date chip (replaces the old filter sidebar) ---- */
  .event-date-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0 6px;
    font-size: 13px;
  }
  .event-date-bar .lbl {
    font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-2); font-size: 11px;
  }
  .date-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .12s, background .12s;
  }
  .date-chip:hover { border-color: var(--accent); }
  .date-chip.has-date { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
  .date-chip-icon { font-size: 14px; }
  .date-clear {
    width: 26px; height: 26px;
    border: 1px solid var(--rule); background: var(--paper);
    border-radius: 50%;
    cursor: pointer; font-size: 12px;
    color: var(--ink-3);
  }
  .date-clear:hover { color: var(--accent); border-color: var(--accent); }
  .visually-hidden-date {
    position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
  }
