/* Portal-only guide layout; not loaded by game play pages. */
.guide-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:1rem}
.guide-directory .guide-panel{margin:0;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.guide-directory .btn{margin-top:auto}
.guide-illustrations{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:flex-start;justify-content:center;margin-block:1.2rem}
.guide-figure{margin:0;max-width:min(100%,320px);flex:1 1 220px;min-width:0}
.guide-figure img{display:block;width:100%;height:auto;border-radius:12px}
.guide-figure figcaption{margin-block:.6rem;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:400px){.nav-links{flex-wrap:wrap;justify-content:center}.nav-links a{flex:1 0 auto;padding-inline:6px;min-height:44px}}

/* Keep the primary guide Play action reachable on small screens. */
.portal-intro>.launch{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;white-space:normal;text-align:center}

.worked-example{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.25rem}
.worked-example:first-of-type{border-top:0;margin-top:.5rem}
.worked-level{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0}
.worked-example h3{margin-top:.25rem}
.worked-example .guide-figure{max-width:min(100%,260px);flex-basis:200px}
