@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/Barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/Barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/BarlowCondensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #18140f;
  --ink: #f9f6f2;
  --muted: #e2dbd4;
  --cyan: #e4d3c3;
  --focus: #e4d3c3;
  --violet: #ddd2c7;
  --grape: #a38261;
  --coral: #e7d8c8;
  --panel: rgba(33, 27, 21, 0.92);
  --card: #282119;
  --line: rgba(221, 210, 199, 0.32);
  --ok: #e1cebb;
  --font: "Barlow", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tap: 44px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.45;
}
img { max-width: 100%; }
button, input, select, a { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

#stars, .nebula, .vignette, .scanlines, .hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#stars { z-index: 0; width: 100%; height: 100%; }
.nebula {
  z-index: 1;
  opacity: 0.45;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(119, 100, 81, 0.22), transparent 55%),
    radial-gradient(ellipse at 82% 12%, rgba(163, 130, 97, 0.2), transparent 50%);
  animation: nebula 90s ease-in-out infinite alternate;
}
.vignette {
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.scanlines { z-index: 3; opacity: 0; }
.hud, .brk { display: none; }

.topbar, .readouts, #main, .foot { position: relative; z-index: 5; }
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.brand img { border-radius: 7px; width: 33.6px; height: 33.6px; }
.brand-name {
  white-space: nowrap;
  font-family: var(--cond);
  font-size: 26.4px;
  letter-spacing: 0.04em;
}
.badge {
  margin: 0 22px;
  color: #c7beb5;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(228, 211, 195, 0.6);
  background: transparent;
  color: #f9f6f2;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
}
.text-btn[aria-pressed="true"] { border-color: var(--focus); }
.big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: 56px;
  padding: 10px 18px;
  border: 2px solid var(--cyan);
  background: rgba(33, 27, 21, 0.9);
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: var(--cond);
  font-size: 22px;
}
.big-btn.ghost { border-color: var(--violet); }
.big-btn:hover { background: rgba(163, 130, 97, 0.45); }
.big-btn[aria-pressed="true"] { background: #493c2f; border-color: var(--focus); }

.readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 4px 22px 8px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.08em;
}

#main { padding: 8px 18px 32px; max-width: 1180px; margin: 0 auto; }
#ai-view { max-width: 880px; margin: 0 auto; }

.log {
  min-height: 4.5em;
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(163, 130, 97, 0.25);
}
.log p { margin: 0 0 8px; }
.log .user { color: #f3ebe3; }
.log .guide { color: #fbf9f7; }

.prompt-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--cyan);
  padding: 8px 4px;
}
.prompt-mark { color: var(--coral); font-size: 22px; }
#q {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 4px;
  font-size: 18px;
  min-height: 48px;
}
#q:focus { outline: none; }
.prompt-line:focus-within { box-shadow: 0 2px 0 var(--focus); }
.cursor {
  width: 12px; height: 22px;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--violet);
  background: rgba(40, 32, 24, 0.75);
  cursor: pointer;
}
.chip:hover { border-color: var(--cyan); }
.prompt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

#stage { margin-top: 18px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 16px;
}
.h {
  font-family: var(--cond);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: #ffffff;
}
.sub { color: var(--muted); margin: 0 0 12px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.opt, .hcard, .biz {
  text-align: left;
  border: 1px solid rgba(219, 198, 176, 0.65);
  background: linear-gradient(180deg, rgba(61, 50, 39, 0.95), rgba(33, 27, 21, 0.95));
  color: #fcfaf7;
  padding: 14px;
  min-height: var(--tap);
  cursor: pointer;
}
.opt[aria-checked="true"] {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 16px rgba(204, 173, 142, 0.35);
}
.opt .k, .hcard .k, .biz .tag {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.opt .nm, .biz .nm, .hcard .nm {
  font-family: var(--cond);
  font-size: 24px;
  line-height: 1.1;
  color: #ffffff;
}
.soon { color: #e4d3c3; font-size: 13px; }
.meta { color: #ece7e2; font-size: 15px; margin: 4px 0 0; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.field span { font-size: 13px; letter-spacing: 0.08em; color: var(--cyan); }
.field input, .field select {
  min-height: 48px;
  background: #231c16;
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: #ffffff;
}
.urg { display: flex; flex-wrap: wrap; gap: 8px; }
.urg button[aria-checked="true"] { border-color: var(--cyan); background: #493c2f; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.scanbar { height: 8px; background: #2b241c; border: 1px solid var(--line); margin: 10px 0; }
.scanbar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--grape), var(--cyan));
  animation: load 1.5s linear forwards;
}
.radar {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--cyan);
  border-left-color: transparent;
  animation: spin 0.9s linear infinite;
  margin-bottom: 8px;
}
.preview-wrap { position: relative; display: inline-block; max-width: 100%; }
.preview-wrap img { max-height: 240px; display: block; border: 1px solid var(--cyan); }
.laser {
  position: absolute; left: 0; right: 0; height: 3px; top: 0;
  background: rgba(201, 168, 134, 0.85);
  box-shadow: 0 0 12px #ccad8e;
  animation: laser 1.3s ease-in-out infinite;
}
.materialize { animation: rise 0.7s ease backwards; }
.float { animation: float 5.5s ease-in-out infinite; }

.foot {
  position: relative;
  z-index: 5;
  padding: 8px 22px 28px;
  color: #e2dbd4;
  font-size: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
.vision-status { color: var(--cyan); min-height: 1.2em; }

.drop {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(24, 20, 15, 0.82);
  border: 3px dashed var(--cyan);
  font-family: var(--cond);
  font-size: 36px;
  letter-spacing: 0.08em;
}
.drop-note { font-family: var(--mono); font-size: 16px; color: var(--muted); }

/* Directory */
.dir { color: #ffffff; }
.dir-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.dir-nav a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid #d3b99e;
  text-decoration: none;
  font-size: 20px;
  background: #2b241c;
  color: #ffffff;
}
.dir-nav a[aria-current="page"] { border-color: #ccad8e; background: #493c2f; }
.dir h1 {
  font-family: var(--cond);
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 8px;
  color: #ffffff;
}
.dir p.lead { font-size: 20px; color: #f9f6f2; max-width: 70ch; }
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.dcard {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 96px;
  padding: 16px;
  background: #231c16;
  color: #ffffff;
  border: 2px solid #d3b99e;
  text-decoration: none;
  font-size: 20px;
}
.dcard strong { font-family: var(--cond); font-size: 28px; font-weight: 700; }
.dcard span { color: #ece7e2; font-size: 16px; }
.dcard.disabled {
  opacity: 0.72;
  border-style: dashed;
  cursor: default;
}
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.letters a {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d3b99e; text-decoration: none; background: #2b241c;
}
.az-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #6b5b4a;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}
.biz-list { display: grid; gap: 10px; }
.plain {
  background: #231c16;
  border: 2px solid #6b5b4a;
  padding: 14px 16px;
  color: #ffffff;
}
.plain h2, .plain h3 { margin: 0 0 4px; font-size: 22px; font-family: var(--cond); }
.plain p { margin: 2px 0; font-size: 18px; color: #f9f6f2; }
.tag {
  display: inline-block;
  margin-top: 6px;
  border: 1px solid #e7d9ca;
  color: #f2ebe3;
  padding: 2px 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.more {
  margin-top: 12px;
  min-height: var(--tap);
  padding: 10px 16px;
  background: #2b241c;
  color: #ffffff;
  border: 2px solid var(--cyan);
  cursor: pointer;
  font-size: 18px;
}
.group-block { margin: 18px 0 8px; }
.group-block h3 { font-family: var(--cond); font-size: 26px; margin: 0 0 8px; }

body.mode-dir .scanlines { display: none; }
body.mode-dir .nebula { opacity: 0.35; animation: none; }
body.mode-dir .log, body.mode-dir .panel { box-shadow: none; }
body.mode-dir .dir { background: transparent; }

@keyframes nebula { from { transform: translate3d(0,0,0); } to { transform: translate3d(-2%, 1%, 0) scale(1.05); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { to { width: 100%; } }
@keyframes laser { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 720px) {
  .topbar { padding: 14px 12px 6px; }
  .readouts { padding-left: 12px; padding-right: 12px; }
  .brand-name {
  white-space: nowrap; font-size: 26.4px; }
  .brk { width: 22px; height: 22px; }
  .grid { grid-template-columns: 1fr; }
  .hud { inset: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scanlines, .laser, .cursor { display: none; }
  .nebula { animation: none; }
  .brand-name, .h { text-shadow: none; }
  .opt, .hcard, .biz { box-shadow: none; }
}
html.fx-off .nebula,
html.fx-off .scanlines,
html.fx-off .cursor,
html.fx-off .laser { animation: none !important; }
html.fx-off .scanlines,
html.fx-off .laser,
html.fx-off .cursor { display: none; }
html.fx-off .materialize,
html.fx-off .float,
html.fx-off .radar,
html.fx-off .scanbar > i { animation: none !important; }
html.fx-off .scanbar > i { width: 100%; }
html.fx-off .brand-name,
html.fx-off .h,
html.fx-off .brk { text-shadow: none; filter: none; }
html.fx-off .opt,
html.fx-off .hcard,
html.fx-off .biz,
html.fx-off .log { box-shadow: none; }

/* roadside safety + guide */
.safety{border:2px solid #ccad8e;background:rgba(204, 173, 142,.12);color:#ffffff;padding:12px 14px;margin:10px 0;font-weight:700;letter-spacing:.02em}
.steps{margin:12px 0 12px 1.4em;padding:0;line-height:1.55}
.steps li{margin:8px 0}
.guide-panel{border:1px solid rgba(228, 211, 195,.7);border-radius:12px;padding:14px;margin:8px 0}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.opening {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  transition: opacity 500ms ease;
}
.opening.leave { opacity: 0; pointer-events: none; }
.opening .mark { border-radius: 10px; }
.ask {
  font-family: var(--font);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
}
.opening .prompt-line {
  width: min(560px, 92vw);
  border: 1px solid rgba(228, 211, 195, 0.55);
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
  background: rgba(24, 20, 15, 0.72);
}
.send, .photo-btn, .change, .more, .quiet-link {
  min-height: 44px;
  min-width: 44px;
}
.send {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
}
.photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(228, 211, 195, 0.55);
  border-radius: 999px;
  cursor: pointer;
  color: #f9f6f2;
}
#file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.examples {
  margin: 0;
  color: #e2dbd4;
  font-size: 14px;
}
.examples button {
  background: none;
  border: 0;
  color: #e2dbd4;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 4px;
  text-decoration: underline;
}
.quiet-link, .change, .claim-link {
  background: none;
  border: 0;
  color: #e4d3c3;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 4px;
  font-size: 15px;
}
.sum-text { margin: 0; color: #ece7e2; }
.looking {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ece7e2;
}
.looking .preview-wrap img { opacity: 0.72; max-height: 280px; }
.results-list { transition: opacity 250ms ease; }
.results-list.swap { opacity: 0.35; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.urg .opt { min-width: 44px; }
.foot { color: #c7beb5; font-size: 13px; }
.vision-status { color: #e2dbd4; font-size: 13px; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
html.fx-off .opening,
html.fx-off .screen,
html.fx-off .screen.fade-in,
html.fx-off #stage,
html.fx-off .opt,
html.fx-off .results-list,
html.fx-off .nebula {
  animation: none !important;
  transition: none !important;
}
html.fx-off .opening.leave { opacity: 0; }

.opening[hidden] { display: none; }
#stage { transition: opacity 450ms ease; min-height: 60vh; }
#stage.fade-out { opacity: 0; }
.screen { max-width: 880px; margin: 0 auto; }
.screen.fade-in { animation: screen-in 750ms ease backwards; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
.toprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; }
.back, .new-search {
  background: none; border: 0; color: #e4d3c3; cursor: pointer; font: inherit; font-size: 15px;
  min-height: 44px; min-width: 44px; padding: 8px 6px; text-decoration: underline;
}
.crumb { flex: 1 1 200px; margin: 0; font-size: 13px; color: #c7beb5; letter-spacing: .02em; }
.count { margin: 0; font-size: 13px; color: #c7beb5; }
.q { font-size: clamp(30px, 6vw, 44px); margin: 6px 0 8px; text-align: center; }
.screen > .sub { text-align: center; }
.screen .grid { margin: 22px 0; }
.screen .grid .opt { min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
.continue {
  display: block; margin: 8px auto 24px; min-height: 52px; min-width: 200px; padding: 10px 28px;
  background: var(--cyan); color: #362b20; border: 0; font-family: var(--cond); font-size: 22px;
  letter-spacing: .06em; cursor: pointer;
}
.continue:disabled { opacity: .4; cursor: not-allowed; }
.continue.ghost { background: transparent; color: #ffffff; border: 1px solid rgba(228, 211, 195,.6); font-size: 18px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 22px 0 40px; }
.zip-row { display: flex; gap: 12px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.zip-row .continue { margin: 0; min-width: 160px; }
.photo-line { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 0 0 8px; }
.photo-line img { object-fit: cover; border: 1px solid var(--cyan); }
.photo-line p { margin: 0; font-size: 14px; color: #ece7e2; max-width: 520px; }
.photo-line .src { font-size: 12px; color: var(--cyan); letter-spacing: .08em; text-transform: uppercase; }
.group-block { margin: 26px 0; }
.biz-grid .biz { cursor: default; }
.fine { font-size: 13px; }
body.mode-dir #new-search { display: none !important; }

/* WestSide brand glow: Hot Coral #ccad8e, Grape #a38261, pop #e4d3c3 on the dark space background */
:root { --coral-hot: #ccad8e; --grape: #a38261; --pop: #e4d3c3; }
.screen .opt, .screen .biz {
  border: 1px solid rgba(204, 173, 142, 0.7);
  background: linear-gradient(160deg, rgba(163, 130, 97, 0.42), rgba(34, 28, 22, 0.96) 70%);
  box-shadow: 0 0 14px rgba(163, 130, 97, 0.45), 0 0 4px rgba(204, 173, 142, 0.25);
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.screen button.opt:hover { border-color: var(--pop); box-shadow: 0 0 22px rgba(204, 173, 142, 0.55), 0 0 10px rgba(163, 130, 97, 0.7); }
.screen .opt[aria-checked="true"] {
  border-color: var(--coral-hot);
  background: linear-gradient(160deg, rgba(163, 130, 97, 0.8), rgba(204, 173, 142, 0.28));
  box-shadow: inset 0 0 0 2px var(--coral-hot), 0 0 26px rgba(204, 173, 142, 0.6), 0 0 18px rgba(163, 130, 97, 0.7);
}
.screen .opt[aria-checked="true"] .nm::after { content: "  ✓"; color: var(--pop); }
.screen .opt .nm, .screen .biz .nm { color: #ffffff; }
.screen .opt .meta, .screen .biz .meta { color: var(--pop); }
.screen .biz .tag { color: var(--pop); }
.continue {
  background: linear-gradient(135deg, var(--coral-hot), var(--grape));
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(204, 173, 142, 0.5), 0 0 16px rgba(163, 130, 97, 0.6);
}
.continue:hover:not(:disabled) { box-shadow: 0 0 30px rgba(204, 173, 142, 0.8), 0 0 22px rgba(163, 130, 97, 0.8); }
.continue.ghost { background: rgba(163, 130, 97, 0.18); border: 1px solid var(--coral-hot); box-shadow: 0 0 12px rgba(163, 130, 97, 0.45); }
.screen .h, .screen .q { text-shadow: 0 0 18px rgba(204, 173, 142, 0.45), 0 0 28px rgba(163, 130, 97, 0.55); }
.back, .claim-link { color: var(--pop); }
.crumb, .count { color: #d9d0c7; }
.photo-line img { border-color: var(--coral-hot); box-shadow: 0 0 14px rgba(163, 130, 97, 0.6); }
.photo-line .src { color: var(--pop); }
.field input:focus { border-color: var(--coral-hot); }
.more { border: 1px solid var(--coral-hot); background: rgba(163, 130, 97, 0.25); color: #ffffff; border-radius: 8px; padding: 8px 18px; cursor: pointer; display: block; margin: 12px auto 0; }
.guide-panel .h { color: var(--pop); }
html.fx-off .screen .opt, html.fx-off .screen .biz, html.fx-off .continue, html.fx-off .screen .h, html.fx-off .screen .q { text-shadow: none; }
html.fx-off .screen .opt, html.fx-off .screen .biz { box-shadow: none; }
html.fx-off .screen .opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--coral-hot); }
@media (prefers-reduced-motion: reduce) {
  .screen .opt, .screen .biz, .continue, .screen .h, .screen .q { text-shadow: none; transition: none; }
}
.screen h2:focus, .screen h2:focus-visible { outline: none; }

.also { text-align: center; margin: 18px 0 0; }
.also .quiet-link { font-size: 14px; color: var(--pop); opacity: .85; }
.screen button.opt:active { transform: scale(0.985); border-color: var(--coral-hot); }

.biz.featured {
  grid-column: 1 / -1; margin: 0 0 14px; cursor: default; padding: 16px;
  border: 2px solid var(--coral-hot);
  background: linear-gradient(135deg, rgba(163, 130, 97, 0.75), rgba(204, 173, 142, 0.3));
  box-shadow: 0 0 28px rgba(204, 173, 142, 0.55), 0 0 22px rgba(163, 130, 97, 0.7);
}
.flabel { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ffffff; font-weight: 700; }
.biz.featured .tag { margin-top: 6px; }
.claimline { margin: 8px 0 0; font-size: 13px; color: #efeae5; }
.lv { color: #ffffff; background: rgba(163, 130, 97, 0.8); border: 1px solid var(--pop); padding: 1px 8px; border-radius: 999px; }
html.fx-off .biz.featured { box-shadow: inset 0 0 0 1px var(--coral-hot); }
@media (prefers-reduced-motion: reduce) { .biz.featured { box-shadow: inset 0 0 0 1px var(--coral-hot); } }

.notice { margin: 0; max-width: min(560px, 92vw); padding: 10px 14px; border: 1px solid var(--coral-hot); background: rgba(163, 130, 97, 0.3); color: #ffffff; border-radius: 10px; box-shadow: 0 0 14px rgba(204, 173, 142, 0.4); }
html.fx-off .notice { box-shadow: none; }
.privacy { margin: 0; font-size: 13px; color: #d9d0c7; max-width: min(560px, 92vw); }

/* ===== Appearance: theme toggle + Light mode (cream / ink with the same coral + grape glow) ===== */
.icon-btn { min-width: 44px; padding: 8px; }
.icon-btn .i-moon { display: none; }
html[data-theme="light"] .icon-btn .i-sun { display: none; }
html[data-theme="light"] .icon-btn .i-moon { display: inline; }

html[data-theme="light"] {
  --bg: #f9f6f2;
  --ink: #362b20;
  --muted: #60584f;
  --cyan: #a38261;
  --focus: #a38261;
  --violet: #a38261;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(54, 43, 32, 0.28);
  color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg); color: var(--ink); }
html[data-theme="light"] #stars, html[data-theme="light"] .vignette, html[data-theme="light"] .scanlines { display: none; }
html[data-theme="light"] .nebula {
  opacity: 1; animation: none;
  background: radial-gradient(ellipse at 15% 8%, rgba(204, 173, 142, 0.14), transparent 55%), radial-gradient(ellipse at 85% 6%, rgba(163, 130, 97, 0.12), transparent 50%);
}
html[data-theme="light"] :focus-visible { outline-color: #a38261; }
html[data-theme="light"] .brand-name {
  white-space: nowrap; color: var(--ink); text-shadow: none; }
html[data-theme="light"] .badge { color: #787067; }
html[data-theme="light"] .text-btn { color: var(--ink); border-color: rgba(54, 43, 32, 0.45); background: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .text-btn:hover { border-color: #a38261; }
html[data-theme="light"] .ask, html[data-theme="light"] .opening h1 { color: var(--ink); }
html[data-theme="light"] .opening .prompt-line { background: #ffffff; border: 1px solid #a38261; box-shadow: 0 0 14px rgba(163, 130, 97, 0.2); }
html[data-theme="light"] #q { color: var(--ink); }
html[data-theme="light"] #q::placeholder { color: #867e76; }
html[data-theme="light"] .send { color: #a38261; }
html[data-theme="light"] .photo-btn { color: var(--ink); border-color: #a38261; background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .examples, html[data-theme="light"] .examples button, html[data-theme="light"] .privacy { color: #60584f; }
html[data-theme="light"] .notice { background: #ffffff; color: var(--ink); box-shadow: 0 0 12px rgba(204, 173, 142, 0.3); }
html[data-theme="light"] .screen .opt, html[data-theme="light"] .screen .biz {
  border: 1px solid rgba(204, 173, 142, 0.85);
  background: linear-gradient(160deg, #ffffff, rgba(163, 130, 97, 0.11) 85%);
  box-shadow: 0 0 14px rgba(163, 130, 97, 0.2), 0 0 4px rgba(204, 173, 142, 0.3);
  color: var(--ink);
}
html[data-theme="light"] .screen button.opt:hover { border-color: #ccad8e; box-shadow: 0 0 20px rgba(204, 173, 142, 0.45), 0 0 10px rgba(163, 130, 97, 0.35); }
html[data-theme="light"] .screen .opt .nm, html[data-theme="light"] .screen .biz .nm { color: var(--ink); }
html[data-theme="light"] .screen .opt .meta, html[data-theme="light"] .screen .biz .meta { color: #a38261; }
html[data-theme="light"] .screen .biz .tag, html[data-theme="light"] .tag { color: #a38261; border-color: rgba(163, 130, 97, 0.5); }
html[data-theme="light"] .soon { color: #725a42; }
html[data-theme="light"] .screen .h, html[data-theme="light"] .screen .q, html[data-theme="light"] .h { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .screen > .sub, html[data-theme="light"] .sub { color: #60584f; }
html[data-theme="light"] .back, html[data-theme="light"] .claim-link, html[data-theme="light"] .quiet-link, html[data-theme="light"] .also .quiet-link { color: #a38261; }
html[data-theme="light"] .crumb, html[data-theme="light"] .count { color: #6d635a; }
html[data-theme="light"] .continue { color: #ffffff; }
html[data-theme="light"] .continue.ghost { background: #ffffff; color: var(--ink); border: 1px solid #a38261; box-shadow: 0 0 10px rgba(163, 130, 97, 0.2); }
html[data-theme="light"] .more { background: #ffffff; color: var(--ink); border: 1px solid #ccad8e; }
html[data-theme="light"] .photo-line p { color: #494138; }
html[data-theme="light"] .photo-line .src { color: #a38261; }
html[data-theme="light"] .photo-line img { border-color: #ccad8e; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select { background: #ffffff; color: var(--ink); border-color: rgba(54, 43, 32, 0.4); }
html[data-theme="light"] .field span { color: #a38261; }
html[data-theme="light"] .chip { background: #ffffff; color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .safety { color: var(--ink); background: rgba(204, 173, 142, 0.14); }
html[data-theme="light"] .guide-panel { background: #ffffff; border-color: rgba(204, 173, 142, 0.7); }
html[data-theme="light"] .guide-panel .h { color: #a38261; }
html[data-theme="light"] .biz.featured {
  border: 2px solid #ccad8e;
  background: linear-gradient(135deg, #ffffff 10%, rgba(204, 173, 142, 0.2) 60%, rgba(163, 130, 97, 0.16));
  box-shadow: 0 0 22px rgba(204, 173, 142, 0.4), 0 0 16px rgba(163, 130, 97, 0.25);
}
html[data-theme="light"] .flabel { color: #a38261; }
html[data-theme="light"] .claimline { color: #60584f; }
html[data-theme="light"] .lv { color: #ffffff; }
html[data-theme="light"] .foot, html[data-theme="light"] #foot-copy { color: #60584f; }
html[data-theme="light"] .vision-status { color: #a38261; }
html[data-theme="light"] .drop { background: rgba(249, 246, 242, 0.92); }
html[data-theme="light"] .looking { color: var(--ink); }
/* directory (browse mode) */
html[data-theme="light"] .dir, html[data-theme="light"] .dir h1, html[data-theme="light"] .dir p.lead { color: var(--ink); }
html[data-theme="light"] .dir-nav a, html[data-theme="light"] .letters a { background: #ffffff; color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .dir-nav a[aria-current="page"] { background: rgba(163, 130, 97, 0.12); border-color: #ccad8e; }
html[data-theme="light"] .dcard { background: #ffffff; color: var(--ink); border-color: rgba(204, 173, 142, 0.8); box-shadow: 0 0 10px rgba(163, 130, 97, 0.18); }
html[data-theme="light"] .dcard span { color: #60584f; }
html[data-theme="light"] .az-row { color: var(--ink); border-bottom-color: rgba(54, 43, 32, 0.2); }
html[data-theme="light"] .plain { background: #ffffff; color: var(--ink); border-color: rgba(163, 130, 97, 0.45); }
html[data-theme="light"] .plain p { color: #494138; }
html[data-theme="light"] .dir a { color: #a38261; }
html[data-theme="light"] .dir a.dcard, html[data-theme="light"] .dir .dir-nav a, html[data-theme="light"] .dir .az-row, html[data-theme="light"] .dir .letters a { color: var(--ink); }
html[data-theme="light"].fx-off .screen .opt, html[data-theme="light"].fx-off .screen .biz, html[data-theme="light"].fx-off .biz.featured, html[data-theme="light"].fx-off .dcard { box-shadow: none; }
html[data-theme="light"].fx-off .screen .opt, html[data-theme="light"].fx-off .screen .biz { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] .screen .opt, html[data-theme="light"] .screen .biz, html[data-theme="light"] .biz.featured { box-shadow: none; }
}
.area-note { margin: 0; font-size: 12px; letter-spacing: .02em; color: #b7b0a8; max-width: min(640px, 94vw); text-align: center; }
.foot .area-note { text-align: left; max-width: none; margin-bottom: 6px; }
html[data-theme="light"] .area-note { color: #787067; }
html[data-theme="light"] .big-btn { background: #ffffff; color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .big-btn:hover { background: rgba(163, 130, 97, 0.1); }
html[data-theme="light"] .big-btn.ghost { border-color: #ccad8e; }
html[data-theme="light"] .dir .big-btn { color: var(--ink); }
.corridor-title {
  margin: 4px 0 0;
  font-family: var(--cond);
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg, #ccad8e 5%, #e4d3c3 45%, #d3b99e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(163, 130, 97, 0.55));
}
.corridor-sub { margin: 0 0 6px; font-size: 13px; letter-spacing: .02em; color: #d9d0c7; max-width: min(620px, 92vw); text-align: center; }
html[data-theme="light"] .corridor-title { background: linear-gradient(90deg, #b49373 0%, #a38261 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
html[data-theme="light"] .corridor-sub { color: #60584f; }
html.fx-off .corridor-title { filter: none; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; margin-top: 10px;
  font-family: var(--cond); font-size: 22px; letter-spacing: .06em; text-decoration: none; color: #ffffff;
  background: linear-gradient(135deg, #ccad8e, #a38261); border-radius: 10px;
  box-shadow: 0 0 20px rgba(204, 173, 142, 0.45), 0 0 16px rgba(163, 130, 97, 0.55);
  text-align: center; max-width: 92vw;
}
.cta-btn:hover { box-shadow: 0 0 30px rgba(204, 173, 142, 0.75), 0 0 22px rgba(163, 130, 97, 0.75); }
.cta-note { margin: 0; font-size: 12px; color: #b7b0a8; }
.biz-link { text-align: center; margin: 6px 0 0; }
html[data-theme="light"] .cta-note { color: #787067; }
html[data-theme="light"] .cta-btn { color: #ffffff; }
html.fx-off .cta-btn { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cta-btn { box-shadow: none; } }
.back-link { color: var(--pop); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
html[data-theme="light"] .back-link, html[data-theme="light"] .dir p a { color: #a38261; }
.dir p a { color: var(--pop); }

/* ===== Spotlight scan button ===== */
.scan-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 10px 0 2px; padding: 18px 12px 8px; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent; color: var(--ink);
}
.scan-orb { position: relative; width: 156px; height: 156px; display: block; transition: transform 220ms ease; }
.scan-hero:hover .scan-orb { transform: scale(1.04); }
.scan-hero:active .scan-orb { transform: scale(0.97); }
.scan-hero:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 24px; }
.scan-orb .halo {
  position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 173, 142, 0.45) 0%, rgba(163, 130, 97, 0.38) 45%, transparent 70%);
  animation: scan-pulse 3.4s ease-in-out infinite;
}
.scan-orb .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #ccad8e, #e4d3c3, #a38261, #d3b99e, #ccad8e);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000000 calc(100% - 6px));
  animation: scan-rot 10s linear infinite;
  filter: drop-shadow(0 0 8px rgba(204, 173, 142, 0.7));
}
.scan-orb .core {
  position: absolute; inset: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at 30% 25%, rgba(204, 173, 142, 0.55), rgba(163, 130, 97, 0.75) 62%, rgba(40, 32, 24, 0.98));
  box-shadow: inset 0 0 22px rgba(228, 211, 195, 0.35), 0 0 28px rgba(163, 130, 97, 0.6);
}
.scan-orb .brackets i { position: absolute; width: 26px; height: 26px; border: 0 solid #e4d3c3; opacity: 0.9; animation: scan-bracket 3.4s ease-in-out infinite; }
.scan-orb .brackets i:nth-child(1) { top: -14px; left: -14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.scan-orb .brackets i:nth-child(2) { top: -14px; right: -14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.scan-orb .brackets i:nth-child(3) { bottom: -14px; left: -14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.scan-orb .brackets i:nth-child(4) { bottom: -14px; right: -14px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.scan-label {
  margin-top: 16px; font-family: var(--cond); font-size: 30px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  background: linear-gradient(90deg, #ccad8e, #e4d3c3 55%, #d3b99e); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scan-hint { font-size: 13px; color: #d9d0c7; max-width: 300px; }
@keyframes scan-rot { to { transform: rotate(360deg); } }
@keyframes scan-pulse { 0%, 100% { transform: scale(0.94); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes scan-bracket { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.12); opacity: 1; } }
html[data-theme="light"] .scan-hint { color: #60584f; }
html[data-theme="light"] .scan-orb .halo { background: radial-gradient(circle, rgba(204, 173, 142, 0.35) 0%, rgba(163, 130, 97, 0.22) 45%, transparent 70%); }
html[data-theme="light"] .scan-orb .core { background: linear-gradient(135deg, #ccad8e, #a38261); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.25), 0 6px 22px rgba(163, 130, 97, 0.4); }
html[data-theme="light"] .scan-orb .brackets i { border-color: #a38261; }
html[data-theme="light"] .scan-orb .ring { filter: none; }
html[data-theme="light"] .scan-label { background: linear-gradient(90deg, #b49373, #a38261); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .scan-hero:focus-visible { outline-color: #a38261; }
@media (max-width: 480px) { .scan-orb { width: 140px; height: 140px; } .scan-label { font-size: 28px; } .scan-orb .halo { inset: -16px; } }
/* reduced motion: static glow only */
html.fx-off .scan-orb .halo, html.fx-off .scan-orb .ring, html.fx-off .scan-orb .brackets i, html.fx-off .scan-orb { animation: none !important; transition: none !important; }
html.fx-off .scan-orb .halo { opacity: 0.85; transform: none; }
html.fx-off .scan-orb .ring { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .scan-orb .halo, .scan-orb .ring, .scan-orb .brackets i, .scan-orb { animation: none !important; transition: none !important; }
  .scan-orb .halo { opacity: 0.85; }
}

/* optional town filter on results (not a step) */
.town-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
.town-filter .tf-label { font-size: 0.85rem; opacity: 0.85; margin-right: 4px; }
.town-filter .chip { min-height: 44px; padding: 6px 12px; font-size: 0.9rem; }
.town-filter .chip[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan) inset; font-weight: 700; }
html[data-theme="light"] .town-filter .chip[aria-pressed="true"] { background: #a38261; color: #ffffff; box-shadow: none; }

/* ===== Top bar: "Look up your business status" (coral fill, ink text) ===== */
.lookup-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: #ccad8e; color: #362b20; font-weight: 700; font-size: 14px; line-height: 1.1;
  text-decoration: none; white-space: nowrap; border: 2px solid #e4d3c3;
  box-shadow: 0 0 14px rgba(204, 173, 142, 0.45);
}
.lookup-btn:hover { background: #d5bba1; }
.lookup-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#new-search { order: 1; }
#mode-switch { order: 2; }
.lookup-btn { order: 3; margin-left: 4px; }
#theme-toggle { order: 4; margin-left: 6px; }
html.fx-off .lookup-btn { box-shadow: none; }
@media (max-width: 720px) {
  .topbar { row-gap: 8px; }
  .top-actions { display: contents; }
  .brand { order: 1; flex: 1 1 auto; }
  #theme-toggle { order: 2; margin-left: 0; }
  .topbar::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .lookup-btn { order: 4; margin-left: 0; flex: 1 1 auto; }
  #mode-switch { order: 5; }
  #new-search { order: 6; }
  .text-btn { font-size: 14px; padding: 8px 10px; }
}

/* ===== Sticker branding on the opening screen ===== */
.sticker-note { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 4px; }
.sticker-note img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
.sticker-note p { margin: 0; font-size: 14px; color: #d9d0c7; max-width: min(360px, 88vw); }
html[data-theme="light"] .sticker-note p { color: #60584f; }
html[data-theme="light"] .sticker-note img { box-shadow: 0 4px 14px rgba(54, 43, 32, 0.3); }
@media (max-width: 480px) { .sticker-note img { width: 104px; height: 104px; } }

/* ===== Lookup screens ===== */
.lk-form { max-width: min(560px, 92vw); margin: 18vh auto 0; display: flex; flex-direction: column; gap: 10px; }
.lk-line { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-line input { flex: 1 1 220px; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 18px; border-radius: 10px; border: 1px solid var(--violet); background: rgba(40, 32, 24, 0.85); color: #ffffff; }
.lk-line input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: #ccad8e; }
.lk-go, .lk-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 22px;
  background: #ccad8e; color: #362b20; font: inherit; font-weight: 700; font-size: 17px; border: 2px solid #e4d3c3; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.lk-btn { min-height: 44px; font-size: 15px; padding: 8px 16px; margin-top: 10px; }
.lk-go:hover, .lk-btn:hover { background: #d5bba1; }
.lk-go:focus-visible, .lk-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lk-result { display: flex; flex-direction: column; align-items: flex-start; }
.status { display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--pop); color: #ffffff; font-size: 13px; }
.status-unclaimed { background: rgba(255, 255, 255, 0.08); }
.status-claimed { background: rgba(163, 130, 97, 0.6); }
.status-lv { background: rgba(163, 130, 97, 0.9); }
.lk-add { margin: 18px 0 8px; padding: 14px 16px; border: 1px dashed var(--pop); border-radius: 12px; }
.lk-add .h { margin: 0 0 4px; }
.plain-dir { margin: 28px 0 10px; }
.pd-tabs { display: flex; gap: 14px; margin: 4px 0 10px; }
.pd-tab { background: none; border: 0; padding: 8px 2px; min-height: 44px; font: inherit; color: var(--pop); text-decoration: underline; cursor: pointer; }
.pd-tab[aria-pressed="true"] { color: #ffffff; font-weight: 700; text-decoration: none; border-bottom: 3px solid #ccad8e; }
.pd-h { margin: 18px 0 4px; font-size: 17px; }
.pd-h a { color: inherit; text-decoration: none; }
.pd-list { list-style: none; margin: 0; padding: 0; column-width: 260px; column-gap: 28px; }
.pd-list li { break-inside: avoid; padding: 3px 0; line-height: 1.35; }
.pd-list a { color: var(--pop); text-decoration: underline; }
.pd-meta { font-size: 13px; opacity: .75; }
html[data-theme="light"] .lk-line input { background: #ffffff; color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .status { color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .status-unclaimed { background: rgba(54, 43, 32, 0.06); }
html[data-theme="light"] .status-claimed, html[data-theme="light"] .status-lv { background: #a38261; color: #ffffff; }
html[data-theme="light"] .lk-add { border-color: #a38261; }
html[data-theme="light"] .pd-tab, html[data-theme="light"] .pd-list a { color: #a38261; }
html[data-theme="light"] .pd-tab[aria-pressed="true"] { color: var(--ink); }

/* ===== Browse the directory: brand coral / grape look (no default blue links, hovers or focus rings) ===== */
a, a:link, a:visited { text-decoration-color: currentColor; }
.dir a:visited, .dir a:link { color: inherit; }
.dir p a:link, .dir p a:visited, .back-link:link, .back-link:visited { color: var(--pop); }
.dir-nav a, .letters a, .dcard, .az-row, .plain { transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.dir-nav a:hover, .letters a:hover, .dcard:hover { border-color: #ccad8e; box-shadow: 0 0 14px rgba(204, 173, 142, 0.45), 0 0 10px rgba(163, 130, 97, 0.5); }
.dcard:hover, .dir-nav a:hover, .letters a:hover { background: #3d3227; }
.az-row:hover { background: rgba(163, 130, 97, 0.28); }
.dir a:focus-visible, .dir-nav a:focus-visible, .dcard:focus-visible, .letters a:focus-visible, .az-row:focus-visible, .back-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dcard.disabled:hover { box-shadow: none; border-color: #d3b99e; background: #231c16; }
html[data-theme="light"] .dir p a:link, html[data-theme="light"] .dir p a:visited, html[data-theme="light"] .back-link:link, html[data-theme="light"] .back-link:visited { color: #a38261; }
html[data-theme="light"] .dir a.dcard:link, html[data-theme="light"] .dir a.dcard:visited, html[data-theme="light"] .dir .dir-nav a:link, html[data-theme="light"] .dir .dir-nav a:visited,
html[data-theme="light"] .dir .az-row:link, html[data-theme="light"] .dir .az-row:visited, html[data-theme="light"] .dir .letters a:link, html[data-theme="light"] .dir .letters a:visited { color: var(--ink); }
html[data-theme="light"] .dir-nav a:hover, html[data-theme="light"] .letters a:hover, html[data-theme="light"] .dcard:hover { background: #f4eee7; border-color: #ccad8e; box-shadow: 0 0 12px rgba(204, 173, 142, 0.4), 0 0 8px rgba(163, 130, 97, 0.25); }
html[data-theme="light"] .az-row:hover { background: rgba(204, 173, 142, 0.14); }
html[data-theme="light"] .dcard.disabled:hover { background: #ffffff; border-color: rgba(204, 173, 142, 0.8); box-shadow: none; }
::selection { background: #ccad8e; color: #362b20; }
input, button, select, textarea { accent-color: #a38261; caret-color: currentColor; }

/* Link back to the classic site (beta build) */
.classic-link { margin: 6px 0 0; font-size: 14px; }
.classic-link a:link, .classic-link a:visited { color: var(--pop); text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
.classic-link a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
html[data-theme="light"] .classic-link a:link, html[data-theme="light"] .classic-link a:visited { color: #a38261; }

/* "Add the app" button on the opening screen + dedicated install page (Photo Finder only) */
.beta-row { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 22px; }
.beta-row .badge { margin: 0; }
.addapp-btn:link, .addapp-btn:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--coral-hot); background: rgba(163, 130, 97, 0.35); color: #ffffff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; border-radius: 999px; }
.addapp-btn[hidden] { display: none; }
.addapp-btn:hover { box-shadow: 0 0 12px rgba(204, 173, 142, 0.55); background: rgba(163, 130, 97, 0.55); }
.addapp-btn:focus-visible, .ip-back:focus-visible, .ip-install:focus-visible, .ip-out a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
html[data-theme="light"] .addapp-btn:link, html[data-theme="light"] .addapp-btn:visited { background: #ffffff; color: var(--ink); border-color: #a38261; }
html[data-theme="light"] .addapp-btn:hover { background: #f8f4f0; }

.ip { position: relative; z-index: 6; width: min(680px, 92vw); margin: 0 auto; padding: 8px 0 40px; }
.ip-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.ip-brand:link, .ip-brand:visited { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; min-height: 44px; }
.ip-back:link, .ip-back:visited { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--pop); text-decoration: underline; }
html[data-theme="light"] .ip-back:link, html[data-theme="light"] .ip-back:visited { color: #a38261; }
.ip h1 { font-size: 1.6rem; line-height: 1.2; margin: 10px 0 8px; }
.ip h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.ip-lede { margin: 0 0 8px; line-height: 1.5; }
.ip-steps { list-style: none; margin: 0; padding: 0; counter-reset: ip; display: grid; gap: 10px; }
.ip-steps li { counter-increment: ip; position: relative; padding: 12px 14px 12px 56px; border: 1px solid #d3b99e; background: rgba(163, 130, 97, 0.22); border-radius: 12px; line-height: 1.45; }
.ip-steps li::before { content: counter(ip); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--coral-hot); color: #362b20; font-weight: 800; }
.ip-steps strong { color: inherit; }
.ip-ico { vertical-align: -4px; }
.ip-install { min-height: 48px; padding: 10px 22px; margin: 4px 0 10px; border: 2px solid var(--coral-hot); background: var(--coral-hot); color: #362b20; font: inherit; font-weight: 800; border-radius: 999px; cursor: pointer; }
.ip-install[hidden] { display: none; }
.ip-install:hover { box-shadow: 0 0 14px rgba(204, 173, 142, 0.6); }
.ip-note { margin: 8px 0 0; font-size: 0.92rem; opacity: 0.9; }
.ip-done { padding: 12px 14px; border: 1px solid var(--coral-hot); border-radius: 12px; background: rgba(163, 130, 97, 0.3); }
.ip-done[hidden] { display: none; }
.ip ul.ip-good { margin: 0; padding-left: 1.2rem; line-height: 1.5; }
.ip-out { margin: 28px 0 0; }
.ip-out a:link, .ip-out a:visited { display: inline-flex; align-items: center; min-height: 44px; color: var(--pop); text-decoration: underline; }
html[data-theme="light"] .ip-out a:link, html[data-theme="light"] .ip-out a:visited { color: #a38261; }
html[data-theme="light"] .ip-steps li, html[data-theme="light"] .ip-done { background: #ffffff; border-color: #a38261; }
.ip-hl { box-shadow: 0 0 0 2px var(--coral-hot); border-radius: 14px; }

/* Illustrated install steps (Photo Finder only): number, short copy, small screen illustration */
.ip-step h3 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.3; }
.ip-step p { margin: 0; }
.ip-fig { margin: 10px 0 2px; max-width: 20rem; border: 1px solid #d3b99e; border-radius: 12px; overflow: hidden; background: #18140f; }
.ip-fig svg { display: block; width: 100%; height: auto; }
@media (min-width: 46rem) {
  .ip-step { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 16px; align-items: start; }
  .ip-step h3, .ip-step p { grid-column: 1; }
  .ip-step .ip-fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
html[data-theme="light"] .ip-fig { border-color: #a38261; }

/* Pinned Locally Verified listing (real estate) */
.biz.pinned {
  grid-column: 1 / -1; margin: 0 0 14px; cursor: default; padding: 16px;
  border: 2px solid var(--pop);
  background: linear-gradient(135deg, rgba(163, 130, 97, 0.7), rgba(204, 173, 142, 0.22));
  box-shadow: 0 0 22px rgba(163, 130, 97, 0.6);
}
.biz.pinned .tag { margin: 6px 0 8px; }
.pin-line { margin: 4px 0; font-size: 15px; color: #f9f6f2; }
.pin-k { color: #efeae5; font-weight: 700; }
.pin-actions { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pin-actions .lk-btn { margin-top: 0; text-decoration: none; }
.pin-note { margin: 10px 0 0; font-size: 12.5px; color: #efeae5; }
.pin-pick { grid-column: 1 / -1; }
html.fx-off .biz.pinned { box-shadow: inset 0 0 0 1px var(--pop); }
@media (prefers-reduced-motion: reduce) { .biz.pinned { box-shadow: inset 0 0 0 1px var(--pop); } }
html[data-theme="light"] .biz.pinned {
  border: 2px solid #a38261;
  background: linear-gradient(135deg, #ffffff 10%, rgba(163, 130, 97, 0.12) 70%, rgba(204, 173, 142, 0.14));
  box-shadow: 0 0 16px rgba(163, 130, 97, 0.25);
}
html[data-theme="light"] .pin-line { color: var(--ink); }
html[data-theme="light"] .pin-k, html[data-theme="light"] .pin-note { color: #60584f; }
html[data-theme="light"] .screen .biz.pinned .nm { color: var(--ink); }
html[data-theme="light"].fx-off .biz.pinned { box-shadow: none; }
.dir .biz.pinned { margin: 0 0 14px; }
.dir .biz.pinned .nm { display: block; font-family: var(--cond); font-size: 24px; color: #ffffff; }
.dir .biz.pinned .meta { color: var(--pop); }
html[data-theme="light"] .dir .biz.pinned .nm { color: var(--ink); }
html[data-theme="light"] .dir .biz.pinned .meta { color: #a38261; }
html .dir .biz.pinned a.lk-btn, html[data-theme="light"] .dir .biz.pinned a.lk-btn, .screen .biz.pinned a.lk-btn, html[data-theme="light"] .screen .biz.pinned a.lk-btn { color: #362b20; }

/* ===== Alignment with the classic site: Featured peach/coral, Priority lavender/grape, Basic muted gray ===== */
.biz.featured, html[data-theme="light"] .biz.featured { background: #f8f3ef; border: 2px solid #ccad8e; box-shadow: none; color: #28221b; }
.biz.pinned, html[data-theme="light"] .biz.pinned { background: #f7f3f0; border: 2px solid #a38261; box-shadow: none; color: #28221b; }
.biz.featured *, .biz.pinned * { color: #28221b; text-shadow: none; }
.biz.featured .flabel, .biz.pinned .flabel { color: #a38261; }
.biz.featured a, .biz.pinned a { color: #594633; }
.biz.pinned .lk-btn { background: #a38261; color: #ffffff; border-color: #362b20; }
.biz.pinned .lk-btn.pin-call { background: #ccad8e; color: #28221b; }
.biz.pinned .lv, .biz.featured .lv { color: #ffffff; background: #a38261; }
.biz.biz-basic, article.plain { background: #f3f3f3 !important; border: 1px solid #cfcdcb !important; box-shadow: none !important; color: #63605c !important; }
.biz.biz-basic *, article.plain * { color: #63605c !important; text-shadow: none !important; }
.biz.biz-basic .nm, article.plain h3 { color: #45423f !important; }
.basic-upsell { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.basic-upsell a, .biz.biz-basic .basic-upsell a, article.plain .basic-upsell a { color: #ae8f70 !important; text-decoration: underline; }
.screen .biz.featured .nm, .screen .biz.pinned .nm, .biz.featured .nm, .biz.pinned .nm, .biz.pinned h3, .dir .biz.pinned .nm { color: #28221b !important; text-shadow: none !important; }
.screen .biz.featured .meta, .screen .biz.pinned .meta, .biz.featured .meta, .biz.pinned .meta, .biz.featured .tag, .biz.pinned .tag { color: #484037 !important; border-color: transparent !important; }
.biz.pinned .lk-btn, .biz.pinned .lk-btn * { color: #ffffff !important; }
.biz.pinned .lk-btn.pin-call, .biz.pinned .lk-btn.pin-call * { color: #28221b !important; }
.biz.pinned .lv { color: #ffffff !important; }
.biz.biz-basic .tag, article.plain .tag { border-color: transparent !important; padding-left: 0 !important; }
