/*
 * GMOS Commercial Front-End Design System
 * Loaded only on WordPress pages marked with _gmos_managed_page.
 */

body.gmos-managed-surface {
    --gmos-navy: #173b5b;
    --gmos-navy-strong: #102f4b;
    --gmos-blue: #2f7f97;
    --gmos-blue-hover: #245f73;
    --gmos-accent: #2f7f97;
    --gmos-accent-strong: #245f73;
    --gmos-accent-soft: #eaf4f7;
    --gmos-accent-light: #8fd0d8;
    --gmos-ink: #172033;
    --gmos-muted: #64748b;
    --gmos-line: #dfe6ef;
    --gmos-soft: #f5f8fc;
    --gmos-soft-blue: #eef4fb;
    --gmos-white: #ffffff;
    --gmos-success: #2f855a;
    --gmos-warning: #b7791f;
    --gmos-danger: #c53030;
    --gmos-radius-sm: 8px;
    --gmos-radius: 14px;
    --gmos-radius-lg: 20px;
    --gmos-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --gmos-shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --gmos-content-width: 1180px;
    color: var(--gmos-ink);
}

body.gmos-managed-surface main,
body.gmos-managed-surface .site-main,
body.gmos-managed-surface .entry-content,
body.gmos-managed-surface .wp-site-blocks main {
    min-width: 0;
}

body.gmos-managed-surface .entry-content > :where(*),
body.gmos-managed-surface main > :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) {
    box-sizing: border-box;
}

body.gmos-managed-surface .entry-content > .geer-vsus-dashboard-card,
body.gmos-managed-surface .entry-content > .geer-am-wrap,
body.gmos-managed-surface .entry-content > .gmos-portal-shell,
body.gmos-managed-surface .entry-content > .gmos-native-schedule,
body.gmos-managed-surface .entry-content > .gmos-service-record,
body.gmos-managed-surface .entry-content > .gmos-training-wrap {
    width: min(var(--gmos-content-width), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-panel,.gmos-card,.gmos-panel,.gmos-service-card,.gmos-training-card,.gmos-native-schedule,.gmos-reservations-console) {
    border: 1px solid var(--gmos-line);
    border-radius: var(--gmos-radius);
    background: var(--gmos-white);
    box-shadow: var(--gmos-shadow-sm);
}

body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) {
    line-height: 1.5;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) h1,
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) h2,
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) h3 {
    color: var(--gmos-ink);
    line-height: 1.18;
    letter-spacing: -.015em;
    font-weight: 800;
}

/* Stronger heading hierarchy across GMOS-managed application surfaces. */
body.gmos-managed-surface :where(
    .gmos-workspace-launcher__heading,
    .gmos-panel,
    .gmos-card,
    .gmos-operations-center,
    .gmos-coordinator-workspace,
    .geer-coordinator-dashboard,
    .gmos-service-record,
    .gmos-native-schedule,
    .gmos-training-wrap
) :where(h2,h3) {
    font-weight: 800 !important;
}
body.gmos-managed-surface :where(
    .gmos-workspace-launcher__heading,
    .gmos-panel,
    .gmos-card,
    .gmos-operations-center,
    .gmos-coordinator-workspace,
    .geer-coordinator-dashboard
) > :where(h2,h3),
body.gmos-managed-surface .gmos-workspace-launcher__heading h2 {
    letter-spacing: -.02em;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) p {
    color: var(--gmos-muted);
}

body.gmos-managed-surface .geer-vsus-dashboard-card { overflow: hidden; }
body.gmos-managed-surface .geer-vsus-dashboard-heading { padding: 24px 28px 18px; }
body.gmos-managed-surface .geer-vsus-dashboard-heading-icon { box-shadow: none; }
body.gmos-managed-surface .geer-vsus-directory-eyebrow,
body.gmos-managed-surface .geer-am-kicker {
    color: var(--gmos-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(button,input[type="submit"],.button,.geer-am-btn,.gmos-btn) {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(button,input[type="submit"],.geer-am-btn,.gmos-btn) {
    background: var(--gmos-blue);
    border-color: var(--gmos-blue);
    color: #fff;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(button,input[type="submit"],.geer-am-btn,.gmos-btn):hover {
    background: var(--gmos-blue-hover);
    border-color: var(--gmos-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(49, 88, 217, .18);
}

body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(input[type="text"],input[type="email"],input[type="search"],input[type="tel"],input[type="date"],input[type="time"],input[type="number"],input[type="password"],select,textarea) {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--gmos-ink);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(input,select,textarea):focus {
    outline: 3px solid rgba(49, 88, 217, .14);
    outline-offset: 1px;
    border-color: var(--gmos-blue);
}

body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--gmos-line);
    border-radius: 12px;
    background: #fff;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) th {
    background: var(--gmos-soft);
    color: var(--gmos-ink);
    font-size: 13px;
    font-weight: 800;
}
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) th,
body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gmos-line);
    text-align: left;
    vertical-align: top;
}

body.gmos-managed-surface .geer-vsus-directory-stats { gap: 12px; padding: 0 28px 18px; }
body.gmos-managed-surface .geer-vsus-directory-stats > div {
    background: var(--gmos-soft);
    border: 1px solid var(--gmos-line);
    border-radius: 12px;
    padding: 14px 16px;
}
body.gmos-managed-surface .geer-vsus-directory-filters a {
    border-radius: 999px;
    border: 1px solid var(--gmos-line);
    background: #fff;
    font-weight: 700;
}
body.gmos-managed-surface .geer-vsus-directory-filters a.is-active {
    background: var(--gmos-navy);
    border-color: var(--gmos-navy);
    color: #fff;
}
body.gmos-managed-surface .geer-vsus-directory-grid { gap: 14px; }
body.gmos-managed-surface .geer-vsus-volunteer-card {
    border: 1px solid var(--gmos-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.gmos-managed-surface .geer-vsus-volunteer-card:hover {
    border-color: #c9d6e8;
    transform: translateY(-1px);
    box-shadow: var(--gmos-shadow-sm);
}
body.gmos-managed-surface .geer-vsus-volunteer-roles span {
    border-radius: 999px;
    background: var(--gmos-soft-blue);
    color: var(--gmos-navy);
    font-size: 12px;
    font-weight: 700;
}

body.gmos-managed-surface :where(.gmos-notice,.geer-am-notice,.gmos-alert) {
    border: 1px solid var(--gmos-line);
    border-left: 4px solid var(--gmos-blue);
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
}
body.gmos-managed-surface :where(.gmos-notice,.geer-am-notice,.gmos-alert).success { border-left-color: var(--gmos-success); }
body.gmos-managed-surface :where(.gmos-notice,.geer-am-notice,.gmos-alert).warning { border-left-color: var(--gmos-warning); }
body.gmos-managed-surface :where(.gmos-notice,.geer-am-notice,.gmos-alert).error { border-left-color: var(--gmos-danger); }

body.gmos-managed-surface :where(.geer-vsus-empty-state,.gmos-empty-state) {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: var(--gmos-soft);
    padding: 22px;
    color: var(--gmos-muted);
}

body.gmos-managed-surface .entry-header:has(+ .entry-content .geer-vsus-dashboard-card),
body.gmos-managed-surface .entry-header:has(+ .entry-content .geer-am-wrap) { margin-bottom: 18px; }

body.gmos-surface-portal_home .entry-content { --gmos-content-width: 1240px; }
body.gmos-surface-portal_home .entry-content > * + * { margin-top: 20px; }
body.gmos-surface-portal_home :where(.geer-vsus-dashboard-card,.gmos-portal-shell) { margin-bottom: 20px; }
body.gmos-surface-portal_home :where(.geer-vsus-dashboard-card,.gmos-portal-shell) :where(.gmos-card,.geer-vsus-dashboard-card) { box-shadow: var(--gmos-shadow-sm); }
body.gmos-surface-portal_home :where(.geer-vsus-dashboard-grid,.gmos-dashboard-grid,.geer-vsus-admin-grid) { gap: 16px !important; }
body.gmos-surface-portal_home :where(.geer-vsus-stat,.gmos-stat,.gmos-dashboard-stat) { min-width: 0; }

body.gmos-surface-profile .entry-content > .geer-vsus-dashboard-card,
body.gmos-surface-profile .entry-content > .geer-am-wrap { width: min(1040px, calc(100% - 32px)); }
body.gmos-surface-profile :where(.geer-vsus-profile-hero,.gmos-profile-hero,.geer-vsus-heritage-hero) {
    border-radius: 18px;
    box-shadow: var(--gmos-shadow);
}
body.gmos-surface-profile :where(.geer-vsus-profile-grid,.gmos-profile-grid,.geer-vsus-story-grid) { gap: 16px; }
body.gmos-surface-profile :where(.geer-vsus-profile-card,.gmos-profile-card,.geer-vsus-story-card) {
    border: 1px solid var(--gmos-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

body.gmos-surface-schedule .entry-content > .gmos-native-schedule { width: min(1280px, calc(100% - 32px)); }
body.gmos-surface-schedule :where(.gmos-native-schedule,.gmos-schedule-wrap,.gmos-calendar-wrap) { box-shadow: none; }
body.gmos-surface-schedule :where(.gmos-calendar-toolbar,.gmos-schedule-toolbar,.gmos-calendar-nav) {
    gap: 10px;
    align-items: center;
}
body.gmos-surface-schedule :where(.gmos-calendar-grid,.gmos-schedule-grid,.gmos-month-grid) { gap: 10px !important; }
body.gmos-surface-schedule :where(.gmos-day,.gmos-calendar-day,.gmos-schedule-day) {
    min-width: 0;
    border-radius: 12px;
}
body.gmos-surface-schedule :where(.gmos-day,.gmos-calendar-day,.gmos-schedule-day) :where(p,span,div) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
body.gmos-surface-schedule :where(.gmos-shift-card,.gmos-calendar-shift,.gmos-schedule-shift) {
    min-width: 0;
    padding: 12px !important;
    border-radius: 10px;
}

@media (max-width: 900px) {
    body.gmos-managed-surface { --gmos-content-width: 100%; }
    body.gmos-managed-surface .entry-content > .geer-vsus-dashboard-card,
    body.gmos-managed-surface .entry-content > .geer-am-wrap,
    body.gmos-managed-surface .entry-content > .gmos-portal-shell,
    body.gmos-managed-surface .entry-content > .gmos-native-schedule,
    body.gmos-managed-surface .entry-content > .gmos-service-record,
    body.gmos-managed-surface .entry-content > .gmos-training-wrap {
        width: calc(100% - 20px);
    }
    body.gmos-managed-surface .geer-vsus-dashboard-heading { padding: 20px; }
    body.gmos-managed-surface .geer-vsus-directory-stats {
        padding-left: 20px;
        padding-right: 20px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.gmos-surface-profile :where(.geer-vsus-profile-hero,.gmos-profile-hero,.geer-vsus-heritage-hero) {
        gap: 18px;
    }
    body.gmos-surface-schedule :where(.gmos-calendar-grid,.gmos-schedule-grid,.gmos-month-grid) {
        overflow-x: auto;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 1fr);
        scroll-snap-type: x proximity;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    body.gmos-surface-schedule :where(.gmos-day,.gmos-calendar-day,.gmos-schedule-day) { scroll-snap-align: start; }
}

@media (max-width: 640px) {
    body.gmos-managed-surface .entry-header,
    body.gmos-managed-surface .wp-block-post-title,
    body.gmos-managed-surface .entry-title {
        margin-bottom: 14px;
    }
    body.gmos-managed-surface .entry-title,
    body.gmos-managed-surface .wp-block-post-title {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.05;
    }
    body.gmos-managed-surface .geer-vsus-dashboard-heading { padding: 16px; }
    body.gmos-managed-surface .geer-vsus-directory-stats {
        grid-template-columns: 1fr 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }
    body.gmos-managed-surface .geer-vsus-directory-tools,
    body.gmos-managed-surface .geer-vsus-directory-filters {
        gap: 8px;
        flex-wrap: wrap;
    }
    body.gmos-managed-surface .geer-vsus-directory-filters a {
        padding: 9px 12px;
        font-size: 14px;
    }
    body.gmos-managed-surface .geer-vsus-directory-tools :where(input[type="search"],input[type="text"],button,.button) {
        width: 100%;
        max-width: none;
    }
    body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.gmos-managed-surface :where(.geer-vsus-dashboard-card,.geer-am-wrap,.gmos-portal-shell,.gmos-native-schedule,.gmos-service-record,.gmos-training-wrap) :where(button,input[type="submit"],.button,.geer-am-btn,.gmos-btn) {
        min-height: 44px;
    }
    body.gmos-surface-portal_home .entry-content > * + * { margin-top: 14px; }
    body.gmos-surface-profile :where(.geer-vsus-profile-hero,.gmos-profile-hero,.geer-vsus-heritage-hero) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 20px !important;
    }
    body.gmos-surface-profile :where(.geer-vsus-profile-hero,.gmos-profile-hero,.geer-vsus-heritage-hero) :where(img,.avatar) {
        margin-left: auto;
        margin-right: auto;
    }
    body.gmos-surface-profile :where(.geer-vsus-profile-hero,.gmos-profile-hero,.geer-vsus-heritage-hero) :where(a.button,button,.gmos-btn,.geer-am-btn) {
        width: 100%;
        justify-content: center;
    }
    body.gmos-surface-schedule :where(.gmos-calendar-toolbar,.gmos-schedule-toolbar,.gmos-calendar-nav) {
        align-items: stretch;
        flex-wrap: wrap;
    }
    body.gmos-surface-schedule :where(.gmos-calendar-toolbar,.gmos-schedule-toolbar,.gmos-calendar-nav) :where(button,.button,a) {
        min-height: 44px;
    }
}
