/* ==========================================================================
   Guide hub (/guide/), Lore directory (/pages/) and a page (/<folder>/<slug>/).
   Brief §7 "Guide" / "Lore", images/guide-*, images/lore-*. Loaded from
   pages/guide_hub.html, page_directory.html and page_detail.html.
   ========================================================================== */

/* ---------- Guide hub ---------- */
.guide-hub-lead{ margin-bottom:34px; }
.bulletin-grid.guide-grid{ grid-template-columns:repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.guide-card{ justify-content:space-between; }
.guide-card-body{ display:flex; gap:12px; align-items:flex-start; }
.guide-card-icon{ width:52px; height:52px; flex:0 0 auto; border-radius:14px; display:flex; align-items:center; justify-content:center;
  font-size:26px; border:2px solid var(--line); }
.guide-card h2{ font-size:17px; line-height:1.2; margin:2px 0 4px; overflow-wrap:anywhere; }
.guide-card p{ font-size:13.5px; line-height:1.45; color:var(--ink-soft); margin:0; }

/* ---------- Lore contents ---------- */
.toc-tree{ list-style:none; margin:0; padding:0; }
.toc-tree li{ padding:4px 0; }
.toc-tree ul, .toc-tree .toc-tree{ margin:4px 0 0 10px; padding:0 0 0 12px; border-left:2px dashed var(--line); }
.toc-tree a{ display:inline-flex; align-items:center; min-height:44px; font-weight:700; text-decoration:none; color:var(--accent-dark); }
.toc-tree a:hover{ text-decoration:underline; }
.toc-tree a[aria-current="page"]{ color:var(--rose-ink); text-decoration:underline; }
.toc-tree .toc-folder{ font-family:"Fredoka"; font-weight:600; font-size:15.5px; }
.lore-sheet .lede{ margin:0 0 12px; }

/* ---------- One page ---------- */
.detail-cols.single{ display:block; }
.lore-side{ flex:1 1 260px; }
@media (min-width:1000px){ .lore-side{ order:-1; } } /* contents on the left; under the page on narrower screens */
.lore-side h2{ font-size:22px; margin:0 0 6px; }
.lore-side p{ font-size:14px; }
.page-sheet-top{ display:flex; justify-content:space-between; align-items:center; gap:8px 12px; flex-wrap:wrap; margin-bottom:6px; }
.page-sheet h1{ font-size:32px; margin:6px 0 0; overflow-wrap:anywhere; }
.page-sheet hr{ border:none; border-top:2px dashed var(--line); margin:12px 0 16px; }
.page-sheet .page-body{ font-size:16px; line-height:1.75; overflow-wrap:anywhere; }
.page-sheet .page-body img{ max-width:100%; height:auto; }

@media (max-width:480px){
  .bulletin-grid.guide-grid{ grid-template-columns:minmax(0,1fr); }
  .page-sheet h1{ font-size:26px; }
}
