/* Directory redesign: extends the existing shared styles, no build dependency. */
:root { --ink:#173b35; --green:#175844; --muted:#53645f; --paper:#f7f8f5; --line:#dce3dc; --tint:#eef3ed; }
body { color:var(--ink); }
a { text-underline-offset:4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #a15d12; outline-offset:4px; }
.site-header { min-height:100px; }
.site-header nav { gap:24px; }
.site-header nav a { white-space:nowrap; }
.preview-bar { background:#eaf0e7; color:#385248; font-size:12px; }
.discovery-hero { padding-block:72px 32px; }
.discovery-heading { max-width:850px; }
.discovery-heading h1 { font-family:Georgia,serif; font-size:clamp(48px,6vw,82px); font-weight:400; line-height:1.05; letter-spacing:-3px; margin:14px 0 24px; }
.discovery-heading h1 em { color:var(--green); font-weight:400; }
.discovery-heading .hero-description { max-width:690px; font-size:20px; line-height:1.65; margin:0 0 30px; color:var(--muted); }
.discovery-hero .hero-search { width:100%; max-width:860px; background:white; padding:8px; border:1px solid #849f90; border-radius:9px; display:flex; gap:12px; box-shadow:0 4px 14px #173b3508; }
.discovery-hero .hero-search input { flex:1; width:0; min-width:0; font-size:16px; padding:12px; border:0; background:transparent; color:var(--ink); }
.discovery-hero .hero-search .button { min-width:115px; justify-content:center; }
.search-hint { font-size:13px; margin:12px 0 20px; color:var(--muted); }
.search-examples { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; }
.search-examples>span { color:var(--muted); margin-right:4px; }
.search-examples a, .category-links a { border:1px solid var(--line); background:white; border-radius:24px; padding:7px 12px; text-decoration:none; }
.search-examples a:hover, .category-links a:hover { border-color:var(--green); }
.directory-statistics { display:flex; flex-wrap:wrap; gap:30px 70px; padding:28px 0; margin:32px 0 0; border-block:1px solid var(--line); }
.directory-statistics div { display:flex; flex-direction:column; gap:6px; }
.directory-statistics dd { font-size:32px; font-weight:600; margin:0; line-height:1.2; letter-spacing:-1px; }
.directory-statistics dt { font-size:13px; color:var(--muted); }
.discovery-use-cases { padding-block:32px 52px; }
.section-heading h2 { font-size:clamp(26px,3vw,37px); }
.discovery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px; }
.discovery-grid article { border-top:1px solid var(--line); padding-top:22px; }
.step-number { font-size:12px; font-weight:700; color:var(--green); }
.discovery-grid h3 { font-size:22px; margin:14px 0 10px; font-weight:600; }
.discovery-grid p { margin:0; color:var(--muted); font-size:15px; line-height:1.7; }
.category-section { padding-block:36px; background:#eef2eb; }
.category-tile { background:#fff; padding:22px; border:1px solid #dde5da; border-radius:8px; }
.category-tile h3 { min-height:0; font-size:17px; line-height:1.45; margin-bottom:22px; }
.category-tile span { font-size:12px; }
.coverage-note { color:var(--muted); font-size:13px; max-width:850px; line-height:1.7; margin:0 0 24px; }
.cards-grid { gap:24px; }
.relationship-card { padding:25px; border:1px solid var(--line); border-radius:10px; box-shadow:none; background:#fff; min-width:0; }
.card-top { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:26px; }
.category-label { font-size:12px; font-weight:600; letter-spacing:.02em; text-transform:none; }
.category-label:empty { display:none; }
.badge.evidence-badge { display:inline-block; white-space:normal; border:1px solid transparent; padding:5px 9px; font-size:11px; font-weight:600; line-height:1.5; border-radius:5px; }
.evidence-documented { color:#155339; background:#eaf4ec; border-color:#bed9c5!important; }
.evidence-listed { color:#365273; background:#edf2f9; border-color:#c7d5e7!important; }
.evidence-announced, .evidence-pilot { color:#754516; background:#fcf2df; border-color:#e9d2a9!important; }
.evidence-unassessed { color:#5a5066; background:#f2eef6; border-color:#d9cee5!important; }
.parties.relationship-direction { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:14px; align-items:center; margin:0 0 22px; }
.relationship-direction .party { display:flex; align-items:center; gap:10px; min-width:0; }
.relationship-direction .party>span:last-child { min-width:0; }
.relationship-direction .party small { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:5px; }
.relationship-direction .party strong { font-size:15px; line-height:1.4; }
.relationship-direction .entity-mark { width:48px; height:44px; flex-basis:48px; border-color:#e2e8e1; padding:5px; }
.direction-verb { display:flex; flex-direction:column; align-items:center; color:var(--green); font-size:12px; font-weight:700; gap:0; }
.direction-verb>span { font-size:20px; line-height:1.1; }
.relationship-card h3 { font-family:inherit; font-size:20px; font-weight:600; line-height:1.4; margin:0 0 10px; }
.card-scope, .company-summary { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.relationship-card .scope { font-size:14px; line-height:1.65; color:var(--muted); margin-bottom:10px; }
.card-location, .card-current { font-size:12px; color:var(--muted); margin:8px 0; }
.card-current { margin-bottom:18px; }
.card-bottom { font-size:13px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:18px; margin-top:16px; border-top:1px solid var(--line); }
.card-bottom>span { color:var(--muted); }
.profile-evidence { border:0; margin-top:12px; padding:0; }
.profile-evidence summary { font-size:13px; color:var(--green); cursor:pointer; padding-block:6px; }
.profile-evidence[open] { padding-bottom:8px; }
.evidence-explanation { font-size:14px; color:var(--muted); line-height:1.7; }
.profile-citation { padding:20px 0; border-top:1px solid var(--line); }
.profile-citation p { font-size:14px; line-height:1.7; }
.source-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0 0; }
.source-facts dt { font-size:11px; color:var(--muted); margin-bottom:4px; }
.source-facts dd { margin:0; font-size:13px; }
.filter-disclosure { border:1px solid var(--line); border-radius:8px; background:white; margin:0 0 26px; }
.filter-disclosure>summary { cursor:pointer; padding:16px 20px; color:var(--green); font-size:14px; font-weight:600; }
.filter-disclosure>summary .fine { font-weight:400; margin-left:12px; color:var(--muted); }
.directory-filters { margin:0; border-top:1px solid var(--line); background:#f0f4ef; border-radius:0 0 8px 8px; }
.filter-help { grid-column:1/-1; margin:0; }
.directory-filters input,.directory-filters select { font-size:14px; min-height:44px; }
.company-card { border-bottom:1px solid var(--line); background:#fff; padding:28px; border-radius:8px; min-width:0; overflow-wrap:anywhere; }
.company-card .eyebrow { margin-top:20px; margin-bottom:10px; }
.company-card h2 { font-size:26px; line-height:1.25; margin-bottom:12px; }
.company-card .inline-link { display:inline-block; margin-top:16px; font-size:14px; }
.company-summary { font-size:14px; color:var(--muted); line-height:1.65; }
.profile-heading { padding-block:42px 28px; }
.profile-intro h1 { font-size:clamp(34px,4vw,56px); line-height:1.12; }
.company-statistics { margin:0 0 18px; padding-block:22px; }
.company-statistics dd { font-size:28px; }
.section-nav { margin-top:24px; }
.profile-section .section-heading h2 { font-size:30px; }
.page-heading .heading-verb { color:var(--green); font-style:italic; }
.relationship-heading h1 { font-size:clamp(32px,4vw,52px); max-width:1000px; line-height:1.2; }
.relationship-heading .heading-actions { margin-top:22px; gap:16px; }
.detail-panel { padding:28px; }
.detail-panel h2 { font-size:29px; margin-bottom:24px; }
.detail-panel h3 { font-size:14px; color:var(--muted); margin-top:26px; }
.detail-offering { font-size:24px; line-height:1.4; }
.category-links { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; margin:16px 0; }
#evidence { scroll-margin-top:24px; }
.fine { color:var(--muted); }
.footer { margin-top:50px; }
@media(max-width:1050px) {
 .site-header { align-items:center; flex-wrap:wrap; padding-block:20px; gap:20px; }
 .site-header nav { gap:18px; }
 .relationship-direction .entity-mark { width:40px; flex-basis:40px; height:38px; }
 .relationship-direction .party { gap:8px; }
 .relationship-direction .party strong { font-size:14px; }
 .parties.relationship-direction { gap:10px; }
 .discovery-hero { padding-top:48px; }
}
@media(max-width:760px) {
 .discovery-heading h1 { font-size:54px; letter-spacing:-2px; }
 .discovery-heading .hero-description { font-size:17px; }
 .discovery-hero { padding-block:32px 16px; }
 .discovery-hero .hero-search { gap:6px; }
 .discovery-hero .hero-search input { font-size:16px; padding:10px 6px; }
 .discovery-hero .hero-search .button { min-width:78px; padding:12px; }
 .discovery-grid { grid-template-columns:1fr; gap:24px; }
 .discovery-use-cases { padding-bottom:32px; }
 .directory-statistics { gap:24px; justify-content:space-between; }
 .directory-statistics dd { font-size:27px; }
 .directory-statistics dt { font-size:12px; max-width:115px; }
 .relationship-card { padding:20px; }
 .card-top { margin-bottom:22px; }
 .profile-heading { padding-top:26px; }
 .profile-heading>.entity-mark { width:65px; height:65px; }
 .source-facts { grid-template-columns:1fr; }
 .filter-disclosure>summary .fine { display:none; }
 .profile-section .section-heading h2 { font-size:27px; }
 .company-card { padding:22px; }
 .detail-panel { padding:22px; }
 .site-header nav { gap:14px; width:100%; }
 .site-header nav a { font-size:13px; }
 .site-header nav>.button { margin-left:auto; }
 .section-nav { gap:16px; font-size:13px; }
}
@media(max-width:440px) {
 .parties.relationship-direction { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
 .relationship-direction .party { width:100%; align-items:center; }
 .relationship-direction .party strong { font-size:16px; }
 .direction-verb { flex-direction:row; justify-content:flex-start; margin-left:50px; gap:8px; }
 .direction-verb>span { transform:rotate(90deg); }
 .discovery-heading h1 { font-size:48px; }
 .directory-statistics { gap:22px 18px; }
 .directory-statistics dt { max-width:95px; }
 .site-header nav>.button { margin-left:0; }
 .card-bottom { font-size:13px; }
}

.profile-category-roles{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:12px 0}.profile-category-roles li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 14px;border:1px solid #d8ded3;border-radius:8px;background:#fff}.profile-category-roles a{font-weight:600}.profile-category-roles span{font-size:13px;color:#43564e}

/* Compact directory cards; full scope and citations remain on detail pages. */
.relationship-card.relationship-card-compact { padding:16px; }
.compact-parties { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; margin-bottom:10px; }
.compact-party { display:flex; align-items:center; gap:8px; min-width:0; }
.compact-party strong { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.compact-party .entity-mark { width:32px; height:32px; flex:0 0 32px; padding:3px; font-size:10px; }
.compact-arrow { font-size:19px; color:var(--green); }
.relationship-card-compact h3 { font-size:16px; line-height:1.4; margin:0 0 8px; }
.compact-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-bottom:10px; }
.compact-meta .category-label { font-size:11px; }
.compact-meta .evidence-badge { font-size:10px; padding:2px 6px; }
.compact-detail-link { display:inline-block; font-size:12px; padding-block:3px; }
.relationship-card-compact .card-current, .relationship-card-compact .self-use { margin:6px 0; font-size:11px; }
.relationship-card-compact .note { margin:6px 0 10px; padding:8px 10px; }
#explore-categories .category-tile { padding:14px 16px; display:flex; align-items:center; min-height:54px; }
#explore-categories .category-tile h3 { margin:0; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
@media(max-width:760px) { #explore-categories .category-tile:last-child { grid-column:auto; } }

.compact-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; }

.company-text-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px;list-style:none;padding:0;margin:12px 0 20px}.company-text-list li{min-width:0}.company-text-list a{overflow-wrap:anywhere;text-underline-offset:3px;display:inline-block;padding-block:4px}
@media(max-width:800px){.company-text-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.company-text-list{grid-template-columns:1fr}}

/* Compact relationship tables share the existing filtered card results. */
.map-switch[hidden],#profile-table[hidden],#profile-cards[hidden]{display:none!important}
.map-switch{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.map-switch [aria-pressed="true"]{background:#244f40;color:#fff}
.relationship-table-scroll{position:relative;max-width:100%;overflow-x:auto;border:1px solid #d8ded3;border-radius:10px;background:#fff;margin:20px 0}
.relationship-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px;line-height:1.45;text-align:left}
.relationship-table th,.relationship-table td{padding:12px 14px;vertical-align:top;border-bottom:1px solid #d8ded3}
.relationship-table th{background:#eef3eb;font-weight:700}.relationship-table tr:last-child td{border-bottom:0}
.relationship-table a{text-decoration:underline;text-underline-offset:3px}.relationship-table td{max-width:260px;overflow-wrap:anywhere}
.relationship-table small{display:block;margin-top:5px}.relationship-table tbody tr:hover{background:#f6f8f3}
.relationship-table-scroll:focus-visible{outline:2px solid #244f40;outline-offset:3px}

.relationship-table .table-company{display:flex;align-items:center;gap:8px;min-width:130px}
.relationship-table .table-company .entity-mark{width:32px;height:32px;min-width:32px;flex:0 0 32px;border-radius:5px;font-size:10px}
.relationship-table .table-company .entity-mark img{width:100%;height:100%;object-fit:contain}

#map-share-toggle[hidden]{display:none!important}
