/* Organization Detail page — Stewardship Commons Design System v1.0.
 *
 * No Figma node for this page yet; values are pulled directly from the
 * SC Design System token reference (Inter type scale, Brand/Gray scales,
 * 4px spacing base, radius LG 8 / XL 12).
 *
 * Desktop (.od--desktop) and Mobile (.od--mobile) variants both render at
 * every viewport; the media queries below hide whichever one doesn't fit —
 * same pattern as _HeaderDesktop / _HeaderMobile and contributors-listing.
 */

/* =================================================================
   DS tokens
   ================================================================= */
.od {
    --od-brand-25:  #F6F9FF;
    --od-brand-50:  #EBF1FF;
    --od-brand-100: #DADFED;
    --od-brand-600: #465DA6;
    --od-brand-700: #384A85;
    --od-brand-900: #1C2542;
    --od-teal:      #2FB8A9;
    --od-gray-100:  #F5F5F5;
    --od-gray-200:  #E9EAEB;
    --od-gray-300:  #D5D7DA;
    --od-gray-500:  #717680;
    --od-gray-700:  #414651;
    --od-gray-900:  #252B37;
    --od-white:     #FFFFFF;
    --od-radius-lg: 8px;
    --od-radius-xl: 12px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--od-gray-700);
}

.od *,
.od *::before,
.od *::after { box-sizing: border-box; }

/* =================================================================
   Viewport gates — desktop variant >768, mobile variant ≤768
   ================================================================= */
.od--desktop { display: block; }
.od--mobile  { display: none; }
@media (max-width: 768px) {
    .od--desktop { display: none; }
    .od--mobile  { display: block; }
}

/* =================================================================
   Shared building blocks
   ================================================================= */
.od__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.od--mobile .od__container { padding: 0 16px; }

.od__section-title {
    margin: 0 0 32px 0;
    font-weight: 700;
    color: var(--od-gray-900);
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.01em;
}
.od--mobile .od__section-title {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 30px;
}

.od__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--od-teal);
}

/* =================================================================
   1) About / Header  — Brand/25 surface
   ================================================================= */
.od-about { background: var(--od-brand-25); }
.od--desktop .od-about { padding: 64px 0; }
.od--mobile  .od-about { padding: 40px 0; }

.od-about__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.od--mobile .od-about__header { gap: 16px; margin-bottom: 20px; }

.od-about__logo {
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--od-radius-lg);
    background: var(--od-white);
    border: 1px solid var(--od-gray-200);
}
.od--desktop .od-about__logo { width: 96px;  height: 96px; }
.od--mobile  .od-about__logo { width: 64px;  height: 64px; }

.od-about__name {
    margin: 0;
    font-weight: 700;
    color: var(--od-brand-900);
    letter-spacing: -0.02em;
}
.od--desktop .od-about__name { font-size: 36px; line-height: 44px; }
.od--mobile  .od-about__name { font-size: 30px; line-height: 38px; }

.od-about__short-bio {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    color: var(--od-gray-500);
    font-size: 16px;
    line-height: 24px;
}
.od--mobile .od-about__short-bio { font-size: 14px; line-height: 20px; }

.od-about__bio { color: var(--od-gray-700); }
.od-about__bio p { margin: 0 0 16px 0; }
.od--desktop .od-about__bio,
.od--desktop .od-about__bio p { font-size: 16px; line-height: 24px; }
.od--mobile  .od-about__bio,
.od--mobile  .od-about__bio p { font-size: 14px; line-height: 20px; }
.od-about__bio a { color: var(--od-brand-600); }

.od-about__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.od-about__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--od-white);
    border: 1px solid var(--od-gray-200);
    color: var(--od-brand-600);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.od-about__social a:hover {
    color: var(--od-brand-700);
    border-color: var(--od-brand-100);
    transform: translateY(-2px);
}
.od--desktop .od-about__social a { width: 40px; height: 40px; }
.od--mobile  .od-about__social a { width: 36px; height: 36px; }
.od-about__social a i { font-size: 20px; }
.od--mobile .od-about__social a i { font-size: 18px; }

/* =================================================================
   2) Areas of Impact — white surface
   ================================================================= */
.od-impact { background: var(--od-white); }
.od--desktop .od-impact { padding: 80px 0; }
.od--mobile  .od-impact { padding: 48px 0; }

.od-impact__grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.od--mobile .od-impact__grid { grid-template-columns: 1fr; gap: 20px; }

.od-impact__media {
    width: 100%;
    object-fit: cover;
    border-radius: var(--od-radius-xl);
    background: var(--od-gray-100);
    display: block;
}
.od--desktop .od-impact__media { height: 400px; }
.od--mobile  .od-impact__media { height: 220px; }

.od-impact__tag {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--od-brand-600);
    text-transform: capitalize;
}
.od-impact__heading {
    margin: 0 0 16px 0;
    font-weight: 700;
    color: var(--od-gray-900);
}
.od--desktop .od-impact__heading { font-size: 20px; line-height: 30px; }
.od--mobile  .od-impact__heading { font-size: 18px; line-height: 28px; }

.od-impact__body { color: var(--od-gray-700); }
.od-impact__body p { margin: 0 0 12px 0; }
.od--desktop .od-impact__body,
.od--desktop .od-impact__body p { font-size: 16px; line-height: 24px; }
.od--mobile  .od-impact__body,
.od--mobile  .od-impact__body p { font-size: 14px; line-height: 20px; }

/* =================================================================
   3) Thought Leadership — Brand/900 dark surface
   ================================================================= */
.od-tl { background: var(--od-brand-900); color: var(--od-white); }
.od--desktop .od-tl { padding: 80px 0; }
.od--mobile  .od-tl { padding: 48px 0; }
.od-tl .od__section-title { color: var(--od-white); }

.od-tl__card { display: block; height: 100%; text-decoration: none; }
.od-tl__card:hover .od-tl__thumb { transform: translateY(-4px); }
.od-tl__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--od-radius-lg);
    background: rgba(255, 255, 255, .08);
    margin-bottom: 12px;
    transition: transform .2s ease;
}
.od-tl__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    color: var(--od-brand-100);
}
.od-tl__meta img { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: .9; }
.od-tl__title {
    margin: 8px 0 4px 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--od-white);
}
.od-tl__author {
    display: block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    color: var(--od-brand-100);
    text-decoration: underline;
}
.od-tl__excerpt {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--od-brand-100);
}

/* Desktop carousel (Bootstrap) */
.od-tl__carousel { position: relative; padding: 0 60px; }
.od-tl__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.od-tl__carousel .carousel-control-prev,
.od-tl__carousel .carousel-control-next {
    width: 48px; height: 48px;
    top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    opacity: 1;
    transition: background .2s ease;
}
.od-tl__carousel .carousel-control-prev:hover,
.od-tl__carousel .carousel-control-next:hover { background: rgba(255, 255, 255, .22); }
.od-tl__carousel .carousel-control-prev { left: 0; }
.od-tl__carousel .carousel-control-next { right: 0; }
.od-tl__carousel .carousel-control-prev-icon,
.od-tl__carousel .carousel-control-next-icon { width: 20px; height: 20px; }
.od-tl__carousel .carousel-indicators { margin-bottom: -32px; }
.od-tl__carousel .carousel-indicators [data-bs-target] {
    width: 32px; height: 3px; border-radius: 0;
    background-color: rgba(255, 255, 255, .4);
}
.od-tl__carousel .carousel-indicators .active { background-color: var(--od-white); }

/* Mobile horizontal scroll-snap row */
.od-tl__scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.od-tl__scroller::-webkit-scrollbar { display: none; }
.od-tl__slide {
    flex: 0 0 78%;
    scroll-snap-align: start;
}

/* =================================================================
   4) Key Executives — white surface
   ================================================================= */
.od-exec { background: var(--od-white); }
.od--desktop .od-exec { padding: 80px 0; }
.od--mobile  .od-exec { padding: 48px 0; }

.od-exec__tabs {
    border-bottom: 1px solid var(--od-gray-200);
    margin-bottom: 32px;
}
.od--mobile .od-exec__tabs { margin-bottom: 20px; }
.od-exec__tab {
    display: inline-block;
    padding: 0 0 12px 0;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--od-brand-600);
    border-bottom: 2px solid var(--od-brand-600);
}
.od--mobile .od-exec__tab { font-size: 18px; line-height: 28px; }

.od-exec__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.od--mobile .od-exec__grid { grid-template-columns: 1fr; gap: 20px; }

.od-exec__card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.od--mobile .od-exec__card { gap: 16px; }
.od-exec__photo {
    object-fit: cover;
    border-radius: var(--od-radius-lg);
    background: var(--od-gray-100);
    flex-shrink: 0;
}
.od--desktop .od-exec__photo { width: 160px; height: 160px; }
.od--mobile  .od-exec__photo { width: 96px;  height: 96px; }
.od-exec__info { flex: 1; min-width: 0; cursor: pointer; }
.od-exec__name {
    margin: 0 0 4px 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: var(--od-brand-600);
}
.od--mobile .od-exec__name { font-size: 16px; line-height: 24px; }
.od-exec__role {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--od-gray-500);
}
.od-exec__post-title {
    margin: 8px 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--od-gray-900);
}
.od-exec__desc {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--od-gray-700);
}
