/* A STORE (JT, 2026-10-28: "a format like Amazon"): a dark bar with the
   search box in the middle and a strip of links under it, filters down the
   left, a dense results grid, and a product page with a buy box. The
   LAYOUT of a big online store -- in black and gold (JT, 2026-10-28, after "the green and white
   are not it"): black bars, bright yellow-gold buttons, dark gold for words on
   white. Never Amazon's colours or marks, and the gold is a true yellow-gold,
   never orange (JT's rule: no orange on black).
   Plain Arial, small and dense, square-ish corners. Light only. */
:root {
  --bar: #0b0b0c;
  --bar-2: #1c1c1f;
  --bar-ink: #ffffff;
  --accent: #e8c547;        /* bright yellow-gold: buttons, the search button, on black */
  --accent-hover: #f3d76a;
  --on-accent: #0b0b0c;
  --deep: #7a5f00;          /* dark gold: words on white, where bright gold can't be read */
  --bg: #ffffff;
  --panel: #f4f4f5;
  --ink: #0b0b0c;
  --muted: #5c5c63;
  --line: #dcdcdf;
  --link: #0b0b0c;
  --gold: #7a5f00;
  --gold-soft: #fbf3d4;
  --bad: #b12704;
  --bad-soft: #fdecea;
  --warn-soft: #fff6dc;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; }
:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
/* THE WHOLE SCREEN (JT, 2026-10-28: "make the app actually fill the
   screen"): no narrow column in the middle -- the store runs edge to edge
   and the grid takes as many wishes a row as the screen has room for. */
.wrap { max-width: none; margin: 0; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 20; }

/* ---- the header -------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 14px; background: var(--bar); color: var(--bar-ink);
       padding: 8px 18px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--bar-ink); flex: none; padding: 4px 6px;
         border: 1px solid transparent; border-radius: 2px; }
.brand:hover { color: var(--bar-ink); text-decoration: none; border-color: var(--bar-ink); }
.brand-long { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-short { display: none; font-weight: 700; font-size: 15px; }
.coin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
        background: var(--accent); color: var(--bar); font: 700 18px/1 Georgia, serif; }
.coin-big { width: 60px; height: 60px; font-size: 32px; margin: 0 auto 14px; background: var(--bar); color: var(--accent); }
.search { flex: 1; display: flex; height: 40px; border-radius: 4px; overflow: hidden; background: #fff; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; color: var(--ink); font: 15px var(--font); padding: 0 12px; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--accent); color: var(--bar); width: 46px; cursor: pointer;
                 display: grid; place-items: center; }
.search button:hover { background: var(--accent-hover); }
.bar-item { display: flex; flex-direction: column; color: var(--bar-ink); flex: none; padding: 4px 8px;
            border: 1px solid transparent; border-radius: 2px; line-height: 1.15; }
.bar-item:hover { color: var(--bar-ink); text-decoration: none; border-color: var(--bar-ink); }
.bar-small { font-size: 12px; opacity: .85; }
.bar-big { font-size: 14px; font-weight: 700; }
.subbar { display: flex; gap: 2px; overflow-x: auto; background: var(--bar-2); padding: 0 12px; scrollbar-width: none; }
.subbar::-webkit-scrollbar { display: none; }
.subbar a { flex: none; color: var(--bar-ink); padding: 9px 9px; font-size: 14px; border: 1px solid transparent;
            border-radius: 2px; }
.subbar a:hover { text-decoration: none; border-color: var(--bar-ink); color: var(--bar-ink); }
.private-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: 13px; background: var(--warn-soft); }

/* ---- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px;
       padding: 6px 16px; border-radius: 100px; border: 1px solid var(--accent); background: var(--accent);
       color: var(--on-accent); font: 14px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-small { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn-buy { min-height: 38px; font-size: 15px; }
.btn-danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* ---- browse ------------------------------------------------------------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
               padding: 10px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line);
               box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.results-count { margin: 0; }
.results-count .q { color: var(--deep); }
.sort { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sort select { font: 13px var(--font); color: var(--ink); background: var(--panel); border: 1px solid var(--line);
               border-radius: 8px; padding: 5px 8px; box-shadow: 0 2px 5px rgba(15,17,17,.12); }
.store { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
.side { font-size: 14px; }
.side-h { font-size: 15px; margin: 4px 0 6px; }
.side ul { list-style: none; margin: 0 0 18px; padding: 0; }
.side li a { display: block; padding: 3px 0; color: var(--ink); }
.side li a:hover { color: var(--deep); }
.side li a[aria-current="true"] { font-weight: 700; }
.side-post { border-top: 1px solid var(--line); padding-top: 14px; }
.side-post p { margin: 0 0 8px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 18px; color: var(--ink); min-width: 0;
        border: 1px solid transparent; }
.tile:hover { text-decoration: none; color: var(--ink); }
.tile:hover .tile-title { color: var(--deep); text-decoration: underline; }
.tile-pic { position: relative; height: 210px; background: #fff; display: grid; place-items: center;
            margin-bottom: 8px; overflow: hidden; }
.tile-pic img { max-height: 100%; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.no-pic { font: 700 54px/1 Georgia, serif; color: var(--muted); opacity: .4; }
.tile-title { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
              -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile-price { font-size: 21px; font-weight: 400; margin-top: 2px; font-variant-numeric: tabular-nums;
              overflow-wrap: anywhere; }
.tile-still { color: var(--deep); font-size: 13px; }
.tile-flag { align-self: flex-start; background: var(--bar); color: var(--accent); font-size: 12px; font-weight: 700;
             padding: 2px 6px; border-radius: 2px; }
.tile-meta { color: var(--muted); font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 26px 0 10px; }
.pager a, .pager span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.pager .here { border-color: var(--ink); font-weight: 700; }
.pager .off { color: #a2a6a6; }
.empty { padding: 36px 8px; font-size: 16px; }

/* ---- one wish: a product page ------------------------------------------ */
.crumbs { margin: 12px 0; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap;
          text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.item-pic { position: sticky; top: 110px; display: grid; place-items: center; min-height: 300px; }
.item-pic img { max-height: 70vh; width: auto; max-width: 100%; object-fit: contain; }
.item-pic .no-pic { font-size: 120px; }
.item-title { font-size: 24px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; margin: 0 0 4px; }
.item-by { margin: 0; color: var(--muted); }
.item-by b { color: var(--deep); font-weight: 400; }
.item-price { font-size: 28px; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.item-granted { color: var(--gold); font-weight: 700; margin: 0; }
.item-h { font-size: 16px; margin: 0 0 6px; }
.item-list { margin: 0 0 12px; padding-left: 18px; }
.item-list li { margin-bottom: 4px; }
.item-note { white-space: pre-line; overflow-wrap: anywhere; }
.buybox { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.buybox p { margin: 0; }
.buybox-price { font-size: 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.buybox-stock { color: var(--deep); font-size: 17px; }
.buybox-note { font-size: 13px; color: var(--muted); }
.buybox-safe { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.buybox-report { font-size: 12px; }
.more { margin: 34px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.grid-row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid-row .tile-pic { height: 170px; }
.fine { color: var(--muted); font-size: 12px; }

/* ---- forms --------------------------------------------------------------- */
.form-page { max-width: 640px; margin: 22px auto 0; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.lead { color: var(--muted); margin: 0 0 16px; }
.back { margin: 0 0 12px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { font-weight: 700; font-size: 13px; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type]), input[type="email"], input[type="password"], input[type="file"], textarea {
  width: 100%; font: 14px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid #888c8c; border-radius: 4px; padding: 8px 10px; box-shadow: 0 1px 0 rgba(255,255,255,.5), inset 0 1px 0 rgba(15,17,17,.15); }
input[type="file"] { padding: 14px 10px; border-style: dashed; background: var(--panel); box-shadow: none; cursor: pointer; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: #b8941f; outline: none; box-shadow: 0 0 0 3px #f6e7a8; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.hint { margin: 0; color: var(--muted); font-size: 12px; }
.field-err { margin: 0; color: var(--bad); font-size: 13px; }
.field-err::before { content: "! "; font-weight: 700; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; padding: 2px 0; font-size: 14px; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.current-pic { display: flex; gap: 14px; align-items: center; margin: 0; }
.current-pic img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; }
.notice h1 { font-size: 21px; }
.notice p:last-child { margin-bottom: 0; }
.notice-good { border-color: var(--accent); background: var(--gold-soft); }
.notice-bad { border-color: var(--bad); background: var(--bad-soft); }
.notice-warn { border-color: #e7c76a; background: var(--warn-soft); }
.secret-row { display: flex; gap: 8px; flex-wrap: wrap; }
.secret-row input { flex: 1 1 260px; font-family: Consolas, monospace; font-size: 12px; }
.granted-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
               padding: 12px 14px; border: 1px solid #e7c76a; border-radius: 8px; background: var(--gold-soft); margin: 0 0 18px; }
.granted-box p { margin: 0; }
.delete-form { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
               display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cf-turnstile { min-height: 65px; }

/* ---- reading pages and admin ---------------------------------------------- */
.legal { max-width: 75ch; padding: 22px 0 8px; font-size: 15px; }
.legal h2 { margin-top: 1.3em; }
.admin { padding: 22px 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); }
.stats b { color: var(--ink); }
.checks { padding-left: 20px; color: var(--muted); }
.admin-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; }
.admin-item p { margin: 0 0 8px; }
.admin-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.inline { display: inline; margin: 0; }
.wish-note { margin: 0 0 8px; padding: 10px 12px; background: var(--panel); border-radius: 4px; white-space: pre-line; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table .is-hidden { opacity: .55; }
.admin-ban { display: flex; gap: 12px; align-items: center; padding: 6px 0; }

/* ---- the foot ---------------------------------------------------------------- */
.foot { margin-top: 44px; background: var(--bar-2); color: #d4d4d8; font-size: 13px; }
.to-top { display: block; text-align: center; padding: 14px; background: #2a2a2e; color: #fff; }
.to-top:hover { background: #36363b; color: #fff; text-decoration: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px;
             padding-bottom: 36px; max-width: 980px; }
.foot-cols a { display: block; color: #d4d4d8; padding: 4px 0; }
.foot-cols a:hover { color: var(--accent); }
.foot-h { color: #fff; font-size: 15px; margin: 0 0 8px; }
.foot-about p { margin: 0 0 8px; line-height: 1.5; }

/* ---- coming soon ---------------------------------------------------------- */
body.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.soon-box { padding: 24px; }

@media (max-width: 1050px) {
  .item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 2; }
  .item-pic { position: static; grid-row: span 2; }
}
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .brand-long { display: none; }
  .brand-short { display: inline; }
  .bar-item { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .store { grid-template-columns: 1fr; }
  .side { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 8px 6px 16px; }
  .tile-pic { height: 160px; }
  .tile-title { font-size: 14px; }
  .tile-price { font-size: 18px; }
  .item { grid-template-columns: 1fr; gap: 14px; }
  .buybox { grid-column: auto; }
  .item-pic { grid-row: auto; min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 16px 12px; border: 0; }
  .foot-cols { grid-template-columns: 1fr; gap: 16px; }
}
