/* Compact, story-first homepage. */
.hub .site-appearance-bar { padding:8px max(20px,calc((100% - 1132px)/2)); min-height:50px; }
.hub .collection-hero { display:block; padding:24px 24px 20px; }
.hub .collection-mast { border-top:0; }
.hub .collection-mast h1 { font-size:34px; margin:0 0 8px; line-height:1.2; }
.hub .collection-mast .sub { max-width:none; font-size:14px; line-height:1.5; }
.hub .collection-note { display:flex; flex-wrap:wrap; gap:10px 22px; border:0; box-shadow:none; padding:0; margin-top:16px; background:transparent; font:12px/1.5 Consolas,monospace; color:var(--ink-soft); }
.hub .collection-note strong,.hub .collection-note b { color:var(--teal); }
.hub .tabbar { box-shadow:none; }
.hub .tabbar-in { gap:16px; }
.hub .tabs button { min-height:44px; }
.hub .search input { width:300px; min-height:44px; border:1px solid var(--rule); border-radius:6px; font-size:15px; }
.hub .search input:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.hub .count { display:none; }
.hub main { padding-top:12px; }
.browse-options { margin-bottom:16px; border-bottom:1px solid var(--rule); }
.browse-options summary { min-height:44px; display:flex; align-items:center; gap:12px; cursor:pointer; font:13px/1.4 system-ui,sans-serif; padding:0 2px; }
.browse-options summary:before { content:'+'; font-size:20px; color:var(--teal); }
.browse-options[open] summary:before { content:'−'; }
.browse-options summary:focus-visible { outline:2px solid var(--teal); }
.browse-options #library-summary { margin-left:auto; font:12px system-ui,sans-serif; }
.filter-active { font-size:11px; color:var(--teal); }
.hub .library-filters { background:var(--paper); margin:4px 0 14px; padding:12px; gap:12px 24px; border-radius:6px; }
#reset-filters { min-height:44px; padding:8px 12px; background:transparent; border:1px solid var(--rule); color:var(--ink); border-radius:5px; cursor:pointer; }
.hub .card { border:1px solid var(--rule); border-radius:8px; overflow:hidden; }
.hub .card .corner { display:none; }
.hub .thumb { padding:0; border:0; margin:12px 12px 0; }
.hub .thumb img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:5px; }
.hub .cbody > .kicker { display:none; }
.hub .cbody h2 { margin-top:4px; }
.hub .cbody h2 a { text-decoration:none; }
.hub .cbody h2 a:hover { color:var(--teal); }
.hub .read,.hub .pdf,.hub .save-story,.hub .audbtn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:4px; }
.hub .audbtn { width:36px; }
.hub .theme-label { margin-bottom:4px; letter-spacing:0; }
.hub .alts { flex-basis:100%; justify-content:flex-end; }
.hub .alts a { padding:5px 0; }
.hub .foot .wave { display:none; }
.hub .foot p { line-height:1.6; }
@media(max-width:720px) {
 .hub .site-appearance-bar { min-height:48px; padding:6px 16px; }
 .hub .site-theme-toggle { min-height:36px; padding:6px 10px; }
 .hub .collection-hero { padding:12px 16px; }
 .hub .collection-mast h1 { font-size:23px; margin:0; }
 .hub .collection-mast .sub,.hub .collection-note { display:none; }
 .hub .tabbar-in { padding:6px 12px 8px; gap:6px; }
 .hub .tabs { width:100%; border-radius:5px; overflow:hidden; }
 .hub .tabs button { flex:1; padding:6px 8px; min-height:42px; font-size:14px; }
 .hub .tabs .n { display:none; }
 .hub .search { margin:0; width:100%; }
 .hub .search input { width:100%; min-height:42px; font-size:16px; }
 .hub main { padding:4px 12px 24px; }
 .browse-options { margin-bottom:10px; }
 .hub .library-filters { gap:10px; padding:10px; }
 .hub .library-filters label { width:100%; }
 .hub .library-filters select { width:70%; min-height:44px; font-size:16px; }
 .hub .grid { grid-template-columns:minmax(0,1fr); gap:10px; }
 .hub .card { display:grid; grid-template-columns:100px minmax(0,1fr); min-height:0; }
 .hub .thumb { margin:10px 0 0 10px; align-self:start; }
 .hub .thumb img { width:90px; height:90px; }
 .hub .cbody { padding:10px 10px 4px; min-width:0; }
 .hub .cbody h2 { font-size:18px; line-height:1.25; margin:3px 0 5px; }
 .hub .theme-label { font-size:10px; line-height:1.3; }
 .hub .blurb { font-size:12px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
 .hub .blurb .lbl { display:none; }
 .hub .cfoot { grid-column:1/-1; margin-top:8px; padding:6px 10px; gap:6px; }
 .hub .alts { flex-basis:auto; font-size:11px; gap:8px; }
 .hub .read,.hub .pdf { padding:6px 9px; letter-spacing:.05em; }
 .hub .save-story { min-width:36px; }
 .hub .card { scroll-margin-top:116px; }
 .hub .totop { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .hub .card { transition:none; }.hub .card:hover { transform:none; } }
/* Catalogue layouts share the same links, filters, and saved reading state. */
.catalogue-toolbar { display:flex; align-items:flex-start; gap:14px; margin-bottom:12px; border-bottom:1px solid var(--rule); }
.catalogue-toolbar .browse-options { flex:1; min-width:0; border:0; margin:0; }
.view-picker { display:flex; align-items:center; gap:8px; min-height:44px; font:12px system-ui,sans-serif; flex:none; }
.view-picker select { min-height:38px; max-width:160px; background:var(--paper); color:var(--ink); border:1px solid var(--rule); border-radius:5px; padding:6px 28px 6px 9px; font:inherit; }
.view-picker select:focus-visible,.catalogue-more button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.catalogue-more { text-align:center; padding:20px 0 8px; color:var(--ink-soft); font:12px/1.5 system-ui,sans-serif; }
.catalogue-more button { min-height:44px; padding:10px 24px; border:1px solid var(--rule); background:var(--paper); color:var(--ink); border-radius:6px; cursor:pointer; }
.hub .grid[data-view='list'],.hub .grid[data-view='details'] { grid-template-columns:minmax(0,1fr); gap:8px; }
.hub .grid[data-view='list'] .card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; min-height:64px; }
.hub .grid[data-view='list'] .cbody { padding:10px 14px; }
.hub .grid[data-view='list'] h2 { font-size:17px; margin:0; }
.hub .grid[data-view='list'] .theme-label,.hub .grid[data-view='list'] .blurb,.hub .grid[data-view='list'] .alts { display:none; }
.hub .grid[data-view='list'] .cfoot { grid-column:auto; border:0; padding:8px 12px; margin:0; flex-wrap:nowrap; }
.hub .grid[data-view='details'] .card { display:grid; grid-template-columns:132px minmax(0,1fr) auto; align-items:center; }
.hub .grid[data-view='details'] .thumb { margin:12px; }
.hub .grid[data-view='details'] .thumb img { width:108px; height:108px; }
.hub .grid[data-view='details'] .cbody { padding:12px; }
.hub .grid[data-view='details'] .blurb { display:block; font-size:14px; line-height:1.65; overflow:visible; }
.hub .grid[data-view='details'] .cfoot { margin:0; border:0; padding:12px; max-width:230px; }
.hub .grid[data-view='small'] { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:12px; }
.hub .grid[data-view='large'] { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.hub .grid[data-view='small'] .card,.hub .grid[data-view='large'] .card { display:flex; flex-direction:column; min-height:0; }
.hub .grid[data-view='small'] .thumb,.hub .grid[data-view='large'] .thumb { margin:8px 8px 0; align-self:stretch; }
.hub .grid[data-view='small'] .thumb img,.hub .grid[data-view='large'] .thumb img { width:100%; height:auto; aspect-ratio:1; }
.hub .grid[data-view='small'] .cbody,.hub .grid[data-view='large'] .cbody { padding:8px 10px 12px; }
.hub .grid[data-view='small'] h2 { font-size:14px; line-height:1.35; }
.hub .grid[data-view='large'] h2 { font-size:20px; line-height:1.3; }
.hub .grid[data-view='small'] .theme-label,.hub .grid[data-view='large'] .theme-label,
.hub .grid[data-view='small'] .blurb,.hub .grid[data-view='large'] .blurb,
.hub .grid[data-view='small'] .cfoot,.hub .grid[data-view='large'] .cfoot { display:none; }
@media(max-width:720px) {
 .catalogue-toolbar { gap:10px; margin-bottom:10px; flex-wrap:wrap; }
 .catalogue-toolbar .browse-options { flex-basis:calc(100% - 155px); }
 .catalogue-toolbar:has(details[open]) .browse-options { flex-basis:100%; }
 .view-picker { margin-left:auto; min-height:44px; gap:5px; }
 .view-picker select { width:112px; max-width:140px; min-height:40px; font-size:12px; padding-right:18px; }
 .catalogue-toolbar #library-summary { font-size:11px; }
 .hub .grid[data-view='list'] .card { grid-template-columns:minmax(0,1fr) 46px; }
 .hub .grid[data-view='list'] .cbody { padding:10px; }
 .hub .grid[data-view='list'] .cfoot { padding:0 4px; }
 .hub .grid[data-view='list'] .cfoot > :not(.save-story) { display:none; }
 .hub .grid[data-view='details'] .card { grid-template-columns:100px minmax(0,1fr); align-items:start; }
 .hub .grid[data-view='details'] .thumb { margin:10px 0 0 10px; }
 .hub .grid[data-view='details'] .thumb img { width:90px; height:90px; }
 .hub .grid[data-view='details'] .cbody { padding:10px; }
 .hub .grid[data-view='details'] .cfoot { grid-column:1/-1; max-width:none; border-top:1px dashed var(--rule); padding:6px 10px; }
 .hub .grid[data-view='small'] { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 .hub .grid[data-view='small'] .cbody { padding:6px; }
 .hub .grid[data-view='small'] h2 { font-size:12px; }
 .hub .grid[data-view='large'] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .hub .grid[data-view='large'] h2 { font-size:16px; }
}