/* Political intelligence (#/politics) — the Tamil Nadu landscape. Uses the app tokens from premium.css only, so dark
   mode and the gold accent follow the rest of Athena. Party colours arrive as --c on the element. */
.po { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.po-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.po-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.po-card-h h3 { margin: 0; font-size: 15px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.po-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.po-pad { padding: 4px 2px; }
.po-note { margin: 0; font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.po-note.warn { color: var(--warn); }

/* status strip */
.po-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.po-strip > div { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.po-strip span { font-size: 12px; color: var(--text-3); }
.po-strip b { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; }
.po-strip b em { font-style: normal; font-size: 13px; color: var(--text-3); }
.po-strip b.po-small { font-size: 14px; font-weight: 600; }
.po-strip-act { flex-direction: row !important; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px !important; }
.po-strip-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.po-strip-sm b { font-size: 16px; }
.po-meter { display: block; height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.po-meter > i { display: block; height: 100%; background: var(--accent); }

/* tabs and party picker */
.po-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); }
.po-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; margin-bottom: -1px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.po-tabs a:hover { color: var(--text); }
.po-tabs a.on { color: var(--text); border-color: var(--accent); }
.po-body { display: flex; flex-direction: column; gap: 16px; }
.po-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.po-pick a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13px; }
.po-pick a.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: var(--text); }

/* party marks and net pills */
.po-dot { display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); flex: none; }
.po-logo { width: var(--s); height: var(--s); object-fit: contain; border-radius: 4px; flex: none; vertical-align: middle; }
.po-net { display: inline-flex; min-width: 38px; justify-content: center; padding: 2px 8px; border-radius: 999px; font: 650 12px/1.4 var(--font); font-variant-numeric: tabular-nums; }
.po-net.pos { background: color-mix(in srgb, var(--pos) 16%, transparent); color: var(--pos-ink); }
.po-net.neg { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg-ink); }
.po-net.mid { background: var(--surface-2); color: var(--text-2); }
.po-net.na { color: var(--text-3); }
.po-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; margin: 1px 3px 1px 0; border-radius: 6px; font: 600 11.5px/1.5 var(--font); font-variant-numeric: tabular-nums; }
.po-chip.f { background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos-ink); }
.po-chip.a { background: color-mix(in srgb, var(--neg) 11%, transparent); color: var(--neg-ink); }
.po-share { font: 600 12px var(--font); color: var(--text-2); }

/* tables */
.po-scroll { overflow-x: auto; }
.po-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.po-tbl.po-tight { min-width: 0; }
.po-tbl th { text-align: left; font: 600 11.5px/1.3 var(--font); color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.po-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-2, var(--line)); vertical-align: middle; }
.po-tbl tr:last-child td { border-bottom: 0; }
.po-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-party { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.po-party:hover b { text-decoration: underline; }
.po-acct { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; min-width: 0; }
.po-acct img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.po-acct span { display: flex; flex-direction: column; min-width: 0; }
.po-acct b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.po-acct small { color: var(--text-3); font-size: 11.5px; }
.po-acct:hover b { color: var(--accent-ink); }
.po-link { color: var(--text-2); font-size: 12.5px; }
.po-tone { display: inline-flex; width: 96px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); vertical-align: middle; }
.po-tone i { display: block; height: 100%; }
.po-tone .positive { background: var(--pos); } .po-tone .negative { background: var(--neg); } .po-tone .neutral { background: var(--text-3); opacity: .45; } .po-tone .mixed { background: var(--warn); }

/* who attacks whom */
.po-matrix { border-collapse: separate; border-spacing: 4px; font-size: 13px; min-width: 560px; width: auto; table-layout: fixed; }
.po-matrix tr { height: auto; }
.po-matrix th { font: 600 12px var(--font); color: var(--text-2); text-align: left; padding: 4px 8px; white-space: nowrap; }
.po-matrix td { text-align: center; padding: 8px 10px; height: 34px; border-radius: 8px; font-variant-numeric: tabular-nums; font-weight: 650; width: 96px; line-height: 1.2; vertical-align: middle; }
.po-matrix td.heat { display: table-cell; background: color-mix(in srgb, var(--neg) calc(var(--h) * 55%), var(--surface-2)); color: var(--text); }
.po-matrix td.self { background: color-mix(in srgb, var(--pos) 14%, var(--surface-2)); color: var(--pos-ink); }

/* party cards */
.po-pcard { text-decoration: none; color: inherit; border-top: 3px solid var(--c); }
.po-pcard:hover { box-shadow: var(--shadow-md, var(--shadow)); }
.po-mini { display: flex; flex-direction: column; gap: 6px; }
.po-mini span { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; }
.po-mini img { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.po-mini b { font-size: 13px; } .po-mini small { color: var(--text-3); font-size: 11.5px; grid-column: 2; }
.po-mini .po-net { grid-row: 1 / span 2; grid-column: 3; }

/* posts, keyword polarity, method */
.po-posts { display: flex; flex-direction: column; gap: 6px; }
.po-post { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 6px; border-radius: 10px; }
.po-post:hover { background: var(--surface-2); }
.po-post img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.po-post span { display: flex; flex-direction: column; min-width: 0; }
.po-post b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-post small { color: var(--text-3); font-size: 11.5px; }
.po-pol.f { border-left: 3px solid var(--pos); } .po-pol.a { border-left: 3px solid var(--neg); }
.po-method dl { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.po-method dt { color: var(--text-2); } .po-method dd { margin: 0; font-weight: 600; }
.po-setup { align-items: center; padding: 32px; }

/* Positive / Negative keywords and Government (owner, 6 Oct 2026) */
.po-pick a small { color: var(--text-3); font-weight: 500; font-size: 11.5px; }
.po-pick a .vz-face { flex: none; }
.po-kwhead { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--accent); }
.po-kwhead.f { border-left-color: var(--pos); } .po-kwhead.a { border-left-color: var(--neg); }
.po-kwt { display: flex; gap: 12px; align-items: flex-start; }
.po-kwt h2 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.po-kwt p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; max-width: 80ch; }
.po-kwic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft, var(--surface-2)); color: var(--accent-ink); }
.po-kwhead.f .po-kwic { color: var(--pos-ink); } .po-kwhead.a .po-kwic { color: var(--neg-ink); }
.po-kwks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.po-kwk { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.po-kwk small { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
.po-kwk b { font-size: 20px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.po-kwk span { color: var(--text-3); font-size: 11.5px; line-height: 1.35; }
.po-with, .po-tnote { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.po-with { color: var(--accent-ink); }
.po-gtbl { min-width: 980px; }
.po-gtbl td { vertical-align: top; }
.po-gwho { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.po-gwho > span { display: flex; flex-direction: column; min-width: 0; }
.po-gwho b { font-weight: 600; line-height: 1.3; } .po-gwho small { color: var(--text-3); font-size: 11.5px; line-height: 1.3; }
.po-gport { color: var(--text-2); font-size: 12.5px; line-height: 1.45; max-width: 300px; }
.po-gls { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.po-gl { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: 11.5px; background: var(--surface); transition: border-color .15s, transform .15s; }
.po-gl:hover { transform: translateY(-1px); border-color: var(--accent); }
.po-gl.ok { border-color: color-mix(in srgb, var(--pos) 55%, var(--line)); color: var(--pos-ink); }
.po-gl.wait { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent-ink); }
.po-gl.chk { border-style: dashed; color: var(--text-3); }
.po-gl b { font-weight: 600; color: var(--text); }
.po-gnone, .po-gfew { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.po-glean { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.po-glean em { position: relative; width: 54px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--neg) 30%, var(--surface-2)); overflow: hidden; }
.po-glean em::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--pos); border-radius: inherit; }
.po-glean b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.po-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.po-goff { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.po-goff.cmo { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.po-goff-h { display: flex; flex-direction: column; gap: 2px; }
.po-goff-h b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.po-goff-h small { color: var(--text-3); font-size: 11.5px; line-height: 1.35; }
.po-goff-l { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.po-gweb { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-gweb:hover { color: var(--accent-ink); }
.po-goff-s { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 8px; }

@media (max-width: 860px) {
  .po-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .po-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-strip-act { grid-column: 1 / -1; justify-content: flex-start; }
  .po-grid2 { grid-template-columns: 1fr; }
  .po-method dl { grid-template-columns: 1fr; }
}

/* Profile intelligence in a leader watch (events-profile.js) */
.pf { display: flex; flex-direction: column; gap: 16px; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pf-head h2 { margin: 0; font-size: 18px; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pf-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); border-top: 3px solid var(--c); background: var(--surface); color: inherit; text-decoration: none; }
.pf-card:hover { box-shadow: var(--shadow-md, var(--shadow)); }
.pf-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pf-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.pf-who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pf-who small { color: var(--text-3); font-size: 12px; }
.pf-big { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .pf-big span { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.pf-up { color: var(--pos-ink); font-weight: 600; } .pf-down { color: var(--neg-ink); font-weight: 600; } .pf-growth small { font-weight: 500; }
.pf-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12.5px; }
.pf-card dt { color: var(--text-3); } .pf-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .pf-card dd small { color: var(--text-3); font-weight: 500; }
.pf-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.pf-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-sec h3 { margin: 0; font-size: 14px; }
.pf-chart { height: 240px; position: relative; }
.pf-times { display: flex; flex-direction: column; gap: 8px; }
.pf-times div { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.pf-times i { display: block; height: 8px; border-radius: 4px; background: var(--accent); } .pf-times span { color: var(--text-3); white-space: nowrap; }
.pf-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pf-tops a { display: flex; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--c); color: inherit; text-decoration: none; min-width: 0; }
.pf-tops img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.pf-tops span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pf-tops small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pf-tags span { padding: 4px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; } .pf-tags small { color: var(--text-3); }
@media (max-width: 860px) { .pf-grid { grid-template-columns: 1fr; } }
/* Another state's view: accounts on X, Facebook and YouTube show the platform's mark instead of a picture */
.po-acct .po-net-ic, .po-mini .po-net-ic { width: 30px; height: 30px; grid-row: span 2; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.po-mini .po-net-ic { width: 28px; height: 28px; }
.po-acct .po-net-ic, .po-mini .po-net-ic { grid-template-columns: none; grid-template-rows: none; column-gap: 0; }

/* Karnataka cabinet performance — measured Instagram ranking beside minister/department news. */
.gp { display: flex; flex-direction: column; gap: 14px; }
.gp-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr); gap: 24px; align-items: center; padding: 24px 26px; background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 13%, var(--surface)) 0%, var(--surface) 48%, color-mix(in srgb, var(--pos) 7%, var(--surface)) 100%); }
.gp-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -100px; top: -140px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 11%, transparent); pointer-events: none; }
.gp-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.gp-hero h2 { margin: 7px 0 6px; max-width: 780px; font-size: clamp(23px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.gp-hero p { margin: 0; max-width: 760px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.gp-hero-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.gp-hero-actions small { color: var(--text-3); font-size: 10.5px; line-height: 1.45; }
.gp-kpis { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 9px; }
.gp-kpi { min-width: 0; display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.gp-kpi > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--accent-ink); background: var(--accent-soft, var(--surface-2)); }
.gp-kpi div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-kpi small, .gp-kpi em { color: var(--text-3); font-size: 10.5px; font-style: normal; line-height: 1.25; }
.gp-kpi b { font-size: 19px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-coverage { display: flex; gap: 9px; align-items: flex-start; padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text-2); font-size: 11.5px; line-height: 1.5; }
.gp-coverage svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.gp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gp-podium-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 128px; padding: 16px; text-align: left; color: inherit; font: inherit; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent) 7%, var(--surface))); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gp-podium-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-md, var(--shadow)); }
.gp-podium-card.place-1 { border-color: color-mix(in srgb, var(--accent) 62%, var(--line)); box-shadow: inset 0 3px 0 var(--accent); }
.gp-medal { position: absolute; right: 12px; top: 10px; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.gp-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.gp-avatar > i { font-style: normal; font-size: 15px; font-weight: 700; }
.gp-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-podium-card > .gp-avatar { width: 48px; height: 48px; }
.gp-podium-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gp-podium-copy > b { padding-right: 24px; font-size: 14px; line-height: 1.25; }
.gp-podium-copy > small { display: -webkit-box; overflow: hidden; color: var(--text-3); font-size: 10.5px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-podium-copy > strong { margin-top: 4px; color: var(--pos-ink); font-size: 20px; font-weight: 650; }
.gp-podium-copy > strong em { color: var(--text-3); font-size: 10px; font-style: normal; font-weight: 500; }
.gp-podium-copy > span { color: var(--text-2); font-size: 10.5px; }
.gp-up { color: var(--pos-ink); font-weight: 650; } .gp-down { color: var(--neg-ink); font-weight: 650; }
.gp-up small, .gp-down small { font-weight: 500; } .gp-na { color: var(--text-3); font-size: 11px; }
.gp-toolbar { align-items: flex-end; }
.gp-toolbar > div:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gp-search { display: flex; align-items: center; gap: 6px; min-width: 245px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text-3); }
.gp-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent); }
.gp-search input { width: 100%; height: 34px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.gp-toolbar select { height: 36px; max-width: 180px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); padding: 0 30px 0 10px; font: inherit; font-size: 12px; }
.gp-table-wrap { max-height: min(62vh, 620px); overflow: auto; border: 1px solid var(--line); border-radius: 11px; scrollbar-gutter: stable; overscroll-behavior: auto; }
.gp-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.gp-table thead { position: sticky; top: 0; z-index: 2; }
.gp-table th { padding: 10px 11px; text-align: left; color: var(--text-3); font-size: 10.5px; font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.gp-table td { padding: 9px 11px; vertical-align: middle; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.gp-table tr:last-child td { border-bottom: 0; }
.gp-table tbody tr { cursor: pointer; background: var(--surface); transition: background .12s ease; }
.gp-table tbody tr:hover, .gp-table tbody tr:focus { outline: 0; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.gp-table .n { text-align: right; }
.gp-unmeasured { color: var(--text-2); }
.gp-person { display: grid; grid-template-columns: 24px 38px minmax(130px, 1fr); gap: 8px; align-items: center; min-width: 205px; }
.gp-person .gp-avatar { width: 36px; height: 36px; }
.gp-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.gp-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.gp-person small { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 10.5px; white-space: nowrap; }
.gp-rank { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft, var(--surface-2)); color: var(--accent-ink); font-size: 11px; }
.gp-portfolio { display: -webkit-box; max-width: 280px; overflow: hidden; color: var(--text-2); line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-news-count { display: inline-grid; place-items: center; min-width: 28px; height: 23px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); }
.gp-empty { grid-column: 1/-1; min-height: 90px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--text-3); text-align: center; }
.gp-empty b { color: var(--text-2); font-size: 12px; }
.gp-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.gp-post { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .16s, transform .16s; }
.gp-post:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.gp-post > img, .gp-post-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.gp-post-ph { display: grid; place-items: center; color: var(--text-3); }
.gp-post > svg { position: absolute; right: 9px; top: 9px; filter: drop-shadow(0 1px 2px var(--surface)); }
.gp-post-copy { display: flex; flex-direction: column; gap: 4px; padding: 10px; min-width: 0; }
.gp-post-copy small, .gp-post-copy span { color: var(--text-3); font-size: 10.5px; line-height: 1.35; }
.gp-post-copy b { display: -webkit-box; overflow: hidden; min-height: 34px; font-size: 11.5px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-post-copy strong { color: var(--text); font-weight: 650; }
.gp-news-grid, .gp-detail-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gp-pos { color: var(--pos-ink); } .gp-neg { color: var(--neg-ink); }
.gp-stories { display: flex; flex-direction: column; gap: 7px; }
.gp-story { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line); border-left: 3px solid var(--text-3); border-radius: 10px; color: inherit; text-decoration: none; background: var(--surface); }
.gp-story.positive { border-left-color: var(--pos); } .gp-story.negative { border-left-color: var(--neg); }
.gp-story:hover { background: var(--surface-2); }
.gp-story img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 8px; }
.gp-story > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-story small, .gp-story em { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 9.5px; font-style: normal; white-space: nowrap; }
.gp-story b { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gp-offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.gp-office { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 72px; padding: 10px; text-align: left; color: inherit; font: inherit; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.gp-office:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.gp-office .gp-avatar { width: 36px; height: 36px; }
.gp-office > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-office b { overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; white-space: nowrap; }
.gp-office small, .gp-office em { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 9.5px; font-style: normal; white-space: nowrap; }
.gp-office > strong { color: var(--accent-ink); font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.gp-office > strong small { display: block; font-weight: 500; }
.gp-modal .modal-b { padding: 0; }
.gp-detail { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.gp-detail > header { display: flex; align-items: center; gap: 12px; }
.gp-detail > header .gp-avatar { width: 58px; height: 58px; }
.gp-detail > header > span { display: flex; flex-direction: column; min-width: 0; }
.gp-detail > header b { font-size: 18px; } .gp-detail > header small { color: var(--text-2); } .gp-detail > header em { color: var(--text-3); font-size: 11px; font-style: normal; }
.gp-detail-links, .gp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-detail-metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gp-detail-metrics > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px; border-right: 1px solid var(--line); background: var(--surface-2); }
.gp-detail-metrics > div:last-child { border-right: 0; }
.gp-detail-metrics small, .gp-detail-metrics em { color: var(--text-3); font-size: 9.5px; font-style: normal; }
.gp-detail-metrics b { overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }
.gp-detail-missing { display: flex; gap: 8px; padding: 11px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; }
.gp-detail section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gp-detail h4 { margin: 0; font-size: 12.5px; }
.gp-chips span { padding: 5px 8px; border-radius: 999px; background: var(--surface-2); font-size: 10.5px; }
.gp-detail-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gp-post.compact { flex-direction: row; align-items: stretch; }
.gp-post.compact > img, .gp-post.compact > .gp-post-ph { width: 80px; min-height: 84px; aspect-ratio: auto; flex: none; }

@media (max-width: 1250px) {
  .gp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gp-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-detail-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gp-detail-metrics > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .gp-hero { grid-template-columns: 1fr; padding: 18px; }
  .gp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-podium, .gp-news-grid, .gp-detail-news { grid-template-columns: 1fr; }
  .gp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-toolbar { align-items: flex-start; }
  .gp-toolbar > div:last-child, .gp-search { width: 100%; }
  .gp-toolbar select { flex: 1; max-width: none; }
  .gp-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-detail-posts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gp-kpis, .gp-posts { grid-template-columns: 1fr; }
  .gp-office { grid-template-columns: 34px minmax(0, 1fr); }
  .gp-office > strong { grid-column: 2; text-align: left; }
}
