/* Storefront: a compact market index, not a promotional landing page. */
:root {
  --ink:#172522; --paper:#fbfbf8; --white:#fff; --black:#fbfbf8;
  --black2:#f2f4ef; --line:#dce1d9; --paperline:#dce1d9;
  --orange:#28594c; --green:#28594c; --muted:#55645c; --darkmuted:#55645c;
  --shadow:none; background:var(--paper); color:var(--ink);
}
.shell {width:min(1200px, calc(100% - 72px));}
header {background:#fff; border-color:var(--line);}
.top {height:64px; gap:24px;}
.brand {font-size:19px; letter-spacing:-.04em; gap:9px; color:var(--ink);}
.brand-mark {width:30px; height:30px;}
nav {display:flex; margin-right:auto; gap:24px; color:var(--muted); font-size:13px;}
nav a:first-child {color:var(--ink); font-weight:700;}
nav a:after {bottom:-7px;}
.top-actions {align-items:center; gap:7px;}
.wallet,.social-x {border-radius:5px; min-height:36px; height:36px; white-space:nowrap;}
.wallet {background:#fff; color:var(--ink); border:1px solid var(--line); padding:0 11px;}
.wallet span {background:var(--green);}
.social-x {width:36px; flex:0 0 36px;}
.social-x:disabled {opacity:.5;}

.hero {padding:0; background:var(--paper);}
.masthead {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:32px; padding:50px 0 39px; border-bottom:1px solid var(--line);}
.edition {color:var(--green); font-size:12px; font-weight:700;}
.edition span {margin:0 5px; color:#779487;}
.hero h1 {margin:12px 0 14px; color:var(--ink); font-size:clamp(34px,4.1vw,57px); line-height:1.15; font-weight:800; letter-spacing:-.055em;}
.hero .hero-sub {max-width:none; margin:0; font-size:14px; line-height:1.85; color:var(--muted);}
.masthead-side {display:grid; gap:12px;}
.masthead-actions {display:flex; gap:8px;}
.market-action {border:1px solid #c4d0c7; border-radius:5px; background:white; white-space:nowrap; min-height:42px; padding:0 16px; font-size:13px; font-weight:700;}
.market-action.primary {background:var(--green); border-color:var(--green); color:white;}
.market-action:hover,.lane-add:hover {border-color:var(--green); background:#eaf1eb;}
.market-action.primary:hover {background:#1d473c;}
.market-status {width:max-content; max-width:100%; color:var(--muted); font-size:11px;}
.market-status:hover {text-decoration:underline;}

.market-wrap {padding:25px 0 48px; background:var(--paper);}
.market-title {display:flex; align-items:center; gap:16px;}
.market-title h2,.official-store h2,.test-vault-heading h2,.how h2,.rules-copy h2 {margin:0; color:var(--ink); font-size:clamp(24px,2.55vw,33px); font-weight:800; line-height:1.25; letter-spacing:-.04em;}
.market-stats {display:flex; width:auto; min-width:0; gap:15px; border:0; padding:0; margin:0; background:none;}
.market-stats div {display:flex; gap:5px; padding:0; border:0; align-items:baseline;}
.market-stats strong {font:600 14px system-ui,sans-serif; color:var(--ink); font-variant-numeric:tabular-nums;}
.market-stats span {color:var(--muted); font-size:11px;}
.filter-panel {margin-top:16px; grid-template-columns:minmax(0,1fr) 148px 137px 165px 40px; gap:8px; padding:0; border:0; border-radius:0; background:none;}
.filter-panel label>span {color:var(--muted); font-size:11px; padding-left:0;}
.filter-panel select,.market-search,.refresh {height:40px; min-height:40px; border:1px solid var(--line); border-radius:5px; background:white; color:var(--ink); font-size:12px;}
.market-search {grid-column:auto; padding:0 12px;}
.market-search>span {font-size:18px!important;}
.filter-panel select:focus-visible,.market-search:focus-within {outline:2px solid var(--green); outline-offset:1px;}
.refresh {width:40px; font-size:19px;}
.category-row {gap:3px; margin-top:8px; padding:0; border-bottom:1px solid var(--line);}
.category-chip {border:0; border-bottom:2px solid transparent; border-radius:0; padding:11px 10px 10px; color:var(--muted); font-size:12px; background:none;}
.category-chip.active,.category-chip:hover {border-color:var(--green); background:none; color:var(--green);}
.category-chip.active {font-weight:800;}
.columns {gap:16px; margin-top:15px;}
.lane,.offer-lane {background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:none;}
.lane-head {display:flex; justify-content:space-between; gap:10px; align-items:center; padding:13px 16px; border-bottom:1px solid var(--line); background:#f3f5f0;}
.lane-head h3 {display:flex; align-items:center; gap:8px; font-size:17px; letter-spacing:0; margin:0 0 2px;}
.lane-count {color:var(--muted); white-space:nowrap; font-size:11px; font-weight:500;}
.lane-head p {font-size:11px;}
.lane-add,.lane-head .lane-add {width:auto; padding:7px 9px; font-size:11px; border-radius:4px; border-color:#cbd5cb; background:white;}
.lane-add span {margin-right:0;}
.cards {padding:0; gap:0; align-content:start; min-height:142px;}
.listing,.offer-lane .listing {background:white; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:14px 16px;}
.listing:last-child {border-bottom:0;}
.listing:hover {transform:none; box-shadow:none; background:#f8faf6; border-color:var(--line);}
.listing h4 {font-size:16px; margin:7px 0 4px; overflow-wrap:anywhere;}
.listing .desc {min-height:0;}
.category {border-radius:3px; background:#eef3ee; color:var(--green);}
.quote-row {border-radius:0; margin:10px 0; padding:9px 0; background:none; border:0; border-block:1px solid #edf0eb;}
.owner-dot {background:var(--green);}
.empty,.loading {padding:25px 12px;}
.empty b {font-size:14px;}
.empty button {margin-top:12px;}

.official-store,.test-vault,.how,.rules {padding:36px 0; border-block:0; border-top:1px solid var(--line); background:var(--paper);}
.store-layout {display:flex; justify-content:space-between; align-items:center; gap:12px;}
.store-intro p {margin:8px 0 0; font-size:13px;}
.store-state {display:flex; gap:10px; align-items:center; font-size:12px; color:var(--muted); white-space:nowrap;}
.restock-badge {margin:0; border:1px solid #d7dfd1; border-radius:4px; padding:5px 8px; color:var(--green); background:#eef3eb; font-size:12px;}
.test-vault {background:#f3f5f0;}
.test-vault-heading .edition {margin:0 0 7px;}
.test-vault-contracts a,.test-vault-metrics>div {border-radius:5px; box-shadow:none;}
.test-vault-contracts span,.test-vault-metrics small {color:var(--green);}
#test-vault-refresh {border-radius:5px; color:var(--ink); background:white; border-color:var(--line);}
.how>.shell,.rules-layout {display:grid; grid-template-columns:minmax(0, .64fr) minmax(0,1.36fr); gap:28px; align-items:start;}
.how-heading>p,.rules-copy>p {margin:8px 0 0;}
.steps {grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch;}
.steps article,.steps article:nth-child(2) {min-height:0; transform:none; background:none; border:0; border-top:1px solid #bfcdbf; padding:10px 0 0; border-radius:0;}
.steps article>span {color:var(--green); margin-bottom:10px;}
.steps h3 {font-size:15px; margin:0 0 6px;}
.rule-stack {gap:0; border-top:1px solid var(--line);}
.rule-stack article {padding:13px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none;}
.rule-stack strong {font-size:24px; color:var(--green);}
.status-pill {border-color:var(--line); border-radius:4px;}
footer {background:#fff;}
.foot {min-height:80px;}
:where(button,a,[tabindex]):focus-visible {outline:2px solid var(--green); outline-offset:3px;}

@media(max-width:900px) {
  .shell {width:calc(100% - 38px);}
  .top {gap:16px;}
  nav {gap:12px; font-size:12px;}
}
@media(max-width:740px) {
  .top {height:auto; min-height:58px; flex-wrap:wrap; padding-top:9px; gap:0 8px;}
  .top-actions {margin-left:auto;}
  nav {order:3; margin:0; width:100%; gap:8px 16px; flex-wrap:wrap; padding:9px 0 10px;}
  nav a:after {bottom:-3px;}
  .masthead {grid-template-columns:1fr; gap:16px; padding:25px 0 20px;}
  .desktop-break {display:none;}
  .filter-panel {grid-template-columns:repeat(3,minmax(0,1fr)) 40px;}
  .market-search {grid-column:1/-1;}
  .filter-panel label:nth-child(4) {grid-column:auto;}
  .filter-panel select {width:100%;}
  .how>.shell,.rules-layout {grid-template-columns:1fr; gap:16px;}
}
@media(max-width:560px) {
  .shell {width:calc(100% - 28px);}
  .hero h1 {font-size:clamp(25px,8.7vw,42px);}
  .hero .hero-sub {font-size:13px;}
  .market-wrap {padding:20px 0 32px;}
  .market-title {align-items:flex-start; flex-direction:column; gap:6px;}
  .market-stats {gap:10px;}
  .category-chip {padding-inline:8px;}
  .columns {grid-template-columns:1fr; gap:10px;}
  .lane-head {padding:10px 12px;}
  .official-store,.test-vault,.how,.rules {padding-block:26px;}
  .store-layout,.store-state {align-items:start;}
  .store-state {flex-direction:column; gap:4px;}
  .steps {grid-template-columns:1fr;}
  .steps article,.steps article:nth-child(2) {display:grid; grid-template-columns:23px 1fr; align-items:baseline;}
  .steps article>span {grid-row:1/3; margin:0;}
  .foot {padding:14px 0;}
}
@media(prefers-reduced-motion:reduce) { :root {scroll-behavior:auto;} }

/* Let each side end with its own last listing rather than padding shorter feeds. */
.columns {align-items:start;}
.quote-label,.meta {color:var(--muted);}
.foot>div a {color:var(--green);}
.status-pill i {animation:none; box-shadow:none;}

/* Illustrated edition: warmer materials, stronger section hierarchy. */
:root { --paper:#fbfaf4; --paperline:#dbded3; --line:#dbded3; --green:#244b3c; --orange:#244b3c; }
header {background:#fffdf8;}
.hero {padding-top:22px;}
.masthead {padding:0; border:1px solid #c6d0c0; background:#e9eee1; grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr); gap:0; align-items:stretch;}
.masthead-copy {padding:clamp(23px,3.5vw,51px); align-self:center;}
.masthead .edition {display:flex; align-items:center; gap:6px; letter-spacing:.05em;}
.masthead .edition::before {content:""; width:16px; height:9px; background:repeating-linear-gradient(110deg,var(--green) 0 2px,transparent 2px 5px);}
.hero h1 {font-size:clamp(31px,3.85vw,54px); margin:12px 0 10px;}
.hero .hero-sub {max-width:31em;}
.masthead-side {margin-top:20px;}
.masthead-art {margin:0; min-width:0; display:grid; grid-template-rows:minmax(0,1fr) auto; border-left:1px solid #c6d0c0; background:#203e33; color:#fff9e4;}
.masthead-art img {display:block; width:100%; height:100%; max-height:282px; min-height:190px; object-fit:cover; object-position:center;}
.masthead-art figcaption {padding:8px 13px; font-size:11px; letter-spacing:.04em;}
.market-wrap {padding-top:25px;}
.market-title h2::before {content:""; display:inline-block; vertical-align:.1em; width:10px; height:.68em; margin-right:9px; background:#e4c873;}
.lane-head {background:#e9eee3; border-top:3px solid #527761;}
.offer-lane .lane-head {background:#f4eedb; border-top-color:#b29449;}
.official-store {padding:24px 0; background:#eeefe5;}
.store-layout {display:grid; grid-template-columns:minmax(160px,.65fr) minmax(0,1fr) auto; gap:clamp(12px,2.1vw,30px);}
.store-art {display:block; width:100%; height:112px; object-fit:cover; object-position:center; border:1px solid #c6d0c0;}
.restock-badge {background:#f5ebc7; border-color:#d7c88c; color:#67531e;}
.test-vault {background:#f8f8f0;}
@media(max-width:740px) {
  .hero {padding-top:12px;}
  .masthead {grid-template-columns:minmax(0,1fr) minmax(0,.7fr);}
  .masthead-copy {padding:20px;}
  .masthead-art img {max-height:none;}
}
@media(max-width:560px) {
  .masthead {grid-template-columns:minmax(0,1fr);}
  .masthead-copy {padding:15px 14px 13px;}
  .hero h1 {font-size:clamp(25px,7.65vw,40px); margin:8px 0;}
  .masthead-side {margin-top:12px; gap:7px;}
  .masthead-art {border-left:0; border-top:1px solid #c6d0c0;}
  .masthead-art img {min-height:0; height:clamp(88px,31vw,150px);}
  .masthead-art figcaption {padding:5px 11px;}
  .store-layout {grid-template-columns:minmax(0,1fr) auto; align-items:center;}
  .store-art {grid-column:1/-1; height:96px;}
}
