/* /business/<slug> pages. Loaded after the site stylesheet, which supplies the
   tokens, header, footer and buttons. Brand: EM Directory cream and terracotta
   bands, navy for text, Piazzolla headings. */

.biz {
  --biz-cream: #f4ead9;
  --biz-terracotta: #c4532d;
  --biz-measure: 1040px;
}
.biz .compass-logo { width: 40px; height: 40px; border-radius: 10px; }
.biz .footer-brand .compass-logo { width: 38px; height: 38px; border-radius: 9px; }
.biz .footer-brand .compass-logo svg { width: 26px; height: 26px; }

.biz-wrap {
  max-width: var(--biz-measure);
  margin: 0 auto;
  padding-inline: var(--page-pad-h);
}

/* ---------- reveal: replays on every entry; only hides when the script ran ---------- */
.biz .rv { opacity: 1; translate: none; }
.js .biz .rv { opacity: 0; translate: 0 34px; }
.js .biz .rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .biz .rv { opacity: 1; translate: none; transition: none; }
}

/* ---------- top band ---------- */
.biz-band {
  background: var(--biz-cream);
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(28px, 5vw, 56px);
}
.biz-crumbs { padding-top: 12px; font-size: 0.875rem; color: var(--text-muted); }
.biz-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.biz-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--text-soft); }
.biz-crumbs a { color: var(--accent-strong); }
.biz-crumbs [aria-current] { color: var(--text); overflow-wrap: anywhere; }

.biz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(20px, 4vw, 40px);
}
.biz-name {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.biz-tagline {
  margin: 0.6em 0 0;
  max-width: 42ch;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.biz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.biz-btn { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.biz-btn:hover { text-decoration: none; }
.biz-btn-quiet { padding: 0 6px; font-weight: 700; color: var(--accent-strong); text-decoration: underline; }
.biz-btn-quiet:hover { text-decoration: underline; }

.biz-mark {
  display: grid;
  place-items: center;
  width: clamp(96px, 16vw, 168px);
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.biz-mark img { width: 100%; height: 100%; object-fit: contain; }
.biz-mark-initial { background: var(--accent-tint); border-color: color-mix(in oklch, var(--accent) 30%, var(--card-border)); }
.biz-mark-initial span { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); font-weight: 700; color: var(--accent-strong); }

/* ---------- details and neighbours ---------- */
.biz-body { display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(32px, 6vw, 64px); }
.biz-details h2, .biz-more h2 { margin: 0 0 16px; font-size: 1.75rem; line-height: 1.2; color: var(--ink); }

.biz-dl { margin: 0; border-top: 1px solid var(--rule); }
.biz-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.biz-row dt { font-size: 0.9375rem; font-weight: 700; color: var(--text-muted); }
.biz-row dd { margin: 0; overflow-wrap: anywhere; }
.biz-row a { color: var(--accent-strong); }
.biz-note { margin-left: 0.5em; font-size: 0.875rem; color: var(--text-muted); }
a.biz-note { color: var(--accent-strong); }
.biz-sep { color: var(--text-soft); }
.biz-scope { max-width: 60ch; margin: 16px 0 0; font-size: 0.9375rem; color: var(--text-muted); }

.biz-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.biz-list li { padding: 12px 0; border-top: 1px solid var(--rule); min-width: 0; }
.biz-list a { font-weight: 700; color: var(--accent-strong); overflow-wrap: anywhere; }
.biz-list span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.biz-all { margin: 16px 0 0; }
.biz-all a { color: var(--accent-strong); font-weight: 700; }

/* ---------- claim band ---------- */
.biz-claim {
  background: var(--biz-terracotta);
  color: #fff;
  padding-block: clamp(32px, 6vw, 56px);
}
.biz-claim-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.biz-claim-inner > div:first-child { flex: 1 1 18rem; min-width: 0; }
.biz-claim-actions { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.biz .site-footer { margin-top: 0; }
.biz-claim h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; color: var(--biz-cream); }
.biz-claim p { max-width: 52ch; margin: 0.5em 0 0; font-size: 1.0625rem; line-height: 1.5; }
.biz-claim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.biz-claim-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  background: var(--biz-cream);
  color: var(--ink);
  font-weight: 700;
  transition: background 0.15s ease;
}
.biz-claim-btn:hover { background: #fff; color: var(--ink); text-decoration: none; }
.biz-claim a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.biz-claim-link { color: #fff; font-weight: 700; text-decoration: underline; }
.biz-claim-link:hover { color: #fff; }

/* ---------- phone widths ---------- */
@media (max-width: 700px) {
  .biz-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .biz-hero { grid-template-columns: 1fr; }
  .biz-mark { order: -1; width: 88px; padding: 10px; }
  .biz-row { grid-template-columns: 1fr; padding: 12px 0; }
  .biz-actions .btn-primary, .biz-actions .btn-secondary { flex: 1 1 100%; justify-content: center; }
  .biz-claim-actions { width: 100%; }
  .biz-claim-btn { width: 100%; justify-content: center; }
}
