.org-page,
.org-detail-page {
    --org-ink: #12263f;
    --org-muted: #64748b;
    --org-blue: #0b5fa5;
    --org-border: #dce5ef;
    color: var(--org-ink);
    font-family: "Segoe UI", "Lucida Grande", Arial, sans-serif;
    padding: 32px 0 64px;
}

.org-directory-hero,
.org-profile-hero {
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, .17), transparent 27%),
        linear-gradient(135deg, #07294f 0%, #0a4d87 62%, #0d6efd 100%);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(8, 44, 82, .16);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.org-directory-hero::after,
.org-profile-hero::after {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    height: 260px;
    pointer-events: none;
    position: absolute;
    right: -120px;
    top: -115px;
    width: 260px;
}

.org-directory-hero {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    padding: clamp(34px, 6vw, 68px);
}

.org-directory-hero-copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.org-eyebrow {
    align-items: center;
    color: #b9dcff;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.org-eyebrow::before {
    background: #72b9ff;
    border-radius: 999px;
    content: "";
    height: 6px;
    margin-right: 10px;
    width: 6px;
}

.org-directory-hero h1,
.org-profile-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.02;
    margin: 18px 0 16px;
}

.org-directory-hero p {
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0;
    max-width: 650px;
}

.org-hero-action {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    margin-left: 32px;
    padding: 12px 16px;
    position: relative;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
    z-index: 1;
}

.org-hero-action i {
    margin-left: 10px;
}

.org-hero-action:hover,
.org-hero-action:focus {
    background: #fff;
    border-color: #fff;
    color: #0a4d87;
    text-decoration: none;
    transform: translateY(-2px);
}

.org-directory-shell {
    background: #f7f9fc;
    border: 1px solid var(--org-border);
    border-radius: 20px;
    margin-top: 28px;
    padding: clamp(22px, 4vw, 38px);
}

.org-directory-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.org-directory-heading h2,
.org-detail-heading h2 {
    color: var(--org-ink);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 750;
    letter-spacing: -.025em;
    margin: 0 0 7px;
}

.org-directory-heading p,
.org-detail-heading p {
    color: var(--org-muted);
    line-height: 1.6;
    margin: 0;
}

.org-directory-tools {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.org-search-wrap {
    flex: 1 1 auto;
    max-width: 620px;
    position: relative;
}

.org-search-wrap > i {
    color: #7c8da1;
    left: 17px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.org-search-input {
    background: #fff;
    border: 1px solid #cfdbe8;
    border-radius: 12px;
    color: var(--org-ink);
    font: inherit;
    height: 50px;
    padding: 0 46px 0 45px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.org-search-input:focus {
    border-color: #5ba5e8;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
    outline: none;
}

.org-search-clear {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #64748b;
    cursor: pointer;
    height: 34px;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
}

.org-search-clear:hover,
.org-search-clear:focus {
    background: #edf3f8;
    color: #153a60;
    outline: none;
}

.org-result-count {
    background: #eaf3ff;
    border: 1px solid #c7ddf7;
    border-radius: 999px;
    color: #174d7b;
    flex: 0 0 auto;
    font-size: .84rem;
    font-weight: 800;
    padding: 7px 12px;
}

.org-directory-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.org-directory-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(19, 49, 82, .045);
    display: flex;
    min-height: 132px;
    padding: 18px;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.org-directory-card:hover,
.org-directory-card:focus-within {
    border-color: #a9caeb;
    box-shadow: 0 13px 28px rgba(19, 49, 82, .11);
    transform: translateY(-3px);
}

.org-directory-card[hidden] {
    display: none !important;
}

.org-directory-logo {
    align-items: center;
    background: #f2f6fb;
    border: 1px solid #e2e9f1;
    border-radius: 12px;
    display: flex;
    flex: 0 0 82px;
    height: 82px;
    justify-content: center;
    margin-right: 16px;
    overflow: hidden;
    position: relative;
    width: 82px;
}

.org-directory-logo-fallback {
    align-items: center;
    background: linear-gradient(145deg, #e6f1fc, #f7fbff);
    color: #23689f;
    display: flex;
    font-size: 1.15rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    letter-spacing: -.03em;
    width: 100%;
}

.org-directory-logo-image {
    background: #fff;
    height: 100%;
    left: 0;
    object-fit: contain;
    padding: 9px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.org-directory-card-copy {
    min-width: 0;
}

.org-directory-kicker {
    color: #73869a;
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.org-directory-card h3 {
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.35;
    margin: 0 0 9px;
}

.org-directory-name {
    color: #123b61;
    text-decoration: none;
}

.org-directory-name::after {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.org-directory-name:hover,
.org-directory-name:focus {
    color: #0b5fa5;
    text-decoration: none;
}

.org-directory-view {
    color: #51718f;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 700;
}

.org-directory-view i {
    font-size: .72rem;
    margin-left: 7px;
    margin-top: 3px;
    transition: transform .18s ease;
}

.org-directory-card:hover .org-directory-view i {
    transform: translateX(3px);
}

.org-directory-empty {
    background: #fff;
    border: 1px dashed #bac8d8;
    border-radius: 14px;
    color: var(--org-muted);
    margin-top: 16px;
    padding: 34px 20px;
    text-align: center;
}

.org-directory-empty i {
    color: #7aa8d2;
    display: block;
    font-size: 1.5rem;
    margin-bottom: 11px;
}

.org-directory-empty strong {
    color: var(--org-ink);
    display: block;
    margin-bottom: 4px;
}

.org-back-link {
    align-items: center;
    color: #45637f;
    display: inline-flex;
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 16px 4px;
    text-decoration: none;
}

.org-back-link i {
    font-size: .75rem;
    margin-right: 8px;
    transition: transform .18s ease;
}

.org-back-link:hover,
.org-back-link:focus {
    color: #0b5fa5;
    text-decoration: none;
}

.org-back-link:hover i {
    transform: translateX(-3px);
}

.org-profile-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 52px);
}

.org-profile-main {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.org-profile-logo {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(3, 21, 41, .22);
    display: flex;
    flex: 0 0 132px;
    height: 132px;
    justify-content: center;
    margin-right: 26px;
    overflow: hidden;
    position: relative;
    width: 132px;
}

.org-profile-logo-fallback {
    align-items: center;
    background: linear-gradient(145deg, #e7f2fc, #fff);
    color: #2770aa;
    display: flex;
    font-size: 2rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.org-profile-logo-image {
    background: #fff;
    height: 100%;
    left: 0;
    object-fit: contain;
    padding: 14px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.org-profile-copy {
    min-width: 0;
}

.org-profile-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.org-profile-website-row {
    align-items: center;
    color: rgba(255, 255, 255, .78);
    display: flex;
    font-size: .88rem;
    max-width: 620px;
}

.org-profile-website-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    margin-right: 10px;
    width: 34px;
}

.org-profile-website-label {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.org-profile-website-row a {
    color: #fff;
    display: inline-block;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .45);
    text-underline-offset: 3px;
}

.org-profile-website-row a:hover,
.org-profile-website-row a:focus {
    color: #fff;
    text-decoration-color: #fff;
}

.org-profile-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: 32px;
    position: relative;
    z-index: 1;
}

.org-primary-action {
    align-items: center;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0 9px 22px rgba(3, 21, 41, .18);
    color: #0b4f89;
    display: inline-flex;
    font-weight: 800;
    padding: 13px 17px;
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease;
}

.org-primary-action i {
    margin-right: 9px;
}

.org-primary-action:hover,
.org-primary-action:focus {
    box-shadow: 0 13px 28px rgba(3, 21, 41, .25);
    color: #083d6b;
    text-decoration: none;
    transform: translateY(-2px);
}

.org-secondary-action {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.org-secondary-action i {
    margin-right: 9px;
}

.org-secondary-action:hover,
.org-secondary-action:focus {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.org-detail-heading {
    margin: 34px 0 20px;
}

.org-detail-resources {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.org-section-panel:only-child,
.org-section-wide {
    grid-column: 1 / -1;
}

.org-section-wide {
    order: 3;
}

.org-resource-card {
    background: #fff;
    border: 1px solid var(--org-border);
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(19, 49, 82, .06);
    height: 100%;
    overflow: hidden;
}

.org-resource-card-header {
    align-items: center;
    background: linear-gradient(180deg, #fbfdff, #f7faff);
    border-bottom: 1px solid #e4ebf3;
    display: flex;
    padding: 18px 20px;
}

.org-resource-card-icon {
    align-items: center;
    background: #e8f3ff;
    border: 1px solid #cce3f8;
    border-radius: 10px;
    color: #0b5fa5;
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    margin-right: 12px;
    width: 40px;
}

.org-resource-card-header h2 {
    color: #173b5f;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 2px;
}

.org-resource-card-header p {
    color: #708196;
    font-size: .8rem;
    line-height: 1.4;
    margin: 0;
}

.org-resource-table,
.org-resource-table tbody {
    border: 0 !important;
    display: block;
    margin: 0;
    width: 100% !important;
}

.org-resource-table tr {
    display: block;
}

.org-resource-table tr + tr {
    border-top: 1px solid #edf1f5;
}

.org-resource-table td {
    border: 0 !important;
    display: block;
    padding: 0 !important;
}

.org-resource-row {
    align-items: center;
    display: flex;
    min-height: 70px;
    padding: 14px 18px;
    transition: background-color .16s ease;
}

.org-resource-row:hover {
    background: #f8fbff;
}

.org-resource-row-icon {
    align-items: center;
    background: #f0f5fa;
    border-radius: 9px;
    color: #52718e;
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    margin-right: 12px;
    width: 36px;
}

.org-resource-row-main {
    min-width: 0;
}

.org-resource-link {
    color: #174f7d;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.org-resource-link:hover,
.org-resource-link:focus {
    color: #0b69b5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.org-resource-meta {
    color: #74869a;
    display: block;
    font-size: .78rem;
    line-height: 1.45;
    margin-top: 3px;
}

.org-resource-row-chevron {
    color: #91a2b3;
    font-size: .75rem;
    margin-left: auto;
    padding-left: 14px;
}

@media (max-width: 991.98px) {
    .org-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .org-directory-hero,
    .org-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .org-hero-action,
    .org-profile-actions {
        margin: 24px 0 0;
    }
}

@media (max-width: 767.98px) {
    .org-page,
    .org-detail-page {
        padding: 18px 0 42px;
    }

    .org-directory-hero,
    .org-profile-hero,
    .org-directory-shell {
        border-radius: 17px;
    }

    .org-directory-heading,
    .org-directory-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .org-directory-grid,
    .org-detail-resources {
        grid-template-columns: 1fr;
    }

    .org-section-panel,
    .org-section-wide {
        grid-column: auto;
    }

    .org-search-wrap {
        max-width: none;
    }

    .org-result-count {
        align-self: flex-start;
    }

    .org-profile-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .org-profile-logo {
        flex-basis: 104px;
        height: 104px;
        margin: 0 0 20px;
        width: 104px;
    }

    .org-profile-hero h1 {
        margin-top: 14px;
    }
}

@media (max-width: 479.98px) {
    .org-directory-grid {
        gap: 12px;
    }

    .org-directory-card {
        min-height: 112px;
        padding: 14px;
    }

    .org-directory-logo {
        flex-basis: 68px;
        height: 68px;
        margin-right: 13px;
        width: 68px;
    }

    .org-directory-card h3 {
        font-size: .96rem;
    }

    .org-hero-action,
    .org-primary-action,
    .org-secondary-action {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .org-page *,
    .org-detail-page * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
