/* ============================================================
 * PickleSave — Public site design system
 * Adapted from the Claude Design handoff (PickleSave Home.html).
 * Loaded AFTER site.css so this file's rules win when there's overlap.
 * ============================================================ */

/* ============ TOKENS ============ */
:root {
  --brand: #dc2626;
  --brand-600: #b91c1c;
  --brand-700: #991b1b;
  --brand-50: #fef2f2;
  --brand-100: #fee2e2;
  --accent: #fbbf24;
  --accent-600: #f59e0b;

  --navy-900: #0b1c3d;
  --navy-800: #102a55;
  --navy-700: #1a3a72;
  --navy-600: #2455a0;
  --navy-100: #dde6f5;
  --navy-50: #eef3fb;

  --ink-900: #0b1c3d;
  --ink-700: #243a5e;
  --ink-500: #5b6b85;
  --ink-400: #8a96ac;
  --ink-300: #b6c0d1;
  --ink-200: #dbe1ec;
  --ink-100: #ecf0f6;
  --ink-50: #f6f8fc;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 12, 0.04), 0 1px 1px rgba(10, 15, 12, 0.02);
  --shadow: 0 2px 8px rgba(10, 15, 12, 0.05), 0 1px 2px rgba(10, 15, 12, 0.03);
  --shadow-lg: 0 24px 48px -16px rgba(10, 15, 12, 0.16), 0 8px 16px -8px rgba(10, 15, 12, 0.06);
  --shadow-brand: 0 12px 28px -8px rgba(220, 38, 38, 0.4);
  --shadow-navy: 0 12px 28px -8px rgba(11, 28, 61, 0.35);

  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Override the body palette baseline used by site.css.
 * Sticky-footer layout: body fills viewport, main grows to push footer to
 * the bottom. Pages can opt-in their wrapper to flex:1 (see .ps-b-page in
 * picklesave-book.css) so a tinted page background reaches the footer. */
body.site {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--ink-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.site > main, .ps-site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

/* ============ HEADER (PB design) ============ */
.ps-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.ps-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; gap: 32px;
}
.ps-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); }
.ps-logo:hover { text-decoration: none; }
.ps-logo__mark { display: flex; filter: drop-shadow(0 2px 4px rgba(220,38,38,0.2)); }
.ps-logo__words { display: flex; flex-direction: column; line-height: 1; }
.ps-logo__text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy-900); }
.ps-logo__text em { font-style: normal; color: var(--brand); }
.ps-logo__tag { font-size: 10px; color: var(--ink-500); font-weight: 500; margin-top: 2px; }

.ps-nav { display: flex; gap: 4px; flex: 1; }
.ps-nav a {
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 14px; color: var(--ink-700);
  transition: all .15s var(--ease-out);
}
.ps-nav a:hover { background: var(--ink-50); color: var(--ink-900); text-decoration: none; }
.ps-nav a.is-active { color: var(--navy-800); background: var(--navy-50); }

.ps-actions { display: flex; gap: 8px; align-items: center; }
.ps-btn-ghost {
  padding: 9px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--ink-700);
  background: none; border: 0; cursor: pointer;
  transition: all .15s var(--ease-out);
}
.ps-btn-ghost:hover { background: var(--ink-50); text-decoration: none; }
.ps-btn-primary {
  padding: 10px 20px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer;
  transition: all .15s var(--ease-out);
}
.ps-btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-brand); text-decoration: none; }
.ps-btn-outline {
  padding: 12px 24px; border-radius: 12px;
  border: 1.5px solid var(--ink-200); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--ink-900);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all .2s var(--ease-out);
}
.ps-btn-outline:hover { border-color: var(--ink-900); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }

/* Account dropdown reused inside header */
.ps-account-menu { position: relative; }
.ps-account-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px;
}
.ps-account-menu summary::-webkit-details-marker { display: none; }
.ps-account-menu summary:hover { background: var(--ink-50); }
.ps-account-avatar {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
}
.ps-account-name { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.ps-account-panel {
  position: absolute; right: 0; top: calc(100% + 4px);
  min-width: 220px; background: #fff;
  border: 1px solid var(--ink-100); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px;
  list-style: none; margin: 0;
}
.ps-account-panel li { margin: 0; }
.ps-account-panel a, .ps-account-panel button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-700);
  background: none; border: 0; cursor: pointer; font: inherit;
}
.ps-account-panel a:hover, .ps-account-panel button:hover { background: var(--ink-50); color: var(--ink-900); text-decoration: none; }

.ps-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.ps-burger span { display: block; width: 22px; height: 2px; background: var(--ink-900); }

/* ============ HERO ============ */
.ps-hero {
  position: relative; overflow: hidden;
  padding: 72px 32px 56px;
  background: linear-gradient(180deg, var(--navy-50) 0%, #ffffff 100%);
}
.ps-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ps-hero__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
}
.ps-hero__blob-1 { top: -100px; right: -50px; width: 500px; height: 500px;
  background: radial-gradient(circle, #93c5fd 0%, transparent 70%); }
.ps-hero__blob-2 { bottom: -200px; left: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, #fca5a5 0%, transparent 70%); opacity: 0.45; }
.ps-hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--navy-700); opacity: 0.07; }

.ps-hero__content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; text-align: center; }

.ps-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--navy-100);
  font-size: 13px; font-weight: 600; color: var(--navy-800);
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.ps-hero__eyebrow svg { color: var(--brand); }

.ps-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05; font-weight: 800; margin: 0 0 16px;
  color: var(--ink-900);
}
.ps-hero__accent {
  position: relative; display: inline-block; color: var(--brand);
}
.ps-hero__accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 12px; background: var(--accent); opacity: 0.5;
  z-index: -1; border-radius: 100px; transform: skewX(-6deg);
}
.ps-hero__sub {
  font-size: 18px; color: var(--ink-500);
  max-width: 580px; margin: 0 auto 32px;
}

.ps-hero__search {
  display: flex; align-items: center; gap: 0;
  background: #fff; border-radius: 16px; padding: 8px;
  max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10,15,12,0.04);
}
.ps-hero__search:focus-within { box-shadow: var(--shadow-lg), 0 0 0 2px var(--navy-700); }
.ps-search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; position: relative;
}
.ps-search-field--divided::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--ink-200);
}
.ps-search-field svg { color: var(--ink-400); flex-shrink: 0; }
.ps-search-field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink-900);
}
.ps-search-field input::placeholder { color: var(--ink-400); }
.ps-search-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  border-radius: 10px; box-shadow: var(--shadow-brand);
  transition: all .15s var(--ease-out);
}
.ps-search-btn:hover { background: var(--brand-600); transform: translateY(-1px); }

.ps-hero__chips {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.ps-hero__chips-label { font-size: 13px; color: var(--ink-500); margin-right: 4px; }
.ps-chip {
  padding: 7px 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--ink-200);
  font-size: 13px; font-weight: 500; color: var(--ink-700);
  cursor: pointer; transition: all .15s var(--ease-out);
}
.ps-chip:hover { border-color: var(--navy-700); color: var(--navy-800); text-decoration: none; }
.ps-chip.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.ps-hero__stats {
  display: inline-flex; align-items: center; margin-top: 40px;
  padding: 16px 32px; background: #fff; border-radius: 18px;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow); gap: 28px;
}
.ps-hero__stat { text-align: center; }
.ps-hero__stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 24px;
  color: var(--ink-900); line-height: 1; letter-spacing: -0.03em;
}
.ps-hero__stat-num span { color: var(--brand); margin-left: 2px; }
.ps-hero__stat-num .star-acc { color: var(--accent-600); }
.ps-hero__stat-label { font-size: 12px; color: var(--ink-500); margin-top: 4px; font-weight: 500; }
.ps-hero__stat-divider { width: 1px; height: 32px; background: var(--ink-200); }

/* ============ MAIN ============ */
.ps-main { max-width: 1280px; margin: 0 auto; padding: 56px 32px 80px; }
.ps-section-head { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: baseline; }
.ps-section-title { font-size: 30px; font-weight: 800; margin: 0; }
.ps-section-sub { font-size: 14px; color: var(--ink-500); margin-top: 6px; }

/* ============ FILTER BAR ============ */
.ps-filterbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--ink-100); border-radius: 16px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.ps-filter-pills { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.ps-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--ink-50); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  cursor: pointer; text-decoration: none;
  transition: all .15s var(--ease-out);
}
.ps-pill:hover { background: var(--ink-100); text-decoration: none; }
.ps-pill.is-active { background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-100); }
.ps-pill select {
  appearance: none; background: none; border: 0; outline: 0;
  font: inherit; color: inherit; cursor: pointer; padding-right: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 12px;
}

/* ── Custom dropdown using <details> (replaces native <select> popup) ── */
.ps-dd { position: relative; display: inline-block; }
.ps-dd > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--ink-50); border: 1px solid transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  transition: all .15s var(--ease-out);
}
.ps-dd > summary::-webkit-details-marker { display: none; }
.ps-dd > summary:hover { background: var(--ink-100); }
.ps-dd[open] > summary,
.ps-dd > summary.is-active {
  background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-100);
}
.ps-dd__chev {
  opacity: 0.6;
  transition: transform .15s var(--ease-out);
}
.ps-dd[open] .ps-dd__chev { transform: rotate(180deg); }

.ps-dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  animation: ps-pop-in .18s var(--ease-out);
}
.ps-dd__menu--right { left: auto; right: 0; }
@keyframes ps-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ps-dd__option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-700); text-align: left;
  background: none; border: 0; cursor: pointer; font: inherit;
  text-decoration: none;
  transition: background .12s;
}
.ps-dd__option:hover { background: var(--ink-50); color: var(--ink-900); text-decoration: none; }
.ps-dd__option.is-selected { color: var(--navy-800); font-weight: 600; }
.ps-dd__option.is-selected::after {
  content: '';
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center/contain;
  margin-left: 12px; flex-shrink: 0;
}
.ps-filterbar__right { display: flex; align-items: center; gap: 12px; }
.ps-result-count { font-size: 13px; color: var(--ink-500); }
.ps-result-count b { color: var(--ink-900); }

/* ============ GRID + CARD ============ */
.ps-grid { display: grid; gap: 24px; }
.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ps-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--ink-100); cursor: pointer; position: relative;
  display: flex; flex-direction: column; color: inherit;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.ps-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: transparent; text-decoration: none;
}
.ps-card__img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-100); }
.ps-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); display: block; }
.ps-card:hover .ps-card__img { transform: scale(1.06); }
.ps-card__placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; opacity: 0.3; }
.ps-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
  opacity: 0; transition: opacity .3s;
}
.ps-card:hover .ps-card__img-overlay { opacity: 1; }
.ps-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  background: var(--ink-900); color: #fff; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.ps-card__badge--hot { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ps-card__badge--new { background: var(--navy-700); }
.ps-card__badge--top { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #422006; }
.ps-card__badge--deal { background: var(--navy-800); }
.ps-card__availability {
  position: absolute; bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 100px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 600;
  transform: translateY(8px); opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.ps-card:hover .ps-card__availability { transform: translateY(0); opacity: 1; }
.ps-card__avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: ps-pulse 2s infinite;
}
@keyframes ps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.ps-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ps-card__header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ps-card__title {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--ink-900); margin: 0;
}
.ps-grid--4 .ps-card__title { font-size: 15px; }
.ps-card__rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; flex-shrink: 0;
}
.ps-card__rating svg { color: var(--accent); }
.ps-card__rating b { color: var(--ink-900); font-weight: 700; }
.ps-card__rating-count { color: var(--ink-400); font-size: 12px; }

.ps-card__location {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-500); min-width: 0;
}
.ps-card__location svg { flex-shrink: 0; color: var(--ink-400); }
.ps-card__location > span:first-of-type {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ps-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-tag {
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid var(--ink-100);
}
.ps-tag--badminton  { background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-100); }
.ps-tag--pickleball { background: #fef2f2; color: #991b1b; border-color: #fee2e2; }
.ps-tag--tennis     { background: #fef3c7; color: #92400e; border-color: #fde68a; }

.ps-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--ink-100); gap: 8px;
}
.ps-card__price { display: flex; flex-direction: column; min-width: 0; }
.ps-card__price-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 16px; color: var(--ink-900);
  letter-spacing: -0.02em; white-space: nowrap;
}
.ps-card__price-sep { color: var(--ink-300); font-weight: 500; margin: 0 2px; }
.ps-card__price-unit { font-size: 11px; color: var(--ink-500); margin-top: 2px; font-weight: 500; }
.ps-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px;
  background: var(--navy-800); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all .2s var(--ease-out);
}
.ps-card:hover .ps-card__cta { background: var(--brand); box-shadow: var(--shadow-brand); }
.ps-card__cta svg { transition: transform .25s var(--ease-out); }
.ps-card:hover .ps-card__cta svg { transform: translateX(3px); }

/* ============ EMPTY ============ */
.ps-empty {
  text-align: center; padding: 80px 40px;
  background: var(--ink-50); border-radius: var(--radius-lg);
}
.ps-empty h3 { font-size: 18px; margin-bottom: 6px; }
.ps-empty p { color: var(--ink-500); margin: 0 0 20px; }

/* ============ PAGINATION (override site.css) ============ */
.ps-main .pagination strong { background: var(--brand); color: #fff; border-color: var(--brand); }
.ps-main .pagination a       { color: var(--ink-900); }
.ps-main .pagination a:hover { background: var(--ink-50); border-color: var(--ink-200); }

/* ============ FOOTER ============ */
/* No margin-top — sticky-footer flex layout supplies the spacing already.
 * A margin would show through as a coloured gap above the footer when the
 * page wrapper has its own background (booking page = ink-50, etc.). */
.ps-footer { background: var(--ink-50); border-top: 1px solid var(--ink-100); }
.ps-footer__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 32px 32px;
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px;
}
.ps-footer__brand p { color: var(--ink-500); font-size: 14px; max-width: 320px; margin-top: 14px; }
.ps-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ps-footer__col h4 { font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-700); }
.ps-footer__col a {
  display: block; font-size: 14px; color: var(--ink-500);
  padding: 5px 0; transition: color .15s;
}
.ps-footer__col a:hover { color: var(--ink-900); text-decoration: none; }
.ps-footer__bot {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--ink-100);
  font-size: 13px; color: var(--ink-500);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .ps-nav { display: none; }
  .ps-burger { display: inline-flex; }
  .ps-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ink-100);
    padding: 8px 16px;
  }
  .ps-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--ink-100); }
  .ps-grid--3, .ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ps-filterbar { flex-direction: column; align-items: stretch; }
  .ps-hero__search { flex-direction: column; align-items: stretch; }
  .ps-search-field--divided::before { display: none; }
  .ps-search-btn { width: 100%; justify-content: center; }
  .ps-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .ps-account-name { display: none; }
}
@media (max-width: 600px) {
  .ps-grid--3, .ps-grid--4 { grid-template-columns: 1fr; }
  .ps-hero { padding: 48px 20px 32px; }
  .ps-header__inner, .ps-main { padding-left: 20px; padding-right: 20px; }
  .ps-hero__stats { flex-direction: column; gap: 12px; }
  .ps-hero__stat-divider { display: none; }
}

/* ============ MOBILE POLISH (US-87) ============
   Cross-page guards. Keep selectors as targeted as possible so the rules
   don't override page-specific responsive layouts above. */
html, body { overflow-x: hidden; }   /* defensive — kill any rogue horizontal scroll */
img, video, svg { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  /* iOS Safari zooms when an input is focused with font-size < 16px.
     Lifting form-control font-size to 16px on small screens prevents that. */
  input, select, textarea { font-size: 16px; }
  /* Stack toolbar-style header rows that often overflow on phones. */
  .ps-my-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
}
