/* PetShelters.org redesign — tokens + components
   Source: docs/design_handoff_petshelters_redesign */

:root {
    --ps-bg: #FBF7F1;
    --ps-surface: #FFFDF9;
    --ps-band: #F3EADB;
    --ps-border: #ECE2D3;
    --ps-border-soft: #F1E9DC;
    --ps-ink: #3A332C;
    --ps-body: #6B5E4F;
    --ps-muted: #8A7A68;
    --ps-primary: #D97757;
    --ps-primary-dark: #C4664A;
    --ps-primary-tint: #FBEEE7;
    --ps-green: #4F8F6D;
    --ps-green-tint: #EAF2EC;
    --ps-mustard: #C99A3B;
    --ps-mustard-tint: #FBF1DD;
    --ps-footer-link: #D8CFC1;
    --ps-footer-muted: #9B9184;
    --ps-shadow: 0 12px 32px rgba(58, 51, 44, 0.10);
    --ps-heading: 'Fredoka', sans-serif;
    --ps-gutter: 56px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ps-bg);
    color: var(--ps-ink);
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--ps-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--ps-ink);
}

p { margin: 0; color: var(--ps-body); }

a { color: var(--ps-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.ps-shell { max-width: 1440px; margin: 0 auto; }

.ps-section { padding: 64px var(--ps-gutter); }

/* ---------- header ---------- */

.ps-header {
    background: var(--ps-surface);
    border-bottom: 1px solid var(--ps-border);
}

.ps-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px var(--ps-gutter);
}

.ps-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ps-logo:hover { text-decoration: none; }

.ps-logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--ps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-logo__mark::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ps-bg);
}

.ps-logo__word {
    font-family: var(--ps-heading);
    font-weight: 600;
    font-size: 22px;
    color: var(--ps-ink);
}

.ps-nav { display: flex; align-items: center; gap: 32px; }

.ps-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ps-muted);
    padding: 6px 2px;
    border-radius: 8px;
}

.ps-nav a:hover { color: var(--ps-ink); text-decoration: none; }

.ps-nav a.is-active { color: var(--ps-ink); }

.ps-header__auth { display: flex; align-items: center; gap: 12px; }

.ps-btn-ghost {
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-ink);
    padding: 10px 18px;
    border-radius: 999px;
}

.ps-btn-ghost:hover { background: var(--ps-band); text-decoration: none; }

.ps-btn-pill {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--ps-primary);
    padding: 10px 22px;
    border-radius: 999px;
}

.ps-btn-pill:hover { background: var(--ps-primary-dark); color: #fff; text-decoration: none; }

.ps-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 34px;
    padding: 7px;
    background: none;
    border: 0;
    cursor: pointer;
}

.ps-burger span {
    height: 2px;
    background: var(--ps-ink);
    border-radius: 2px;
    display: block;
}

.ps-drawer {
    display: none;
    background: var(--ps-surface);
    border-bottom: 1px solid var(--ps-border);
    padding: 8px 20px 16px;
}

.ps-drawer a {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ps-ink);
    border-bottom: 1px solid var(--ps-border-soft);
}

.ps-drawer a:last-child { border-bottom: 0; }
.ps-drawer a:hover { background: var(--ps-band); text-decoration: none; }
.ps-drawer.is-open { display: block; }

/* ---------- footer ---------- */

.ps-footer { background: var(--ps-ink); }

.ps-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px var(--ps-gutter);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-footer__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.ps-footer .ps-logo__mark { width: 32px; height: 32px; border-radius: 10px; }
.ps-footer .ps-logo__mark::after { width: 14px; height: 14px; background: var(--ps-ink); }
.ps-footer .ps-logo__word { font-size: 18px; color: var(--ps-bg); }

.ps-footer__links { display: flex; gap: 32px; flex-wrap: wrap; }

.ps-footer__links a { font-size: 14px; color: var(--ps-footer-link); }
.ps-footer__links a:hover { color: #fff; }

.ps-footer__copy { font-size: 13px; color: var(--ps-footer-muted); }

/* ---------- ads ---------- */

.ps-ad { text-align: center; padding: 14px var(--ps-gutter); }

ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ---------- breadcrumb ---------- */

.ps-breadcrumb {
    padding: 18px var(--ps-gutter) 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--ps-muted);
}

.ps-breadcrumb a { color: var(--ps-muted); }
.ps-breadcrumb a:hover { color: var(--ps-ink); }
.ps-breadcrumb .sep { color: var(--ps-primary); }
.ps-breadcrumb .current { font-weight: 700; color: var(--ps-ink); }

/* ---------- hero ---------- */

.ps-eyebrow {
    font-family: var(--ps-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ps-primary);
}

.ps-hero {
    padding: 64px var(--ps-gutter) 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, var(--ps-band) 0px, var(--ps-band) 3px, transparent 3px),
        radial-gradient(circle at 85% 60%, var(--ps-band) 0px, var(--ps-band) 3px, transparent 3px),
        var(--ps-bg);
    background-size: 64px 64px, 80px 80px;
}

.ps-hero h1 {
    font-size: 52px;
    line-height: 1.15;
    max-width: 760px;
}

.ps-hero > p { font-size: 17px; max-width: 560px; }

/* ---------- search card ---------- */

.ps-search-card {
    margin-top: 12px;
    background: var(--ps-surface);
    border-radius: 24px;
    box-shadow: var(--ps-shadow);
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 920px;
    max-width: 100%;
    text-align: left;
}

.ps-search-card--bar {
    margin: 0;
    border: 1px solid var(--ps-border);
    border-radius: 18px;
    box-shadow: none;
    background: var(--ps-bg);
    padding: 14px 18px;
    width: auto;
}

.ps-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px;
    border-right: 1px solid var(--ps-border);
    min-width: 0;
}

.ps-search-field--wide { flex: 1.3; }

.ps-search-field:last-of-type { border-right: 0; }

.ps-search-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-muted);
}

.ps-search-field input,
.ps-search-field select {
    border: 0;
    background: transparent;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    color: var(--ps-ink);
    padding: 0;
    width: 100%;
}

.ps-search-field input:focus,
.ps-search-field select:focus { outline: none; }

.ps-search-field input::placeholder { color: var(--ps-ink); opacity: 0.85; }

.ps-search-card .ps-btn-primary { white-space: nowrap; }

/* ---------- buttons ---------- */

.ps-btn-primary {
    display: inline-block;
    background: var(--ps-primary);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    border-radius: 16px;
    padding: 16px 32px;
    cursor: pointer;
    text-align: center;
    transition: background 150ms ease;
}

.ps-btn-primary:hover { background: var(--ps-primary-dark); color: #fff; text-decoration: none; }

.ps-btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--ps-ink);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    padding: 13px 24px;
    cursor: pointer;
    text-align: center;
    transition: background 150ms ease;
}

.ps-btn-secondary:hover { background: var(--ps-band); text-decoration: none; }

.ps-btn-block { display: block; width: 100%; }

/* ---------- chips & pills ---------- */

.ps-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.ps-chip {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-ink);
    background: var(--ps-band);
    padding: 8px 16px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
}

.ps-chip:hover { text-decoration: none; filter: brightness(0.97); }

.ps-chip.is-active { background: var(--ps-primary); color: #fff; }

.ps-pills { display: flex; gap: 12px; flex-wrap: wrap; }

.ps-pill {
    font-size: 14px;
    font-weight: 600;
    color: var(--ps-ink);
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    padding: 10px 18px;
    border-radius: 12px;
}

.ps-pill:hover { border-color: var(--ps-primary); color: var(--ps-primary); text-decoration: none; }

.ps-pill--accent { font-weight: 700; color: var(--ps-primary); }

/* ---------- trust strip / stats ---------- */

.ps-trust {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 28px var(--ps-gutter);
    background: var(--ps-band);
    flex-wrap: wrap;
}

.ps-trust__item { display: flex; align-items: center; gap: 10px; }

.ps-trust__item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ps-green);
    flex-shrink: 0;
}

.ps-trust__item span { font-size: 14px; font-weight: 600; color: var(--ps-ink); }

.ps-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 32px var(--ps-gutter);
    background: var(--ps-band);
}

.ps-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.ps-stat__value { font-family: var(--ps-heading); font-weight: 600; font-size: 28px; color: var(--ps-primary); }
.ps-stat:nth-child(2) .ps-stat__value { color: var(--ps-green); }
.ps-stat:nth-child(3) .ps-stat__value { color: var(--ps-mustard); }
.ps-stat__label { font-size: 14px; color: var(--ps-body); }

/* ---------- section headings ---------- */

.ps-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-section-head h2 { font-size: 30px; }
.ps-section-head--sm h2 { font-size: 24px; }

.ps-section-head .ps-more { font-size: 14px; font-weight: 700; color: var(--ps-primary); white-space: nowrap; }

.ps-section-sub { font-size: 15px; margin-top: 8px; }

/* ---------- cards ---------- */

.ps-grid { display: grid; gap: 20px; }
.ps-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ps-card {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
}

a.ps-card:hover { text-decoration: none; box-shadow: var(--ps-shadow); }

.ps-card__photo {
    height: 150px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 10px, #DED0BE 10px, #DED0BE 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.ps-ph-caption {
    font-family: monospace;
    font-size: 11px;
    color: var(--ps-muted);
    background: rgba(255, 253, 249, 0.85);
    padding: 4px 8px;
    border-radius: 6px;
}

.ps-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }

.ps-card__title { font-weight: 700; font-size: 16px; color: var(--ps-ink); }
.ps-card__loc { font-size: 13px; color: var(--ps-muted); }
.ps-card__blurb { font-size: 13px; color: var(--ps-body); line-height: 1.5; }

.ps-card__tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ps-primary);
}

.ps-card__tag--green { color: var(--ps-green); }
.ps-card__tag--mustard { color: var(--ps-mustard); }

/* guide cards (band section, no photo) */
.ps-guide-card {
    background: var(--ps-surface);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
}

a.ps-guide-card:hover { text-decoration: none; box-shadow: var(--ps-shadow); }

/* ---------- band section ---------- */

.ps-band { background: var(--ps-band); }

/* ---------- split (text + image) ---------- */

.ps-split {
    display: flex;
    gap: 48px;
    align-items: center;
}

.ps-split > div { flex: 1; }

.ps-split__copy { display: flex; flex-direction: column; gap: 14px; }
.ps-split__copy h2 { font-size: 28px; }
.ps-split__copy p { font-size: 15px; line-height: 1.75; }

.ps-split__media {
    height: 240px;
    border-radius: 20px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page header (listing pages) ---------- */

.ps-page-head {
    padding: 20px var(--ps-gutter) 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
}

.ps-page-head h1 { font-size: 38px; }
.ps-page-head p { font-size: 15px; line-height: 1.7; }

/* ---------- filter bar (state page) ---------- */

.ps-filterbar-wrap { padding: 0 var(--ps-gutter) 32px; }

/* ---------- top cities / city list ---------- */

.ps-citycard {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
}

a.ps-citycard:hover { text-decoration: none; border-color: var(--ps-primary); }

.ps-citycard__name { font-weight: 700; font-size: 16px; color: var(--ps-ink); }
.ps-citycard__count { font-size: 13px; color: var(--ps-muted); }

.ps-alpha { display: flex; gap: 2px; flex-wrap: wrap; }

.ps-alpha a,
.ps-alpha span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-muted);
    padding: 5px 11px;
    border-radius: 8px;
}

.ps-alpha a:hover { color: var(--ps-ink); text-decoration: none; background: var(--ps-band); }

.ps-alpha .is-active { font-weight: 700; color: #fff; background: var(--ps-primary); }

.ps-citylist {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    padding: 8px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 24px;
}

.ps-citylist a {
    padding: 11px 0;
    font-size: 14px;
    color: var(--ps-ink);
    border-bottom: 1px solid var(--ps-border-soft);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ps-citylist a:hover { color: var(--ps-primary); text-decoration: none; }
.ps-citylist a .count { color: var(--ps-muted); }

/* ---------- pagination ---------- */

.ps-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }

.ps-pagination a,
.ps-pagination span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-ink);
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-pagination a:hover { border-color: var(--ps-primary); color: var(--ps-primary); text-decoration: none; }

.ps-pagination .is-active { color: #fff; background: var(--ps-primary); border-color: var(--ps-primary); }
.ps-pagination .gap { border: 0; background: none; color: var(--ps-muted); }

/* ---------- search results ---------- */

.ps-searchbar {
    padding: 24px var(--ps-gutter);
    background: var(--ps-surface);
    border-bottom: 1px solid var(--ps-border);
}

.ps-results-layout {
    padding: 32px var(--ps-gutter) 64px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ps-filters {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 20px;
    padding: 24px;
}

.ps-filters h3 { font-size: 15px; }

.ps-filters hr { border: 0; height: 1px; background: var(--ps-border); margin: 0; }

.ps-filters__group { display: flex; flex-direction: column; gap: 12px; }

.ps-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ps-body); cursor: pointer; }

.ps-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid var(--ps-footer-link);
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.ps-check input:checked { background: var(--ps-primary); border-color: var(--ps-primary); }

.ps-results { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ps-results__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ps-results__meta .found { font-size: 15px; color: var(--ps-body); }
.ps-results__meta .found strong { color: var(--ps-ink); }
.ps-results__meta .sort { font-size: 14px; color: var(--ps-muted); }

.ps-result-card {
    display: flex;
    gap: 20px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 18px;
    padding: 16px;
    color: inherit;
}

a.ps-result-card:hover { text-decoration: none; box-shadow: var(--ps-shadow); }

.ps-result-card__photo {
    width: 180px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 14px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 10px, #DED0BE 10px, #DED0BE 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-result-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.ps-result-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.ps-result-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-result-card__name { font-weight: 700; font-size: 17px; color: var(--ps-ink); }
.ps-result-card__dist { font-size: 13px; font-weight: 700; color: var(--ps-green); white-space: nowrap; }
.ps-result-card__addr { font-size: 13px; color: var(--ps-muted); }
.ps-result-card__blurb { font-size: 14px; color: var(--ps-body); line-height: 1.6; }

/* ---------- shelter profile ---------- */

.ps-gallery {
    padding: 20px var(--ps-gutter) 0;
    display: flex;
    gap: 12px;
    height: 340px;
}

.ps-gallery__main {
    flex: 2.4;
    border-radius: 20px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-gallery__side { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.ps-gallery__thumb {
    flex: 1;
    border-radius: 20px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-gallery img { width: 100%; height: 100%; object-fit: cover; }

.ps-profile {
    padding: 32px var(--ps-gutter) 64px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ps-profile__main { flex: 2; display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.ps-profile__head { display: flex; flex-direction: column; gap: 10px; }
.ps-profile__head h1 { font-size: 36px; }
.ps-profile__head .loc { font-size: 15px; color: var(--ps-muted); }

.ps-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.ps-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--ps-primary);
    background: var(--ps-primary-tint);
}

.ps-tag--green { color: var(--ps-green); background: var(--ps-green-tint); }
.ps-tag--mustard { color: var(--ps-mustard); background: var(--ps-mustard-tint); }

.ps-prose h2 { font-size: 20px; margin-bottom: 10px; }
.ps-prose p { font-size: 15px; line-height: 1.75; }

.ps-services { display: flex; flex-wrap: wrap; gap: 10px; }

.ps-map {
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.ps-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
    min-width: 280px;
}

.ps-contact-card {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ps-contact-card h2 { font-size: 17px; }

.ps-contact-card__field { display: flex; flex-direction: column; gap: 3px; }

.ps-contact-card__field .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-muted);
}

.ps-contact-card__field .value { font-size: 14px; color: var(--ps-ink); overflow-wrap: anywhere; }

.ps-contact-card__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

.ps-promo-card {
    background: var(--ps-band);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-promo-card h3 { font-size: 15px; }
.ps-promo-card p { font-size: 13px; line-height: 1.6; }
.ps-promo-card a { font-size: 13px; font-weight: 700; }

/* ---------- resources ---------- */

.ps-featured {
    display: flex;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 24px;
    overflow: hidden;
    color: inherit;
}

a.ps-featured:hover { text-decoration: none; box-shadow: var(--ps-shadow); }

.ps-featured__media {
    flex: 1;
    min-height: 280px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-featured__media img { width: 100%; height: 100%; object-fit: cover; }

.ps-featured__body {
    flex: 1;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.ps-featured__body .title { font-family: var(--ps-heading); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--ps-ink); }
.ps-featured__body .excerpt { font-size: 14px; color: var(--ps-body); line-height: 1.6; }
.ps-featured__body .cta { font-size: 13px; font-weight: 700; color: var(--ps-primary); }

/* ---------- article ---------- */

.ps-article-layout {
    padding: 20px var(--ps-gutter) 64px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.ps-article {
    flex: 2;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.ps-article h1 { font-size: 36px; line-height: 1.2; }

.ps-article__meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--ps-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-article__hero {
    min-height: 200px;
    max-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 12px, #DED0BE 12px, #DED0BE 24px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-article__hero img { width: 100%; height: 100%; object-fit: cover; }

.ps-article__body { font-size: 16px; color: var(--ps-ink); line-height: 1.8; }
.ps-article__body p { font-size: 16px; color: var(--ps-ink); line-height: 1.8; margin: 0 0 16px; }
.ps-article__body h2, .ps-article__body h3 { font-size: 22px; margin: 24px 0 12px; }
.ps-article__body img { border-radius: 16px; }
.ps-article__body a { text-decoration: underline; }

.ps-cta-banner {
    background: var(--ps-band);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.ps-cta-banner h2 { font-size: 17px; }
.ps-cta-banner p { font-size: 14px; }
.ps-cta-banner .ps-btn-primary { padding: 12px 24px; font-size: 14px; border-radius: 12px; white-space: nowrap; }

.ps-related {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
    min-width: 260px;
}

.ps-related h2 { font-size: 16px; }

.ps-related__list { display: flex; flex-direction: column; gap: 14px; }

.ps-related__item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 14px;
    padding: 12px;
    color: inherit;
}

a.ps-related__item:hover { text-decoration: none; border-color: var(--ps-primary); }

.ps-related__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, #E8DDD0, #E8DDD0 8px, #DED0BE 8px, #DED0BE 16px);
    overflow: hidden;
}

.ps-related__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ps-related__item span { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ps-ink); }

/* ---------- how it works ---------- */

.ps-steps { display: flex; gap: 24px; }

.ps-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 28px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 20px;
}

.ps-step__num { font-family: var(--ps-heading); font-weight: 600; font-size: 22px; color: var(--ps-primary); }
.ps-step:nth-child(2) .ps-step__num { color: var(--ps-green); }
.ps-step:nth-child(3) .ps-step__num { color: var(--ps-mustard); }
.ps-step__title { font-weight: 700; font-size: 16px; color: var(--ps-ink); }
.ps-step p { font-size: 14px; line-height: 1.6; }

/* ---------- contact ---------- */

.ps-contact-layout {
    padding: 72px var(--ps-gutter);
    display: flex;
    gap: 64px;
    align-items: flex-start;
    justify-content: center;
}

.ps-contact-intro { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.ps-contact-intro h1 { font-size: 36px; }
.ps-contact-intro > p { font-size: 15px; line-height: 1.7; }

.ps-info-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.ps-info-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    padding: 18px 20px;
}

.ps-info-card .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-muted);
}

.ps-info-card .value { font-size: 15px; font-weight: 600; color: var(--ps-ink); }

/* ---------- forms ---------- */

.ps-form-card {
    width: 520px;
    max-width: 100%;
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ps-form-row { display: flex; gap: 16px; }
.ps-form-row > * { flex: 1; }

.ps-field { display: flex; flex-direction: column; gap: 6px; }

.ps-field label { font-size: 13px; font-weight: 600; color: var(--ps-ink); }

.ps-input,
.ps-field input[type="text"],
.ps-field input[type="email"],
.ps-field input[type="password"],
.ps-field input[type="tel"],
.ps-field input[type="url"],
.ps-field input[type="number"],
.ps-field select,
.ps-field textarea {
    height: 46px;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    background: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    color: var(--ps-ink);
    padding: 0 14px;
    width: 100%;
}

.ps-field textarea { height: 130px; padding: 12px 14px; resize: vertical; }

.ps-field input:focus,
.ps-field select:focus,
.ps-field textarea:focus {
    outline: none;
    border-color: var(--ps-primary);
}

.ps-error { color: #B2432A; font-size: 13px; margin: 4px 0 0; padding: 0; list-style: none; }

.ps-notice {
    background: var(--ps-green-tint);
    border: 1px solid var(--ps-green);
    color: var(--ps-ink);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
}

/* ---------- auth ---------- */

.ps-auth { min-height: 100vh; display: flex; background: var(--ps-bg); }

.ps-auth__brand {
    flex: 1;
    position: relative;
    background: repeating-linear-gradient(45deg, #C9A98C, #C9A98C 12px, #BC9878 12px, #BC9878 24px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
}

.ps-auth__brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58, 51, 44, 0.35), rgba(58, 51, 44, 0.6));
}

.ps-auth__brand > * { position: relative; }

.ps-auth__brand .ps-logo__mark { background: #fff; }
.ps-auth__brand .ps-logo__mark::after { background: var(--ps-primary); }
.ps-auth__brand .ps-logo__word { color: #fff; }

.ps-auth__tagline {
    font-family: var(--ps-heading);
    font-weight: 600;
    font-size: 30px;
    color: #fff;
    line-height: 1.25;
    max-width: 420px;
}

.ps-auth__panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

.ps-auth__form { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }

.ps-auth__form h1 { font-size: 26px; }
.ps-auth__form .sub { font-size: 14px; }

.ps-toggle { display: flex; background: var(--ps-band); border-radius: 999px; padding: 4px; }

.ps-toggle a {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--ps-muted);
    padding: 11px 0;
    border-radius: 999px;
}

.ps-toggle a:hover { text-decoration: none; color: var(--ps-ink); }
.ps-toggle a.is-active { color: #fff; background: var(--ps-primary); }

.ps-auth__fields { display: flex; flex-direction: column; gap: 14px; }

.ps-auth__forgot { align-self: flex-end; font-size: 13px; font-weight: 600; }

.ps-divider { display: flex; align-items: center; gap: 12px; }
.ps-divider::before, .ps-divider::after { content: ""; flex: 1; height: 1px; background: var(--ps-border); }
.ps-divider span { font-size: 12px; color: var(--ps-muted); }

.ps-auth__alt { text-align: center; font-size: 14px; color: var(--ps-body); }
.ps-auth__alt strong { color: var(--ps-primary); }

/* ---------- Q&A / reviews (community sections) ---------- */

.ps-qa { display: flex; flex-direction: column; gap: 16px; }

.ps-qa__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ps-qa__head h2 { font-size: 24px; }
.ps-qa__head p { font-size: 14px; }

.ps-qa__item {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-qa__q { font-size: 15px; color: var(--ps-ink); }
.ps-qa__by { font-size: 13px; color: var(--ps-muted); }

.ps-qa__answer {
    border-left: 3px solid var(--ps-band);
    padding-left: 14px;
    font-size: 14px;
    color: var(--ps-body);
}

.ps-qa__actions { display: flex; justify-content: flex-end; }

.ps-review-card {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-review-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ps-muted); }
.ps-review-card__stars { color: var(--ps-mustard); font-weight: 700; }
.ps-review-card p { font-size: 14px; }

/* ---------- legacy content fallback ---------- */

.ps-plain { padding: 32px var(--ps-gutter) 64px; max-width: 900px; }
.ps-plain h1 { font-size: 34px; margin-bottom: 16px; }
.ps-plain h2, .ps-plain h3 { margin: 20px 0 10px; }
.ps-plain p { margin: 0 0 14px; font-size: 15px; line-height: 1.75; }
.ps-plain ul { color: var(--ps-body); }
.ps-plain table { width: 100%; }
.ps-plain table td { padding: 6px 8px; font-size: 15px; color: var(--ps-body); }

.ps-plain .textfield,
.ps-plain input[type="text"],
.ps-plain input[type="email"],
.ps-plain input[type="password"],
.ps-plain select,
.ps-plain textarea {
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    background: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    color: var(--ps-ink);
    padding: 10px 14px;
    width: 100%;
    max-width: 480px;
}

.ps-plain input[type="submit"],
.ps-plain input[type="button"],
.ps-plain .btn {
    display: inline-block;
    background: var(--ps-primary);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
}

.ps-plain input[type="submit"]:hover,
.ps-plain input[type="button"]:hover,
.ps-plain .btn:hover { background: var(--ps-primary-dark); text-decoration: none; }

/* ---------- legacy page wrappers (question/answer/review/shelter forms/privacy/passwords/errors) ---------- */

.content.page1 { max-width: 1100px; margin: 0 auto; padding: 0 0 48px; }

.content.page1 .breadcrumb {
    padding: 18px var(--ps-gutter) 0;
    font-size: 13px;
    color: var(--ps-muted);
}

.content.page1 .breadcrumb a { color: var(--ps-muted); }
.content.page1 .breadcrumb a:hover { color: var(--ps-ink); }

.content.page1 .background_grey {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: 20px;
    margin: 20px var(--ps-gutter) 0;
    padding: 32px;
}

.content.page1 h1 { font-size: 30px; margin: 0 0 16px; }
.content.page1 h2, .content.page1 h3 { margin: 20px 0 10px; }
.content.page1 p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; }
.content.page1 label { font-weight: 600; font-size: 14px; color: var(--ps-ink); }
.content.page1 table { width: 100%; border-collapse: collapse; }
.content.page1 table td { padding: 8px 6px; font-size: 15px; color: var(--ps-body); vertical-align: top; }

.content.page1 .zend_form dt { margin: 14px 0 6px; }
.content.page1 .zend_form dd { margin: 0; }

.content.page1 .textfield,
.content.page1 input[type="text"],
.content.page1 input[type="email"],
.content.page1 input[type="password"],
.content.page1 select,
.content.page1 textarea {
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    background: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    color: var(--ps-ink);
    padding: 10px 14px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

.content.page1 input:focus,
.content.page1 select:focus,
.content.page1 textarea:focus { outline: none; border-color: var(--ps-primary); }

.content.page1 input[type="submit"],
.content.page1 input[type="button"],
.content.page1 .btn {
    display: inline-block;
    background: var(--ps-primary);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    border-radius: 12px;
    padding: 12px 26px;
    cursor: pointer;
    width: auto;
    max-width: none;
    transition: background 150ms ease;
}

.content.page1 input[type="submit"]:hover,
.content.page1 input[type="button"]:hover,
.content.page1 .btn:hover { background: var(--ps-primary-dark); text-decoration: none; }

.content.page1 form ul { color: #B2432A; font-size: 13px; margin: 6px 0 0; padding-left: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ps-citylist { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --ps-gutter: 20px; }

    .ps-nav, .ps-header__auth { display: none; }
    .ps-burger { display: flex; }
    .ps-header__inner { padding: 16px 20px; }
    .ps-logo__mark { width: 32px; height: 32px; border-radius: 10px; }
    .ps-logo__mark::after { width: 13px; height: 13px; }
    .ps-logo__word { font-size: 18px; }

    .ps-section { padding: 40px var(--ps-gutter); }

    .ps-hero { padding: 40px var(--ps-gutter) 32px; }
    .ps-hero h1 { font-size: 34px; }
    .ps-hero > p { font-size: 15px; }

    .ps-search-card { flex-direction: column; align-items: stretch; padding: 16px; gap: 8px; }
    .ps-search-field { border-right: 0; border-bottom: 1px solid var(--ps-border); padding: 10px 8px; }
    .ps-search-field:last-of-type { border-bottom: 0; }
    .ps-search-card .ps-btn-primary { width: 100%; }

    .ps-trust { flex-direction: column; gap: 14px; padding: 20px var(--ps-gutter); }

    .ps-stats { gap: 24px; padding: 24px var(--ps-gutter); }
    .ps-stat__value { font-size: 22px; }
    .ps-stat__label { font-size: 12px; text-align: center; }

    .ps-grid--2, .ps-grid--3, .ps-grid--4 { grid-template-columns: 1fr; }

    .ps-split { flex-direction: column; gap: 24px; }
    .ps-split__media { width: 100%; }

    .ps-page-head h1 { font-size: 28px; }

    .ps-citylist { grid-template-columns: 1fr; padding: 8px 18px; }

    .ps-alpha { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }

    .ps-results-layout { flex-direction: column; gap: 20px; }
    .ps-filters { width: 100%; }

    .ps-result-card { flex-direction: column; }
    .ps-result-card__photo { width: 100%; height: 160px; }

    .ps-gallery { height: auto; flex-direction: column; padding: 16px var(--ps-gutter) 0; }
    .ps-gallery__main { height: 220px; flex: none; }
    .ps-gallery__side { display: none; }

    .ps-profile { flex-direction: column; gap: 28px; }
    .ps-profile__head h1 { font-size: 28px; }
    .ps-sidebar { position: static; width: 100%; min-width: 0; }

    .ps-featured { flex-direction: column; }
    .ps-featured__media { min-height: 190px; }
    .ps-featured__body { padding: 22px; }

    .ps-article-layout { flex-direction: column; }
    .ps-article h1 { font-size: 28px; }
    .ps-related { position: static; width: 100%; min-width: 0; }

    .ps-cta-banner { flex-direction: column; align-items: stretch; text-align: center; }

    .ps-steps { flex-direction: column; }
    .ps-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; padding: 20px; }
    .ps-step__num { flex-shrink: 0; }

    .ps-contact-layout { flex-direction: column; gap: 32px; padding: 40px var(--ps-gutter); }
    .ps-contact-intro { width: 100%; }
    .ps-contact-intro h1 { font-size: 28px; }
    .ps-form-card { width: 100%; padding: 24px 20px; }
    .ps-form-row { flex-direction: column; gap: 18px; }

    .ps-auth { flex-direction: column; }
    .ps-auth__brand { min-height: 200px; padding: 24px 20px; justify-content: space-between; }
    .ps-auth__tagline { font-size: 20px; }
    .ps-auth__panel { padding: 32px 20px 48px; align-items: flex-start; }

    .ps-ad { padding: 10px var(--ps-gutter); }
}
