/* Public checklist pages (layouts/public). Plain, fast, readable on a phone. */
:root { --ink: #1c2321; --muted: #5f6b67; --line: #dfe5e2; --accent: #1f7a5c; --accent-soft: #e6f2ed; --bg: #f7f9f8; }
* { box-sizing: border-box; }
body.pub { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; align-items: center; gap: 1rem; }

.pub-top { background: #0b0d0c; color: #fff; }
.pub-top .row { height: 56px; }
.pub-top .brand { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.pub-top nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.pub-top nav a { color: #cfd6d3; text-decoration: none; font-size: .95rem; }
.pub-top nav a.on { color: #fff; font-weight: 600; }
.pub-top nav .cta, .cta { background: var(--accent); color: #fff !important; padding: .4rem .8rem; border-radius: 8px; text-decoration: none; font-weight: 600; }

main.wrap { padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.7rem; margin: .2rem 0 .4rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0; }
.fine { font-size: .8rem; color: var(--muted); }
.pub-foot { padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--line); }

.set-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.set-card a { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; text-decoration: none; color: inherit; }
.set-card a:hover { border-color: var(--accent); }
.set-card img { width: 72px; height: auto; border-radius: 4px; }
.cover-blank { width: 72px; height: 101px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.set-body { display: grid; gap: .15rem; font-size: .92rem; }

.table-wrap { overflow-x: auto; }
table.variations { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .92rem; }
table.variations th, table.variations td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
table.variations th { background: #fbfcfb; color: var(--muted); font-weight: 600; }
table.variations tr:last-child td { border-bottom: 0; }

.card-grid { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; text-decoration: none; color: inherit; font-size: .82rem; }
.tile:hover { border-color: var(--accent); }
.tile img, .face-blank { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; background: var(--accent-soft); }
.face-blank { display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.face-blank.big { font-size: 2rem; }
.tile-text { display: block; margin-top: .3rem; line-height: 1.25; }

.card-page { display: grid; gap: 1.5rem; grid-template-columns: minmax(200px, 320px) 1fr; align-items: start; }
.card-face img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .card-page { grid-template-columns: 1fr; } .pub-top nav a:not(.cta):not(.on) { display: none; } }

.ad { margin: 1.5rem 0; min-height: 90px; }
