/* Static topic directories share the discovery-page design tokens. */
.hub-section { margin:28px 0; }
.hub-topic-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0; }
.hub-topic-nav a { display:flex; flex-direction:column; justify-content:space-between; gap:8px; padding:16px; border:1px solid var(--line); border-radius:14px; color:var(--text); background:var(--card,#fffefa); font-weight:700; text-decoration:none; overflow-wrap:anywhere; }
.hub-topic-nav a span { color:var(--muted); font-size:.8rem; font-weight:500; }
.hub-topic-nav a:hover,.hub-topic-nav a[aria-current="page"] { border-color:var(--accent); }
.hub-topic-nav a:focus-visible,.hub-post-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.hub-page .hero { display:block; }
.hub-page .hero h1 { max-width:24ch; }
.hub-page .hero p { max-width:75ch; }
.hub-page .hub-breadcrumb { color:var(--muted); margin:8px 0; font-size:.9rem; }
.hub-page .hub-article-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.hub-article-card { min-width:0; overflow-wrap:anywhere; }
.blog-page .postsGrid .hub-article-card .postImg { display:block; width:100%; height:auto; aspect-ratio:1.68; object-fit:cover; border-radius:0; margin:0; }
.blog-page .postsGrid .hub-article-card .post-body { min-width:0; padding:22px; display:flex; flex-direction:column; flex:1; }
.blog-page .postsGrid .hub-article-card .read-more { margin-top:auto; }
@media(max-width:560px){.blog-page .postsGrid .hub-article-card .post-body { padding:18px; }}
.hub-post-link { color:inherit; text-decoration:none; display:block; }
.hub-post-link:hover { text-decoration:underline; text-underline-offset:.18em; }
.hub-article-card .post-meta,.hub-editorial-note { font-size:.85rem; color:var(--muted); }
@media(max-width:920px){.hub-topic-nav,.hub-page .hub-article-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.hub-topic-nav,.hub-page .hub-article-grid {grid-template-columns:1fr;}}

/* Allow every navigation label to fit narrow screens without horizontal scrolling. */
.blog-page #siteHeader .top .wrap { flex-wrap:wrap; min-width:0; }
.blog-page #siteHeader .nav { min-width:0; max-width:100%; flex-wrap:wrap; }
.blog-page #siteHeader .nav a { min-width:0; overflow-wrap:anywhere; }
.blog-page .hero { grid-template-columns:minmax(0,1fr) !important; }
.blog-page .hero .heroCard { min-width:0; }
.blog-page .hero h1,.blog-page .hero p { overflow-wrap:anywhere; }
.blog-page .blogToolbar { min-width:0; grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.8fr) auto; }
.blog-page .blogToolbar .control { min-width:0; max-width:100%; width:100%; }
.blog-page .hub-breadcrumb,.blog-page #siteFooter { overflow-wrap:anywhere; }
@media(max-width:860px){.blog-page .blogToolbar { grid-template-columns:minmax(0,1fr); }}
@media(max-width:750px){
  .blog-page #siteHeader .nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:5px; }
  .blog-page #siteHeader .nav a { display:flex; align-items:center; justify-content:center; text-align:center; min-height:40px; padding:7px 4px; white-space:normal; }
}
@media(max-width:560px){
  .blog-page .postsGrid { grid-template-columns:minmax(0,1fr); }
  .blog-page .hero h1 { font-size:clamp(30px,9vw,40px); }
  .blog-page .hero .heroCard .btn { max-width:100%; text-align:center; white-space:normal; }
}
