:root { --ink:#17231f; --muted:#70807a; --line:#dce4df; --paper:#f5f7f3; --card:#fff; --green:#0b6b55; --soft:#e5f0e9; --amber:#9a6d18; --red:#a4483c; --shadow:0 16px 40px rgba(27,53,42,.07); }
* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--paper); font:14px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; } button,input,select { font:inherit; } button { cursor:pointer; }
.app-shell { display:flex; min-height:100vh; } .sidebar { width:236px; flex:0 0 236px; padding:28px 18px 20px; background:#102d25; color:#dcebe2; display:flex; flex-direction:column; } .brand { display:flex; gap:11px; align-items:center; padding:0 10px 32px; } .brand strong { display:block; font-size:16px; letter-spacing:.04em; } .brand small { display:block; color:#8ca99d; font-size:9px; letter-spacing:.1em; margin-top:2px; } .brand-mark { display:grid; place-items:center; width:34px; height:34px; color:#102d25; background:#d3e7d6; border-radius:9px; font:700 13px Georgia,serif; }
.sidebar-label,.eyebrow { color:#8ca99d; font-size:10px; letter-spacing:.15em; font-weight:700; text-transform:uppercase; } .sidebar-label { padding:0 12px 10px; } nav { display:grid; gap:4px; } .nav-item { border:0; background:transparent; color:#acc1b8; text-align:left; padding:11px 12px; border-radius:8px; display:flex; justify-content:space-between; transition:.2s; } .nav-item:hover,.nav-item.active { color:#fff; background:#1c4b3e; } .nav-item span { color:#719586; } .sidebar-foot { margin-top:auto; color:#c3d3ca; font-size:12px; padding:16px 11px; border-top:1px solid #2a4b41; } .sidebar-foot small { color:#79978b; font-size:10px; } .status-dot { display:inline-block; width:7px; height:7px; background:#69c48a; border-radius:50%; margin-right:6px; }
.main-content { flex:1; min-width:0; } .topbar { display:flex; justify-content:space-between; align-items:flex-start; padding:38px 5.5% 25px; background:#fff; border-bottom:1px solid var(--line); } h1,h2,h3,p { margin-top:0; } h1 { margin-bottom:0; font:600 clamp(25px,3vw,34px)/1.15 Georgia,serif; letter-spacing:-.035em; } h2 { font:600 23px Georgia,serif; margin-bottom:5px; } h3 { font-size:16px; margin-bottom:4px; } .eyebrow { color:var(--green); margin-bottom:9px; display:block; } .outline-button { background:#fff; color:var(--green); border:1px solid #b8cfc3; border-radius:20px; padding:8px 14px; font-size:12px; } .outline-button span { color:var(--muted); margin-left:6px; }
.content { max-width:1380px; margin:auto; padding:29px 5.5% 60px; } .view-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:22px; } .view-head p { color:var(--muted); margin-bottom:0; } .metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:24px; } .metric,.panel,.person-card,.industry-card { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); } .metric { padding:17px 18px; } .metric .label { color:var(--muted); font-size:12px; } .metric strong { display:block; font:600 31px Georgia,serif; margin:5px 0 2px; } .metric small { color:var(--green); font-size:11px; } .grid-2 { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:18px; } .panel { padding:20px; margin-bottom:18px; } .panel-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:17px; } .panel-title h3 { margin:0; } .muted { color:var(--muted); } .notice { border-left:3px solid #c99b49; background:#fffaf0; padding:13px 15px; border-radius:7px; color:#6e5728; font-size:12px; }
.toolbar { display:flex; gap:9px; flex-wrap:wrap; margin-bottom:16px; } input,select { background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:7px; padding:9px 11px; outline:none; } input:focus,select:focus,button:focus-visible { outline:3px solid rgba(29,126,95,.2); outline-offset:2px; } input { min-width:230px; flex:1; } .person-list { display:grid; gap:9px; } .person-card { display:flex; align-items:center; gap:14px; padding:14px 16px; box-shadow:none; } .person-card:hover { border-color:#a5c4b4; } .avatar { display:grid; place-items:center; flex:0 0 40px; height:40px; background:var(--soft); color:var(--green); border-radius:50%; font:600 16px Georgia,serif; } .person-main { min-width:0; flex:1; } .person-name { appearance:none; background:none; border:0; padding:0; color:var(--ink); cursor:pointer; font:700 15px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; } .person-name:hover { color:var(--green); text-decoration:underline; } .person-main p { color:var(--muted); margin:1px 0 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .person-meta { text-align:right; color:var(--muted); font-size:11px; } .person-meta b { color:var(--green); display:block; font-weight:600; margin-bottom:2px; } .directory-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; font-size:12px; } .directory-footer .outline-button { cursor:pointer; border-radius:7px; } .tag { display:inline-block; padding:2px 7px; border-radius:10px; font-size:10px; background:#eef4f0; color:var(--green); margin-right:4px; } .tag.warn { color:var(--amber); background:#fbf2dd; } .tag.danger { color:var(--red); background:#f9e9e5; } .change-list { display:grid; gap:12px; } .change-row { display:flex; gap:10px; align-items:start; border-bottom:1px solid #edf1ee; padding-bottom:10px; } .change-row:last-child { border:0; padding-bottom:0; } .change-icon { width:25px; height:25px; border-radius:50%; display:grid; place-items:center; color:var(--green); background:var(--soft); font-size:13px; } .change-row p { margin:0; font-size:12px; } .change-row small { color:var(--muted); }
.avatar { overflow:hidden; } .avatar img { width:100%; height:100%; object-fit:cover; } .avatar-large { width:72px; height:72px; margin-bottom:12px; font-size:26px; } .person-facts { display:block; color:#80918a; font-size:11px; margin-top:4px; } .person-meta span { display:block; white-space:nowrap; }
.timeline { border-left:1px solid #bfd5c9; padding-left:20px; display:grid; gap:17px; } .timeline-item { position:relative; } .timeline-item:before { content:""; position:absolute; width:8px; height:8px; border-radius:50%; background:var(--green); left:-25px; top:7px; box-shadow:0 0 0 4px #e5f0e9; } .timeline-item small { color:var(--green); font-weight:700; } .source-list { display:flex; gap:7px; flex-wrap:wrap; } .source { color:var(--muted); border:1px solid var(--line); border-radius:14px; padding:4px 9px; font-size:11px; } .empty { padding:27px; color:var(--muted); text-align:center; border:1px dashed #cbd8d1; border-radius:9px; } .industry-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; } .industry-card { padding:17px; } .industry-card strong { display:block; color:var(--green); font:600 28px Georgia,serif; } .bar { height:6px; background:#e4eee8; border-radius:4px; margin-top:14px; overflow:hidden; } .bar i { display:block; height:100%; background:var(--green); border-radius:4px; }
.profile-facts { display:flex; flex-wrap:wrap; gap:7px; color:var(--muted); font-size:12px; } .profile-facts span { padding:4px 8px; background:#f1f6f2; border-radius:5px; }
.biography-section { padding-top:20px; } .section-kicker { color:var(--green); font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; } .biography-lead { color:#30473e; font:500 16px/1.75 Georgia,serif; margin:10px 0 12px; } .profile-timeline-heading { color:var(--green); font-size:12px; font-weight:700; margin:18px 0 7px; } .profile-timeline { border-left:1px solid #bfd5c9; margin:0 0 4px 3px; padding-left:17px; display:grid; gap:12px; } .profile-timeline-item { position:relative; color:#344a42; font-size:13px; line-height:1.65; } .profile-timeline-item:before { content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:var(--green); left:-21px; top:8px; box-shadow:0 0 0 4px #e5f0e9; } .profile-date { color:var(--green); font-size:11px; font-weight:700; letter-spacing:.02em; margin-bottom:1px; } .profile-subsection { margin-top:20px; padding-top:15px; border-top:1px solid #edf1ee; } .profile-label { color:var(--muted); font-size:11px; font-weight:700; } .profile-subsection p { margin:5px 0 0; line-height:1.75; } .profile-source { margin-top:18px; padding:11px 13px; border-radius:8px; background:#f7faf7; color:var(--muted); font-size:11px; } .profile-source span { color:var(--green); font-weight:700; } .profile-source p { margin:4px 0 0; line-height:1.65; }
.drawer { position:fixed; inset:0; z-index:30; display:flex; justify-content:flex-end; background:rgba(16,45,37,.38); opacity:0; pointer-events:none; transition:opacity .2s ease; } .drawer.open { opacity:1; pointer-events:auto; } .drawer-card { position:relative; width:min(620px,100%); height:100%; overflow:auto; padding:32px; background:var(--card); box-shadow:-16px 0 42px rgba(27,53,42,.18); transform:translateX(100%); transition:transform .25s ease; } .drawer.open .drawer-card { transform:translateX(0); } .close { position:absolute; top:18px; right:20px; border:0; background:transparent; color:var(--muted); font-size:28px; line-height:1; } .detail-hero { padding-right:32px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:20px; } .detail-hero h2 { margin-bottom:8px; } .detail-section { padding:16px 0; border-bottom:1px solid #edf1ee; } .detail-section:last-of-type { border-bottom:0; }
.detail-back { margin:0 0 16px; padding:5px 0; border:0; color:var(--green); background:transparent; cursor:pointer; font-size:12px; font-weight:700; }
.detail-back:hover { color:#124b38; text-decoration:underline; }
.drawer-side-back { position:fixed; z-index:31; top:50%; right:min(620px,100vw); display:grid; width:28px; height:48px; padding:0; place-items:center; border:1px solid #b7d7c8; border-right:0; border-radius:8px 0 0 8px; color:var(--green); background:var(--card); box-shadow:-4px 4px 10px rgba(18,57,43,.1); cursor:pointer; font-size:19px; font-weight:700; line-height:1; transform:translateY(-50%); }
.drawer-side-back:hover { color:#124b38; background:#f4faf6; }
@media (max-width:900px) { .sidebar { width:190px; flex-basis:190px; } .metrics { grid-template-columns:repeat(2,1fr); } .grid-2 { grid-template-columns:1fr; } .industry-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px) { .app-shell { display:block; } .sidebar { width:auto; padding:15px 14px 10px; } .brand { padding:0 5px 15px; } nav { display:flex; overflow:auto; gap:5px; } .nav-item { flex:0 0 auto; padding:8px 10px; } .nav-item span,.sidebar-label,.sidebar-foot { display:none; } .topbar { padding:25px 20px 20px; align-items:center; } .topbar .outline-button { padding:6px 9px; } .topbar .outline-button span { display:none; } .content { padding:23px 20px 45px; } .metrics { gap:9px; } .metric { padding:13px; } .metric strong { font-size:25px; } .metric small { font-size:10px; } .person-meta { display:none; } .industry-grid { grid-template-columns:1fr; } .compare-selects,.compare-inputs { display:grid; grid-template-columns:1fr; } .compare-table { font-size:12px; } .compare-table th,.compare-table td { padding:8px 6px; } .drawer-card { padding:25px 20px; } .drawer-side-back { width:24px; height:42px; font-size:17px; } }

/* The periodic personnel-change feed is a top-level band above the directory. */
.grid-2 { grid-template-columns:1fr; }
.grid-2 > aside { grid-row:1; }
.grid-2 > section { grid-row:2; }
.grid-2 > aside .change-list { grid-template-columns:repeat(3, minmax(0, 1fr)); align-items:start; }
.change-category-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.change-category { display:grid; align-content:start; gap:8px; border-top:1px solid #dfe9e3; padding-top:9px; min-width:0; }
.change-category .panel-title { display:block; margin-bottom:5px; }
.change-category .panel-title h3 { margin:0 0 3px; }
.change-category .panel-title .muted { display:block; line-height:1.35; }
.text-button { display:block; border:0; background:transparent; color:#1e7654; cursor:pointer; font-size:11px; font-weight:700; white-space:nowrap; padding:2px 0; margin-top:4px; }
.text-button:hover { color:#124b38; text-decoration:underline; }
.change-event-list { display:grid; gap:10px; }
.change-event { border:1px solid #dfe9e3; border-radius:8px; padding:8px 9px; background:#fbfdfb; }
.change-event { height:136px; display:flex; flex-direction:column; overflow:hidden; }
.change-event-head { display:flex; justify-content:space-between; align-items:center; gap:5px; }
.change-event-head strong { font-size:13px; }
.change-person-link { border:0; padding:0; color:var(--ink); background:transparent; cursor:pointer; font:inherit; font-weight:700; }
.change-person-link:hover { color:var(--green); text-decoration:underline; }
.change-person-link:focus-visible { outline:2px solid var(--green); outline-offset:3px; border-radius:3px; }
.change-event p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:3px 0; color:#355449; font-size:11px; line-height:1.35; }
.change-event small { display:block; color:#7a9187; font-size:10px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.change-event .source { display:inline-block; width:max-content; max-width:100%; margin-top:auto; font-size:10px; padding:2px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compare-inputs { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; }
.compare-inputs label { display:grid; gap:6px; color:var(--ink); font-weight:700; }
.compare-input { width:100%; min-width:0; }
.compare-hint { color:var(--muted); font-size:12px; margin:10px 0 16px; }
.compare-table { width:100%; margin:0; border-collapse:collapse; table-layout:fixed; }
.compare-table th,.compare-table td { padding:11px 12px; border-bottom:1px solid #e5ece7; text-align:left; vertical-align:top; }
.compare-table thead th { color:var(--green); background:#f2f7f3; }
.compare-table thead th:not(:first-child) { text-align:center; }
.compare-table th:first-child,.compare-table td:first-child { width:18%; }
.compare-table th:nth-child(2),.compare-table td:nth-child(2),.compare-table th:nth-child(3),.compare-table td:nth-child(3) { width:41%; }
.compare-table tbody th { color:var(--muted); font-weight:600; }
.compare-timeline { margin:0; padding-left:16px; display:grid; gap:5px; }
.compare-timeline li { padding-left:2px; }
.compare-timeline b { color:var(--green); font-size:11px; margin-right:6px; }
.compare-timeline span { color:var(--ink); }
.compare-history-more { margin-top:8px; border-top:1px dashed #d9e5de; padding-top:6px; }
.compare-history-more summary { color:var(--green); cursor:pointer; font-size:11px; }
@media (max-width:900px) { .change-category-grid { grid-template-columns:1fr; } }

/* Keep the primary navigation at the top while the records area scrolls. */
.app-shell { display:block; }
.sidebar { position:sticky; top:0; z-index:20; width:100%; min-height:0; height:auto; padding:12px 24px; flex-direction:row; align-items:center; gap:22px; box-shadow:0 4px 18px rgba(16,45,37,.12); }
.brand { padding:0; flex:0 0 auto; }
.sidebar-label { display:none; }
.sidebar nav { display:flex; flex:1; min-width:0; gap:4px; overflow-x:auto; }
.nav-item { flex:0 0 auto; white-space:nowrap; }
.sidebar-foot { margin:0 0 0 auto; padding:8px 0 8px 16px; border-top:0; border-left:1px solid #2a4b41; white-space:nowrap; }
.metrics { grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width:620px) {
  .sidebar { gap:10px; padding:10px 14px; }
  .brand small { display:none; }
  .sidebar nav { gap:3px; }
}
@media (max-width:900px) { .metrics { grid-template-columns:repeat(2, minmax(0,1fr)); } }

/* Change collections: compact controls, concise conclusions, and stable card rhythm. */
.collection-panel { min-width:0; }
.collection-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 15px; margin-bottom:13px; border:1px solid #dfe9e3; border-radius:9px; background:#f7faf8; }
.collection-summary > div:first-child { min-width:0; }
.collection-summary b { display:block; color:var(--green); font-size:12px; margin-bottom:3px; }
.collection-summary span { color:var(--muted); font-size:12px; line-height:1.55; }
.collection-summary-count { flex:0 0 auto; text-align:right; }
.collection-summary-count strong { display:block; color:var(--green); font:600 24px Georgia,serif; }
.collection-summary-count small { color:var(--muted); font-size:10px; white-space:nowrap; }
.collection-attention { display:grid; gap:9px; padding:11px 13px; margin:0 0 13px; border:1px solid #e6d5a9; border-radius:9px; background:#fffaf0; }
.collection-attention > div:first-child { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; }
.collection-attention b { color:#795b22; font-size:12px; }
.collection-attention span { color:#8b7852; font-size:11px; }
.attention-list { display:flex; gap:7px; flex-wrap:wrap; }
.attention-person { display:flex; align-items:baseline; gap:6px; padding:5px 8px; border:1px solid #ead9b2; border-radius:6px; color:#6e5728; background:#fff; cursor:pointer; }
.attention-person:hover { border-color:#c99b49; background:#fffdf7; }
.attention-person strong { font-size:12px; }
.attention-person span { color:#8b7852; font-size:10px; }
.collection-toolbar { margin-bottom:11px; }
.collection-toolbar input { min-width:240px; }
.collection-conclusion { padding:9px 11px; margin-bottom:12px; border-left:3px solid #d0a348; background:#fffaf0; font-size:12px; line-height:1.55; }
.collection-sentinel { height:1px; }
.collection-load-hint { padding:10px 0 2px; color:var(--muted); text-align:center; font-size:11px; }
@media (max-width:620px) {
  .collection-summary { align-items:flex-start; padding:11px 12px; }
  .collection-summary-count strong { font-size:20px; }
  .collection-toolbar input { min-width:180px; }
}

/* Compact yearly/monthly statistics table for change collections. */
.collection-stats-wrap { margin:0 0 14px; border:1px solid #dfe9e3; border-radius:9px; overflow:hidden; background:#fbfdfb; }
.collection-stats-heading { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:10px 12px; border-bottom:1px solid #e5eee8; color:var(--muted); font-size:11px; }
.collection-stats-heading b { color:var(--ink); font-size:12px; }
.stats-mode-toggle { display:inline-flex; padding:2px; border:1px solid #d5e3da; border-radius:6px; background:#f3f8f4; }
.stats-mode-button { border:0; border-radius:4px; padding:3px 7px; color:var(--muted); background:transparent; cursor:pointer; font-size:10px; }
.stats-mode-button.is-active { color:var(--green); background:#fff; box-shadow:0 1px 3px rgba(27,53,42,.1); font-weight:700; }
.stats-clear { margin-left:auto; border:0; background:transparent; color:var(--green); cursor:pointer; font-size:11px; padding:2px 0; }
.stats-more { border:1px solid #c9ddd0; border-radius:5px; padding:3px 8px; color:var(--green); background:#fff; cursor:pointer; font-size:10px; }
.stats-more:hover { border-color:var(--green); background:#f3f8f4; }
.collection-stats-scroll { overflow-x:auto; }
.collection-stats { width:100%; min-width:860px; border-collapse:collapse; font-size:11px; }
.collection-stats th,.collection-stats td { padding:6px 8px; border-right:1px solid #edf2ee; border-bottom:1px solid #edf2ee; text-align:center; white-space:nowrap; }
.collection-stats thead th { color:var(--muted); background:#f3f8f4; font-weight:600; }
.collection-stats tbody th { color:var(--muted); font-weight:600; background:#fafcfb; }
.collection-stats tr:last-child th,.collection-stats tr:last-child td { border-bottom:0; }
.collection-stats th:last-child,.collection-stats td:last-child { border-right:0; }
.collection-stats tr.is-selected th,.collection-stats tr.is-selected td { background:#edf7f0; }
.stats-button { border:0; padding:1px 3px; color:var(--green); background:transparent; cursor:pointer; font:inherit; }
.stats-button:hover,.stats-button:focus-visible { color:#124b38; text-decoration:underline; }
.stats-total { font-weight:700; }

/* Rank shortcuts and proportional directory controls. */
.rank-summary { display:grid; grid-template-columns:repeat(4, minmax(118px, 1fr)); gap:9px; margin:-3px 0 13px; overflow-x:auto; }
.rank-summary-button { min-width:118px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 7px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--card); cursor:pointer; text-align:left; }
.rank-summary-button span { color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-summary-button strong { color:var(--green); font:600 20px Georgia,serif; }
.rank-summary-button small { grid-column:1 / -1; color:var(--muted); font-size:10px; }
.rank-summary-button:hover,.rank-summary-button.is-active { border-color:var(--green); background:var(--soft); }
.rank-summary-button.is-active { box-shadow:inset 0 0 0 1px var(--green); }
.rank-summary-total { margin:-7px 0 13px; color:var(--muted); font-size:11px; }
.rank-summary-total b { color:var(--green); }
.core-decision-summary { margin:0 0 14px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#f8fbf9; }
.core-decision-summary .panel-title { margin-bottom:8px; }
.core-decision-grid { display:grid; grid-template-columns:repeat(5, minmax(180px, 1fr)); gap:9px; overflow-x:auto; }
.core-decision-card { min-width:180px; padding:10px 11px; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.core-decision-card b,.core-decision-card strong,.core-decision-card span { display:block; }
.core-decision-card b { font-size:12px; color:var(--text); }
.core-decision-card strong { margin:3px 0 5px; color:var(--green); font:600 20px Georgia,serif; }
.core-decision-card span { color:var(--muted); font-size:11px; line-height:1.5; }
.native-place-summary { margin:0 0 14px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--soft); }
.native-place-grid { display:grid; grid-template-columns:repeat(4, minmax(260px, 1fr)); gap:10px; overflow-x:auto; }
.native-place-section { min-width:0; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:var(--card); }
.native-place-section .panel-title { margin-bottom:5px; }
.native-place-section h4 { margin:0; font-size:15px; }
.native-place-list { margin-top:8px; }
.native-place-list > b { color:var(--green); font-size:11px; }
.native-place-section ol { margin:0; padding-left:22px; }
.native-place-section li { display:flex; justify-content:space-between; gap:8px; padding:3px 0; color:var(--muted); font-size:12px; }
.native-place-filter { padding:0; border:0; background:transparent; color:inherit; cursor:pointer; text-align:left; font:inherit; }
.native-place-filter:hover { color:var(--green); text-decoration:underline; }
.native-place-section li strong { color:var(--green); white-space:nowrap; }
.native-place-section details { margin-top:7px; border-top:1px solid var(--line); padding-top:6px; }
.native-place-section summary { color:var(--green); cursor:pointer; font-size:12px; }
.directory-toolbar { display:grid; grid-template-columns:minmax(180px, 2.1fr) minmax(110px, .85fr) minmax(140px, 1.1fr) minmax(120px, .9fr) minmax(210px, 1.55fr); align-items:center; gap:9px; }
.directory-toolbar input,.directory-toolbar select { width:100%; min-width:0; }
@media (max-width:1050px) { .directory-toolbar { grid-template-columns:minmax(190px, 2fr) repeat(3, minmax(115px, 1fr)); } .directory-toolbar input { grid-column:span 2; } }
@media (max-width:620px) { .directory-toolbar { grid-template-columns:repeat(2, minmax(0, 1fr)); } .directory-toolbar input { grid-column:1 / -1; } }
.archive-summary { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.archive-summary > div { display:grid; gap:3px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--soft); }
.archive-summary b { color:var(--green); font-size:12px; }
.archive-summary strong { font:600 26px Georgia,serif; }
.archive-summary span { color:var(--muted); font-size:11px; }
.archive-rank-card { display:grid; gap:3px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); text-align:left; transition:.18s ease; }
.archive-rank-card:hover,.archive-rank-card.is-active { border-color:#8dbda8; background:#f0f7f2; }
.archive-rank-card b { color:var(--green); }
.archive-rank-card strong { font-size:26px; }
.archive-rank-card span { font-size:11px; }
.archive-analysis-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.archive-analysis-list { min-width:0; }
.archive-analysis-list > b { color:var(--green); font-size:12px; }
.archive-analysis-list ol { margin:8px 0 0; padding-left:21px; }
.archive-analysis-list li { display:flex; justify-content:space-between; gap:10px; padding:5px 0; border-bottom:1px solid #edf1ee; color:var(--muted); font-size:11px; }
.archive-analysis-list li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.archive-analysis-list li strong { color:var(--green); white-space:nowrap; }
.archive-stat-row { display:flex; justify-content:space-between; gap:10px; width:100%; padding:0; border:0; background:transparent; color:inherit; text-align:left; font-size:inherit; }
.archive-stat-row:hover,.archive-stat-row.is-active { color:var(--green); }
.archive-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:11px; }
.archive-pending-section summary { display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; list-style:none; }
.archive-pending-section summary::-webkit-details-marker { display:none; }
.archive-pending-section summary > span:first-child { display:grid; gap:4px; }
.archive-pending-section summary small { color:var(--muted); font-weight:400; }
.archive-pending-section summary::after { content:'展开'; color:var(--muted); font-size:.85rem; margin-left:auto; }
.archive-pending-section[open] summary::after { content:'收起'; }
.archive-pending-content { margin-top:16px; }
.archive-card { min-width:0; padding:13px 14px; border:1px solid var(--line); border-radius:9px; background:var(--card); }
.archive-card-pending { border-color:#ead9b2; background:#fffdf7; }
.archive-card-head { display:flex; justify-content:space-between; align-items:start; gap:9px; }
.archive-card-head h3 { display:inline-block; margin:0 7px 0 0; }
.archive-person-link { padding:0; border:0; background:transparent; color:var(--ink); cursor:pointer; font:inherit; font-weight:700; }
.archive-person-link:hover { color:var(--green); text-decoration:underline; }
.archive-card-head time { color:var(--muted); font-size:10px; white-space:nowrap; }
.archive-position { margin:7px 0 3px; color:var(--ink); font-size:12px; line-height:1.5; }
.archive-card .source-list { margin-top:9px; }
@media (max-width:900px) { .archive-analysis-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .archive-summary,.archive-grid { grid-template-columns:1fr; } }
.tag.core-leadership { font-weight:700; border:1px solid rgba(15,118,92,.24); }
.tag.core-leadership.standing { color:#075f49; background:#dcefe7; border-color:#79b99f; }
.tag.core-leadership.member { color:#176b59; background:#e5f2ed; }
.tag.core-leadership.historical { color:#6b5a24; background:#f5efd9; border-color:#d8c78c; }
.tag-button { appearance:none; cursor:pointer; font:inherit; font-size:10px; line-height:1.4; padding:1px 5px; }
.tag-button:hover { filter:brightness(.96); box-shadow:0 0 0 2px rgba(29,126,95,.12); }
.tag-button { border:0; box-shadow:none; vertical-align:middle; margin-left:6px; }
.tag-button:hover { box-shadow:none; }
.tag.core-leadership { border:0; }

/* Four-tier public power-system map. */
.power-network-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#f8fbf9; }
.network-root { display:grid; gap:2px; padding:13px 17px; border:1px solid #79b99f; border-radius:10px; color:#075f49; background:#e5f2ed; }
.network-root span { font-weight:700; }
.network-root small { color:var(--muted); font-size:11px; }
.network-legend { display:flex; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:11px; }
.network-dot { display:inline-block; width:8px; height:8px; margin-right:4px; border-radius:50%; background:#79b99f; }
.network-dot.tier-2 { background:#9cb8d0; } .network-dot.tier-3 { background:#c6a568; } .network-dot.tier-4 { background:#bd9cbd; }
.power-network { display:grid; gap:14px; position:relative; }
.power-tier { position:relative; display:grid; grid-template-columns:215px minmax(0,1fr); gap:14px; padding:15px; border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:var(--shadow); }
.power-tier:before { content:""; position:absolute; left:23px; top:-15px; height:15px; border-left:2px solid #cbded4; }
.power-tier:first-child:before { display:none; }
.power-tier-label { display:flex; align-items:flex-start; gap:10px; padding:3px 8px 0 0; }
.power-tier-label > span { flex:0 0 auto; padding:3px 7px; border-radius:5px; color:#fff; background:#79b99f; font-size:10px; font-weight:700; }
.power-tier-label h3 { margin:0; font-size:15px; } .power-tier-label small { color:var(--muted); font-size:11px; }
.power-tier.tier-2 .power-tier-label > span { background:#779dbb; } .power-tier.tier-3 .power-tier-label > span { background:#ae8c4c; } .power-tier.tier-4 .power-tier-label > span { background:#9b719b; }
.power-node-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; }
.power-node { min-width:0; padding:12px; border:1px solid var(--line); border-radius:9px; background:#fbfdfb; }
.power-node-head { display:flex; gap:8px; align-items:flex-start; min-height:54px; }
.network-node-dot { flex:0 0 10px; width:10px; height:10px; margin-top:5px; border-radius:50%; background:#79b99f; box-shadow:0 0 0 4px #e5f2ed; }
.tier-2 .network-node-dot { background:#779dbb; box-shadow:0 0 0 4px #e8f0f6; } .tier-3 .network-node-dot { background:#ae8c4c; box-shadow:0 0 0 4px #f6f0e3; } .tier-4 .network-node-dot { background:#9b719b; box-shadow:0 0 0 4px #f1eaf1; }
.power-node h4 { margin:0 0 2px; font-size:13px; line-height:1.4; } .power-node-head p { margin:0; color:var(--muted); font-size:10px; line-height:1.4; }
.network-institution-link { display:block; padding:0; border:0; color:var(--ink); background:transparent; text-align:left; cursor:pointer; font:700 13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.network-institution-link:hover { color:var(--green); text-decoration:underline; }
.network-person-list { display:grid; gap:5px; margin-top:9px; padding-top:8px; border-top:1px solid #e7eee9; }
.network-person-label { color:var(--muted); font-size:10px; }
.network-person-link { display:grid; grid-template-columns:auto 1fr; gap:7px; align-items:baseline; width:100%; padding:3px 0; border:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.network-person-link:hover strong { color:var(--green); text-decoration:underline; } .network-person-link strong { font-size:11px; white-space:nowrap; } .network-person-link span { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.network-notice { margin-top:14px; }
.institution-hero h2 { margin:3px 0 8px; }
.institution-intro { color:#30473e; font:500 16px/1.75 Georgia,serif; }
.institution-member-list { display:grid; gap:7px; }
.institution-member { display:grid; grid-template-columns:82px minmax(0,1fr); gap:9px; align-items:baseline; width:100%; padding:9px 10px; border:1px solid #e0ebe4; border-radius:7px; color:var(--ink); background:#fbfdfb; text-align:left; cursor:pointer; }
.institution-member:hover { border-color:#9cc8b5; background:#f4faf6; }
.institution-member strong { color:var(--green); font-size:13px; }
.institution-member span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.institution-member-note { margin:10px 0 0; font-size:11px; }
.institution-system-overview { margin-top:18px; }
.institution-system-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.institution-system-card { min-height:146px; padding:15px; border:1px solid #d7e5dd; border-radius:10px; color:var(--ink); background:#fbfdfb; text-align:left; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.institution-system-card:hover { border-color:#79b99f; box-shadow:0 8px 18px rgba(22,75,56,.09); transform:translateY(-1px); }
.institution-system-card > span { display:inline-block; padding:3px 7px; border-radius:999px; color:#176b59; background:#e5f2ed; font-size:10px; font-weight:700; }
.institution-system-card h4 { margin:10px 0 5px; font-size:14px; line-height:1.45; }
.institution-system-card p { min-height:34px; margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.institution-system-card small { display:block; margin-top:9px; color:#557065; font-size:10px; }
.institution-directory-list { display:grid; gap:7px; }
.institution-directory-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; width:100%; padding:10px 11px; border:1px solid #e0ebe4; border-radius:7px; color:var(--ink); background:#fbfdfb; text-align:left; cursor:pointer; }
.institution-directory-item:hover { border-color:#9cc8b5; background:#f4faf6; }
.institution-directory-item strong { overflow:hidden; color:var(--green); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.institution-directory-item span { color:var(--muted); font-size:11px; white-space:nowrap; }
@media (max-width:800px) { .power-network-intro { align-items:flex-start; flex-direction:column; } .power-tier { grid-template-columns:1fr; } .power-tier:before { left:23px; } }
@media (max-width:800px) { .institution-system-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .institution-member { grid-template-columns:66px minmax(0,1fr); } .institution-system-grid { grid-template-columns:1fr; } .institution-directory-item { grid-template-columns:1fr; gap:4px; } }

/* Responsive reading layout: preserve complete public-record content on touch devices. */
html { overflow-x:hidden; }
.compare-table-scroll { overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
.compare-table-scroll:focus-visible { outline:3px solid rgba(29,126,95,.2); outline-offset:3px; }
.compare-table { min-width:720px; }
.grid-2 > * { min-width:0; }
.rank-summary { min-width:0; }
.person-main p { white-space:normal; overflow:visible; text-overflow:clip; }
.person-facts,.institution-member span,.institution-directory-item strong,.institution-directory-item span { white-space:normal; overflow:visible; text-overflow:clip; }

@media (min-width:621px) and (max-width:900px) {
  .topbar,.content { padding-left:4.5%; padding-right:4.5%; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-2 { grid-template-columns:minmax(0,1fr); }
  .directory-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .directory-toolbar input { grid-column:1 / -1; }
  .archive-analysis-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .institution-system-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width:901px) and (max-width:1180px) {
  .topbar,.content { padding-left:4%; padding-right:4%; }
  .directory-toolbar { grid-template-columns:minmax(180px,2fr) repeat(3,minmax(110px,1fr)); }
  .directory-toolbar input { grid-column:span 2; }
  .archive-analysis-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:620px) {
  body { font-size:14px; line-height:1.65; }
  .sidebar { position:sticky; padding:calc(9px + env(safe-area-inset-top)) 12px 9px; gap:8px; }
  .brand { padding-left:2px; }
  .brand strong { font-size:14px; }
  .brand-mark { width:32px; height:32px; }
  .sidebar nav { scroll-snap-type:x proximity; padding:1px 2px 4px; }
  .nav-item { min-height:44px; padding:10px 12px; scroll-snap-align:start; }
  .nav-item.active { box-shadow:inset 0 -2px 0 #9ed5b8; }
  .topbar { align-items:flex-start; flex-wrap:wrap; gap:12px; padding:22px 18px 18px; }
  .topbar .outline-button { min-height:40px; }
  h1 { font-size:28px; }
  h2 { font-size:21px; }
  .content { padding:19px 14px 40px; }
  .view-head { align-items:flex-start; flex-direction:column; gap:7px; margin-bottom:16px; }
  .grid-2 { grid-template-columns:minmax(0,1fr); }
  .metrics,.industry-grid,.archive-summary,.archive-grid,.archive-analysis-grid,.institution-system-grid { grid-template-columns:1fr; }
  .metric,.panel { padding:15px; }
  .metric strong { font-size:27px; }
  .panel-title { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .toolbar { display:grid; grid-template-columns:1fr; gap:8px; }
  input,select,.toolbar input,.collection-toolbar input { min-width:0; min-height:44px; width:100%; }
  .directory-toolbar { grid-template-columns:1fr; }
  .directory-toolbar input { grid-column:auto; }
  .person-card { align-items:flex-start; gap:11px; padding:14px; }
  .person-name { min-height:30px; text-align:left; }
  .person-main p { margin-top:5px; line-height:1.55; }
  .person-facts { line-height:1.55; }
  .tag-button { min-height:28px; margin:3px 3px 0 0; padding:3px 6px; }
  .directory-footer { align-items:stretch; flex-direction:column; }
  .directory-footer .outline-button { min-height:44px; }
  .collection-summary { align-items:flex-start; flex-direction:column; gap:8px; }
  .collection-summary-count { text-align:left; }
  .collection-stats-wrap::after,.compare-table-scroll::after { content:'左右滑动查看完整表格'; display:block; padding:7px 11px; border-top:1px solid #e5eee8; color:var(--muted); font-size:11px; }
  .collection-stats-scroll,.compare-table-scroll { margin-inline:-15px; padding-inline:15px; }
  .rank-summary,.core-decision-grid,.native-place-grid { padding-bottom:4px; scroll-snap-type:x proximity; }
  .rank-summary-button,.core-decision-card,.native-place-section { scroll-snap-align:start; }
  .power-tier { padding:13px; }
  .power-node-grid { grid-template-columns:1fr; }
  .power-node-head { min-height:0; }
  .network-person-link { min-height:34px; align-items:start; }
  .network-person-link strong,.network-person-link span { white-space:normal; overflow:visible; text-overflow:clip; }
  .institution-member { grid-template-columns:1fr; gap:4px; min-height:44px; align-items:start; }
  .institution-directory-item { min-height:44px; }
  .drawer-card { width:100%; padding:calc(22px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
  .close { display:grid; place-items:center; width:44px; height:44px; top:10px; right:8px; }
  .detail-hero { padding-right:40px; }
  .drawer-side-back { right:calc(100% - 24px); width:24px; min-height:44px; }
  .compare-inputs { grid-template-columns:1fr; }
  .compare-table { min-width:680px; font-size:13px; }
  .compare-table th,.compare-table td { padding:10px; }
}
