import { ArrowUpRight, CaretRight } from '@phosphor-icons/react'; import { useId, useState } from "react"; import ArrowLink from "../../components/ArrowLink.tsx"; import { mediaUrl } from "../../lib/media.ts"; import Logo from "../../components/Logo.tsx"; import PlatformIcon from "../../components/PlatformIcon.tsx"; import { areasSentence, initialsFor, orgPath, useOrganizations, byName, } from "../../lib/organizations.ts"; import { accentText } from '../../lib/color.ts' /* ═══════════════════════════════════════════════════════════════ ORGANIZATION LIST: VERTICAL A stack of organizations, each collapsed to a line and expandable for the rest. Every row carries two ways out: an arrow through to that organization's page on this site, and a labeled button out to its own site when it has one. Nothing here is region-specific. It asks for a kind and renders what comes back, so the same section lists partners or groups by changing one prop: org.details?.scope} /> Kind-specific extras (the areas a region covers, the groups inside it) come from `details` and render only when present, so a partner row simply doesn't have them. ═══════════════════════════════════════════════════════════════ */ const MUTED = "var(--color-muted)"; const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)"; const INK = "var(--color-body)"; const FALLBACK_COLOR = "#004c52"; /* ── Row button ─────────────────────────────────────────────── Deliberately a sibling of the summary button rather than inside it, a link nested in a button is invalid, and a screen reader announces the whole row as one confused control. ───────────────────────────────────────────────────────────── */ function RowButton({ as: As = "button", color, children, ...rest }: any) { return ( {children} ); } function OrgMark({ org, color }) { const fallback = org.color ? (