/* How it works: cards in a grid, title first, so each rule reads at a glance */
.lp-how > p { max-width: 72ch; }
.lp-rules { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .lp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-rules { grid-template-columns: 1fr; } }
.lp-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.lp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lp-card h3 { margin: 0; font: 700 .98rem var(--font-ui); color: var(--ink); }
.lp-card .badge { flex: none; }
.lp-card p { margin: 0; font-size: .9rem; color: var(--text); }
.lp-costs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lp-costs span { font: .82rem var(--font-ui); padding: 2px 8px; border-radius: 3px; background: var(--cell); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.lp-costs b { color: var(--dim); font-weight: 600; margin-right: 4px; }
.lp-levels { margin: 0 0 12px; color: var(--dim); }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.lp-tabs .chip { text-decoration: none; }

/* The tables: one expander for all towns and one per skill; the filter shows one at a time */
.lp-list > p { max-width: 72ch; }
.lp-skill { border-top: 1px solid var(--border); }
.lp-skill h3 { margin: 0; padding: 11px 4px; font: 600 1rem var(--font-ui); color: var(--ink); }
.lp-skill h3 span { font-weight: 400; font-size: .85rem; color: var(--dim); margin-left: 8px; }
.lp-skill .wm-tbl { margin: 4px 0 14px; }
.lp-skill th { position: static; }
.lp-skills .ic { margin-right: 3px; }

/* Rows open for details: plain text with a chevron that turns, and the whole row reacts, so it doesn't read as a link */
tr[data-place], tr[data-town] { cursor: pointer; }
tr[data-place]:hover > td, tr[data-town]:hover > td { background: var(--hover); }
.lp-open { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: var(--ink); background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; }
.lp-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-chev { width: 12px; height: 12px; flex: none; color: var(--dim); transition: transform .15s; }
.lp-open[aria-expanded="true"] .lp-chev { transform: rotate(90deg); color: var(--accent); }
.lp-open[aria-expanded="true"] { font-weight: 600; }
.lp-rank { white-space: nowrap; }
.lp-detail > td { background: var(--bg2); padding: 10px 12px 14px; }

.lp-share { font-size: .88rem; color: var(--dim); margin-top: 4px; }
.lp-v { font: 700 .78rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.v-good .lp-v { color: var(--good); } .v-skip .lp-v { color: var(--bad); } .v-mid .lp-v { color: var(--warn); }
.v-none .lp-v, .v-locked .lp-v { color: var(--dim); }
tr.v-locked > td, tr.v-locked .lp-open { color: var(--dim); }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.lp-town-places { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 24px; }
.lp-town-places li { display: flex; align-items: center; gap: 6px; padding: 3px 0; break-inside: avoid; }

.lp-preview { margin: 0; }
.lp-preview svg { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); }
.lp-walk { fill: none; stroke: #ffd23f; stroke-width: 4px; stroke-dasharray: 10 5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1.5px #161512); }
.lp-spot { fill: #161512; fill-opacity: .85; stroke: #fff; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.lp-bank { fill: #161512; fill-opacity: .85; stroke: #f1ece2; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.lp-label { fill: #f1ece2; stroke: #161512; paint-order: stroke; font-family: var(--font-ui); font-weight: 600; text-anchor: middle; }
.lp-preview .wm-credit { font-size: .78rem; color: var(--dim); margin: 4px 0 0; }
.lp-world { white-space: nowrap; }
/* A place's details: Good and Bad side by side, its map on the right; stacked on phones */
.lp-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 16px 24px; align-items: start; }
.lp-gb { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 6px; }
.lp-col h4 { margin: 0 0 4px; font: 700 .78rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.lp-good h4 { color: var(--good); } .lp-bad h4 { color: var(--bad); }
.lp-col ul { margin: 0; padding-left: 1.1em; } .lp-col li { margin: 2px 0; } .lp-col p { margin: 0; }
.lp-note { margin: 4px 0 0; color: var(--dim); }
.lp-mapcol .lp-world { display: inline-block; margin-top: 6px; }
/* The table can be wider than a phone; the details stay on screen while it scrolls sideways */
@media (max-width: 760px) { .lp-dgrid, .lp-detail .lp-d { grid-template-columns: 1fr; position: sticky; left: 0; max-width: calc(100vw - 52px); } }
@media (max-width: 420px) { .lp-gb { grid-template-columns: 1fr; } }
.lp-sub { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; font: 700 .78rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
