/* /govco/ - the government companies section (tools/govco_build.py).
   The card components of the demo pages (data/govco/design/maya-style.css,
   2026-09-30), on the site's own tokens from src/style.css so the theme
   switch works here as everywhere. Scoped to .gc-wrap: these class names
   (.card, .grid, .flag) are generic and must not reach other pages. */
.gc-wrap { --gc-warn-bg: #fef7e0; --gc-warn-border: #f0d78c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gc-wrap { --gc-warn-bg: #3a3320; --gc-warn-border: #6b5b2a; } }
:root[data-theme="dark"] .gc-wrap { --gc-warn-bg: #3a3320; --gc-warn-border: #6b5b2a; }

.gc-wrap header.co { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius, 12px);
  box-shadow: var(--shadow); padding: 20px 22px; margin-block: 12px 16px; }
.gc-wrap .co-eyebrow { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.gc-wrap .co-name { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin: 0; display: inline; }
.gc-wrap .co-name-en { font-size: 12.5px; color: var(--muted); direction: ltr; display: inline-block; margin-inline-start: 10px; }
.gc-wrap .co-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.gc-wrap .co-meta b { color: var(--fg); font-weight: 600; }
.gc-wrap .flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gc-wrap .flag { border: 1px solid var(--gc-warn-border); background: var(--gc-warn-bg); color: var(--fg);
  font-size: 12.5px; font-weight: 500; padding: 6px 13px; border-radius: 999px; }

.gc-wrap .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .gc-wrap .grid { grid-template-columns: 1fr; } }
.gc-wrap .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius, 12px);
  box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gc-wrap .card.wide { grid-column: 1 / -1; }
.gc-wrap .card h2 { font-size: 16px; margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gc-wrap .card h2 .n { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.gc-wrap .gc-p { margin: 0; font-size: 14px; line-height: 1.6; }

.gc-wrap .person { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px;
  border-top: 1px solid var(--border); font-size: 13.5px; }
.gc-wrap .person:first-of-type { border-top: none; }
.gc-wrap .person .role { color: var(--muted); font-size: 12.5px; }

.gc-wrap .gc-scroll { overflow-x: auto; }
.gc-wrap table.series { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gc-wrap table.series th { text-align: right; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 4px 6px;
  border-bottom: 1px solid var(--border); white-space: nowrap; }
.gc-wrap table.series td { padding: 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.gc-wrap table.series td:first-child { white-space: normal; }
.gc-wrap table.series td.g { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.gc-wrap .period-note { font-size: 12px; color: var(--muted); }

.gc-wrap .rowlist { display: flex; flex-direction: column; }
.gc-wrap .rlitem { padding-block: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.gc-wrap .rlitem:first-of-type { border-top: none; }
.gc-wrap .rlitem .d { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gc-wrap .rlitem .t { font-size: 13.5px; }
.gc-wrap a.src { color: var(--accent); text-decoration: none; font-size: 11.5px; align-self: flex-start; }
.gc-wrap a.src:hover { text-decoration: underline; }

/* the hub */
.gc-wrap .gc-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-block: 12px; }
.gc-wrap .gc-find { display: inline-flex; align-items: center; gap: 6px; }
.gc-wrap .gc-find input { min-width: 16rem; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--fg); }
.gc-wrap .gc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.gc-wrap .gc-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-block: 10px; border-top: 1px solid var(--border); }
.gc-wrap .gc-row a:first-child { font-weight: 600; }
.gc-wrap .gc-sub { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.gc-wrap .gc-row .gc-wa { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.gc-wrap .gc-wa { color: #1f9d55; display: inline-flex; }
