:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --ink: #17201b;
  --muted: #607069;
  --line: #dbe5dd;
  --panel: #ffffff;
  --accent: #176b55;
  --blue: #285f8f;
  --gold: #8a650f;
  --soft: #eef3ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 244, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a,
.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

button.button {
  font-family: inherit;
  cursor: pointer;
}

.nav a.active,
.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.page-head {
  padding: 28px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 16px;
}

.lede {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 16px 0 30px;
}

.policy-layout {
  max-width: 900px;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  margin-bottom: 8px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  line-height: 1.58;
}

.policy-section p {
  margin: 8px 0 0;
}

.policy-section a {
  color: var(--blue);
  font-weight: 800;
}

.policy-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.policy-list li + li {
  margin-top: 6px;
}

.policy-callout {
  border-left: 4px solid var(--accent);
  background: #edf8f2;
}

.policy-callout p {
  color: var(--ink);
  font-weight: 700;
}

.policy-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.consent-proof {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7faf8;
}

.consent-proof label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.consent-proof input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag.live {
  color: var(--accent);
  background: #edf8f2;
  border-color: #b8d8c9;
}

.tag.placeholder {
  color: var(--gold);
  background: #fff8e4;
  border-color: #dfc47b;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.directory-table th,
.directory-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.directory-table th {
  color: var(--muted);
  background: #eef3ef;
  font-size: 12px;
  text-transform: uppercase;
}

.directory-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.crumbs a {
  color: var(--blue);
}

.panel {
  padding: 16px;
}

.panel dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 0;
}

.panel dt {
  color: var(--muted);
  font-weight: 850;
}

.panel dd {
  margin: 0;
}

.placeholder-note {
  border-left: 4px solid var(--gold);
  padding: 11px 12px;
  background: #fff8e4;
  color: #60470b;
  line-height: 1.5;
}

.demo-hero {
  padding: 30px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
  gap: 18px;
  align-items: end;
}

.demo-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
}

.demo-hero-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 27, .08);
}

.demo-hero-card dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  font-size: 13px;
}

.demo-hero-card dt {
  color: var(--muted);
  font-weight: 850;
}

.demo-hero-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.demo-main {
  display: grid;
  gap: 14px;
}

.demo-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 82px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  display: grid;
  gap: 9px;
}

.feature-card:nth-child(2) {
  border-top-color: var(--blue);
}

.feature-card:nth-child(3) {
  border-top-color: #d6aa38;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.playbook-list,
.check-list,
.boundary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.playbook-list li,
.check-list li,
.boundary-list li {
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 12px;
  color: var(--muted);
  line-height: 1.45;
}

.playbook-list li:nth-child(2n),
.check-list li:nth-child(2n),
.boundary-list li:nth-child(2n) {
  border-left-color: var(--blue);
}

.playbook-list li:nth-child(3n),
.check-list li:nth-child(3n),
.boundary-list li:nth-child(3n) {
  border-left-color: #d6aa38;
}

.playbook-list strong,
.check-list strong,
.boundary-list strong {
  display: block;
  color: var(--ink);
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list a,
.source-list .source-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfb;
  display: grid;
  gap: 4px;
}

.source-list strong {
  color: var(--blue);
}

.source-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-note {
  border: 1px solid #dfc47b;
  border-radius: 8px;
  padding: 12px;
  background: #fff8e4;
  color: #60470b;
  line-height: 1.45;
}

.voice-test-section {
  padding-top: 0;
}

.voice-test-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 14px;
  align-items: start;
  box-shadow: 0 12px 30px rgba(23, 32, 27, .07);
}

.voice-test-copy {
  display: grid;
  gap: 7px;
}

.voice-test-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.voice-test-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.voice-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-test-actions .button {
  min-width: 106px;
}

.voice-test-selector {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.voice-test-selector span {
  font-weight: 850;
  color: var(--ink);
}

.voice-test-selector select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.voice-test-meta {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfb;
  font-size: 13px;
}

.voice-test-meta dt {
  color: var(--muted);
  font-weight: 850;
}

.voice-test-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.voice-test-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.category-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.venue-head {
  align-items: center;
}

.venue-logo {
  width: clamp(86px, 14vw, 132px);
  height: auto;
  justify-self: end;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.mini-dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.mini-dl dt {
  color: var(--muted);
  font-weight: 850;
}

.mini-dl dd {
  margin: 0;
  min-width: 0;
}

.profile-shell {
  width: min(100% - 24px, 430px);
  margin: 0 auto;
  padding: 14px 0 96px;
}

.place-profile,
.profile-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 27, .12);
}

.place-profile {
  padding: 12px;
  display: grid;
  gap: 11px;
}

.profile-media {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  gap: 6px;
  min-height: 134px;
}

.profile-media-tile {
  min-width: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #edf3ee;
}

.profile-media-logo {
  display: grid;
  place-items: center;
  padding: 12px;
}

.profile-media-logo img {
  width: min(100%, 118px);
  height: auto;
}

.profile-media-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px;
  color: #10251f;
  background: #eef2f7;
}

.profile-media-note.alt {
  background: #f5efe4;
}

.profile-media-note strong {
  font-size: 18px;
  line-height: 1.05;
}

.profile-media-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.place-profile .eyebrow {
  margin: 2px 0 -4px;
}

.place-profile h1 {
  font-size: 29px;
}

.profile-rating {
  margin: -5px 0 0;
  color: #143a60;
  font-size: 14px;
  font-weight: 800;
}

.profile-tags {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.profile-tags::-webkit-scrollbar {
  display: none;
}

.profile-tags span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--soft);
  color: #20342d;
  font-size: 13px;
  font-weight: 850;
}

.profile-summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.48;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-actions .button {
  min-height: 42px;
}

.profile-section {
  margin-top: 10px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(23, 32, 27, .07);
}

.profile-section h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.fact-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  line-height: 1.43;
}

.fact-list li::marker {
  color: var(--accent);
  font-weight: 900;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fbfcfb;
}

.link-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.link-list strong {
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.compact-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.compact-details dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 12px 0 0;
}

.compact-details dt {
  color: var(--muted);
  font-weight: 850;
}

.compact-details dd {
  margin: 0;
  min-width: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar-inner,
  .page-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  .directory-table {
    min-width: 620px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .panel dl {
    grid-template-columns: 1fr;
  }

  .demo-hero,
  .demo-layout,
  .feature-grid,
  .voice-test-panel {
    grid-template-columns: 1fr;
  }

  .demo-aside {
    position: static;
  }

  .venue-logo {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar-inner {
    min-height: 0;
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  .nav a,
  .button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .page-head {
    padding: 18px 0 12px;
    gap: 10px;
  }

  .page-head .button {
    width: 100%;
  }

  h1 {
    font-size: 24px;
    line-height: 1.08;
  }

  h2 {
    font-size: 18px;
  }

  .lede {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .section {
    padding: 10px 0 18px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .card,
  .panel {
    border-radius: 7px;
    padding: 12px;
  }

  .footer {
    padding: 16px 0 22px;
  }

  .crumbs {
    font-size: 12px;
  }

  .profile-shell {
    width: min(100% - 28px, 430px);
    padding-top: 10px;
  }

  .profile-media {
    min-height: 136px;
  }

  .place-profile h1 {
    font-size: 28px;
  }

  .compact-details dl {
    grid-template-columns: 1fr;
  }
}
