.hero.slim { padding: 18px 0 14px; }
.hero.slim h1 { font-size: 1.6rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.crumbs span { margin: 0 4px; }
.lede-in { color: var(--muted); max-width: 75ch; margin: 18px 0; }

/* overview cards */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 24px; }
.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); }
.acard:hover { border-color: var(--accent); text-decoration: none; }
.thumb { aspect-ratio: 2 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-ph { color: var(--accent); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; background: var(--accent-soft); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.abody { padding: 12px 14px 14px; }
.abody h2 { font-size: 1.05rem; margin: 0 0 6px; }
.abody p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.ameta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; }
.tag { background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }

/* report */
.report { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 18px 0 30px; }
.side { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow: auto; font-size: .85rem; }
.toc ul, .sidebox ul { list-style: none; padding: 0; margin: 6px 0 14px; }
.toc li { margin: 2px 0; }
.toc li.l3 { padding-left: 12px; }
.toc a { color: var(--muted); display: block; padding: 2px 6px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.sidebox { border-top: 1px solid var(--border); padding-top: 10px; }
.prose { max-width: 820px; line-height: 1.6; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.prose h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.prose h4 { font-size: .95rem; margin: 16px 0 4px; }
.prose h2:first-of-type { border-top: none; }
.prose .anchor { margin-left: 6px; color: var(--muted); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose table { border-collapse: collapse; font-size: .88rem; }
.prose td, .prose th { border-bottom: 1px solid var(--border); padding: 4px 8px; }
.prose pre { background: var(--surface-2); padding: 10px; border-radius: 8px; overflow-x: auto; }
.keybox { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 4px 0 18px; }
.keybox p { margin: 4px 0 0; }
.fig { margin: 10px 0 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.fig img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.fig figcaption { font-size: .8rem; color: #555; padding: 6px 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 85vh; background: #fff; border-radius: 6px; }
.lightbox p { color: #eee; font-size: .9rem; }
.lightbox button { position: absolute; top: 10px; right: 16px; font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; }
@media (max-width: 860px) {
  .report { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .toc ul { columns: 2; }
}
.tocwrap summary { font-weight: 600; cursor: pointer; margin-bottom: 4px; }
@media (max-width: 860px) { .tocwrap { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; } .sidebox { display: none; } }
