/* Hub pages: the quiz-led block, the owned text and the FAQs. Everything else reuses the app/explore components. */

.hub-intro { font-size: var(--fs-2); color: var(--ink-2); line-height: 1.55; margin: 12px 0 0; }
.hub-quizzes .lead { margin: 4px 0 16px; }
.hub-quiz-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2, #f6f8fa); }
.hub-quiz-hero-body { min-width: 0; }
.hub-quiz-hero .h3 { margin: 6px 0 4px; }
.hub-quiz-hero .h3 a { color: inherit; text-decoration: none; }
.hub-quiz-hero .h3 a:hover { text-decoration: underline; }
.hub-quiz-desc { color: var(--ink-2); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-quiz-hero .meta { color: var(--ink-2); font-size: var(--fs-1); margin: 0; }
.hub-quiz-hero .btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .hub-quiz-hero { flex-direction: column; align-items: stretch; padding: 16px; } .hub-quiz-hero .btn { width: 100%; } }
.hub-units .hub-soon { color: var(--ink-2); }
.chip--soon { opacity: .6; cursor: default; }
.hub-original { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--ink-2); }
.hub-original svg { width: 14px; height: 14px; }
.hub-prose { line-height: 1.6; }  /* full width, aligned with the resource blocks (Dan, H6) */
.hub-prose h2 { font-size: var(--fs-3); font-weight: 700; margin: 28px 0 8px; }
.hub-prose h3 { font-size: var(--fs-2); font-weight: 700; margin: 20px 0 6px; }
.hub-prose p, .hub-prose li { margin: 0 0 10px; }
.hub-prose ul, .hub-prose ol { padding-left: 22px; }
.hub-faq .hub-q { border-top: 1px solid var(--line); padding: 10px 0; }
.hub-faq .hub-q:last-child { border-bottom: 1px solid var(--line); }
.hub-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary .h3 { margin: 0; font-size: var(--fs-2); }
.hub-faq summary::after { content: "+"; color: var(--ink-2); font-size: 20px; line-height: 1; flex: none; }
.hub-faq details[open] summary::after { content: "−"; }
.hub-faq details p { margin: 10px 0 2px; color: var(--ink-2); line-height: 1.55; }
/* Visual tiles (Dan, 1 Nov): image or tinted panel, type, title, excerpt, author; quizzes carry the action. */
.hub-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-tiles--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }  /* four across everywhere at desktop width (Dan, H15) */
@media (max-width: 960px) { .hub-tiles, .hub-tiles--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hub-tiles, .hub-tiles--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .hub-tile-body { padding: 10px 12px 8px; } }  /* two across on phones (Dan, H15) */
.hub-tile { min-width: 0; border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; background: var(--paper); display: flex; transition: border-color var(--t); }
.hub-tile:hover { border-color: var(--ink-3); }
.hub-tile-link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.hub-tile-link:hover .hub-tile-title { text-decoration: underline; }
.hub-tile-media { aspect-ratio: 4 / 3; background: var(--bg-2, #f3f5f7); overflow: hidden; }
.hub-tile-media img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; background: #fff; }
.hub-tile-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: var(--fs-1); letter-spacing: .04em; text-transform: uppercase; }
.t-quiz .hub-tile-fallback { background: #e8f1f7; } .t-mindmap .hub-tile-fallback { background: #eef7ea; } .t-flashcards .hub-tile-fallback { background: #fdf3e3; } .t-flowchart .hub-tile-fallback { background: #f3eefa; }
.hub-tile-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; }
.hub-tile-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-tile-ex { color: var(--ink-2); font-size: var(--fs-1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-tile-meta { color: var(--ink-2); font-size: var(--fs-1); }
.hub-tile-cta { margin: 0 14px 14px; align-self: flex-start; }
.hub-top .hub-quiz-hero { margin-top: 16px; }
.hub-top .hub-tiles { margin-top: 16px; }
/* Subject page strands (Dan, 1 Nov): a quiet chapter heading with a short accent bar, units in a grid below, no other
   lines; find-a-topic filter and A–Z view; contributors line (H9) */
.hub-count { margin: 4px 0 0; }
.hub-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; }
.hub-tools .field-search { flex: 1 1 260px; max-width: 420px; }
.hub-strand { margin-top: 44px; scroll-margin-top: 80px; }
.hub-units > .hub-strand:first-child { margin-top: 28px; }
.hub-strand-head { display: block; margin-bottom: 10px; }
.hub-strand-title { font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0; }
.hub-strand-title::after { content: ""; display: block; width: 40px; height: 3px; margin: 10px 0 8px; background: var(--accent); border-radius: 2px; }
.hub-strand-meta { display: block; color: var(--ink-2); font-size: var(--fs-1); }
.hub-strand-units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; }
@media (max-width: 960px) { .hub-strand-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hub-strand-units { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-strand { margin-top: 36px; } }
.hub-strand-units .app-subj { padding: 8px 0; margin: 0; border: 0; min-width: 0; }
.hub-strand-units .app-subj[hidden] { display: none; }
.hub-units .hub-soon { color: var(--ink-2); }
.hub-nomatch { color: var(--ink-2); margin: 10px 0 0; }
.hub-tile-stars { font-size: var(--fs-1); }
/* Miniatures from the resource's own content (Dan, H16), inside the 4:3 tile media box */
.hub-mini { width: 100%; height: 100%; display: block; box-sizing: border-box; font-family: inherit; }
svg.hub-mini text { font-size: 11px; fill: var(--ink); }
svg.hub-mini line { stroke: #b9c7c3; stroke-width: 1.5; }
.hub-mini--map { background: #eef7ea; }
.hub-mini--map .mm-leaf { fill: #fff; stroke: #cfe3d9; }
.hub-mini--map .mm-root { fill: var(--c-mindmap); }
.hub-mini--map .mm-root-t { fill: #fff; font-weight: 700; }
/* a card with the details on it for quizzes, decks, notes and slides (Dan, 5 Nov 2026), as Knowt's and Quizlet's set cards:
   the type icon in a tinted square, the count, title, excerpt, author */
.hub-card .hub-tile-link { padding: 14px 14px 12px; gap: 8px; }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hub-card-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--ink-3)) 12%, var(--paper, #fff)); }
.hub-card-icon .i { width: 22px; height: 22px; color: var(--c); }
.hub-card-n { font-size: var(--fs-1); font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c, var(--ink-3)) 10%, var(--paper, #fff)); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hub-card .hub-tile-title { -webkit-line-clamp: 3; }
.hub-card .hub-tile-meta { margin-top: auto; padding-top: 4px; }
.hub-mini--note { background: #fff repeating-linear-gradient(transparent 0 19px, #e9eef1 19px 20px); padding: 16px 14px 10px; }
.hub-mini--note p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 12px; line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-mini--flow { background: #f3eefa; }
.hub-mini--flow .fl-box { fill: #fff; stroke: #d9cbe6; }
.hub-mini--flow line { stroke: var(--c-flowchart); }
.hub-mini--flow marker path { fill: var(--c-flowchart); }
.hub-mini-n { font-size: 10px; color: var(--ink-2); letter-spacing: .02em; }
/* Format pages: the pager */
.hub-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }

/* hub navigation after Knowt (Dan, 5 Nov 2026): format tabs and a topic list under the intro */
.hub-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 0; }
.hub-tabs { flex: 1 1 auto; min-width: 0; }
.hub-tabs .tab { gap: 6px; text-decoration: none; }
.hub-tabs .tab .i { width: 18px; height: 18px; color: var(--c, var(--ink-3)); }
.hub-tabs .tab[aria-selected="true"] .i { color: var(--accent-ink, var(--ink)); }
.hub-tabs .tab-n { font-size: var(--fs-1); color: var(--ink-3); font-weight: 500; }
.hub-pick { position: relative; flex: none; }
.hub-pick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: var(--h); padding: 0 12px 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--paper); color: var(--ink); font-weight: 600; white-space: nowrap; max-width: 260px; }
.hub-pick summary span { overflow: hidden; text-overflow: ellipsis; }
.hub-pick summary::-webkit-details-marker { display: none; }
.hub-pick summary .i { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: rotate var(--t); }
.hub-pick[open] summary .i { rotate: 180deg; }
.hub-pick summary:hover { border-color: var(--accent); }
.hub-pick ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 260px; max-width: min(360px, 90vw); max-height: 60vh; overflow: auto; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: 0 10px 30px rgb(21 34 43 / .14); }
.hub-pick li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.hub-pick li a:hover { background: var(--accent-wash); color: var(--accent-ink); }
.hub-pick li a .num { color: var(--ink-3); font-size: var(--fs-1); }
@media (max-width: 640px) { .hub-nav { flex-direction: column; align-items: stretch; } .hub-pick summary { max-width: none; width: 100%; justify-content: space-between; } .hub-pick ul { left: 0; right: 0; max-width: none; } }
/*
 * Redesign: the HUB pages stylesheet (subject and unit hubs, traffic plan §9–10, 1 Nov 2026), loaded after
 * redesign.css and redesign-app.css by app/views/redesign/app/hub_*.
 *

 */

