/* "Groups and what each type of user can do and see" (templates/groups_help.html, README section 43). Light colours only: the site's dark mode inverts #content as a whole, which turns this into a dark
 * page with the same contrast (checked by browser_check_groups_help.py). Yes / No are words as well as colours; nothing is told by colour alone. */
.gh { --gh-ink: #1f2f36; --gh-muted: #55696f; --gh-accent: #286571; --gh-accent-dark: #1a4d56; --gh-line: #d5dde0; --gh-card: #ffffff; --gh-soft: #f2f6f7; --gh-yes: #14672b; --gh-yes-bg: #e4f4e9; --gh-warn-bg: #fff3cd; --gh-warn-ink: #6b4a00;
  color: var(--gh-ink); font-size: 14px; line-height: 1.5; max-width: 100%; }
.gh *, .gh *::before, .gh *::after { box-sizing: border-box; }
.gh-title { margin: 0 0 6px; font-size: 19px; color: var(--gh-accent-dark); }
.gh-lead { margin: 0 0 12px; max-width: 78ch; }
.gh-h { margin: 28px 0 10px; font-size: 16px; color: var(--gh-accent-dark); border-bottom: 2px solid var(--gh-accent); padding-bottom: 4px; scroll-margin-top: 70px; }
.gh p { margin: 0 0 10px; }
.gh code { background: var(--gh-soft); border: 1px solid var(--gh-line); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }

.gh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.gh-chips a { display: inline-block; padding: 4px 12px; border: 1px solid var(--gh-line); border-radius: 999px; background: var(--gh-soft); color: var(--gh-accent-dark); font-size: 13px; text-decoration: none; }
.gh-chips a:hover { background: #e3edef; }
.gh a:focus-visible, .gh summary:focus-visible, .gh-scroll:focus-visible { outline: 2px solid #1d6f86; outline-offset: 2px; }

.gh-warn { background: var(--gh-warn-bg); color: var(--gh-warn-ink); border: 1px solid #d9b44a; border-radius: 8px; padding: 8px 12px; }

.gh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; align-items: start; }
.gh-card { background: var(--gh-card); border: 1px solid var(--gh-line); border-top: 4px solid var(--gh-accent); border-radius: 10px; padding: 12px 14px 14px; min-width: 0; scroll-margin-top: 70px; }
.gh-cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gh-gname { margin: 0; font-size: 17px; color: var(--gh-accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gh-count { font-size: 12px; color: var(--gh-muted); }
.gh-who { margin: 6px 0 6px; font-weight: 600; }
.gh-note { color: var(--gh-muted); }
.gh-db { background: var(--gh-warn-bg); color: var(--gh-warn-ink); border-radius: 6px; padding: 4px 8px; font-size: 12.5px; }
.gh-sub { margin: 10px 0 2px; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gh-muted); }
.gh-list { margin: 0 0 4px; padding-left: 18px; }
.gh-list li { margin: 1px 0; overflow-wrap: anywhere; }
.gh-list-no { color: var(--gh-muted); }
.gh-none { color: var(--gh-muted); font-style: italic; margin: 0; }
.gh-except { background: var(--gh-soft); border-left: 4px solid var(--gh-accent); border-radius: 4px; padding: 6px 10px; margin-top: 10px; }
.gh-lacks { margin-top: 8px; }
.gh-lacks summary { cursor: pointer; color: var(--gh-accent-dark); font-size: 13px; }
.gh-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.gh-pill { display: inline-block; background: #e8f0f2; color: var(--gh-accent-dark); border: 1px solid #c8d9dd; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gh-pill-plain { margin: 1px 3px 1px 0; }

.gh-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--gh-line); border-radius: 10px; background: var(--gh-card); }
.gh-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: 13px; }
.gh-table caption { text-align: left; padding: 8px 10px; color: var(--gh-muted); font-size: 12.5px; }
.gh-table th, .gh-table td { padding: 7px 10px; border-bottom: 1px solid var(--gh-line); text-align: left; vertical-align: top; }
.gh-table thead th { background: var(--gh-soft); color: var(--gh-accent-dark); font-size: 12px; position: sticky; top: 0; }
.gh-table tbody th[scope=row] { font-weight: 500; min-width: 220px; max-width: 360px; background: var(--gh-card); position: sticky; left: 0; z-index: 1; }
.gh-table tbody tr:last-child th, .gh-table tbody tr:last-child td { border-bottom: 0; }
.gh-matrix td { white-space: nowrap; }
.gh-sect th { background: var(--gh-soft) !important; color: var(--gh-accent-dark); font-weight: 700 !important; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.gh-rname { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.gh-rlabel { display: block; font-weight: 500; color: var(--gh-ink); }
.gh-rgroups { display: block; font-weight: 400; color: var(--gh-muted); font-size: 11px; max-width: 150px; }
.gh-yes, .gh-no { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 0 8px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.gh-yes { color: var(--gh-yes); background: var(--gh-yes-bg); }
.gh-no { color: #5d6b72; background: #eef1f3; font-weight: 500; }
.gh-mk { font-size: 11px; }
.gh-val { font-weight: 600; white-space: normal; color: var(--gh-accent-dark); }

@media (max-width: 640px) {
  .gh-title { font-size: 17px; }
  .gh-grid { grid-template-columns: 1fr; }
  .gh-table tbody th[scope=row] { min-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .gh * { transition: none !important; } }
@media print { .gh-chips { display: none; } .gh-scroll { overflow: visible; } .gh-card { break-inside: avoid; } }
