/*
 * Sujula storefront.
 *
 * Mobile first, and not as a slogan: the buyer is on a phone in Madrid and the
 * recipient is on a phone in Serrekunda, both often on a connection that drops.
 * So: one stylesheet, no framework, system fonts, and nothing that has to be
 * downloaded before the first screen can be read.
 *
 * The same file is what the Android and iOS wrappers load, which is why the
 * safe-area insets appear on the fixed bars and why every tappable thing is at
 * least 44px tall.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --green-900: #08201a;
  --green-800: #0f3d2e;
  --green-700: #17563f;
  --green-100: #dff0e7;
  --sun-600:   #c9761a;
  --sun-500:   #e08a22;
  --sun-100:   #fdf0dd;

  --bg:        #f7f6f3;
  --surface:   #ffffff;
  --surface-2: #f0efeb;
  --ink:       #171512;
  --ink-2:     #5b5750;
  --ink-3:     #8a857c;
  --line:      #e2dfd8;
  --accent:    var(--green-800);
  --accent-ink:#ffffff;
  --danger:    #a3261f;
  --danger-bg: #fdeceb;
  --ok:        #1f6b45;
  --ok-bg:     #e6f4ec;
  --warn:      #8a5a06;
  --warn-bg:   #fdf3e0;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 1px 2px rgba(23,21,18,.06), 0 6px 20px rgba(23,21,18,.06);
  --shadow-lg: 0 10px 40px rgba(23,21,18,.18);

  --tap: 44px;
  --pad: 16px;
  --maxw: 1180px;

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14130f;
    --surface:   #1d1c17;
    --surface-2: #26241e;
    --ink:       #f2efe8;
    --ink-2:     #b6b1a6;
    --ink-3:     #8b867b;
    --line:      #34312a;
    --accent:    #1f7052;
    --green-100: #14342a;
    --sun-100:   #382613;
    --danger:    #ef8078;
    --danger-bg: #3a1b18;
    --ok:        #6fd19c;
    --ok-bg:     #13301f;
    --warn:      #e0b055;
    --warn-bg:   #332611;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.6);
  }
}

/* ── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  /* The fixed header and the phone tab bar both overlay the page. */
  padding-bottom: calc(64px + var(--safe-bottom));
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p  { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.muted   { color: var(--ink-2); }
.tiny    { font-size: .8rem; }
.small   { font-size: .88rem; }
.strong  { font-weight: 700; }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
.hidden  { display: none !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Bar one: contact ────────────────────────────────────────────────────── */

.chrome {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

.contactbar {
  background: var(--green-800);
  color: #eaf3ee;
  font-size: .82rem;
}
.contactbar .wrap {
  display: flex; align-items: center; gap: 4px;
  min-height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
}
.contactbar .wrap::-webkit-scrollbar { display: none; }

.contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #eaf3ee; text-decoration: none;
  padding: 8px 10px; border-radius: var(--r-sm);
  white-space: nowrap;
}
.contact-link:hover { background: rgba(255,255,255,.12); }
.contact-link.whatsapp { color: #c9f2d8; font-weight: 600; }
.contact-sep { flex: 1 1 auto; }

.chip-button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14);
  color: #eaf3ee;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  white-space: nowrap;
  max-width: 62vw;
}
.chip-button:hover { background: rgba(255,255,255,.24); }
.chip-button .chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Bar two: the shop ───────────────────────────────────────────────────── */

.mainbar .wrap {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px;
  padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--green-700), var(--sun-600));
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
}

.searchbar {
  position: relative;
  flex: 1 1 260px;
  order: 3; width: 100%;
}
@media (min-width: 720px) { .searchbar { order: 0; width: auto; } }

.searchbar form { display: flex; align-items: center; gap: 0; }
.searchbar input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  height: var(--tap);
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--surface-2);
  /* 16px minimum or iOS zooms the whole page when the field is focused. */
  font-size: 16px;
  -webkit-appearance: none;
}
.searchbar input[type="search"]:focus { border-color: var(--accent); outline: none; }
.searchbar .search-go {
  height: var(--tap); padding: 0 16px;
  border: none; border-radius: 0 var(--r) var(--r) 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}

.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.suggestions button {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border: none; background: none;
  border-bottom: 1px solid var(--line);
}
.suggestions button:last-child { border-bottom: none; }
.suggestions button:hover, .suggestions button[aria-selected="true"] { background: var(--surface-2); }

.iconbar { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.icon-button {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-width: var(--tap); min-height: var(--tap);
  padding: 4px 8px;
  border: none; background: none; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none;
  font-size: .68rem;
}
.icon-button:hover { background: var(--surface-2); }
.icon-button svg { width: 22px; height: 22px; }
.icon-button .icon-label { display: none; }
@media (min-width: 900px) { .icon-button .icon-label { display: block; } }

.badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--sun-600); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}

/* ── Where it is going ───────────────────────────────────────────────────── */

.delivery-strip {
  background: var(--green-100);
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.delivery-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.delivery-strip.unset { background: var(--sun-100); }
.delivery-strip button.link { margin-left: auto; }

.link {
  background: none; border: none; padding: 6px 4px;
  color: var(--accent); font-weight: 600; text-decoration: underline;
  border-radius: var(--r-sm);
}

/* ── Tab bar (phones, and every native build) ────────────────────────────── */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 900px) { .tabbar { display: none; } body { padding-bottom: 0; } }

.tabbar a {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: 56px;
  color: var(--ink-2); text-decoration: none;
  font-size: .68rem; font-weight: 600;
  position: relative;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: var(--r);
  background: var(--surface-2); color: var(--ink);
  font-weight: 600; text-decoration: none;
  transition: transform .06s ease;
}
.btn:active { transform: scale(.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-accent  { background: var(--sun-600); color: #fff; }
.btn-ghost   { background: transparent; border-color: var(--line); }
.btn-danger  { background: var(--danger-bg); color: var(--danger); }
.btn-block   { display: flex; width: 100%; }
.btn-sm      { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: var(--r-sm); }

/* ── Cards, panels, lists ────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.panel { padding: var(--pad); }
.section { padding: 20px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid-products { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.product-card:active { transform: scale(.99); }
.product-card .thumb {
  aspect-ratio: 1 / 1; width: 100%;
  object-fit: cover; background: var(--surface-2);
}
.product-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.product-card .name { font-size: .92rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-size: 1.05rem; font-weight: 800; }
.product-card .native { font-size: .76rem; color: var(--ink-3); }
.product-card .foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
}
.pill-near   { background: var(--ok-bg);     color: var(--ok); }
.pill-far    { background: var(--warn-bg);   color: var(--warn); }
.pill-no     { background: var(--danger-bg); color: var(--danger); }
.pill-sun    { background: var(--sun-100);   color: var(--sun-600); }

.notice {
  border-radius: var(--r); padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .9rem;
}
.notice-warn   { background: var(--warn-bg);   border-color: transparent; color: var(--warn); }
.notice-danger { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.notice-ok     { background: var(--ok-bg);     border-color: transparent; color: var(--ok); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty svg { width: 54px; height: 54px; opacity: .35; margin-bottom: 10px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 14px; }
.field > .label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field > .hint  { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.field .error   { display: block; font-size: .8rem; color: var(--danger); margin-top: 6px; }

.input, select.input, textarea.input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 16px;
  -webkit-appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238a857c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  padding-right: 34px;
}
.input:focus { border-color: var(--accent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }

.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
}
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.choice[data-selected="true"] { border-color: var(--accent); background: var(--green-100); }
.choice .choice-title { font-weight: 600; }

/* ── Modal ───────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,20,18,.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fade .16s ease;
}
@media (min-width: 720px) { .modal-backdrop { align-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }

.modal {
  width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise .2s ease;
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 720px) { .modal { border-radius: var(--r-lg); } }

.modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px var(--pad) 10px;
}
.modal-head h2 { margin: 0; }
.modal-head .sub { font-size: .88rem; color: var(--ink-2); margin: 4px 0 0; }
.modal-body { padding: 6px var(--pad) 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot {
  padding: 12px var(--pad) 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.modal-foot .btn { flex: 1 1 140px; }
.modal-close {
  margin-left: auto; width: 36px; height: 36px; flex: none;
  border: none; border-radius: 999px; background: var(--surface-2);
  font-size: 1.1rem; line-height: 1;
}

/* ── The map ─────────────────────────────────────────────────────────────── */

.map {
  position: relative;
  height: 260px;
  border-radius: var(--r); overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.map.dragging { cursor: grabbing; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; }
.map-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4));
}
.map-controls { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.map-controls button {
  width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-size: 1.15rem; font-weight: 700; line-height: 1;
  box-shadow: var(--shadow);
}
.map-attrib {
  position: absolute; left: 0; bottom: 0;
  background: rgba(255,255,255,.78); color: #333;
  font-size: .62rem; padding: 2px 6px; border-radius: 0 6px 0 0;
}
.map-hint {
  position: absolute; left: 10px; top: 10px; right: 56px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: .72rem; padding: 6px 9px; border-radius: 8px;
}

/* ── Product page ────────────────────────────────────────────────────────── */

.product-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; } }

.gallery .main-image {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line);
}
.gallery .strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery .strip img {
  width: 62px; height: 62px; flex: none; object-fit: cover;
  border-radius: var(--r-sm); border: 2px solid transparent; background: var(--surface-2);
}
.gallery .strip img[aria-current="true"] { border-color: var(--accent); }

.price-block .now { font-size: 1.7rem; font-weight: 800; }
.price-block .was { color: var(--ink-3); text-decoration: line-through; margin-left: 8px; }
.price-block .native { color: var(--ink-2); font-size: .9rem; margin-top: 2px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 42px; height: 42px; border: none; background: var(--surface-2); font-size: 1.1rem; font-weight: 700; }
.qty span { min-width: 46px; text-align: center; font-weight: 700; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: calc(56px + var(--safe-bottom));
  z-index: 44;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--pad);
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (min-width: 900px) { .sticky-buy { position: static; box-shadow: none; border: none; padding: 0; margin-top: 16px; } }

/* ── Cart & checkout ─────────────────────────────────────────────────────── */

.vendor-group { margin-bottom: 16px; }
.vendor-group .vendor-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r) var(--r) 0 0;
}
.cart-line { display: flex; gap: 12px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); flex: none; }

.totals { display: grid; gap: 8px; }
.totals .line { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.totals .line.grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }

.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps .step { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--line); }
.steps .step[data-done="true"] { background: var(--accent); }

/* ── Orders ──────────────────────────────────────────────────────────────── */

.order-row { display: flex; gap: 12px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.order-row:last-child { border-bottom: none; }
.order-row img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); flex: none; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -22px; top: 5px;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--surface); border: 3px solid var(--line);
}
.timeline li[data-done="true"]::before { border-color: var(--accent); background: var(--accent); }

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast-root {
  position: fixed; left: 0; right: 0; z-index: 95;
  bottom: calc(72px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 var(--pad);
}
.toast {
  max-width: 460px; width: 100%;
  background: var(--ink); color: var(--bg);
  border-radius: var(--r); padding: 12px 14px;
  box-shadow: var(--shadow-lg); font-size: .9rem;
  animation: rise .18s ease;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.ok    { background: var(--ok); color: #fff; }

/* ── Skeletons ───────────────────────────────────────────────────────────── */

.sk { background: var(--surface-2); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { height: 230px; }
.sk-line { height: 14px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

#site-footer { border-top: 1px solid var(--line); margin-top: 28px; background: var(--surface); }
#site-footer .wrap { padding-top: 22px; padding-bottom: 28px; }
#site-footer .cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
#site-footer a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
#site-footer a:hover { color: var(--accent); }
