/* Footer pages: same kit, plain reading layout. */
@import url("style.css?v=167");
@import url("concept-b.css?v=2");
@import url("concept-d.css?v=6");
html, body { overflow: auto; height: auto; }
body { padding: 16px; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px; border: 18px solid transparent;
  border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; }
h1 { font: 700 32px/1.15 var(--head); letter-spacing: .01em; margin: 0 0 8px; }
h2 { font: 700 21px/1.2 var(--head); letter-spacing: .01em; margin: 20px 0 6px; }
a { color: var(--glow); font-weight: 700; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
td, th { border-bottom: 1px dashed rgba(87, 77, 64, .4); padding: 6px 4px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }  /* long addresses wrap on phones */
.draft { background: #f9eeda; padding: 6px 10px; outline: 2px dashed var(--glow); }
.back { display: inline-block; margin-bottom: 12px; }

/* ---- Category picker and tag bubbles (owner forms) ---- */
.cat-picker { display: grid; gap: 10px; margin: 6px 0 12px; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: end; }
.cp-row > input, .cp-row > .linkish { grid-column: 1 / -1; }
.cp-row select { width: 100%; }
@media (max-width: 520px) { .cp-row { grid-template-columns: 1fr; } }
.tag-picker fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.tag-picker legend { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.tag-picker .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-bubble { border-radius: 999px !important; padding: 6px 12px; font-size: 13px; min-height: 36px; }
.tag-bubble[aria-pressed="true"]::before { content: "✓ "; }
/* ---- Address choice, social links, ownership check ---- */
.addr-choice, .verify-pick { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.addr-choice legend { font-weight: 700; margin-bottom: 4px; }
label.choice { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-weight: 400; margin: 0; padding: 8px 10px; border: 1px solid rgba(87, 77, 64, .3); border-radius: 4px; cursor: pointer; }
label.choice:has(input:checked) { border-color: #2b2620; background: rgba(143, 168, 81, .18); }
.social-ed { display: grid; gap: 6px; margin: 4px 0 10px; }
.soc-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px; align-items: center; }
.soc-row .err { grid-column: 1 / -1; color: #8a2f1c; font-size: 12px; }
@media (max-width: 520px) { .soc-row { grid-template-columns: 1fr auto; } .soc-row input { grid-column: 1 / -1; } }
.verify-step { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.verify-step p { flex-basis: 100%; }
.tag-search input { width: 100%; }

/* The map drifts slowly behind these pages (index.html?bg=1 in a background frame) */
.bgmap { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: -1; pointer-events: none; }
/* ---- Business dashboard: Overview ---- */
.biz-tabs { display: flex; gap: 6px; margin: 10px 0 12px; flex-wrap: wrap; } .biz-tabs [aria-selected=true] { background: #8fa851; }
.bh-tag { margin: 2px 0; font-style: italic; } .bh-ver { color: #4e6b1f; font-weight: 700; }
.biz-ov { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; } .biz-col { display: grid; gap: 14px; }
@media (max-width: 760px) { .biz-ov { grid-template-columns: 1fr; } }
.biz-preview { background: #fffaf0; border: 2px solid #2b2620; border-radius: 6px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 4px 0 rgba(43, 38, 32, .2); }
.bp-top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; } .bp-top h3 { margin: 0; font-size: 20px; }
.bp-logo { width: 48px; height: 48px; image-rendering: pixelated; border: 2px solid #2b2620; border-radius: 4px; object-fit: cover; }
.bp-kind { margin: 0; font-size: 13px; text-transform: capitalize; opacity: .8; } .bp-tag { margin: 0; }
.bp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; border-top: 1px dashed rgba(87, 77, 64, .3); padding-top: 8px; }
.bp-missing { color: #8a2f1c; font-size: 13px; } .bp-tags { font-size: 13px; }
.bp-photos { display: flex; gap: 6px; align-items: center; border-top: 1px dashed rgba(87, 77, 64, .3); padding-top: 8px; } .bp-photos img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.bp-photos .biz-edit { margin-left: auto; }
.bp-acts { display: flex; flex-wrap: wrap; gap: 6px; } .bp-acts span { font-size: 12px; padding: 4px 10px; border: 1px solid rgba(87, 77, 64, .5); border-radius: 3px; background: #f3e6c8; }
.biz-edit { font-size: 12px; padding: 3px 9px; white-space: nowrap; }
.biz-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .biz-nums div { display: grid; gap: 2px; background: #fffaf0; border: 1px solid rgba(87, 77, 64, .3); border-radius: 6px; padding: 10px; }
.biz-nums b { font: 700 24px var(--head); } .biz-nums span { font-size: 12px; } .biz-nums em { font: 11px var(--data); font-style: normal; } .biz-nums em.up { color: #4e6b1f; } .biz-nums em.down { color: #8a5a2a; }
.biz-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .biz-steps li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.biz-steps li div { display: grid; } .biz-loved { display: flex; flex-wrap: wrap; gap: 6px; } .biz-loved span { font-size: 13px; padding: 3px 9px; border-radius: 999px; background: rgba(176, 83, 46, .15); }
.biz-shout { font-style: italic; margin: 6px 0 0; }

/* Business dashboard → Events */
.oe { display: grid; gap: 12px; }
.oe-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oe-row input[type=url] { flex: 1 1 240px; min-width: 0; }
.oe textarea { width: 100%; box-sizing: border-box; }
.oe-ev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px dashed rgba(43, 38, 32, .25); }
.oe-ev input[type=text] { flex: 1 1 180px; min-width: 0; }
.oe-ev.held { background: rgba(232, 180, 90, .14); padding: 6px; }
.oe-consent { display: grid; gap: 4px; margin: 8px 0; padding: 8px; border: 1px dashed rgba(43, 38, 32, .35); } .oe-consent p { margin: 4px 0 0; }
.oe-sources li { display: grid; gap: 4px; padding: 6px 0; }
.oe-ev .fine { flex-basis: 100%; margin: 0; }
.oe-msg { min-height: 1.2em; font-weight: 600; }
.oe-sources { margin: 6px 0 0; padding-left: 18px; }

/* The drifting map sits behind every page: the page itself must not paint over it */
html { background: #3f76a8; }
body { background: transparent !important; position: relative; }
.bgmap { z-index: 0 !important; }
body > *:not(.bgmap) { position: relative; z-index: 1; }

/* Pixel icons in place of emoji (glyphs.js) */
img.gl { width: 1.2em; height: 1.2em; vertical-align: -0.25em; image-rendering: pixelated; display: inline-block; }
/* real business insights (biz-real.js) */
.rb-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 4px 0; } .rb-bars i { flex: 1; background: #8a2f1c; opacity: .8; min-width: 2px; }
.biz-steps a { white-space: nowrap; }
