/* The Graphics hub (public/js/views/graphics-hub.js): the section's tabs, the shared filter panel, the heatmap and ranking
   table, the graphs and the methods page. Tabs on a wide screen, a dropdown on a phone. */

.hub-tabs { display: flex; align-items: center; gap: 4px; max-width: var(--wrap, 1366px); margin: 0 auto; padding: 8px 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hub-home { font-weight: 800; color: var(--text); margin-right: 10px; padding: 8px 0; }
.hub-tab-list { display: flex; gap: 2px; flex-wrap: wrap; }
.hub-tab { padding: 8px 12px; color: var(--text-2); border-bottom: 3px solid transparent; font-weight: 600; font-size: .88rem; }
.hub-tab:hover { color: var(--text); text-decoration: none; background: var(--row-hover); }
.hub-tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }
.hub-select { display: none; }
@media (max-width: 700px) {
  .hub-tabs { padding: 8px 16px; gap: 10px; flex-wrap: nowrap; }
  .hub-tab-list { display: none; }
  .hub-select { display: block; flex: 1; min-width: 0; height: 40px; font: 600 .95rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); padding: 0 8px; }
}

.gh-page { padding-bottom: 24px; }
.gh-ask { margin: 0 0 12px; }
.gh-ask-row { display: flex; gap: 8px; }
.gh-ask-row input { flex: 1; min-width: 0; height: 40px; font-size: .95rem; }
.gh-ask-row .btn { height: 40px; padding: 0 18px; }
.gh-ask-said { margin: 6px 0 0; font-size: .85rem; color: var(--text-2); min-height: 0; }
.gh-ask-said:empty { display: none; }
.gh-modes { display: inline-flex; border: 1px solid var(--border-strong); margin: 0 0 10px; }
.gh-modes button { border: 0; background: var(--surface); color: var(--text-2); padding: 7px 14px; font: 600 .85rem var(--font); cursor: pointer; }
.gh-modes button + button { border-left: 1px solid var(--border-strong); }
.gh-modes button[aria-selected="true"] { background: var(--brand-btn, var(--brand)); color: #fff; }
.gh-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.gh-presets-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.gh-preset { font-size: .8rem; padding: 4px 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.gh-preset:hover { background: var(--surface-2); text-decoration: none; }

.gh-panel { background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; margin-bottom: 12px; }
.gh-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.gh-field { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--text-2); min-width: 0; }
.gh-field > span { font-weight: 600; }
.gh-field select, .gh-field input { height: 32px; font: .85rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); padding: 0 6px; max-width: 100%; }
.gh-num input { width: 92px; }
.gh-metric select { max-width: 260px; }
.gh-more { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.gh-more > summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.gh-group { margin-top: 10px; }
.gh-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.gh-checks { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; }
.gh-checks legend { font-weight: 600; color: var(--text-2); font-size: .78rem; padding: 0; margin-bottom: 2px; width: 100%; }
.gh-checks label { display: inline-flex; gap: 4px; align-items: center; min-height: 28px; }
.gh-teams { max-width: 100%; }
.gh-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gh-chip { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: 600 .75rem var(--font); padding: 3px 7px; cursor: pointer; }
.gh-note { font-size: .8rem; color: var(--muted); margin: 6px 0; }
.gh-notcarried ul { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--text-2); }

.gh-board { transition: opacity .15s; }
.gh-board.gh-loading { opacity: .55; }
.gh-head { margin: 4px 0 8px; }
.gh-title { margin: 0 0 2px; font-size: 1.35rem; }
.gh-sub { margin: 0; color: var(--text-2); font-size: .88rem; }
.gh-refused { border-left: 3px solid var(--brand); background: var(--surface-2); padding: 6px 10px; margin: 8px 0; font-size: .85rem; }
.gh-refused p { margin: 2px 0; }
.gh-legend { font-size: .8rem; color: var(--text-2); margin: 4px 0 8px; }
.gh-scale { display: inline-flex; align-items: center; gap: 4px; }
.gh-scale i { display: inline-block; width: 18px; height: 12px; border: 1px solid var(--border); }
.gh-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.gh-heat { border-collapse: separate; border-spacing: 2px; font-size: .85rem; min-width: 100%; }
.gh-heat th, .gh-heat td { padding: 4px 6px; text-align: center; white-space: nowrap; }
.gh-heat thead th { font-size: .75rem; color: var(--text-2); vertical-align: bottom; }
.gh-heat thead button { background: none; border: 0; color: inherit; font: 700 .75rem var(--font); cursor: pointer; padding: 2px; white-space: normal; max-width: 120px; }
.gh-heat td b { display: block; font-size: .95rem; }
.gh-heat td small { display: block; font-size: .68rem; opacity: .85; }
.gh-heat td.gh-below b, .gh-heat td.gh-below small { opacity: .75; }
.gh-heat td.gh-empty { color: var(--muted); }
.gh-heat .gh-name { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.gh-badge { display: inline-block; min-width: 34px; padding: 1px 3px; font: 700 .65rem var(--font); text-align: center; background: var(--badge); color: var(--badge-ink); border-radius: 9px; }
.gh-gp { color: var(--muted); }
.gh-rank td sup { font-size: .62rem; margin-left: 2px; opacity: .85; }
.gh-rank td b { display: inline; }
.gh-col { min-width: 84px; }
.gh-sort { display: block; margin: 0 auto 3px; }
.gh-colctl { display: inline-flex; gap: 1px; align-items: center; }
.gh-colctl button { border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .72rem var(--font); min-width: 22px; height: 22px; cursor: pointer; padding: 0 3px; }
.gh-colctl button:disabled { opacity: .35; cursor: default; }
.gh-colctl input.gh-weight { width: 30px; min-height: 0; height: 22px; padding: 0 2px; border-radius: 0; font-size: .72rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: center; -moz-appearance: textfield; }
.gh-colctl input.gh-weight::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gh-rank thead th { white-space: normal; }
.gh-rank td { min-width: 70px; }
.gh-avg { font-weight: 700; }
.gh-formula { font-size: .78rem; color: var(--text-2); margin: 0; flex: 1 1 320px; }
.gh-chart { width: 100%; }
.gh-chart svg { display: block; width: 100%; height: auto; }
.gh-quad input { width: 170px; }
.gh-methods, .gh-tiers { margin: 12px 0; font-size: .84rem; border: 1px solid var(--border); background: var(--surface); padding: 8px 12px; }
.gh-methods summary, .gh-tiers summary { cursor: pointer; font-weight: 700; }
.gh-methods ul { padding-left: 18px; margin: 6px 0; }
.gh-metric-note { margin: 4px 0; }
.gh-basis { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border: 1px solid currentColor; }
.gh-basis.est { color: var(--brand-ink, var(--brand)); }
.gh-basis.meas { color: var(--muted); }
.gh-tiers p { margin: 3px 0; }
.gh-export { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 12px 0; }
.gh-titlein input { width: 260px; }
.gh-empty-board { padding: 18px; background: var(--surface); border: 1px solid var(--border); }
.linkish { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.gh-preset-list { columns: 2 260px; font-size: .9rem; }
/* The front page (2026-11-15): Creator Tools cards on top (creator-tools.css), then the ready-made boards grouped by kind, tight,
   links underlined so they read as links, and no gap before the footer. */
.gh-home .graphics-landing { margin-top: 14px; }
.gh-ready { margin-top: 22px; }
.gh-ready h2 { margin: 0 0 6px; font-size: 1.1rem; }
.gh-ready-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }
.gh-ready-grid h3 { margin: 4px 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gh-ready-grid ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.gh-ready-grid li { margin: 0; padding: 3px 0; line-height: 1.35; }
/* Inline, not inline-block: a name that wraps keeps its bullet on its first line (inline-block drops the
   bullet to the block's last line box when the name wraps). */
.gh-ready-grid a { display: inline; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.gh-ready-grid a:hover { text-decoration-color: currentColor; }
.gh-home > .gh-note { margin-top: 12px; }
.gh-methods-table { border-collapse: collapse; font-size: .82rem; width: 100%; min-width: 860px; }
.gh-methods-table caption { text-align: left; font-weight: 700; padding: 4px 0; }
.gh-methods-table th, .gh-methods-table td { border: 1px solid var(--border); padding: 6px 8px; vertical-align: top; text-align: left; }
.gh-methods-table th small { color: var(--muted); }
.gh-not { color: var(--muted); margin-top: 4px; }
.gh-methods-page section { margin: 18px 0; }
@media (max-width: 600px) {
  .gh-field { flex: 1 1 140px; }
  .gh-field select, .gh-field input { width: 100%; }
  .gh-num { flex: 1 1 120px; }
  .gh-num input, .gh-quad input, .gh-titlein input { width: 100%; }
  .gh-heat { font-size: .78rem; }
  .gh-heat .gh-name { max-width: 130px; }
  .gh-export .btn { flex: 1 1 auto; }
}
.gh-heat tr.gh-hl > th { box-shadow: inset 4px 0 0 var(--brand); font-weight: 800; }
.gh-heat tr.gh-hl > td { outline: 2px solid var(--text); outline-offset: -2px; }
/* The filter bar (filter-bar.css) under the board's own controls. */
.gh-panel .fbar { margin: 10px 0 0; }
