/* Accelerate glossary: hover tooltips everywhere + the "Who's who" page (D-18). */

/* Plain labels that explain themselves */
.ag-term { cursor: help; border-radius: 3px; }
.ag-term.ag-u, .ag-u[data-term] { text-decoration: underline dotted rgba(127,127,127,.7); text-underline-offset: 3px; }
.ag-term:focus-visible { outline: 2px solid var(--acc-brand-orange, #F26522); outline-offset: 2px; }
[data-term] { cursor: help; }

/* Tooltip */
.ag-tip { position: absolute; z-index: 9000; display: none; width: 290px; max-width: calc(100vw - 16px);
  background: #1E2A3A; color: #fff; border-radius: 10px; padding: 12px 14px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  font-size: 12.5px; line-height: 1.45; font-family: inherit; }
.ag-tip-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ag-tip-h svg { width: 22px; height: 22px; flex: none; }
.ag-tip-h b { font-size: 13px; }
.ag-tip-h .ag-tip-portrait { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); background: #2C3E50; }
.ag-tip p { margin: 0 0 8px; color: rgba(255,255,255,.88); }
.ag-tip .ag-more { background: none; border: 0; padding: 0; color: #FFB27F; font: inherit; font-weight: 700; cursor: pointer; }
.ag-tip .ag-more:hover, .ag-tip .ag-more:focus-visible { text-decoration: underline; outline: none; }
.ag-tbc { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 20px; background: #F7921E; color: #1E2A3A; white-space: nowrap; }

/* ── Glossary page ── */
.ag-page { max-width: 1280px; margin: 0 auto; }
.ag-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; background: #1E2A3A; color: #fff;
  border-radius: 12px; padding: 28px 32px; margin-bottom: 16px; }
.ag-hero h1 { font-size: 26px; font-weight: 900; margin: 0 0 8px; color: #fff; }
.ag-hero p { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; margin: 0 0 12px; max-width: 58ch; }
.ag-hero .ag-legend { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; }
.ag-hero .ag-legend div { display: flex; gap: 10px; align-items: baseline; }
.ag-hero .ag-legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(1px); }
.ag-rings { width: 100%; max-width: 460px; justify-self: center; }
.ag-rings a { cursor: pointer; }
.ag-rings a:focus-visible circle, .ag-rings a:hover circle { stroke: #FFB27F; stroke-width: 3; }

.ag-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; }
.ag-search { flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border, #DDD); font: inherit; font-size: 14px;
  background: var(--bg-panel, #fff); color: var(--text-primary, #1A1A1A); }
.ag-jump { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-jump button { border: 1px solid var(--border, #DDD); background: var(--bg-panel, #fff); color: var(--text-primary, #1A1A1A); border-radius: 20px;
  padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ag-jump button:hover { border-color: #F26522; }

.ag-section { margin: 22px 0 10px; }
.ag-section h2 { font-size: 19px; margin: 0 0 4px; }
.ag-section p { margin: 0; color: var(--text-secondary, #666); font-size: 13px; max-width: 80ch; }

.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ag-card { background: var(--bg-panel, #fff); border-radius: 12px; padding: 16px 18px; border: 2px solid transparent; scroll-margin-top: 90px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: border-color .4s; }
.ag-card.ag-hit { border-color: #F26522; box-shadow: 0 0 0 4px rgba(242,101,34,.18); }
.ag-card-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ag-card-h svg { width: 40px; height: 40px; flex: none; }
.ag-card-h h3 { margin: 0; font-size: 15px; font-weight: 800; }
/* People portraits (cartoon-realistic, 256px source shown at 84px for sharp retina) with the role's vector icon as a badge */
.ag-card-hp { gap: 14px; }
.ag-face { position: relative; flex: none; width: 84px; height: 84px; }
.ag-face .ag-portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; background: #1E2A3A;
  box-shadow: 0 0 0 3px var(--bg-panel, #fff), 0 0 0 4px rgba(30,42,58,.18); }
.ag-face-badge { position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-panel, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.ag-card-hp .ag-face-badge svg { width: 24px; height: 24px; }
.ag-rings .ag-ring-face { cursor: pointer; }
.ag-rings .ag-ring-face:hover circle, .ag-rings .ag-ring-face:focus-visible circle { stroke: #FFB27F; stroke-width: 3; }
.ag-rings .ag-ring-face:focus { outline: none; }
.ag-card .ag-short { font-weight: 600; font-size: 13.5px; margin: 0 0 6px; }
.ag-card .ag-body { font-size: 13px; color: var(--text-secondary, #555); margin: 0 0 8px; line-height: 1.5; }
.ag-card h4 { font-size: 12px; margin: 10px 0 3px; color: var(--text-primary, #1A1A1A); }
.ag-card ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.ag-card ul.ag-no li::marker { content: '✕  '; color: #B3181D; }
.ag-card ul.ag-yes li::marker { content: '✓  '; color: #0DB14B; }
.ag-card .ag-how { font-size: 12.5px; background: var(--bg-muted, #F6F8FA); border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.ag-card .ag-now { font-size: 12px; color: #6A4A00; background: #FFF4E0; border-radius: 6px; padding: 6px 9px; margin-top: 8px; }
.ag-card .ag-open { font-size: 12px; margin-top: 8px; }
.ag-card .ag-open li { color: #6A4A00; }
.ag-card .ag-rel { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ag-card .ag-rel span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--bg-muted, #EEF1F4); }
.ag-card .ag-upd { font-size: 10.5px; color: var(--text-muted, #999); margin-top: 8px; }

/* Can / can't matrix */
.ag-matrix-wrap { background: var(--bg-panel, #fff); border-radius: 12px; padding: 6px 4px; overflow-x: auto; }
.ag-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.ag-matrix th, .ag-matrix td { padding: 9px 10px; border-bottom: 1px solid var(--border, #EEE); text-align: center; }
.ag-matrix th:first-child, .ag-matrix td:first-child { text-align: left; }
.ag-matrix th { font-size: 12px; }
.ag-matrix .y { color: #0A8A3D; font-weight: 800; } .ag-matrix .n { color: #B5BCC4; } .ag-matrix .t { color: #8A4B00; font-weight: 700; }

/* Process strip */
.ag-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg-panel, #fff); border-radius: 12px; padding: 16px; }
.ag-strip .st { background: var(--bg-muted, #F6F8FA); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; min-width: 128px; }
.ag-strip .st small { display: block; font-weight: 500; color: var(--text-secondary, #666); }
.ag-strip .gt { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; font-weight: 700; width: 92px; text-align: center; }
.ag-strip .gt svg { width: 34px; height: 34px; }
.ag-strip .ar { color: #9AA3AD; }

@media (max-width: 1100px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } .ag-hero { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ag-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ag-card { transition: none; } }

/* ===== Documentation hub (PR-ACC-119) ===== */
.ah-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; background: #1E2A3A; color: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 10px; }
.ah-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 900; color: #fff; }
.ah-head p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; max-width: 70ch; line-height: 1.5; }
.ah-head .ag-search { min-width: 280px; }
.ah-tabs { display: flex; gap: 2px; flex-wrap: wrap; background: var(--bg-panel, #fff); border-radius: 10px; padding: 0 10px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ah-tabs button { background: none; border: none; border-bottom: 3px solid transparent; padding: 11px 13px; font: inherit; font-size: 13px; font-weight: 800; color: var(--text-secondary, #555); cursor: pointer; }
.ah-tabs button:hover { color: var(--text-primary, #1a1a1a); }
.ah-tabs button.on { color: var(--text-primary, #1a1a1a); border-bottom-color: #F26522; }
.ah-pane[hidden] { display: none; }
.ag-searching .ah-pane { display: block !important; }
.ag-searching .ag-nosearch, .ag-searching .ah-tabs { display: none !important; }
.ah-team { margin: 0 0 16px; border-radius: 12px; overflow: hidden; background: #1E2A3A; }
.ah-team img { display: block; width: 100%; height: auto; }
.ah-team figcaption { color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.ah-block { background: var(--bg-panel, #fff); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.ah-block h2, .ah-block h3 { margin: 0 0 6px; }
.ah-intro, .ah-small { color: var(--text-secondary, #555); font-size: 13px; line-height: 1.5; }
.ah-small { font-size: 12px; }
.ah-tree { display: grid; gap: 0; justify-items: center; padding: 6px 0 4px; }
.ah-row { display: flex; gap: 16px; justify-content: center; align-items: stretch; position: relative; flex-wrap: wrap; }
.ah-side { margin-left: 24px; padding-left: 24px; border-left: 2px dashed #C3CAD2; display: flex; }
.ah-link { width: 2px; height: 22px; background: #9AA6B4; }
.ah-fan { width: 60%; height: 18px; background: none; border: 2px solid #9AA6B4; border-bottom: none; border-radius: 8px 8px 0 0; }
.ah-node { position: relative; width: 200px; display: grid; justify-items: center; gap: 4px; text-align: center; font: inherit; background: var(--bg-surface-alt, #F6F8FA);
  border: 2px solid transparent; border-radius: 12px; padding: 12px 10px; cursor: pointer; }
.ah-node:hover, .ah-node:focus-visible { border-color: #F26522; outline: none; transform: translateY(-2px); transition: transform .15s; }
.ah-node img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); object-fit: cover; }
.ah-node b { font-size: 13px; } .ah-node small { font-size: 11px; color: var(--text-secondary, #555); line-height: 1.35; }
.ah-letter { position: absolute; top: 8px; left: calc(50% + 18px); width: 22px; height: 22px; border-radius: 6px; color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; }
.ah-l-r { background: #1E4D7B; } .ah-l-a { background: #4E079A; } .ah-l-s { background: #2D5016; } .ah-l-c { background: #E07A5F; } .ah-l-i { background: #00A9A5; }
.ah-three .ah-node { width: 190px; }
.ah-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) { .ah-cols { grid-template-columns: 1fr; } }
.ah-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0; }
.ah-table th, .ah-table td { text-align: left; border-bottom: 1px solid var(--border-subtle, #eef0f3); padding: 6px; vertical-align: top; }
.ah-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; margin-bottom: 18px; }
.ah-az-row { text-align: left; font: inherit; background: var(--bg-panel, #fff); border: 1px solid var(--border-subtle, #e3e7ec); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; }
.ah-az-row:hover, .ah-az-row:focus-visible { border-color: #F26522; outline: none; }
.ah-az-row b { font-size: 13px; } .ah-az-row span { font-size: 12px; color: var(--text-secondary, #555); }
.ah-docs { display: grid; gap: 14px; margin-bottom: 14px; }
.ah-doc-group { background: var(--bg-panel, #fff); border-radius: 12px; padding: 14px 16px; }
.ah-doc-group h3 { margin: 0 0 8px; }
.ah-doc { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border-subtle, #eef0f3); }
.ah-doc > div { flex: 1; display: grid; } .ah-doc small { color: var(--text-secondary, #555); font-size: 12px; }
.ah-ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .ah-ai { grid-template-columns: 1fr; } }
.ah-agent { background: var(--bg-panel, #fff); border-radius: 12px; padding: 16px 18px; border-top: 4px solid #00A0AF; }
.ah-agent-h { display: flex; gap: 12px; align-items: center; } .ah-agent h3 { margin: 0 0 4px; }
.ah-bot svg { width: 40px; height: 40px; }
/* 3 Nov (Jeff: "the font is wrong"): body is 125% (20px) and the reset strips list
   padding, so Documents and AI support inherited 20px text with hanging bullets.
   Set them on the same scale as the other Documentation sections. */
.ah-doc-group h3 { font-size: 15px; font-weight: 800; }
.ah-doc b { font-size: 13.5px; font-weight: 700; }
.ah-doc > div > .ah-chip { justify-self: start; margin: 2px 0 1px !important; } /* the AI tag sits at its own width, not the row width */
.ah-doc small { line-height: 1.4; }
.ah-agent h3 { font-size: 15px; font-weight: 800; }
.ah-agent ul { margin: 10px 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
#docs-documents .ah-block h3 { font-size: 15px; font-weight: 800; }
#docs-documents .ah-block p { font-size: 13px; line-height: 1.5; }
.ah-chip { display: inline-block; font-size: 11px; font-weight: 700; background: #EEF1F4; border-radius: 20px; padding: 2px 8px; color: #1E2A3A; }
.ah-howto .ah-group { background: var(--bg-panel, #fff); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.ah-howto .ah-group h2 { margin: 0 0 4px; }
.ah-guide { border-top: 1px solid var(--border-subtle, #eef0f3); }
.ah-guide summary { cursor: pointer; padding: 10px 2px; font-weight: 800; font-size: 14px; }
.ah-guide summary:hover { color: #F26522; }
.ah-guide-b { padding: 0 4px 12px; font-size: 13.5px; line-height: 1.55; max-width: 80ch; }
.ah-guide-b table { border-collapse: collapse; font-size: 12.5px; } .ah-guide-b td, .ah-guide-b th { border: 1px solid #dde1e6; padding: 4px 8px; }
