.pets-guide {
    --pets-ink: #18231f;
    --pets-muted: #5d6d66;
    --pets-sage: #2f6f5d;
    --pets-sage-soft: #e7f2ed;
    --pets-coral: #b94b3f;
    --pets-coral-soft: #fff0ed;
    --pets-gold: #9a681b;
    --pets-gold-soft: #fff6df;
    --pets-line: #dbe4df;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.pets-guide *,
.pets-guide *::before,
.pets-guide *::after {
    box-sizing: border-box;
}

.pets-guide img {
    max-width: 100%;
}

.pets-guide a:focus-visible,
.pets-guide button:focus-visible,
.pets-guide input:focus-visible,
.pets-guide select:focus-visible {
    outline: 3px solid #1d74b7;
    outline-offset: 3px;
}

.pets-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow: hidden;
}

.pets-breadcrumb a { color: var(--pets-sage); }
.pets-breadcrumb svg { width: 14px; height: 14px; flex: 0 0 auto; }
.pets-breadcrumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pets-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(62vh, 620px);
    isolation: isolate;
    overflow: hidden;
    background: #dfe9e3;
}

.pets-hero-media,
.pets-hero-overlay {
    position: absolute;
    inset: 0;
}

.pets-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.pets-hero-overlay {
    z-index: 1;
    background: rgba(17, 30, 25, 0.58);
}

.pets-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 72px;
    color: #fff;
}

.pets-hero-content h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.pets-hero-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.06rem;
    line-height: 1.7;
}

.pets-eyebrow,
.pets-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8f4e8;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pets-eyebrow svg { width: 17px; height: 17px; }

.pets-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    background: #fff;
    color: #18231f !important;
    border-color: #fff;
}

.pets-hero-action:hover { background: #eef7f2; color: #18231f !important; }
.pets-hero-action svg { width: 18px; height: 18px; }

.pets-layout {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 48px;
    padding-block: 52px 84px;
    align-items: start;
}

.pets-toc {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    border-inline-end: 1px solid var(--pets-line);
    scrollbar-width: thin;
}

.pets-toc-inner { padding-inline-end: 20px; }
.pets-toc h2 { margin: 0 0 14px; font-size: 0.9rem; }
.pets-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pets-toc li { min-width: 0; }

.pets-toc a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
}

.pets-toc a:hover,
.pets-toc a:focus-visible,
.pets-toc a.is-active { color: var(--pets-sage); background: var(--pets-sage-soft); }
.pets-toc a > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--pets-line);
    border-radius: 4px;
    color: var(--pets-gold);
    font-size: 0.65rem;
    font-weight: 800;
}
.pets-toc a > strong { min-width: 0; padding-top: 3px; font-weight: 600; overflow-wrap: anywhere; }
.pets-toc a.is-active > span { border-color: var(--pets-sage); background: var(--pets-sage); color: #fff; }
.pets-main-column { min-width: 0; }

.pets-emergency {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid #e9bbb5;
    border-inline-start: 5px solid var(--pets-coral);
    border-radius: 6px;
    background: var(--pets-coral-soft);
}

.pets-emergency-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--pets-coral);
    border-radius: 50%;
    background: #fff;
}

.pets-emergency-icon svg { width: 25px; height: 25px; }
.pets-emergency h2 { margin: 0 0 6px; color: #7a2620; font-size: 1.1rem; }
.pets-emergency p { margin: 0; color: #6f3e39; font-size: 0.88rem; line-height: 1.55; }
.pets-emergency-button { background: var(--pets-coral); border-color: var(--pets-coral); color: #fff; white-space: nowrap; }
.pets-emergency-button:hover { background: #993c33; color: #fff; }

.pets-decision {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1.3fr);
    gap: 32px;
    align-items: start;
    margin: 42px 0;
    padding-block: 30px;
    border-block: 1px solid var(--pets-line);
}

.pets-section-kicker { color: var(--pets-sage); }
.pets-decision h2,
.pets-control-heading h2,
.pets-section-heading h2 { margin: 7px 0 0; color: var(--text-primary); font-size: 1.5rem; }
.pets-decision-controls { min-width: 0; }

.pets-guide select,
.pets-guide input[type="search"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--pets-line);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
}

.pets-guide select { padding: 0 36px 0 12px; }
.pets-decision-result { margin-top: 12px; padding: 14px 16px; border-inline-start: 4px solid var(--pets-sage); background: var(--pets-sage-soft); color: #264d42; line-height: 1.55; }

.pets-controls {
    scroll-margin-top: 96px;
    padding: 26px;
    border: 1px solid var(--pets-line);
    border-radius: 6px;
    background: var(--bg-secondary);
}

.pets-control-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
#pets-result-count { color: var(--text-secondary); font-size: 0.8rem; white-space: nowrap; }

.pets-search-box {
    position: relative;
    display: block;
    margin-top: 22px;
}

.pets-search-box svg {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transform: translateY(-50%);
    pointer-events: none;
}

.pets-guide .pets-search-box input { padding-inline: 44px 14px; }
.pets-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pets-select-label { display: grid; gap: 6px; min-width: 0; }
.pets-select-label > span { color: var(--text-secondary); font-size: 0.72rem; font-weight: 700; }

.pets-section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pets-section-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.pets-section-actions svg { width: 16px; height: 16px; }
.pets-section-list { display: grid; gap: 10px; }

.pets-section-card {
    scroll-margin-top: 92px;
    border: 1px solid var(--pets-line);
    border-radius: 6px;
    background: var(--bg-card);
    overflow: hidden;
}

.pets-section-card[hidden] { display: none; }
.pets-section-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 66px;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: start;
    cursor: pointer;
}

.pets-section-toggle:hover { background: var(--bg-hover); }
.pets-section-number { color: var(--pets-gold); font: 800 0.72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pets-section-title { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 0.98rem; font-weight: 750; line-height: 1.35; }
.pets-section-title svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--pets-sage); }
.pets-section-chevron { width: 18px; height: 18px; color: var(--text-secondary); transition: transform .2s ease; }
.pets-section-toggle[aria-expanded="true"] .pets-section-chevron { transform: rotate(180deg); }

.pets-section-panel {
    padding: 0 24px 26px 70px;
    border-top: 1px solid var(--pets-line);
}

.pets-section-panel[hidden] { display: none; }
.pets-section-panel figure { margin: 24px 0; }
.pets-section-panel figure img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.pets-section-panel figcaption { margin-top: 8px; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.45; }
.pets-section-intro { margin: 24px 0 18px; color: var(--pets-ink); font-size: 1.02rem; font-weight: 650; line-height: 1.65; }
.pets-detail-list { display: grid; gap: 13px; }
.pets-detail-list p { position: relative; margin: 0; padding-inline-start: 18px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.pets-detail-list p::before { content: ''; position: absolute; top: 0.72em; inset-inline-start: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--pets-gold); }

.pets-checklist { margin-top: 24px; padding: 18px 0 18px 18px; border: 0; border-inline-start: 3px solid var(--pets-gold); background: transparent; }
.pets-checklist h3 { margin: 0 0 13px; color: #614716; font-size: 0.88rem; }
.pets-checklist ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pets-checklist li { display: flex; align-items: flex-start; gap: 9px; color: #5b4b2f; font-size: 0.83rem; line-height: 1.45; }
.pets-checklist li svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--pets-sage); }
.pets-terms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.pets-terms code { max-width: 100%; padding: 5px 8px; border: 1px solid var(--pets-line); border-radius: 4px; background: var(--bg-secondary); color: var(--pets-sage); font-size: 0.72rem; overflow-wrap: anywhere; }
.pets-checked { display: block; margin-top: 18px; color: var(--text-secondary); font-size: 0.7rem; }

.pets-no-results { padding: 54px 20px; text-align: center; color: var(--text-secondary); }
.pets-no-results svg { width: 30px; height: 30px; }
.pets-no-results p { margin: 12px 0 0; }

.pets-city-services,
.pets-sources,
.pets-faq,
.pets-related,
.pets-notice { margin-top: 64px; scroll-margin-top: 92px; }
.pets-section-heading { margin-bottom: 22px; }
.pets-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.pets-contact-card {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 20px;
    border: 1px solid var(--pets-line);
    border-top: 3px solid var(--pets-sage);
    border-radius: 6px;
    background: var(--bg-card);
}

.pets-contact-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 50%; background: var(--pets-sage-soft); color: var(--pets-sage); }
.pets-contact-icon svg { width: 19px; height: 19px; }
.pets-contact-category { color: var(--pets-gold); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; }
.pets-contact-card h3 { margin: 7px 0 9px; font-size: 0.98rem; line-height: 1.35; overflow-wrap: anywhere; }
.pets-contact-card p { margin: 0; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.55; }
.pets-contact-card .pets-contact-detail { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 7px; color: var(--text-primary); overflow-wrap: anywhere; }
.pets-contact-detail svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 3px; color: var(--pets-sage); }
.pets-contact-card .pets-contact-copy { margin-top: 10px; }
.pets-contact-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.pets-contact-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 10px; font-size: 0.72rem; }
.pets-contact-actions svg { width: 14px; height: 14px; }

.pets-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--pets-line); }
.pets-source-grid a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 14px 4px; border-bottom: 1px solid var(--pets-line); color: var(--text-primary); }
.pets-source-grid a:nth-child(odd) { margin-inline-end: 22px; }
.pets-source-grid a:nth-child(even) { margin-inline-start: 22px; }
.pets-source-grid a span { display: grid; gap: 4px; min-width: 0; }
.pets-source-grid strong { font-size: 0.84rem; line-height: 1.35; }
.pets-source-grid small { color: var(--text-secondary); font-size: 0.72rem; line-height: 1.4; }
.pets-source-grid svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--pets-sage); }

.pets-faq-list { border-top: 1px solid var(--pets-line); }
.pets-faq-list article { border-bottom: 1px solid var(--pets-line); }
.pets-faq-list h3 { margin: 0; }
.pets-faq-list button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 60px; padding: 13px 2px; border: 0; background: transparent; color: var(--text-primary); font: 700 0.9rem/1.45 inherit; text-align: start; cursor: pointer; }
.pets-faq-list button svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--pets-sage); }
.pets-faq-list article > div { padding: 0 28px 18px 0; }
.pets-faq-list article > div[hidden] { display: none; }
.pets-faq-list p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }

.pets-related { padding: 26px 0; border-block: 1px solid var(--pets-line); }
.pets-related h2 { margin: 0 0 17px; font-size: 1.15rem; }
.pets-related > div { display: flex; flex-wrap: wrap; gap: 10px; }
.pets-related a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--pets-line); border-radius: 5px; color: var(--text-primary); font-size: 0.8rem; font-weight: 700; }
.pets-related a:hover { border-color: var(--pets-sage); color: var(--pets-sage); }
.pets-related svg { width: 16px; height: 16px; }

.pets-notice { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-inline-start: 4px solid var(--pets-gold); background: var(--pets-gold-soft); color: #594927; }
.pets-notice > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.pets-notice h2 { margin: 0 0 6px; color: #4d3a16; font-size: 0.94rem; }
.pets-notice p { margin: 0; font-size: 0.8rem; line-height: 1.55; }
.pets-notice small { display: block; margin-top: 9px; font-size: 0.68rem; }

.resource-card-pets { grid-column: span 2; border-top: 3px solid #2f6f5d; }
.resource-card-pets::after { background: #b94b3f; }
.resource-card-pets .resource-card-icon,
.resource-card-pets .resource-card-kicker { color: #2f6f5d; }
.resource-card-tags { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.resource-card-tags small { display: inline-block; padding: 3px 6px; border: 1px solid #cdded6; border-radius: 4px; background: #edf6f1; color: #315d50; font-size: 0.62rem; line-height: 1.2; }

[data-theme="dark"] .pets-guide {
    --pets-ink: #e5eee9;
    --pets-muted: #a8b6af;
    --pets-sage-soft: #18382f;
    --pets-coral-soft: #412522;
    --pets-gold-soft: #3b321d;
    --pets-line: #33453d;
}

[data-theme="dark"] .pets-emergency h2,
[data-theme="dark"] .pets-emergency p { color: #ffd8d4; }
[data-theme="dark"] .pets-decision-result { color: #d9efe6; }
[data-theme="dark"] .pets-checklist h3,
[data-theme="dark"] .pets-checklist li,
[data-theme="dark"] .pets-notice,
[data-theme="dark"] .pets-notice h2 { color: #f2e4bd; }
[data-theme="dark"] .resource-card-tags small { border-color: #315d50; background: #17352c; color: #bde3d4; }

[dir="rtl"] .pets-hero-overlay { transform: scaleX(-1); }
[dir="rtl"] .pets-guide select { padding: 0 12px 0 36px; }
[dir="rtl"] .pets-faq-list article > div { padding: 0 0 18px 28px; }

@media (max-width: 1024px) {
    .pets-layout { grid-template-columns: 1fr; gap: 28px; }
    .pets-toc { position: static; max-height: none; overflow: visible; border: 0; }
    .pets-toc-inner { padding: 0; }
    .pets-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; max-height: 280px; overflow: auto; padding: 14px 16px; border: 1px solid var(--pets-line); border-radius: 5px; }
    .pets-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .pets-hero { min-height: 520px; align-items: end; }
    .pets-hero-media img { object-position: 62% 40%; }
    .pets-hero-overlay { background: rgba(17, 30, 25, 0.62); }
    .pets-hero-content { padding-block: 150px 42px; }
    .pets-hero-content h1 { font-size: 2.35rem; max-width: 600px; }
    .pets-hero-content p { font-size: 0.94rem; }
    .pets-layout { padding-block: 36px 64px; }
    .pets-emergency { grid-template-columns: 44px minmax(0, 1fr); }
    .pets-emergency-icon { width: 44px; height: 44px; }
    .pets-emergency-button { grid-column: 1 / -1; justify-self: start; }
    .pets-decision { grid-template-columns: 1fr; gap: 18px; }
    .pets-filter-grid { grid-template-columns: 1fr; }
    .pets-contact-grid { grid-template-columns: 1fr; }
    .pets-contact-card { min-height: 230px; }
    .pets-source-grid { grid-template-columns: 1fr; }
    .pets-source-grid a:nth-child(n) { margin-inline: 0; }
    .resource-card-pets { grid-column: auto; }
}

@media (max-width: 520px) {
    .pets-breadcrumb { min-height: 42px; font-size: 0.74rem; }
    .pets-hero { min-height: 500px; }
    .pets-hero-content { padding-block: 174px 34px; }
    .pets-hero-content h1 { margin-block: 13px; font-size: 2rem; line-height: 1.08; overflow-wrap: anywhere; }
    .pets-hero-content p { font-size: 0.85rem; line-height: 1.55; }
    .pets-hero-action { margin-top: 19px; width: 100%; justify-content: center; }
    .pets-toc ol { grid-template-columns: 1fr; max-height: 250px; }
    .pets-emergency { grid-template-columns: 1fr; padding: 18px; }
    .pets-emergency-button { width: 100%; justify-content: center; }
    .pets-controls { padding: 18px; }
    .pets-control-heading { align-items: start; flex-direction: column; gap: 8px; }
    .pets-section-actions .btn { flex: 1 1 140px; justify-content: center; }
    .pets-section-toggle { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 9px; min-height: 64px; padding: 10px 12px; }
    .pets-section-title { gap: 8px; font-size: 0.86rem; overflow-wrap: anywhere; }
    .pets-section-title svg { width: 17px; height: 17px; }
    .pets-section-panel { padding: 0 14px 20px; }
    .pets-section-intro { font-size: 0.9rem; }
    .pets-detail-list p { font-size: 0.82rem; }
    .pets-checklist { padding: 15px; }
    .pets-related > div { display: grid; }
    .pets-related a { width: 100%; }
    .resource-card-tags { max-height: 58px; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .pets-section-chevron { transition: none; }
    .pets-guide * { scroll-behavior: auto !important; }
}

@media print {
    .pets-breadcrumb, .pets-hero, .pets-toc, .pets-controls, .pets-section-actions, .pets-city-services, .pets-sources, .pets-related { display: none !important; }
    .pets-layout { display: block; padding: 0; }
    .pets-section-card { break-inside: avoid; }
    .pets-section-panel[hidden] { display: block; }
}
