/* PromoSaver redesign – 11/2026. Scoped to .ps-* classes so Rehub templates keep working. */
:root {
  --ps-ink: #0b1020;
  --ps-ink-2: #1b2240;
  --ps-text: #1f2433;
  --ps-muted: #667085;
  --ps-line: #e6e8ef;
  --ps-bg: #f5f6fa;
  --ps-card: #ffffff;
  --ps-red: #e3122b;
  --ps-red-dark: #b90d22;
  --ps-red-soft: #fff0f2;
  --ps-yellow: #ffc21a;
  --ps-green: #0f9d58;
  --ps-radius: 16px;
  --ps-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --ps-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ps-head: "Poppins", var(--ps-font);
}

body.ps-site { background: var(--ps-bg); color: var(--ps-text); font-family: var(--ps-font); -webkit-font-smoothing: antialiased; }
.ps-site .rh-outer-wrap { background: transparent; }
.ps-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.ps-site h1, .ps-site h2, .ps-site h3 { font-family: var(--ps-head); color: var(--ps-ink); letter-spacing: -.01em; }
.ps-site [hidden] { display: none !important; }
.ps-muted { color: var(--ps-muted); font-size: 14px; }
.ps-center { text-align: center; }
.ps-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 8px; }
.ps-skip:focus { left: 8px; }
.ps-site a:focus-visible, .ps-site button:focus-visible, .ps-site input:focus-visible, .ps-site summary:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: 2px; }

/* ---------- buttons ---------- */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; font: 600 15px/1 var(--ps-font); cursor: pointer; text-decoration: none !important; transition: transform .12s, background .12s, box-shadow .12s; white-space: nowrap; }
.ps-btn:active { transform: translateY(1px); }
.ps-btn--primary { background: var(--ps-red); color: #fff !important; box-shadow: 0 6px 16px rgba(227, 18, 43, .25); }
.ps-btn--primary:hover { background: var(--ps-red-dark); }
.ps-btn--deal { background: var(--ps-ink); color: #fff !important; min-width: 150px; }
.ps-btn--deal:hover { background: var(--ps-ink-2); }
.ps-btn--code { position: relative; background: var(--ps-red); color: #fff; min-width: 150px; padding-right: 54px; overflow: hidden; }
.ps-btn--code:hover { background: var(--ps-red-dark); }
.ps-btn__peek { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ps-ink); border: 2px dashed var(--ps-red); border-left: 0; border-radius: 0 12px 12px 0; font: 700 13px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.ps-btn__peek::before { content: ""; position: absolute; left: -10px; top: 0; bottom: 0; width: 18px; background: var(--ps-red); transform: skewX(-14deg); transition: background .12s; }
.ps-btn--code:hover .ps-btn__peek::before { background: var(--ps-red-dark); }

/* ---------- header ---------- */
.ps-site .ps-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94) !important; backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ps-line); }
.admin-bar .ps-header { top: 32px; }
.ps-header__row { display: flex; align-items: center; gap: 24px; height: 68px; }
.ps-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ps-ink) !important; font: 600 21px/1 var(--ps-head); text-decoration: none !important; flex-shrink: 0; }
.ps-brand b { color: var(--ps-red); font-weight: 700; }
.ps-brand__mark { width: 30px; height: 30px; color: var(--ps-red); }
.ps-brand--light { color: #fff !important; }
.ps-nav { display: flex; gap: 4px; }
.ps-nav a { color: var(--ps-text) !important; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; text-decoration: none !important; }
.ps-nav a:hover { background: var(--ps-bg); color: var(--ps-red) !important; }
.ps-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 360px; margin-left: auto; }
.ps-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ps-muted); pointer-events: none; }
.ps-site .ps-search input[type=search] { width: 100%; height: 44px; margin: 0; padding: 0 14px 0 40px; border: 1px solid var(--ps-line); border-radius: 12px; background: var(--ps-bg); font: 15px var(--ps-font); color: var(--ps-text); box-shadow: none; }
.ps-site .ps-search input[type=search]:focus { background: #fff; border-color: var(--ps-red); outline: none; box-shadow: 0 0 0 4px var(--ps-red-soft); }
.ps-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; box-shadow: var(--ps-shadow); max-height: 360px; overflow: auto; text-align: left; }
.ps-suggest li { margin: 0; }
.ps-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ps-text) !important; text-decoration: none !important; font-size: 15px; }
.ps-suggest a small { color: var(--ps-muted); }
.ps-suggest a:hover, .ps-suggest a.is-active { background: var(--ps-red-soft); }
.ps-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ps-bg); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.ps-menu-btn i { display: block; width: 20px; height: 2px; background: var(--ps-ink); border-radius: 2px; }
.ps-mobile-nav { border-top: 1px solid var(--ps-line); padding: 8px 16px 16px; background: #fff; }
.ps-mobile-nav a { display: block; padding: 12px 4px; color: var(--ps-text) !important; font-weight: 500; border-bottom: 1px solid var(--ps-line); text-decoration: none !important; }

/* ---------- hero ---------- */
.ps-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(227, 18, 43, .55), transparent 60%), radial-gradient(800px 400px at -10% 120%, rgba(255, 194, 26, .18), transparent 60%), var(--ps-ink); color: #fff; padding: 64px 0 56px; text-align: center; }
.ps-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.ps-hero .ps-wrap { position: relative; z-index: 1; max-width: 860px; }
.ps-eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ffd666; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ps-site .ps-hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(30px, 5vw, 50px); line-height: 1.1; font-weight: 700; }
.ps-hero h1 span { display: block; color: var(--ps-yellow); }
.ps-hero__lead { max-width: 680px; margin: 0 auto 28px; color: #c9cee0; font-size: 18px; line-height: 1.6; }
.ps-search--hero { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.ps-search--hero > svg { left: 22px; }
.ps-site .ps-search--hero input[type=search] { height: 52px; border: 0; background: transparent; padding-left: 46px; font-size: 17px; }
.ps-site .ps-search--hero input[type=search]:focus { box-shadow: none; }
.ps-search--hero .ps-btn { height: 52px; flex-shrink: 0; }
.ps-hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; margin: 28px 0 0; padding: 0; list-style: none; color: #c9cee0; font-size: 15px; }
.ps-hero__stats strong { color: #fff; font-size: 20px; margin-right: 4px; }

/* ---------- sections ---------- */
.ps-section { padding: 48px 16px 0; }
.ps-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ps-section__head h2, .ps-section > h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.ps-section > h2 { margin-bottom: 24px; }
.ps-section__head a { color: var(--ps-red) !important; font-weight: 600; text-decoration: none !important; }

/* store tiles */
.ps-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ps-store-grid li { margin: 0; }
.ps-store-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; box-sizing: border-box; padding: 18px 12px 14px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); text-align: center; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ps-store-tile:hover { border-color: var(--ps-red); box-shadow: var(--ps-shadow); transform: translateY(-2px); }
.ps-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.ps-logo img { max-width: 120px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.ps-logo--blank, .ps-offer__logo.ps-logo--blank, .ps-mini-logo.ps-logo--blank, .ps-store__logo.ps-logo--blank { background: var(--ps-red-soft); color: var(--ps-red); font: 700 26px/1 var(--ps-head); border-radius: 14px; }
.ps-logo--blank { width: 64px; }
.ps-store-tile__name { color: var(--ps-ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.ps-store-tile__count { color: var(--ps-muted); font-size: 13px; }
.ps-store-grid--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- offer cards ---------- */
.ps-offer-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ps-offer__body { min-width: 0; overflow-wrap: anywhere; }
.ps-offer { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 20px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); transition: box-shadow .15s, border-color .15s; }
.ps-offer:hover { box-shadow: var(--ps-shadow); border-color: #d5d9e4; }
.ps-offer__badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; padding: 8px; border: 2px dashed #f4b7bf; border-radius: 14px; background: var(--ps-red-soft); color: var(--ps-red); text-align: center; }
.ps-offer__badge strong { font: 700 26px/1 var(--ps-head); word-break: break-word; }
.ps-offer__badge span { font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.ps-offer__logo { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; margin-bottom: 4px; }
.ps-offer__logo img { max-width: 56px; max-height: 30px; object-fit: contain; }
.ps-offer__logo.ps-logo--blank { font-size: 16px; border-radius: 8px; }
.ps-offer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.ps-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--ps-bg); color: var(--ps-muted); }
.ps-tag--code { background: var(--ps-red-soft); color: var(--ps-red); }
.ps-tag--deal { background: #eef2ff; color: #3b4cca; }
.ps-tag--ok { background: #e7f7ee; color: var(--ps-green); }
.ps-tag--ok::before { content: "✓"; margin-right: 4px; }
.ps-offer__store { color: var(--ps-ink) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; margin-left: 4px; }
.ps-offer__store:hover { color: var(--ps-red) !important; }
.ps-site .ps-offer__title { margin: 0; font: 600 17px/1.4 var(--ps-font); color: var(--ps-ink); }
.ps-offer__desc { margin: 6px 0 0; color: #4a5162; font-size: 14px; line-height: 1.5; }
.ps-offer__dates { margin: 8px 0 0; color: var(--ps-muted); font-size: 13px; }
.ps-offer__cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ps-code { display: flex; align-items: stretch; border: 2px dashed var(--ps-red); border-radius: 12px; overflow: hidden; }
.ps-code code { flex: 1; padding: 10px 14px; background: #fff; color: var(--ps-ink); font: 700 16px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; text-align: center; }
.ps-copy { border: 0; background: var(--ps-red); color: #fff; font-weight: 600; padding: 0 14px; cursor: pointer; }
.ps-copy.is-done { background: var(--ps-green); }
.ps-offer.is-revealed .ps-btn--code { display: none; }
.ps-offer.is-expired { opacity: .65; }
.ps-offer.is-expired .ps-offer__badge { filter: grayscale(1); }

/* ---------- steps / about / faq ---------- */
.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ps-steps li { margin: 0; padding: 24px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); }
.ps-steps span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ps-red); color: #fff; font: 700 18px/1 var(--ps-head); }
.ps-site .ps-steps h3 { margin: 14px 0 6px; font-size: 18px; }
.ps-steps p { margin: 0; color: #4a5162; line-height: 1.6; }
.ps-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.ps-split h2 { margin-top: 0; font-size: clamp(22px, 3vw, 30px); }
.ps-split p { line-height: 1.7; color: #3d4354; }
.ps-split a, .ps-prose a, .ps-empty a { color: var(--ps-red) !important; }
.ps-checks { margin: 0; padding: 24px; list-style: none; background: var(--ps-ink); color: #d6daea; border-radius: var(--ps-radius); }
.ps-checks li { position: relative; margin: 0; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.5; }
.ps-checks li:last-child { border: 0; }
.ps-checks li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--ps-yellow); font-weight: 700; }
.ps-checks strong { color: #fff; }
.ps-faq h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; }
.ps-faq details { margin-bottom: 10px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 14px; }
.ps-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; color: var(--ps-red); font: 600 24px/1 var(--ps-font); transition: transform .15s; }
.ps-faq details[open] summary::after { transform: rotate(45deg); }
.ps-site .ps-faq summary h3 { margin: 0; font: 600 17px/1.4 var(--ps-font); }
.ps-faq__a { padding: 0 20px 16px; color: #3d4354; line-height: 1.7; }
.ps-faq__a p { margin: 0 0 8px; }

/* ---------- footer ---------- */
.ps-footer { margin-top: 64px; background: var(--ps-ink); color: #aab1c8; font-size: 14px; }
.ps-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ps-site .ps-footer h2 { margin: 4px 0 14px; color: #fff; font: 600 14px/1 var(--ps-font); text-transform: uppercase; letter-spacing: .08em; }
.ps-footer a:not(.ps-brand) { display: block; padding: 5px 0; color: #d6daea !important; text-decoration: none !important; }
.ps-footer a:not(.ps-brand):hover { color: #fff !important; text-decoration: underline !important; }
.ps-footer p { line-height: 1.6; margin: 14px 0 0; }
.ps-footer__disclosure { font-size: 13px; color: #8890a8; }
.ps-footer__bottom { padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); color: #7a829b; font-size: 13px; }

/* ---------- store page ---------- */
.ps-store__hero { background: linear-gradient(180deg, #fff, var(--ps-bg)); border-bottom: 1px solid var(--ps-line); padding: 20px 0 32px; }
.ps-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--ps-muted); font-size: 14px; }
.ps-crumbs a { color: var(--ps-muted) !important; text-decoration: none !important; }
.ps-crumbs a:hover { color: var(--ps-red) !important; }
.ps-store__head { display: grid; grid-template-columns: 132px 1fr auto; gap: 28px; align-items: center; }
.ps-store__logo { display: flex; align-items: center; justify-content: center; width: 132px; height: 132px; box-sizing: border-box; padding: 16px; background: #fff; border: 1px solid var(--ps-line); border-radius: 24px; box-shadow: var(--ps-shadow); }
.ps-store__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ps-store__logo.ps-logo--blank { font-size: 52px; }
.ps-site .ps-store h1 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; }
.ps-store h1 span { color: var(--ps-red); }
.ps-store__summary { margin: 0 0 14px; color: #3d4354; font-size: 16px; line-height: 1.6; max-width: 760px; }
.ps-store__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ps-store__facts li { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ps-line); font-size: 14px; color: var(--ps-muted); }
.ps-store__facts strong { color: var(--ps-ink); }
.ps-store__go { min-width: 200px; height: 52px; font-size: 16px; }
.ps-store__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 32px; }
.ps-site .ps-h2 { margin: 0 0 14px; font-size: 24px; }
.ps-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ps-filter button { height: 38px; padding: 0 16px; border: 1px solid var(--ps-line); border-radius: 999px; background: #fff; color: var(--ps-text); font: 500 14px var(--ps-font); cursor: pointer; }
.ps-filter button.is-on { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }
.ps-expired { margin-top: 28px; }
.ps-expired summary { cursor: pointer; list-style: none; }
.ps-expired summary::-webkit-details-marker { display: none; }
.ps-site .ps-expired summary h2 { display: inline; font-size: 18px; color: var(--ps-muted); }
.ps-expired summary::before { content: "▸ "; color: var(--ps-muted); }
.ps-expired[open] summary::before { content: "▾ "; }
.ps-howto, .ps-prose, .ps-empty { margin-top: 32px; padding: 24px 28px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); line-height: 1.7; }
.ps-site .ps-howto h2, .ps-site .ps-prose h2 { margin-top: 0; font-size: 22px; }
.ps-prose h1, .ps-prose h2, .ps-prose h3 { font-size: 20px; margin: 20px 0 8px; }
.ps-prose img { max-width: 100%; height: auto; }
.ps-store .ps-faq { margin-top: 32px; }
.ps-card { margin-bottom: 16px; padding: 20px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); }
.ps-site .ps-card h2 { margin: 0 0 12px; font-size: 17px; }
.ps-small { font-size: 14px; line-height: 1.6; color: #4a5162; }
.ps-small p { margin: 0 0 8px; }
.ps-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.ps-dl dt { color: var(--ps-muted); }
.ps-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--ps-ink); }
.ps-mini-stores { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ps-mini-stores li { margin: 0; }
.ps-mini-stores a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ps-text) !important; text-decoration: none !important; font-weight: 500; }
.ps-mini-stores a:hover { background: var(--ps-bg); }
.ps-mini-logo { display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; flex-shrink: 0; }
.ps-mini-logo img { max-width: 44px; max-height: 32px; object-fit: contain; }
.ps-mini-logo.ps-logo--blank { font-size: 15px; border-radius: 8px; }

/* ---------- stores directory ---------- */
.ps-stores { padding-top: 24px; }
.ps-site .ps-stores h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.ps-lead { color: #3d4354; font-size: 17px; line-height: 1.6; max-width: 720px; }
.ps-stores__tools { position: sticky; top: 68px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 8px; padding: 12px 0; background: var(--ps-bg); }
.ps-site .ps-stores__tools input { height: 44px; width: 260px; margin: 0; padding: 0 14px; border: 1px solid var(--ps-line); border-radius: 12px; font: 15px var(--ps-font); }
.ps-az { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; background: #fff; border: 1px solid var(--ps-line); color: var(--ps-ink) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.ps-az a:hover { background: var(--ps-red); border-color: var(--ps-red); color: #fff !important; }
.ps-az-group { scroll-margin-top: 140px; }
.ps-site .ps-az-group h2 { margin: 28px 0 12px; font-size: 24px; color: var(--ps-red); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ps-nav a { padding: 8px; font-size: 14px; }
}
@media (max-width: 960px) {
  .ps-nav, .ps-header .ps-search { display: none; }
  .ps-menu-btn { display: flex; margin-left: auto; }
  .ps-store__layout { grid-template-columns: 1fr; }
  .ps-split { grid-template-columns: 1fr; }
  .ps-footer__grid { grid-template-columns: 1fr 1fr; }
  .ps-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ps-hero { padding: 40px 0 36px; }
  .ps-hero__lead { font-size: 16px; }
  .ps-search--hero { flex-wrap: wrap; }
  .ps-search--hero .ps-btn { width: 100%; }
  .ps-search--hero > svg { top: 24px; }
  .ps-section { padding-top: 36px; }
  .ps-steps { grid-template-columns: 1fr; }
  .ps-store-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-offer { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .ps-offer__badge { min-height: 72px; }
  .ps-offer__badge strong { font-size: 19px; }
  .ps-offer__cta { grid-column: 1 / -1; }
  .ps-btn--code, .ps-btn--deal { width: 100%; }
  .ps-store__head { grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
  .ps-store__logo { width: 64px; height: 64px; border-radius: 16px; padding: 8px; }
  .ps-store__logo.ps-logo--blank { font-size: 30px; }
  .ps-site .ps-store h1 { font-size: 24px; }
  .ps-store__go { grid-column: 1 / -1; width: 100%; }
  .ps-store__summary { font-size: 15px; }
  .ps-howto, .ps-prose, .ps-empty { padding: 18px; }
  .ps-section__head { flex-direction: column; gap: 4px; }
  .ps-stores__tools { top: 68px; }
  .ps-site .ps-stores__tools input { width: 100%; }
}
.ps-tag--pick { background: #fff6dc; color: #9a6b00; }
.ps-offer__badge.is-long strong { font-size: 19px; }
@media (max-width: 720px) { .ps-offer__badge.is-long strong { font-size: 15px; } }

/* About page */
.ps-about { max-width: 760px; font-size: 16px; line-height: 1.75; color: #3d4354; }
.ps-site .ps-about h2 { margin: 32px 0 10px; font-size: 24px; scroll-margin-top: 90px; }
.ps-about ul { padding-left: 20px; }
.ps-about li { margin-bottom: 6px; }
.ps-about a { color: var(--ps-red) !important; }
.ps-about .ps-lead { font-size: 18px; color: var(--ps-text); }
.ps-site .rh-container.full_gutenberg { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; box-sizing: border-box; }
.ps-site .ps-about { max-width: 760px !important; margin: 0 auto !important; }
.ps-site .full_gutenberg h1 { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- editorial articles (inc/ps-articles.php) ---------- */
.ps-article { font-size: 17px; line-height: 1.75; }
.ps-article h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 36px 0 12px; }
.ps-article h3 { font-size: 19px; margin: 24px 0 8px; }
.ps-article-meta { margin: 0 0 4px; color: var(--ps-muted); font-size: 14px; }
.ps-disclosure { margin: 0 0 24px; padding: 8px 12px; border-left: 3px solid var(--ps-line); color: var(--ps-muted); font-size: 13px; line-height: 1.5; }
.ps-answer { margin: 0 0 28px; padding: 18px 22px; background: var(--ps-card); border: 1px solid var(--ps-line); border-left: 4px solid var(--ps-red); border-radius: 12px; }
.ps-answer p:last-child { margin-bottom: 0; }
.ps-article table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; background: var(--ps-card); }
.ps-article th, .ps-article td { padding: 10px 12px; border: 1px solid var(--ps-line); text-align: left; vertical-align: top; }
.ps-article th { background: var(--ps-bg); font-weight: 600; color: var(--ps-ink); }
.ps-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ps-offerbox { margin: 24px 0; padding: 20px 22px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); }
.ps-offerbox__name { margin: 0 0 12px; font-size: 18px; }
.ps-offerbox__name span { display: block; color: var(--ps-muted); font-size: 15px; }
.ps-offerbox__row { margin: 0 0 12px; }
.ps-offerbox__label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ps-text); }
.ps-offerbox .ps-code { max-width: 420px; }
.ps-offerbox .ps-btn { margin-top: 4px; }
.ps-offerbox__note { margin: 10px 0 0; color: var(--ps-muted); font-size: 13px; line-height: 1.5; }
.ps-risk { margin: 32px 0 0; padding: 14px 18px; background: #fff8e6; border: 1px solid #f3d27a; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.ps-article .ps-faq { margin-top: 36px; }
.ps-sources { margin-top: 32px; font-size: 14px; }
.ps-sources h2 { font-size: 20px; }
.ps-sources ul { padding-left: 20px; }
/* Rehub's deal-post chrome doesn't belong on articles. */
.ps-is-article .featured_single_left, .ps-is-article .single_top_postproduct, .ps-is-article .rh-float-panel, .ps-is-article .single_top_corner { display: none !important; }

/* ---------- blog / guide cards (page-templates/ps-blog.php) ---------- */
.ps-blog { padding-top: 24px; }
.ps-site .ps-blog h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.ps-chips a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid var(--ps-line); border-radius: 999px; background: #fff; color: var(--ps-text) !important; font-weight: 500; font-size: 14px; text-decoration: none !important; }
.ps-chips a span { color: var(--ps-muted); font-size: 12px; }
.ps-chips a:hover { border-color: var(--ps-red); color: var(--ps-red) !important; }
.ps-chips a.is-on { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff !important; }
.ps-chips a.is-on span { color: #aab1c8; }
.ps-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ps-guide { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ps-guide:not(.has-img)::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--ps-red), var(--ps-yellow)); }
.ps-guide:hover { border-color: #d5d9e4; box-shadow: var(--ps-shadow); transform: translateY(-2px); }
.ps-guide__media { display: block; aspect-ratio: 16 / 9; background: var(--ps-bg); }
.ps-guide__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-guide__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.ps-guide__topic { align-self: flex-start; margin-bottom: 10px; padding: 3px 8px; border-radius: 6px; background: var(--ps-red-soft); color: var(--ps-red); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ps-site .ps-guide__title { margin: 0 0 8px; font: 600 18px/1.35 var(--ps-head); color: var(--ps-ink); }
.ps-guide__title a { color: inherit !important; text-decoration: none !important; }
.ps-guide__title a::after { content: ""; position: absolute; inset: 0; }
.ps-guide:hover .ps-guide__title a { color: var(--ps-red) !important; }
.ps-guide__excerpt { margin: 0 0 14px; color: #4a5162; font-size: 15px; line-height: 1.55; }
.ps-guide__meta { margin: auto 0 0; color: var(--ps-muted); font-size: 13px; }
.ps-guide--featured { margin-bottom: 16px; }
.ps-guide--featured .ps-guide__body { padding: 28px 32px 24px; }
.ps-site .ps-guide--featured .ps-guide__title { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.ps-guide--featured .ps-guide__excerpt { max-width: 760px; font-size: 17px; }
.ps-guide--featured.has-img { display: grid; grid-template-columns: 1.1fr 1fr; }
.ps-guide--featured.has-img .ps-guide__media { aspect-ratio: auto; }
.ps-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.ps-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ps-line); color: var(--ps-ink) !important; font-weight: 600; text-decoration: none !important; }
.ps-pager .page-numbers.current { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff !important; }
.ps-pager a.page-numbers:hover { border-color: var(--ps-red); color: var(--ps-red) !important; }
.ps-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ps-line); }
.ps-related .ps-section__head h2 { margin: 0; font-size: 22px; }
.ps-related .ps-guide-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ps-related .ps-guide__title { font-size: 16px; }
.ps-related .ps-guide__excerpt { font-size: 14px; }
.ps-article-meta a { color: var(--ps-muted) !important; }
.ps-article-meta a:hover { color: var(--ps-red) !important; }
@media (max-width: 720px) {
  .ps-guide-grid { grid-template-columns: 1fr; }
  .ps-guide--featured .ps-guide__body { padding: 20px; }
  .ps-guide--featured.has-img { grid-template-columns: 1fr; }
  .ps-guide--featured .ps-guide__excerpt { font-size: 15px; }
}

/* Page heading injected on archive / Elementor pages without their own H1 (inc/ps-seo.php) */
.ps-pagehead { padding-top: 24px; padding-bottom: 8px; }
.ps-site .ps-pagehead h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.ps-pagehead .ps-lead { margin: 0 0 16px; }
.ps-has-pagehead .wpsm-cat-title { display: none; }

/* ---------- brand code pages + /codes/ hub (inc/ps-brands.php) ---------- */
.ps-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ps-bcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ps-bcard:hover { border-color: var(--ps-red); box-shadow: var(--ps-shadow); transform: translateY(-2px); }
.ps-bcard__top { display: flex; align-items: center; gap: 10px; }
.ps-site .ps-bcard__name { margin: 0; font: 600 16px/1.3 var(--ps-head); color: var(--ps-ink); }
.ps-bcard__name a { color: inherit !important; text-decoration: none !important; }
.ps-bcard__name a::after { content: ""; position: absolute; inset: 0; }
.ps-bcard:hover .ps-bcard__name a { color: var(--ps-red) !important; }
.ps-bcard__benefit { margin: 0; color: #4a5162; font-size: 14px; line-height: 1.5; }
.ps-bcard__code { margin: auto 0 0; }
.ps-bcard__code code { display: inline-block; padding: 4px 10px; border: 2px dashed var(--ps-red); border-radius: 8px; background: #fff; color: var(--ps-ink); font: 700 14px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.ps-codes__group { scroll-margin-top: 90px; margin-top: 36px; }
.ps-site .ps-codes__group h2 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 28px); }
.ps-codes__group > .ps-muted { margin: 0 0 16px; max-width: 760px; }
.ps-codes__group .ps-small { margin-top: 12px; }
.ps-card__cta { margin: 14px 0 0; }
.ps-card__cta .ps-btn { width: 100%; }
.ps-dl dd code { font: 700 13px ui-monospace, Menlo, Consolas, monospace; }
.ps-brandpage .ps-store__main { font-size: 16px; }
.ps-brandpage .ps-howto, .ps-brandpage .ps-prose { margin-top: 20px; }
.ps-brandpage .ps-howto h2, .ps-brandpage .ps-prose h2 { margin: 0 0 10px; }
.ps-brandpage .ps-prose h3 { font-size: 17px; }
.ps-brandpage .ps-howto ol { padding-left: 22px; }
.ps-brandpage .ps-howto li { margin-bottom: 6px; }
.ps-site .ps-h2 { margin: 32px 0 14px; font-size: 22px; }
.ps-offerbox__more { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.ps-offerbox__more a { color: var(--ps-red) !important; }
.ps-home-codes .ps-bgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 720px) {
  .ps-bgrid { grid-template-columns: 1fr; }
}
.ps-brandpage .ps-prose p { margin: 0 0 12px; }
