/* =========================================================================
   Policies and Safety — page-specific styles
   Scoped entirely under #policies-safety, per this page's own spec
   (same convention as Money and Payments / Responding to a Cleaning
   Request).

   COLOR / TOKEN NOTE: update the var(--your-real-variable, #fallback)
   calls below if your global stylesheet already defines these.
   ========================================================================= */

#policies-safety {
    --ps-green: var(--cn-green, var(--primary, #1c7a4a));
    --ps-green-dark: var(--primary-dark, #145c38);
    --ps-green-light: var(--primary-light, #e7f6ee);
    --ps-green-border: #cdebd9;
    --ps-navy: var(--text-dark, #14261f);
    --ps-text-muted: var(--text-muted, #5c6b65);
    --ps-border: var(--border-color, #e3ece6);
    --ps-radius-lg: 16px;
    --ps-radius-md: 12px;
    --ps-radius-sm: 10px;
    --ps-gap: 24px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--ps-navy);
}

#policies-safety *,
#policies-safety *::before,
#policies-safety *::after {
    box-sizing: border-box;
}

#policies-safety img {
    display: block;
    max-width: 100%;
    height: auto;
}

#policies-safety svg {
    max-width: 100%;
}

#policies-safety h1,
#policies-safety h2,
#policies-safety h3 {
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
}

#policies-safety a {
    text-decoration: none;
    color: inherit;
}

#policies-safety .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    box-sizing: border-box;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

#policies-safety .ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
}

#policies-safety .ps-btn--outline {
    background: transparent;
    color: var(--ps-green);
    border-color: var(--ps-green);
}

#policies-safety .ps-btn--outline:hover {
    background: #fff;
}

/* =========================================================================
   BREADCRUMB
   ========================================================================= */

#policies-safety .ps-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-size: 13px;
    color: var(--ps-text-muted);
}

#policies-safety .ps-breadcrumb a {
    color: var(--ps-text-muted);
}

#policies-safety .ps-breadcrumb a:hover {
    color: var(--ps-green);
}

#policies-safety .ps-breadcrumb li[aria-current="page"] {
    color: var(--ps-navy);
    font-weight: 500;
}

#policies-safety .ps-breadcrumb-sep {
    color: #b7c3bd;
}

/* =========================================================================
   HERO
   ========================================================================= */

#policies-safety .ps-hero {
    margin-bottom: 36px;
}

#policies-safety .ps-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

#policies-safety .ps-hero-content {
    min-width: 0;
    order: 1;
}

#policies-safety .ps-hero-media {
    min-width: 0;
    order: 2;
    position: relative;
}

#policies-safety .ps-badge {
    display: inline-block;
    background: var(--ps-green-light);
    color: var(--ps-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

#policies-safety .ps-hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ps-navy);
    margin-bottom: 14px;
}

#policies-safety .ps-hero-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--ps-navy);
    margin: 0 0 10px;
}

#policies-safety .ps-hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ps-text-muted);
    margin: 0;
    max-width: 60ch;
}

#policies-safety .ps-hero-image {
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--ps-radius-lg);
}

#policies-safety .ps-hero-note {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-top: -20px;
    background: var(--ps-green-light);
    border: 1px solid var(--ps-green-border);
    border-radius: var(--ps-radius-sm);
    padding: 14px 18px;
}

#policies-safety .ps-hero-note p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ps-navy);
    line-height: 1.4;
}

#policies-safety .ps-hero-note-underline {
    display: block;
    width: 34px;
    height: 2px;
    background: var(--ps-green);
    margin-top: 8px;
}

#policies-safety .ps-hero-note-icon {
    display: block;
    color: var(--ps-green);
    font-size: 14px;
    margin-top: 8px;
}

/* =========================================================================
   OUR COMMITMENT
   ========================================================================= */

#policies-safety .ps-commitment {
    margin-bottom: 40px;
}

#policies-safety .ps-commitment h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ps-navy);
    margin-bottom: 8px;
}

#policies-safety .ps-commitment-desc {
    font-size: 15px;
    color: var(--ps-text-muted);
    margin: 0 0 20px;
}

#policies-safety .ps-commitment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* =========================================================================
   PAGE GRID (main content + sidebar)
   ========================================================================= */

#policies-safety .ps-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ps-gap);
}

#policies-safety .ps-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#policies-safety .ps-sidebar {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================================================
   NUMBERED SECTIONS — fallback + shared styles
   ========================================================================= */

#policies-safety .ps-section {
    min-width: 0;
}

/*
   FALLBACK STYLES — x-bookings.section-heading (.cbp-section__*)
   ---------------------------------------------------------------
   REMOVE THIS BLOCK if these classes already have site-wide styles.
*/
#policies-safety .cbp-section__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

#policies-safety .cbp-section__number {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ps-green);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#policies-safety .cbp-section__head-text {
    min-width: 0;
}

#policies-safety .cbp-section__head-text h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ps-navy);
    margin-bottom: 6px;
}

#policies-safety .cbp-section__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ps-text-muted);
    margin: 0;
}
/* --- end fallback block --- */

/*
   x-bookings.checklist (.cbp-checklist) — real styles, duplicated
   safely from earlier pages' stylesheets (harmless if already global).
*/
#policies-safety .cbp-checklist {
    list-style: none;
    margin: 0;
    padding: 20px;
    background: var(--ps-green-light);
    border-radius: var(--ps-radius-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

#policies-safety .cbp-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--ps-navy);
    overflow-wrap: break-word;
}

#policies-safety .cbp-checklist__icon {
    color: var(--ps-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/*
   FALLBACK STYLES — x-bookings.feature-card (.cbp-feature-card*)
   ---------------------------------------------------------------
   REMOVE THIS BLOCK if these classes already have site-wide styles.
*/
#policies-safety .cbp-feature-card {
    background: var(--ps-green-light);
    border-radius: var(--ps-radius-md);
    padding: 18px;
    min-width: 0;
}

#policies-safety .cbp-feature-card--sm {
    padding: 16px;
}

#policies-safety .cbp-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ps-green);
    color: #fff;
    margin-bottom: 12px;
    font-size: 17px;
}

#policies-safety .cbp-feature-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ps-navy);
    margin: 0 0 6px;
}

#policies-safety .cbp-feature-card__desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ps-text-muted);
    margin: 0;
}
/* --- end fallback block --- */

/* =========================================================================
   CHECKLIST + MEDIA LAYOUT (used by all 5 numbered sections)
   ========================================================================= */

#policies-safety .ps-checklist-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

#policies-safety .ps-media-card {
    position: relative;
    min-width: 0;
}

#policies-safety .ps-media-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--ps-radius-md);
}

/* Section 1's "Verified Cleaner" badge overlay */

#policies-safety .ps-verified-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: var(--ps-radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ps-navy);
    text-align: center;
    line-height: 1.3;
    max-width: calc(100% - 24px);
    box-shadow: 0 4px 14px rgba(20, 38, 31, 0.12);
}

#policies-safety .ps-verified-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ps-green);
    color: #fff;
    font-size: 14px;
}

/* =========================================================================
   SIDEBAR CARDS
   ========================================================================= */

#policies-safety .ps-sidebar-card {
    background: #fff;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-lg);
    padding: 20px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

#policies-safety .ps-sidebar-card h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--ps-navy);
    margin-bottom: 14px;
}

/* --- In this guide ---
   FALLBACK STYLES — x-bookings.guide-item (.cbp-guide__*)
   ---------------------------------------------------------------
   REMOVE THIS BLOCK if these classes already have site-wide styles
   (they should, if the Money and Payments page shipped first).
*/
#policies-safety .cbp-guide__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#policies-safety .cbp-guide__item {
    border-bottom: 1px solid var(--ps-border);
}

#policies-safety .cbp-guide__item:last-child {
    border-bottom: none;
}

#policies-safety .cbp-guide__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ps-navy);
}

#policies-safety .cbp-guide__link:hover {
    color: var(--ps-green);
}

#policies-safety .cbp-guide__number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ps-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#policies-safety .cbp-guide__label {
    min-width: 0;
    overflow-wrap: break-word;
}
/* --- end fallback block --- */

/* --- Related resources ---
   FALLBACK STYLES — x-bookings.related-resource (.cbp-related__*)
   ---------------------------------------------------------------
   REMOVE THIS BLOCK if these classes already have site-wide styles.
*/
#policies-safety .ps-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#policies-safety .cbp-related__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#policies-safety .cbp-related__thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--ps-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ps-green-light);
    display: block;
}

#policies-safety .cbp-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#policies-safety .cbp-related__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

#policies-safety .cbp-related__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ps-navy);
    line-height: 1.35;
    overflow-wrap: break-word;
}

#policies-safety .cbp-related__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ps-text-muted);
    flex-wrap: wrap;
}

#policies-safety .cbp-related__type {
    background: var(--ps-green-light);
    color: var(--ps-green-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

#policies-safety .cbp-related__arrow {
    color: var(--ps-green);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
/* --- end fallback block --- */

/* --- Documents and policies (new component, real styles) --- */

#policies-safety .cbp-document__list {
    display: flex;
    flex-direction: column;
}

#policies-safety .cbp-document__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ps-border);
    min-width: 0;
}

#policies-safety .cbp-document__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#policies-safety .cbp-document__item:first-child {
    padding-top: 0;
}

#policies-safety .cbp-document__icon {
    flex-shrink: 0;
    color: var(--ps-green);
    font-size: 18px;
}

#policies-safety .cbp-document__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

#policies-safety .cbp-document__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ps-navy);
    overflow-wrap: break-word;
}

#policies-safety .cbp-document__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ps-text-muted);
    flex-wrap: wrap;
}

#policies-safety .cbp-document__arrow {
    flex-shrink: 0;
    color: var(--ps-green);
    font-size: 13px;
}

/* --- Report a concern --- */

#policies-safety .ps-report-card {
    background: var(--ps-green-light);
    border-color: var(--ps-green-border);
}

#policies-safety .ps-report-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--ps-green);
    margin-bottom: 14px;
    font-size: 18px;
}

#policies-safety .ps-report-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ps-text-muted);
    margin: 0 0 16px;
}

/* --- Have a question --- */

#policies-safety .ps-question-card {
    background: var(--ps-green-light);
    border-color: var(--ps-green-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#policies-safety .ps-question-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--ps-green);
    font-size: 15px;
}

#policies-safety .ps-question-body {
    min-width: 0;
}

#policies-safety .ps-question-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ps-navy);
    margin: 0 0 4px;
}

#policies-safety .ps-question-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ps-text-muted);
    margin: 0 0 8px;
}

#policies-safety .ps-question-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ps-green);
}

/* Icon-color fix, as required by this page's spec: forces icons green
   without turning any surrounding card text green. */
#policies-safety .icon,
#policies-safety .icon i,
#policies-safety .icon i::before {
    color: var(--ps-green) !important;
}

/* =========================================================================
   MOBILE CONTAINER SAFETY
   ========================================================================= */

@media (max-width: 767px) {
    #policies-safety .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    #policies-safety .ps-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #policies-safety .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    #policies-safety .ps-sidebar-card,
    #policies-safety .cbp-checklist,
    #policies-safety .cbp-feature-card {
        padding: 16px;
    }

    #policies-safety .ps-hero-title {
        font-size: 28px;
    }

    #policies-safety .ps-hero-image {
        height: 190px;
    }

    #policies-safety .cbp-section__number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    #policies-safety .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================================================================
   TABLET — 768px and up
   ========================================================================= */

@media (min-width: 768px) {
    #policies-safety .ps-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #policies-safety .ps-hero-image {
        height: 300px;
    }

    #policies-safety .ps-hero-title {
        font-size: 38px;
    }

    #policies-safety .ps-commitment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #policies-safety .ps-checklist-media {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    #policies-safety .ps-media-card img {
        height: 100%;
        min-height: 200px;
    }
}

/* =========================================================================
   LARGE TABLET / DESKTOP — 992px and up
   ========================================================================= */

@media (min-width: 992px) {
    #policies-safety .ps-page-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    #policies-safety .ps-commitment-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================================
   DESKTOP — 1200px and up
   ========================================================================= */

@media (min-width: 1200px) {
    #policies-safety .ps-hero-title {
        font-size: 46px;
    }

    #policies-safety .ps-hero-image {
        height: 340px;
    }
}