/* "See all" on the Resources / Archive hubs (hub-all.js): a printed directory in IBM Plex Mono, page by page down
   newspaper columns, every heading folding with [-] / [+]. */

.hub-all { padding-top: 18px; }
.ha-columns { font-family: 'IBM Plex Mono', 'Courier New', monospace; color: #333; letter-spacing: 0; }
.ha-columns a { display: inline !important; min-height: 0 !important; min-width: 0 !important; }
.ha-columns button { all: unset; box-sizing: border-box; cursor: pointer; }

.hl-tools { display: flex; justify-content: flex-end; gap: 16px; margin: -8px 0 14px; font-size: 13px; }
.hl-tools button { color: #888f8d; transition: color 0.2s ease; }
.hl-tools button:hover, .hl-tools button:focus-visible { color: #45a049; }

.hl-group + .hl-group { margin-top: 40px; }
.hl-group { columns: 4 210px; column-gap: 30px; column-rule: 1px solid #ececec; }
.hl-group-title { column-span: all; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #bcbcbc; font-size: 18px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #555; }
.hl-page { break-inside: avoid-column; margin-bottom: 22px; }

/* a fold: [-] + its heading, then what's under it — closing slides it shut (grid 1fr → 0fr) */
.hl-toggle { display: flex; align-items: baseline; gap: 0.5em; width: 100%; padding: 2px 0; transition: color 0.15s ease; }
.hl-toggle:hover, .hl-toggle:focus-visible { color: #45a049; }
.hl-box::before { content: "[-]"; color: #aaa; font-size: 12px; }
.hl-fold.closed > .hl-toggle .hl-box::before { content: "[+]"; color: #45a049; }
.hl-n { margin-left: auto; padding-left: 6px; font-size: 11px; color: #c4c4c4; }
.hl-kids { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.34s cubic-bezier(0.3, 0.1, 0.2, 1); }
.hl-inner { overflow: hidden; min-height: 0; transition: opacity 0.22s ease; }
.hl-fold.closed > .hl-kids { grid-template-rows: 0fr; }
.hl-fold.closed > .hl-kids > .hl-inner { opacity: 0; }

/* levels: page → section (or topic) → sub-section */
.hl-p > .hl-toggle { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px dotted #ccc; margin-bottom: 4px; }
.hl-p > .hl-toggle a { color: #45a049; text-decoration: none; }
.hl-p > .hl-toggle a:hover { text-decoration: underline; }
.hl-d0 > .hl-toggle { margin-top: 10px; font-size: 15px; color: #444; font-weight: 500; }
.hl-d1 > .hl-toggle { margin-top: 4px; padding-left: 1em; font-size: 14px; color: #777; }
.hl-d2 > .hl-toggle { padding-left: 1.8em; font-size: 13px; color: #999; font-style: italic; }
/* links: no bullets, indented just past their heading's [-] */
.hl-fold ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 1.8em; }
.hl-d1 ul { padding-left: 2.8em; }
.hl-d2 ul { padding-left: 3.6em; }
.hl-fold li { padding: 2px 0; font-size: 14px; line-height: 1.45; }
.hl-fold li a { color: #47649a; text-decoration: none; }
.hl-fold li a:hover { color: #45a049; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .hl-kids, .hl-inner { transition: none; } }
@media (max-width: 768px) { .hl-tools { justify-content: flex-start; margin-top: 0; } }
