/* Text pages: the PoE1 converter page, and the gallery pages the Worker makes (/hideouts, /hideouts/<id>).
   Loads after tokens.css. No scripts on these pages. */
html, body { font-size: 15px; line-height: 1.55; }
main { max-width: 760px; margin: 0 auto; padding: var(--sp-7) var(--sp-6) 48px; }
h1 { color: var(--c-heading); font: 700 32px/1.2 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--tracking-display); margin: 8px 0 12px; }
h2 { color: var(--c-heading); font: 600 21px/1.3 var(--font-caps); text-transform: var(--display-case); letter-spacing: var(--tracking-display); margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--c-line-strong); }
h3 { color: var(--c-heading); font-size: 17px; margin: 18px 0 4px; }
.lede { font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.cta a { display: inline-block; padding: 8px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); text-decoration: none; }
.cta a.primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.cta a:hover { border-color: var(--c-accent-strong); }
.foot { margin-top: 40px; font-size: 12px; color: var(--c-text-faint); }
figure { margin: 16px 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-sunken); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; list-style: none; color: var(--c-text-muted); }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.cards li { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); overflow: hidden; }
.cards a { display: block; text-decoration: none; color: inherit; }
.cards img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-sunken); }
.cards .noimg { display: block; aspect-ratio: 16 / 10; background: var(--c-sunken); }
/* a map drawn from the layout (minimap.ts), for posts with no picture everyone can see; dark in both themes */
.cards .drawn { position: relative; display: block; }
.cards .drawn img { height: auto; object-fit: contain; background: var(--c-map-bg); }
.cards .drawn .tag { position: absolute; left: 8px; bottom: 8px; padding: 1px 6px; border-radius: var(--r-sm, 4px); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-map-label); background: rgb(0 0 0 / .55); }
figure.drawn img { width: 100%; max-width: 640px; aspect-ratio: 16 / 10; background: var(--c-map-bg); }
figure.drawn figcaption { margin-top: 6px; font-size: 13px; color: var(--c-text-muted); }
.cards .t { display: block; padding: 8px 10px 0; color: var(--c-heading); overflow-wrap: anywhere; }
.cards .m { display: block; padding: 2px 10px 10px; font-size: 13px; color: var(--c-text-muted); }
.pager { display: flex; justify-content: space-between; margin-top: 18px; }
@media (max-width: 560px) { main { padding: var(--sp-6) 16px 40px; } h1 { font-size: 26px; } }
