/* Blogyz — light, mobile-first. Written for phones first; wider screens are the exception (min-width queries). */
@font-face {
  font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
}
:root {
  --ink: #10231c; --muted: #56675f; --line: #dce4df; --paper: #fff; --wash: #f2f6f3;
  --brand: #0b7a53; --brand-deep: #0a3d2e; --sun: #ffd24a; --bad: #b3261e; --warn: #8a5a00;
  --r: 14px; --tap: 48px;
  --head: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --c: #45525c; --c-bg: #e8ecef;               /* category accent, overridden by .c-* */
}
.c-green  { --c: #0b7a53; --c-bg: #def2ea; }
.c-blue   { --c: #1f4fd1; --c-bg: #e8eefc; }
.c-violet { --c: #6b3bc7; --c-bg: #efe9fb; }
.c-amber  { --c: #9a5b00; --c-bg: #fcefd6; }
.c-teal   { --c: #0a7b78; --c-bg: #ddf3f1; }
.c-red    { --c: #c23a22; --c-bg: #fbe7e2; }
.c-pink   { --c: #b8327b; --c-bg: #fbe6f1; }
.c-slate  { --c: #45525c; --c-bg: #e8ecef; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
body.admin, body.plain { padding-bottom: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #1f4fd1; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand { font-family: var(--head); letter-spacing: -.015em; }
h1 { font-size: 1.625rem; line-height: 1.2; font-weight: 700; margin: 0 0 .5rem; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 650; margin: 0; }
p { margin: 0 0 1rem; }
small, .fine { color: var(--muted); font-size: .875rem; }
.ic { flex: none; vertical-align: -0.2em; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; padding-bottom: 40px; min-height: 55vh; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.375rem; color: var(--ink); min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.brand small { font: 500 .8125rem var(--body); letter-spacing: 0; }
.acts { display: flex; gap: 8px; align-items: center; grid-row: 1; grid-column: 2; }
.acts .wide-only { display: none; }
.search { grid-row: 2; grid-column: 1 / -1; display: flex; position: relative; }
.search input { padding-left: 44px; border-radius: 12px; background: var(--wash); border-color: transparent; }
.search input:focus { background: #fff; border-color: var(--brand); }
.search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; padding: 0 14px; border-radius: 9px; }
.cats { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .wrap { display: flex; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
.cats a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 550; white-space: nowrap; }
.cats a .ic { color: var(--c); }
.cats a:hover { background: var(--wash); text-decoration: none; }
.cats a[aria-current] { background: var(--c-bg); color: var(--c); }
.badge { background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }

/* ---------- bottom bar (phones) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.tabbar a:hover { text-decoration: none; }
.tabbar a[aria-current] { color: var(--brand); }
.tabbar .add .ic { background: var(--brand); color: #fff; border-radius: 50%; padding: 6px; width: 36px; height: 36px; margin-top: -4px; }
.tabbar .add { color: var(--ink); }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line);
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.actionbar .btn { flex: 1; }

/* ---------- controls ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; min-height: var(--tap); background: #fff; border: 1.5px solid #c4cfc8; border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid #0b7a5333; outline-offset: 0; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); }
input[type=file] { padding: 9px; }
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font: .875rem/1.5 ui-monospace, Consolas, monospace; }
.btn, .search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px;
  background: #fff; border: 1.5px solid #c4cfc8; color: var(--ink); font-weight: 650; cursor: pointer; white-space: nowrap; text-align: center; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn.primary, .search button { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #096645; border-color: #096645; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.danger { border-color: #e3b4b0; color: var(--bad); }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: .9375rem; border-radius: 10px; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn.block { display: flex; width: 100%; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; min-height: 44px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field small { display: block; margin-top: 6px; }
.req { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
fieldset { min-width: 0; border: 0; border-top: 1px solid var(--line); margin: 0 0 8px; padding: 18px 0 2px; }
legend { font: 700 1.125rem var(--head); padding: 0 10px 0 0; }
.check { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin-right: 18px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.formbox { max-width: 760px; margin: 0 auto 24px; }
.formbox.narrow { max-width: 420px; }
.formbox.wide { max-width: none; }
.form-acts { display: grid; gap: 10px; margin-top: 8px; }
.filters, .bigsearch { display: grid; gap: 8px; margin: 0 0 16px; }
details.confirm summary { list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { display: none; }

/* ---------- messages, tags ---------- */
.flash { display: flex; gap: 10px; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; background: #e8eefc; color: #16307a; }
.flash > div { min-width: 0; }
.flash.ok { background: #def2ea; color: #0a4f37; }
.flash.err { background: #fbe7e2; color: #7d1d12; }
.flash a { color: inherit; text-decoration: underline; }
.flash ul { margin: .3em 0 0; padding-left: 1.2em; }
.bad { color: var(--bad); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 650 .8125rem/1 var(--body); padding: 5px 9px; border-radius: 99px; background: var(--wash); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.tag.approved { background: #def2ea; color: #0a4f37; }
.tag.pending { background: #fcefd6; color: #6b4300; }
.tag.rejected { background: #fbe7e2; color: #7d1d12; }
.tag.gold { background: var(--sun); color: var(--ink); }
.tag.cat { background: var(--c-bg); color: var(--c); }

/* ---------- home ---------- */
.hero { background: var(--brand-deep); color: #fff; margin: -16px -16px 20px; padding: 26px 16px 24px; position: relative; overflow: hidden; }
.hero h1 { font-size: 1.875rem; line-height: 1.12; font-weight: 750; max-width: 15em; margin-bottom: 10px; padding-right: 88px; }
.hero p { color: #cfe6dc; max-width: 34em; margin-bottom: 18px; }
.hero .stamp { position: absolute; right: 12px; top: 14px; width: 84px; height: 84px; color: var(--sun); rotate: 12deg; }
.hero form { display: grid; gap: 10px; }
.hero input { border-color: #fff; min-height: 54px; padding-left: 46px; }
.hero .inp { position: relative; }
.hero .inp .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); min-height: 116px; }
.tile:hover { border-color: var(--c); text-decoration: none; }
.tile strong { font: 700 1.0625rem/1.2 var(--head); display: block; }
.tile small { display: block; margin-top: 2px; }
.icotile { width: 44px; height: 44px; border-radius: 12px; background: var(--c-bg); color: var(--c); display: grid; place-items: center; flex: none; }
.block-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 1.75rem 0 .75rem; }
.block-h h2 { margin: 0; }
.block-h a { font-weight: 650; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- lists ---------- */
.page-h { margin-bottom: 16px; }
.page-h h1 { display: flex; align-items: center; gap: 12px; }
.page-h .count { font: 500 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.intro { color: var(--muted); max-width: 46em; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; color: var(--ink); font-weight: 550; white-space: nowrap; }
.chips a small { font-weight: 500; }
.chips a:hover { border-color: var(--ink); text-decoration: none; }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current] small { color: #c9d6cf; }
.list { border-top: 1px solid var(--line); margin: 0 -16px; }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row:hover { background: var(--wash); }
.row .media img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; display: block; }
.row .icotile, .row .cover-sq { width: 56px; height: 56px; display: block; }
.row h3 a { color: var(--ink); }
.row h3 a::after { content: ""; position: absolute; inset: 0; }      /* whole row is the tap target */
.row h3 a:hover { text-decoration: none; }
.row .where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: .9375rem; margin-top: 3px; }
.row .where .ic { color: var(--c); vertical-align: -0.18em; }
.row .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row .facts span { background: var(--wash); border-radius: 8px; padding: 3px 9px; font-size: .875rem; }
.row .facts small { font-size: .8125rem; margin-right: 2px; }
.row:hover .facts span { background: #fff; }
.row .sum { color: var(--muted); font-size: .9375rem; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row.featured { background: #fffaea; }
.pager { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin: 20px 0; color: var(--muted); }
.empty { text-align: center; background: var(--wash); border-radius: var(--r); padding: 36px 18px; margin: 16px 0; }
.empty h2, .empty h1 { margin-top: 0; }
.crumbs { color: var(--muted); font-size: .875rem; margin: 0 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ad { margin: 16px 0; text-align: center; min-height: 100px; overflow: hidden; }
.list .ad { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* ---------- listing detail ---------- */
.detail header { margin-bottom: 16px; }
.detail h1 { margin-top: 10px; }
.detail .where { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .9375rem; }
.detail .where .ic { color: var(--c); }
.photo.appicon { width: 128px; height: 128px; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); }
.photo.cover { width: 100%; max-height: none; aspect-ratio: 1200 / 630; }
.photo { display: block; width: auto; max-width: 100%; height: auto; max-height: 380px; border-radius: var(--r); margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 20px; }
.kv > div { padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv > div:last-child, .kv > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.kv > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.kv dt { color: var(--muted); font-size: .8125rem; }
.kv dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.body { max-width: 68ch; }
.body ul, .body ol { margin: 0 0 1rem; padding-left: 1.25em; }
.body li { margin-bottom: .25em; }
.cols { display: flex; flex-direction: column; }
.cols .side { display: contents; }
.cols .kv { order: 1; }
.cols .main { order: 2; }
.cols .side > * { order: 3; }
.cols .side > .kv { order: 1; }
.contact { background: var(--wash); border-radius: var(--r); padding: 16px; margin: 20px 0; }
.contact h2 { margin: 0 0 10px; font-size: 1.0625rem; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.contact li > .ic { color: var(--c); margin-top: 2px; }
.cta { display: grid; gap: 10px; margin: 16px 0 0; }
.dl { margin: 0 0 20px; }
.dl .fine { margin: 8px 0 0; overflow-wrap: anywhere; }
.curfile { margin: 0 0 8px; overflow-wrap: anywhere; }
.checked { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .875rem; margin: 20px 0 0; }
.checked .ic { color: var(--brand); margin-top: 1px; }
.prose { max-width: 68ch; }

/* ---------- tables, admin ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--wash); color: var(--muted); font-weight: 650; font-size: .8125rem; white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .c { text-align: center; white-space: nowrap; }
.tbl.fields input:not([type=checkbox]), .tbl.fields select { min-width: 150px; min-height: 40px; padding: 6px 10px; }
.tbl.fields td { padding: 6px 8px; vertical-align: middle; }
.row-acts { white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: var(--ink); display: flex; flex-direction: column; }
.stat:hover { text-decoration: none; border-color: var(--ink); }
.stat b { font: 750 1.75rem/1.15 var(--head); }
.stat span { color: var(--muted); font-size: .875rem; }
.stat.hot { background: #fcefd6; border-color: #f0d9a8; }
.mod { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; }
.mod h2 { margin: 0 0 8px; font-size: 1.125rem; }
.mod .where { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); font-size: .875rem; }
.preview { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: .9375rem; }
.preview img { border-radius: 10px; margin-bottom: 10px; }
.facts2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 14px; font-size: .875rem; margin: 10px 0 0; }
.facts2 dt { color: var(--muted); }
.facts2 dd { margin: 0; overflow-wrap: anywhere; }
.mod-acts { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mod-acts form.inline { display: grid; grid-template-columns: 1fr; }
.mod-acts .reject { grid-template-columns: 1fr auto; }

.foot { border-top: 1px solid var(--line); background: var(--wash); padding: 22px 0; color: var(--muted); font-size: .875rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.foot p { margin: 8px 0 0; }

/* ---------- wider screens ---------- */

/* app categories: store-style search, shelf and rows */
.storesearch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 14px; }
.storesearch .inp { position: relative; display: block; }
.storesearch .inp .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.storesearch input { padding-left: 44px; border-radius: 12px; }
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px -16px 14px; padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 16px; border-radius: 18px; overflow: hidden; scroll-snap-align: center; color: #fff; background: linear-gradient(135deg, #4a2496, #0a3d2e); isolation: isolate; }
.banners:has(.banner + .banner) .banner { flex-basis: 90%; }
.banner .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) saturate(1.3); z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 0%, #000a 100%); z-index: -1; }
.banner:hover { text-decoration: none; }
.banner .bsum { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; max-width: 30em; text-shadow: 0 1px 8px #0008; }
.banner .bfoot { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.banner .bfoot img, .banner .bfoot .cover-sq { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; display: block; }
.banner .nm { display: grid; min-width: 0; }
.banner .nm b { font-size: 1.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .nm small { color: #fffc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .go { background: var(--brand); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; color: var(--ink); font-weight: 600; font-size: .9375rem; border-radius: 12px; text-align: center; }
.quick a:hover { background: var(--wash); text-decoration: none; }
.quick .q { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.q1 { background: #e8791a; } .q2 { background: #2e9e58; } .q3 { background: #2f7fd6; } .q4 { background: #6b3bc7; }
.shelfbox { border-top: 8px solid var(--wash); margin: 0 -16px; padding: 0 16px 6px; }
.shelfbox .block-h { margin-top: 1rem; }
.shelfbox .block-h a { gap: 2px; color: var(--muted); }
.shelf { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf::-webkit-scrollbar, .pages::-webkit-scrollbar { display: none; }
.apptile { flex: 0 0 96px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); scroll-snap-align: start; min-width: 0; }
.apptile .pic { position: relative; display: block; margin-bottom: 6px; }
.apptile img, .apptile .cover-sq { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; display: block; border: 1px solid var(--line); }
.rank { position: absolute; left: 0; top: 0; min-width: 24px; height: 26px; padding: 0 6px; display: grid; place-items: center; font: 800 .875rem/1 var(--body); color: #fff; border-radius: 20px 0 10px 0; }
.rank.r1 { background: #d93025; } .rank.r2 { background: #e8791a; } .rank.r3 { background: #d99a00; }
.apptile b { font-weight: 600; font-size: .9375rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apptile small { font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apptile:hover { text-decoration: none; }
.apptile:hover b { color: var(--brand); }
.pages { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pcol { flex: 0 0 86%; display: grid; gap: 14px; align-content: start; scroll-snap-align: start; }
.prow { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--ink); }
.prow img, .prow .cover-sq { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; display: block; border: 1px solid var(--line); }
.prow span { display: grid; gap: 3px; min-width: 0; }
.prow b { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow:hover { text-decoration: none; }
.prow:hover b { color: var(--brand); }
.about-cat { margin-top: 28px; }
.about-cat h2 { font-size: 1.0625rem; }
#all { border-top: 8px solid var(--wash); margin: 0 -16px .75rem; padding: 1rem 16px 0; }
.applist { margin: 0 -16px; border-top: 1px solid var(--line); }
.approw { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.approw:hover { background: var(--wash); }
.approw.featured { background: #fffaea; }
.approw .media img, .approw .cover-sq { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; display: block; border: 1px solid var(--line); }
.approw h3 { font-size: 1rem; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.approw h3 a { color: var(--ink); }
.approw h3 a::after { content: ""; position: absolute; inset: 0; }
.approw h3 a:hover { text-decoration: none; }
.approw .dev, .approw .spec { margin: 1px 0 0; font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.approw .spec { font-size: .8125rem; }
.approw .get { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: #e4f3ec; color: var(--brand); font-weight: 700; font-size: .875rem; }
.approw:hover .get { background: var(--brand); color: #fff; }
.app-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.app-head .app-ico img, .app-head .cover-sq { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; display: block; border: 1px solid var(--line); }
.detail .app-head h1 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.app-head .dev { margin: 4px 0 6px; color: var(--brand); font-weight: 650; }
.app-strip { display: flex; margin: 0 -16px 16px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-block: 1px solid var(--line); }
.app-strip::-webkit-scrollbar { display: none; }
.app-strip > div { flex: 1 0 auto; text-align: center; padding: 0 16px; border-right: 1px solid var(--line); }
.app-strip > div:first-child { padding-left: 0; }
.app-strip > div:last-child { border-right: 0; padding-right: 0; }
.app-strip dt { font-size: .75rem; color: var(--muted); }
.app-strip dd { margin: 2px 0 0; font-weight: 700; white-space: nowrap; }
.app-cta { display: grid; gap: 10px; margin: 0 0 22px; }
.app-cta .btn small { color: inherit; opacity: .85; font-weight: 500; }
.app-cta .fine { margin: 0; }
.about-h { margin-top: 0; }

/* home page banners set by the admin */
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -16px -16px 0; padding: 12px 16px; scrollbar-width: none; background: var(--brand-deep); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; border-radius: 14px; overflow: hidden; display: block; background: #0003; }
.slides.many .slide { flex-basis: 92%; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
a.slide:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.slides + .hero { margin-top: 0; }
.banner-edit { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 16px; }
.banner-edit > img { display: block; width: 100%; max-width: 520px; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
@media (min-width: 720px) {
  .slides { margin: -24px 0 0; padding: 16px; gap: 16px; border-radius: 0; }
  .slides.many .slide { flex-basis: calc(70% - 8px); }
  .slides + .hero { margin-top: 0; }
  .storesearch { max-width: 560px; }
  .banners { margin: 0 0 20px; padding: 0; gap: 16px; }
  .banner, .banners:has(.banner + .banner) .banner { flex-basis: calc(50% - 8px); min-height: 230px; padding: 22px; }
  .banners:not(:has(.banner + .banner)) .banner { flex-basis: 100%; }
  .quick { max-width: 560px; }
  .shelfbox, #all { border-top: 1px solid var(--line); margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .shelf { margin: 0; padding: 2px 0 12px; gap: 18px; }
  .apptile { flex-basis: 112px; }
  .apptile img, .apptile .cover-sq { width: 112px; height: 112px; border-radius: 24px; }
  .pages { margin: 0; padding: 0 0 12px; gap: 24px; }
  .pcol { flex-basis: calc((100% - 48px) / 3); }
  .applist { margin: 0; border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .approw { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
  .app-head { grid-template-columns: 112px minmax(0, 1fr); gap: 22px; }
  .app-head .app-ico img, .app-head .cover-sq { width: 112px; height: 112px; border-radius: 26px; }
  .detail .app-head h1 { font-size: 2rem; }
  .app-strip { margin: 20px 0; padding: 14px 0; overflow: visible; max-width: 640px; }
  .app-cta { display: flex; flex-wrap: wrap; align-items: center; }
  .app-cta .fine { flex-basis: 100%; }
  body { padding-bottom: 0; }
  .tabbar, .actionbar { display: none; }
  h1 { font-size: 2rem; }
  .wrap { padding: 0 24px; }
  main.wrap { padding-top: 24px; }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .search { grid-row: 1; grid-column: 2; max-width: 520px; }
  .acts { grid-column: 3; }
  .acts .wide-only { display: inline-flex; }
  .hero { margin: -24px 0 28px; border-radius: 0 0 22px 22px; padding: 44px 40px 40px; }
  .hero h1 { font-size: 2.75rem; padding-right: 150px; }
  .hero .stamp { width: 150px; height: 150px; right: 28px; top: 28px; }
  .hero form { grid-template-columns: minmax(0, 1fr) auto; max-width: 620px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 .wide { grid-column: 1 / -1; }
  .form-acts { display: flex; }
  .filters, .bigsearch { display: flex; flex-wrap: wrap; }
  .filters > *, .bigsearch > * { width: auto; }
  .filters input[type=search], .bigsearch input { flex: 1 1 260px; }
  .list { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px 20px; }
  .row:last-child { border-bottom: 0; }
  .row .media img, .row .icotile, .row .cover-sq { width: 72px; height: 72px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 0; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
  .cols .main { order: 0; }
  .cols .side { display: block; order: 1; position: sticky; top: 16px; }
  .cols .side .kv { grid-template-columns: 1fr; }
  .cols .side .kv > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; grid-column: auto !important; }
  .cols .side .kv > div:last-child { border-bottom: 0 !important; }
  .contact { margin-top: 0; }
  .stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .preview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .mod-acts { display: flex; flex-wrap: wrap; align-items: center; }
  .mod-acts form.inline { display: inline-flex; }
  .mod-acts .reject input { width: 280px; }
  .pager { justify-content: center; gap: 18px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .tile, .row { transition: background-color .12s, border-color .12s; } }
