/* Shared, snapshot-only Free Market presentation. */
:root{--ink:#292e28;--muted:#596258;--accent:#884014;--line:#e1e6da;--leaf:#ecf3e6}
*{box-sizing:border-box}
body{background:#f6f7f1;color:var(--ink);line-height:1.65}
main{max-width:1420px;padding:24px clamp(14px,3vw,40px);min-width:0}
a{color:var(--accent);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:where(a,button,input,tr[tabindex],th[tabindex],.wrap):focus-visible{outline:3px solid #28663b;outline-offset:4px}
main>p:first-child{font-size:.9rem;margin-block:0 18px}
.hero{text-align:start;padding:28px clamp(18px,3vw,36px);background:linear-gradient(120deg,#fffdf6,#edf3e6);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 28px #28332008;margin-block:18px 24px;border-inline-start:5px solid #8caa6b}
.hero h1{font-size:clamp(1.6rem,3vw,2.25rem);line-height:1.35;letter-spacing:-.025em;margin:0 0 14px}
.hero p{color:var(--muted);font-size:.92rem;margin:5px 0}
.hero p:first-of-type{font-size:1.05rem;color:var(--ink);margin-bottom:12px}
.sbar{display:block;margin:24px 0 18px}.search-label{display:block;font-weight:700;margin-bottom:8px}
.sbar input{width:100%;max-width:none;border:1px solid #aab69e;border-radius:12px;background:white;padding:15px 18px;box-shadow:0 3px 10px #24301c05;font:inherit;color:var(--ink)}
.sbar input::placeholder{color:#62695e}
.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 28px}
.card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 4px 16px #24301c05}
.card h2{color:#465b38;font-size:.95rem;line-height:1.5;min-height:2.9em;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.card ol{padding:0;list-style:none;font-size:.88rem}.card li{align-items:center;gap:10px;padding-block:7px;margin:0;border-bottom:1px solid #f0f2ec}.card li:last-child{border:0}
.card li a{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;text-decoration:none;line-height:1.4}.card li span{flex:none;color:#424c3c;font-size:.82rem}.card-icon{width:26px;height:26px;object-fit:contain;flex:none;image-rendering:pixelated}
.chips{gap:8px;margin:16px 0 20px}.chips button{border-color:#c6cfbc;border-radius:9px;padding:7px 14px;background:white;color:#414c39;line-height:1.4}.chips button.on{background:#364f2d;border-color:#364f2d;color:#fff}.chips button:hover{border-color:#526b42}
.layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.layout>div,.layout>aside{min-width:0}
.cnt{color:var(--muted);font-size:.9rem;margin:0 0 10px;font-weight:600}
.wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 20px #24301c05}
table{min-width:1050px;font-size:.85rem}th,td{padding:13px 14px;border-bottom:1px solid #edf0e7}th{background:#edf2e7;color:#36442e;font-weight:700}th[aria-sort=ascending],th[aria-sort=descending]{background:#e0ead5;text-decoration:underline;text-underline-offset:4px}
th:first-child{min-width:200px}td.src{font-size:0.8125rem;line-height:1.7;color:#56604f}.it{gap:12px;line-height:1.4}.it img{background:#f6f7f1;border-radius:8px;padding:2px;width:36px;height:36px;image-rendering:pixelated}tr.row:nth-child(even){background:#fafbf7}tr.row:hover,tr.row:focus{background:#eef4e5}
.note{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff;margin-top:28px;font-size:.88rem;color:#4c5746}.note p{margin:7px 0}.dim{color:#687160}
dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:640px;max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 20px 80px #1a241a40;color:var(--ink)}dialog::backdrop{background:#1e2b1dcc}dialog dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}dialog dd{overflow-wrap:anywhere}dialog h2{line-height:1.4}dialog button{background:#364f2d;color:white;padding:10px 22px;border:0;border-radius:9px;font:inherit;cursor:pointer}
.empty-market{text-align:start;padding:32px!important;color:var(--muted)}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:minmax(0,1fr)}.layout aside{display:none}}
@media(max-width:560px){main{padding:16px 12px}.hero{padding:22px 18px;border-radius:16px}.cards{grid-template-columns:minmax(0,1fr);gap:12px}.card{padding:16px}.card h2{min-height:0}.chips button{padding:8px 11px}.note{padding:16px}dialog{padding:18px}.hero p{overflow-wrap:anywhere}}
/* Desktop first: give the nine-column comparison table the full content width. */
@media(min-width:1151px){
 .layout{grid-template-columns:minmax(0,1fr)}
 .layout aside{position:static;justify-self:center;width:300px;max-width:100%}
 .hero{padding-block:34px}.cards{gap:20px}.card{padding:22px}
 table{font-size:.9rem}th,td{padding:15px 16px}
}
/* Cohesive desktop rhythm: compact introduction, aligned three-card summary and comparison. */
main{max-width:1360px;padding-block:24px}
.hero{padding:24px 28px;margin-block:20px 24px}
.hero h1{font-size:clamp(1.6rem,2.5vw,2rem);margin-bottom:12px}
.hero p{margin:4px 0}.hero p:first-of-type{margin-bottom:8px}
.sbar{margin:24px 0 20px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 24px}
.card{padding:18px 20px}.card h2{min-height:0;margin-bottom:8px;padding-bottom:10px}.card li{padding-block:8px}
.npc-comparison{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin-block:0 24px}
.npc-comparison h2{font-size:1.2rem;line-height:1.4;margin:0 0 10px;color:#364f2d}
.npc-comparison p{font-size:.9rem;color:var(--muted);margin:6px 0;line-height:1.6}
.gap-scroll{overflow:auto;max-width:100%;margin:16px 0;border:1px solid var(--line);border-radius:10px}
.gap-table{min-width:680px;width:100%;font-size:.9rem}.gap-table th,.gap-table td{padding:11px 16px}.gap-table th:first-child{min-width:180px}.gap-table td:nth-child(4){font-weight:700;color:#31582c}.gap-table tbody tr:last-child td{border-bottom:0}
.npc-comparison .gap-caution{color:#654a27}.npc-comparison .gap-definition{font-size:.82rem}
.chips{margin:0 0 18px}.cnt{margin-bottom:12px}
@media(min-width:1151px){.hero{padding:24px 28px}.card{padding:18px 20px}th,td{padding:12px 14px}table{font-size:.9rem}}
@media(max-width:750px){.cards{grid-template-columns:1fr}.npc-comparison{padding:18px}.hero{padding:20px}.gap-table{min-width:680px}}
.market-table-title{font-size:1.2rem;margin:20px 0 14px;color:#364f2d}
.note h2,.market-related h2{font-size:1.1rem;margin:18px 0 10px;color:#364f2d}.note h2:first-child{margin-top:0}
.market-related{padding:20px 0;margin:8px 0 20px;border-bottom:1px solid var(--line)}.market-related a{display:inline-block;margin-inline-end:18px;margin-bottom:8px;font-size:.9rem}
.gap-table th:first-child{min-width:150px}.gap-table th:nth-child(5){width:30%}
/* Let the snapshot-count heading wrap rather than widening the desktop table. */
.wrap th[data-k="l"]{white-space:normal;min-width:100px;max-width:130px;line-height:1.4}
