main.organization-page { display: block; container-type: inline-size; }
.org-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.org-title-row h1 { font-size: 32px; line-height: 1.18; font-weight: 700; }
.org-example { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.org-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.org-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.org-modes button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 24px; background: var(--brand-neutral-100); color: var(--muted); font: inherit; font-size: 13px; line-height: 1.6; font-weight: 600; }
.org-modes button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.org-modes button:hover { text-decoration: underline; text-underline-offset: 4px; }
.org-search { display: flex; align-items: center; gap: 8px; min-width: 240px; width: 328px; max-width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--brand-neutral-600); border-radius: 6px; }
.org-search[hidden] { display: none; }
.org-search:focus-within { border: 2px solid var(--blue); padding-inline: 11px; }
.org-search > svg { width: 18px; height: 18px; color: var(--muted); }
.org-search input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.6; }
.org-search input::placeholder { color: var(--muted); opacity: 1; }
.org-search input::-webkit-search-cancel-button { display: none; }
.org-search button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.org-search button[hidden] { display: none; }
.org-search button svg { width: 16px; height: 16px; }
.org-context h2, .org-legal h2 { margin: 0 0 12px; font-size: 24px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.org-context h2:focus { outline: none; }
.org-description { max-width: 80ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.org-root-leader { margin: 28px 0 24px; }
.org-person { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.org-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-neutral-200); color: var(--brand-neutral-700); font-size: 12px; font-weight: 600; }
.org-person-large .org-avatar { width: 56px; height: 56px; font-size: 18px; background: var(--brand-blue-100); color: var(--brand-blue-800); }
.org-person-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.org-person-copy strong { font-size: 14px; line-height: 1.5; font-weight: 650; }
.org-person-large .org-person-copy strong { font-size: 16px; }
.org-person-copy > span, .org-person-missing { color: var(--muted); font-size: 12px; line-height: 1.6; }
.org-person-large .org-person-copy > span { font-size: 14px; }
.org-tabs { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.org-tabs button { min-height: 48px; flex-shrink: 0; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.6; font-weight: 500; }
.org-tabs button[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.org-tabs button:hover { color: var(--brand-blue-700); }
.org-results { padding-top: 24px; }
.org-tree { list-style: none; margin: 0 0 0 28px; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.org-tree-item { position: relative; margin-bottom: 28px; }
.org-tree-item:last-child { margin-bottom: 0; }
.org-tree-item::before { content: ''; position: absolute; left: -28px; top: 26px; width: 20px; border-top: 1px solid var(--line); }
.org-branch summary { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 4px 16px; align-items: center; min-height: 64px; padding: 8px 0 16px; list-style: none; cursor: pointer; }
.org-branch summary::-webkit-details-marker { display: none; }
.org-branch summary > .org-person { grid-column: 1; }
.org-branch-label { grid-column: 1; margin-left: 48px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.org-branch summary > svg { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); }
.org-branch[open] summary > svg { transform: none; }
.org-branch summary:hover .org-person-copy strong { color: var(--brand-blue-700); }
.org-branch-body { background: var(--brand-neutral-50); padding: 20px; }
/* Three equal columns + two 32px gutters fill the branch; narrower containers use two or one. */
.org-unit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 32px; list-style: none; padding: 0; margin: 0; }
.org-unit-grid-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.org-unit-grid.org-unit-grid-single { grid-template-columns: minmax(0,1fr); }
.org-tree + .org-leaf-grid { margin-top: 32px; }
.org-unit-grid > li { min-width: 0; }
.org-unit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; overflow-wrap: anywhere; }
.org-unit-name { font-size: 14px; line-height: 1.5; font-weight: 600; }
.org-unit:hover .org-unit-name { color: var(--brand-blue-700); }
.org-unit-count { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.org-unit-count svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.org-branch-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-top: 16px; }
.org-text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.6; text-align: left; }
.org-text-button svg { width: 14px; height: 14px; }
.org-text-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.org-text-button:hover { color: var(--brand-blue-700); }
.org-open-branch { margin-left: auto; }
.org-empty { margin: 0; padding: 16px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.org-search-status { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.org-search-grid { gap: 32px; }
.org-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: -12px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.org-breadcrumbs button { min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--brand-blue-700); font: inherit; text-align: left; }
.org-breadcrumbs [aria-current] { color: var(--ink); }
.org-legal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; list-style: none; padding: 0; margin: 28px 0 0; }
.org-legal-card { display: flex; flex-direction: column; gap: 24px; width: 100%; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); font: inherit; text-align: left; }
.org-legal-name { font-family: Manrope,sans-serif; font-size: 18px; line-height: 1.4; font-weight: 650; }
.org-legal-open { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--brand-blue-700); font-size: 13px; line-height: 1.6; }
.org-legal-card:hover .org-legal-name { color: var(--brand-blue-700); }
.org-tabs button:focus-visible, .org-text-button:focus-visible, .org-breadcrumbs button:focus-visible, .org-modes button:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.org-unit:focus-visible { outline: none; }
.org-unit:focus-visible .org-unit-name { color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.org-loading { display: grid; gap: 16px; max-width: 640px; }
.org-loading span { height: 44px; background: var(--brand-neutral-100); border-radius: 4px; }
@container (max-width: 900px) {
  .org-title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .org-toolbar { flex-wrap: wrap; gap: 16px; }
  .org-search { flex: 1; }
  .org-unit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container (max-width: 550px) {
  .org-title-row h1 { font-size: 26px; line-height: 1.3; }
  .org-toolbar { margin-bottom: 28px; }
  .org-modes { flex-wrap: nowrap; width: 100%; }
  .org-modes button { flex: 1; padding-inline: 12px; font-size: 12px; }
  .org-search { flex-basis: 100%; width: 100%; min-width: 0; }
  .org-search input { font-size: 16px; }
  .org-search button { width: 44px; height: 44px; }
  .org-context h2, .org-legal h2 { font-size: 22px; }
  .org-root-leader { margin-block: 24px 20px; }
  .org-tabs { gap: 24px; }
  .org-tree { margin-left: 16px; padding-left: 16px; }
  .org-tree-item::before { left: -16px; width: 12px; }
  .org-branch-body { padding: 16px; }
  .org-unit-grid, .org-unit-grid-compact, .org-legal-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .org-branch-label { margin-left: 0; }
  .org-breadcrumbs button { min-height: 44px; }
}
