:root {
  --bg: #0f1419; --bg2: #171d24; --bg3: #1f2730; --line: #2a333d;
  --fg: #e6e9ec; --muted: #8b97a3; --accent: #f3a712; --accent-fg: #1a1200;
  --none: #6b7a88; --partial: #f3a712; --all: #3ddc84; --danger: #ff5c5c;
  --mil: #b06ab3; --glide: #5aa9e6; --closed: #4a545e;
  --radius: 12px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --header-h: 52px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f6f8; --bg2: #ffffff; --bg3: #eceff3; --line: #d9dee5; --fg: #15202b; --muted: #5d6b79;
          --none: #94a3b3; --closed: #b7c0ca; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.error { color: var(--danger); }
code { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 1000; height: var(--header-h); display: flex; align-items: center; gap: 1rem; padding: 0 .9rem; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; gap: .15rem; margin-left: .5rem; }
.nav a { text-decoration: none; padding: .35rem .7rem; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a.active, .nav a:hover { color: var(--fg); background: var(--bg3); }
.progress-chip { margin-left: auto; font-family: var(--mono); font-size: .85rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); white-space: nowrap; }
.progress-chip b { color: var(--all); }
@media (max-width: 640px) {
  .top { gap: .5rem; padding: 0 .6rem; padding-top: env(safe-area-inset-top); }
  .brand span { display: none; }
  .nav a { padding: .35rem .5rem; font-size: .9rem; }
  .progress-chip { font-size: .75rem; padding: .25rem .5rem; }
}

main { min-height: calc(100% - var(--header-h)); }
.page { max-width: 1080px; margin: 0 auto; padding: 1.2rem 1rem 4rem; }
.page.wide { max-width: 1280px; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg3); cursor: pointer; text-decoration: none; font-weight: 500; line-height: 1.2; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.small { padding: .3rem .6rem; font-size: .85rem; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
textarea { min-height: 7rem; resize: vertical; font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.row > * { flex: 1 1 10rem; }
.check { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .9rem .4rem 0; font-size: .95rem; color: var(--fg); cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .8rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; user-select: none; }
.chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tag { display: inline-block; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.tag.cat-ga { color: var(--fg); } .tag.cat-controlled { color: #7fc8ff; border-color: #7fc8ff55; } .tag.cat-military { color: var(--mil); border-color: #b06ab355; }
.tag.cat-gliding { color: var(--glide); } .tag.cat-closed, .tag.cat-heliport, .tag.cat-other { opacity: .7; } .tag.cat-major { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--none); display: inline-block; }
.dot.partial { background: var(--partial); } .dot.all { background: var(--all); }
.stars { color: var(--accent); letter-spacing: .05em; }
.stars .off { color: var(--line); }

/* login */
.login-body { display: grid; place-items: center; padding: 1rem; }
.login-card { min-height: 0; width: min(360px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.6rem; text-align: center; }
.login-card h1 { margin-top: .6rem; } .login-card form { text-align: left; margin-top: 1.4rem; }

/* map */
.map-wrap { position: relative; height: calc(100dvh - var(--header-h)); }
#map { position: absolute; inset: 0; background: var(--bg); }
.map-panel { position: absolute; z-index: 800; left: .7rem; top: .7rem; width: 300px; max-height: calc(100% - 1.4rem); overflow: auto; background: color-mix(in srgb, var(--bg2) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; box-shadow: 0 10px 30px #0006; }
.map-panel h3 { margin-top: .6rem; font-size: .75rem; } .map-panel h3:first-child { margin-top: 0; }
.panel-toggle { position: absolute; z-index: 801; left: .7rem; top: .7rem; display: none; }
.progress-bar { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; display: flex; margin: .3rem 0 .4rem; }
.progress-bar i { display: block; height: 100%; }
.progress-bar .all { background: var(--all); } .progress-bar .partial { background: var(--partial); }
.legend { display: grid; grid-template-columns: auto 1fr; gap: .25rem .5rem; font-size: .8rem; align-items: center; color: var(--muted); }
@media (max-width: 700px) {
  .map-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 55%; border-radius: 16px 16px 0 0; transform: translateY(calc(100% - 44px)); transition: transform .25s; padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
  .map-panel.open { transform: none; }
  .map-panel .handle { display: block; height: 44px; margin: -.8rem -.9rem .4rem; display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
  .map-panel .handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
}
@media (min-width: 701px) { .map-panel .handle { display: none; } }
@media (max-width: 700px) { .leaflet-bottom.leaflet-right, .leaflet-bottom.leaflet-left { margin-bottom: 46px; } }
.af-marker { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px #0008; background: var(--none); }
.af-marker.partial { background: var(--partial); } .af-marker.all { background: var(--all); }
.af-marker.cat-military { border-radius: 3px; background: var(--mil); opacity: .85; }
.af-marker.cat-gliding { width: 0; height: 0; border: none; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--glide); box-shadow: none; border-radius: 0; filter: drop-shadow(0 1px 2px #0008); }
.af-marker.cat-closed, .af-marker.cat-heliport, .af-marker.cat-other { width: 10px; height: 10px; border-width: 1.5px; background: var(--closed); }
.af-marker.cat-major { border-radius: 3px; }
.af-marker.not-target { opacity: .75; }
.af-marker.home { background: var(--accent); border-color: var(--accent-fg); width: 20px; height: 20px; }
.leaflet-popup-content-wrapper { background: var(--bg2); color: var(--fg); border-radius: 10px; }
.leaflet-popup-tip { background: var(--bg2); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: .7rem .9rem; min-width: 190px; }
.leaflet-popup-content .mono { font-size: .8rem; }
.pop-name { font-weight: 600; margin-bottom: .2rem; }
.leaflet-control-layers, .leaflet-bar a { background: var(--bg2) !important; color: var(--fg) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--bg3) !important; }
.leaflet-control-layers-expanded { padding: .5rem .8rem; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg2) 80%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-tile.dim { filter: brightness(.9) saturate(.85); }

/* list */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search] { padding: .5rem .8rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); min-width: 14rem; }
.toolbar select { padding: .45rem .6rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); }
table.list { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; }
table.list th.sorted { color: var(--fg); }
table.list tr:last-child td { border-bottom: none; }
table.list tbody tr { cursor: pointer; } table.list tbody tr:hover { background: var(--bg3); }
table.list td.num { text-align: right; font-family: var(--mono); font-size: .85rem; }
.cards { display: none; }
@media (max-width: 760px) {
  table.list { display: none; }
  .cards { display: grid; gap: .6rem; }
  .card { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; text-decoration: none; }
  .card .name { font-weight: 600; } .card .sub { font-size: .8rem; color: var(--muted); grid-column: 1 / -1; }
}

/* airfield page */
.hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); min-height: 180px; display: flex; align-items: flex-end; margin-bottom: 1rem; }
.hero.has-cover { min-height: 360px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, #0f1419ee 0%, #0f141988 45%, #0f141900 100%); }
.hero .inner { position: relative; padding: 1.2rem 1.3rem 1rem; width: 100%; color: #e6e9ec; }
.hero .kicker { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.hero .icao { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: .2rem; }
.hero .meta { color: #b9c3cc; font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero:not(.has-cover) .inner { color: var(--fg); } .hero:not(.has-cover) .meta { color: var(--muted); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.panel h3 { display: flex; align-items: center; justify-content: space-between; }
.panel h3 .btn { text-transform: none; letter-spacing: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem 1rem; }
.fact b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.fact span { font-size: .95rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: .2rem .4rem .35rem 0; }
table.data td { padding: .3rem .4rem .3rem 0; border-top: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: .4rem; }
.prose { line-height: 1.55; } .prose p:first-child { margin-top: 0; } .prose p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; }
.prose.empty { color: var(--muted); font-style: italic; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.photos a { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--bg3); display: block; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .cover-badge { position: absolute; left: .35rem; top: .35rem; font-size: .65rem; background: var(--accent); color: var(--accent-fg); padding: .1rem .4rem; border-radius: 4px; font-weight: 700; }
.photos .wiki-badge { position: absolute; right: .35rem; top: .35rem; font-size: .65rem; background: #0009; color: #fff; padding: .1rem .4rem; border-radius: 4px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1rem; text-align: center; color: var(--muted); cursor: pointer; margin-top: .7rem; }
.dropzone.over { border-color: var(--accent); color: var(--fg); }
.visit { padding: .8rem 0; border-top: 1px solid var(--line); }
.visit:first-of-type { border-top: none; padding-top: 0; }
.visit .head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.visit .date { font-family: var(--mono); font-weight: 600; }
.visit .who { color: var(--muted); font-size: .9rem; }
.visit .edit { margin-left: auto; display: flex; gap: .3rem; }
.visit .line { font-size: .9rem; color: var(--muted); margin: .2rem 0; }
.visit .photos { margin-top: .5rem; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--bg3); font-size: .8rem; font-family: var(--mono); }
#minimap { height: 240px; border-radius: 10px; overflow: hidden; }
.metar { font-family: var(--mono); font-size: .85rem; white-space: pre-wrap; word-break: break-word; }
.history { font-size: .85rem; } .history li { margin-bottom: .3rem; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 2000; background: #000a; display: grid; place-items: end center; }
@media (min-width: 641px) { .modal-back { place-items: center; } }
.modal { width: min(560px, 100%); max-height: 92dvh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 1.1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); }
@media (min-width: 641px) { .modal { border-radius: 16px; } }
.modal h2 { margin-bottom: 1rem; }
.modal .foot { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; flex-wrap: wrap; }
.modal .foot .danger { margin-right: auto; }
.rating { display: inline-flex; gap: .15rem; font-size: 1.5rem; cursor: pointer; color: var(--line); }
.rating span.on { color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: #000e; display: flex; flex-direction: column; }
.lightbox .img { flex: 1; display: grid; place-items: center; min-height: 0; padding: .5rem; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .bar { display: flex; gap: .5rem; align-items: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); color: #ddd; font-size: .85rem; flex-wrap: wrap; }
.lightbox .bar .cap { flex: 1 1 12rem; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; background: #0006; color: #fff; border: none; width: 48px; height: 64px; border-radius: 8px; cursor: pointer; }
.lightbox .prev { left: .5rem; } .lightbox .next { right: .5rem; }
.lightbox .close { position: absolute; top: .6rem; right: .8rem; font-size: 1.6rem; background: #0006; color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat b { display: block; font-size: 1.7rem; font-family: var(--mono); font-weight: 600; line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; justify-content: flex-start; }
.bars div { flex: 1; max-width: 48px; background: var(--accent); border-radius: 3px 3px 0 0; min-width: 6px; position: relative; }
.bars div i { position: absolute; bottom: -1.2rem; left: 0; right: 0; text-align: center; font-size: .6rem; color: var(--muted); font-style: normal; font-family: var(--mono); }
.bars div b { position: absolute; top: -1.1rem; left: 0; right: 0; text-align: center; font-size: .65rem; font-family: var(--mono); font-weight: 500; }
.next-list li { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--line); }
.next-list li:first-child { border-top: none; }
.next-list ul, ul.plain { list-style: none; padding: 0; margin: 0; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4000; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-weight: 500; box-shadow: 0 8px 24px #0006; max-width: 90vw; }
#toast.err { background: var(--danger); color: #fff; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.kbd { font-family: var(--mono); font-size: .8rem; }

.base-marker svg { filter: drop-shadow(0 1px 3px #0009); }

/* home: stamp collection */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.home-head h1 { font-size: 2rem; margin-bottom: .2rem; letter-spacing: -.01em; }
.home-progress { flex: 1 1 260px; max-width: 420px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.pgrid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.pcard { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; color: #e6e9ec; transition: transform .18s ease, box-shadow .18s ease; }
.pcard.compact { aspect-ratio: 16 / 9; border-radius: 10px; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #0008; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease, transform .4s ease; }
.pcard:hover img { transform: scale(1.03); }
.pcard .shade { position: absolute; inset: 0; background: linear-gradient(to top, #0b0f14f0 0%, #0b0f1490 35%, #0b0f1400 70%); }
.pcard .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem .9rem; }
.pcard .kicker { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .15rem; }
.pcard .icao { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.pcard .tag { border-color: #ffffff44; color: #d7dde3; font-size: .65rem; }
.pcard .name { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.pcard .sub { font-size: .78rem; color: #b9c3cc; margin-top: .15rem; }
.pcard.compact .name { font-size: .95rem; } .pcard.compact .sub { font-size: .7rem; } .pcard.compact .icao { font-size: .85rem; }
/* not visited: faded, monochrome, like an empty page in the passport */
.pcard.blank img { filter: grayscale(.95) brightness(.6) contrast(.9); }
.pcard.blank:hover img { filter: grayscale(.6) brightness(.75); }
.pcard.blank .name { color: #c7ced6; } .pcard.blank .icao { color: #d9b36a; opacity: .8; }
.pcard.blank:not(:has(img)) { background: repeating-linear-gradient(135deg, var(--bg2) 0 12px, var(--bg3) 12px 14px); }
/* the stamp */
.stamp { position: absolute; right: 10px; top: 10px; transform: rotate(-11deg); display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .35rem .7rem .4rem; border: 3px solid var(--ink); border-radius: 9px; color: var(--ink); box-shadow: inset 0 0 0 2px #0000, inset 0 0 0 3px #fff0, 0 0 0 1px #0003; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; line-height: 1.1; text-align: center; background: #0b0f1466; backdrop-filter: blur(2px); mix-blend-mode: screen; opacity: .95; --ink: #3ddc84; }
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--ink); border-radius: 6px; opacity: .7; }
.stamp .big { font-size: 1rem; letter-spacing: .14em; }
.stamp .who { font-size: .62rem; opacity: .9; letter-spacing: .05em; }
.stamp.partial { --ink: #ffb347; }
.stamp.base { --ink: #f3a712; transform: rotate(8deg); }
.pcard.compact .stamp { font-size: .6rem; padding: .25rem .5rem .3rem; border-width: 2px; } .pcard.compact .stamp .big { font-size: .8rem; }
@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .pgrid.compact { grid-template-columns: repeat(2, 1fr); }
  .home-head h1 { font-size: 1.5rem; }
}
@media (prefers-color-scheme: light) { .stamp { mix-blend-mode: normal; background: #0b0f1455; } }
