/* ── guides.html: every guide, in groups ────────────────────────
   Generated by tools/build-hub.js since 30.10.2026. The cards are
   css/guide-card.css; this sheet lays them out and sets the groups and the
   free manuals card around them. Void throughout, like a guide's own hero:
   the photographs carry the page. */

.hub-intro {
  max-width: 72ch;
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  opacity: 0.8;
}

.hub-group { padding-top: clamp(40px, 7vh, 84px); }
.hub-group:last-child { padding-bottom: clamp(56px, 10vh, 120px); }

/* A group's heading and its one line, as on a guide: nothing over it. */
.hub-head { font-size: var(--t-group); }
.hub-lead {
  max-width: 72ch;
  margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.45;
  opacity: 0.78;
}

/* Two to a row. In a group with an odd number the first card runs the full
   width, wider than 16:9 so it does not take a whole screen, and no row is
   left with one card in it. */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(20px, 3vh, 32px);
}
.hub-grid .gcard-title { font-size: clamp(22px, 2.6vw, 40px); }
.hub-grid.is-odd > .gcard:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.hub-grid.is-odd > .gcard:first-child .gcard-title { font-size: clamp(28px, 4vw, 60px); }

/* ── The free manuals, one card ─────────────────────────────────
   A bordered box rather than a photograph: these are other people's
   documents, a list to pick from, and dressing them as guides would claim
   them. Each row is the title, who published it, and Open. */
.hub-free {
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid var(--hair);
}
.hub-free-head { font-size: var(--t-group); }
.hub-free-list { margin-top: clamp(18px, 3vh, 28px); }
.hub-free-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.hub-free-t {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: color 0.2s;
}
.hub-free-s {
  grid-column: 1;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.7;
}
.hub-free-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal);
}
.hub-free-row:hover .hub-free-t { color: var(--signal); }

@media (max-width: 860px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid .gcard,
  .hub-grid.is-odd > .gcard:first-child { aspect-ratio: 1 / 1; }
  .hub-grid .gcard-title,
  .hub-grid.is-odd > .gcard:first-child .gcard-title { font-size: clamp(26px, 8vw, 38px); }
}

/* Centred, like the gear pages. The groups are found from a bar of tabs that
 stays under the fixed chrome and marks the one on screen; each group opens
 with its name large and centred and air around it, no rules. */
.hub-top { text-align: center; }
.hub-top .hub-intro { margin-left: auto; margin-right: auto; }

.hub-tabs {
  position: sticky;
  top: var(--chrome-h);
  z-index: 27;
  margin-top: clamp(8px, 1.6vh, 18px);
  padding: 10px 0;
  background: var(--void);
}
.hub-tabs-in {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter);
}
.hub-tabs-in::-webkit-scrollbar { display: none; }
.hub-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid rgba(var(--rgb-bone), 0.18);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--rgb-bone), 0.62);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hub-tab:hover, .hub-tab:focus-visible { color: var(--bone); border-color: rgba(var(--rgb-bone), 0.45); }
.hub-tab[aria-current="true"] { background: var(--bone); border-color: var(--bone); color: var(--void); }

.hub-group, .hub-group--free, #free { scroll-margin-top: calc(var(--chrome-h) + 64px); }
.hub-group-head { text-align: center; padding-top: clamp(24px, 5vh, 56px); margin-bottom: clamp(8px, 1.6vh, 16px); }
.hub-group-head .hub-head { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; }
.hub-group-head .hub-lead { margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .hub-tabs-in { justify-content: flex-start; }
}
