/* Kazakhstan resorts explorer — light editorial / diligence binder */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #18181b;
  --accent-blue: #2563eb;
  --good: #166534;
  --good-bg: #ecfdf5;
  --good-line: #a7f3d0;
  --moderate: #92400e;
  --moderate-bg: #fffbeb;
  --moderate-line: #fcd34d;
  --flag: #9a3412;
  --flag-bg: #fff7ed;
  --flag-line: #fdba74;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 1px 3px rgb(15 23 42 / 0.06);
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1100px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

/* ——— Header ——— */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

.header-meta a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-meta a:hover {
  color: #1e3a8a;
}

.header-sheet-link {
  font-size: 0.95rem;
}

.header-meta time {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.leaflet-map {
  width: 100%;
  height: min(420px, 55vh);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e2e8f0;
  z-index: 0;
}

/* ——— Sections ——— */

.section {
  margin-bottom: 2rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.section-head .section-label {
  margin-bottom: 0;
}

.section-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.map-embed {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

@media (max-width: 720px) {
  .map-embed iframe {
    height: 420px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Toolbar ——— */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 10rem;
  flex: 1 1 10rem;
}

.field-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field select {
  appearance: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  cursor: pointer;
}

.field select:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
  border-color: var(--accent-blue);
}

.field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-width: auto;
  flex: 0 0 auto;
  padding-bottom: 0.45rem;
  cursor: pointer;
}

.field-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.field-check .field-label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* ——— Card grid ——— */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  min-height: 2rem;
}

/* Card shell styles for when app.js injects cards */
.hotel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.hotel-card .card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hotel-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.08);
  color: inherit;
}

.hotel-card:hover .card-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hotel-card .card-body {
  padding: 1rem 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.hotel-card .card-links {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ext-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.ext-link:hover {
  color: #1e3a8a;
}

.hotel-card .card-rank {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hotel-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.hotel-card .card-place {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hotel-card .card-meta,
.hotel-card .card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  margin-top: 0.5rem;
}

.hotel-card .card-stat {
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hotel-card .card-stat-hero {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hotel-card .card-stat .k,
.hotel-card .card-meta .k {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hotel-card .card-stat .v,
.hotel-card .card-meta .v {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hotel-card .card-stat .v-sm {
  font-size: 0.92rem;
  font-weight: 600;
}

.hotel-card .card-stat .unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.card-contacts {
  margin-top: 0.65rem;
  padding: 0.65rem 0.7rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.contact-k {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-v {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.contact-v:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-links .sep {
  margin: 0 0.35rem;
  color: var(--muted);
}

.hotel-card .card-cta {
  margin: 0.55rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.badge-aqi {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.badge-aqi.good {
  background: #d1fae5;
  color: var(--good);
}

.badge-aqi.moderate {
  background: #fef3c7;
  color: var(--moderate);
}

.badge-aqi.flag {
  background: #ffedd5;
  color: var(--flag);
}

.badge-unverified {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #fff7ed;
  color: var(--flag);
  border: 1px solid var(--flag-line);
}

/* ——— Footer ——— */

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.download-list a {
  font-size: 0.9rem;
  font-family: var(--mono);
}

.footer-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}

.footer-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ——— Responsive ——— */

@media (max-width: 720px) {
  .page {
    width: min(100% - 1.25rem, var(--max));
    padding-top: 1.35rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    text-align: left;
  }

  .field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .field-check {
    padding-bottom: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotel-card {
    transition: none;
  }
}

/* ——— Detail page (hotel.html) ——— */

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.back-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.detail-brand {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-hero {
  margin-bottom: 1.25rem;
}

.hero-photo-wrap {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo[hidden] {
  display: none;
}

.hero-meta {
  margin-top: 1.1rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #f1f5f9;
  color: #334155;
}

.score-chip {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.why-ns {
  margin: 0 0 1.5rem;
  max-width: 68ch;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.55;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.stat-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.85rem;
}

.stat-k {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.stat-v {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.3;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem;
}

.detail-card p {
  margin: 0 0 0.65rem;
  color: #334155;
  max-width: 72ch;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card .muted,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-maps {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  text-decoration: none;
}

.btn-maps:hover {
  background: #27272a;
  color: #fff;
}

.maps-url {
  word-break: break-all;
  font-family: var(--mono);
  font-size: 0.75rem !important;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 2rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pager-link {
  max-width: min(100%, 22rem);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.pager-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.pager-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none;
}

#nav-next {
  margin-left: auto;
  text-align: right;
}

.detail-footer {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-photo-wrap {
    max-height: 260px;
  }
}

/* ——— Finalist index extras ——— */

.exec-blurb {
  margin: -0.5rem 0 1.75rem;
  max-width: 68ch;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.55;
}

.toolbar-compact {
  max-width: 36rem;
}

.card-thumb {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finalist-card .card-stats {
  grid-template-columns: 1fr 1fr;
}

/* ——— Sheet block (canonical) ——— */

.sheet-block {
  margin-bottom: 1.75rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sheet-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sheet-k {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-v {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}

.sheet-notes {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  max-width: 72ch;
}

@media (max-width: 640px) {
  .sheet-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Contacts outreach panel ——— */

.contacts-block .section-label {
  color: #1e3a8a;
}

.contacts-panel {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.first-touch {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 72ch;
}

.contact-warnings {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem 0.55rem 1.4rem;
  background: var(--flag-bg);
  border: 1px solid var(--flag-line);
  border-radius: var(--radius-sm);
  color: var(--flag);
  font-size: 0.85rem;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.channel-group h3 {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e40af;
}

.channel-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.channel-group li {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ch-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.ch-value a {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.chip-primary {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #1e40af;
  color: #fff;
  vertical-align: middle;
}

/* ——— Who to meet ——— */

.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: who;
}

.who-list li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: who;
}

.who-list li::before {
  content: counter(who);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.who-role {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.1rem;
}

.who-contact {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #1e40af;
  word-break: break-word;
}

.dossier-h {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dossier-tagline {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  color: #475569;
  font-size: 1rem;
}

.mono-line {
  font-family: var(--mono);
  font-size: 0.8rem !important;
}

.lease-ask {
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.amen-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: #334155;
}

.amen-list li {
  margin-bottom: 0.35rem;
}

.why-ns-inline {
  margin: 0 !important;
}

/* ——— Bespoke layout tones (unique per property type) ——— */

.bespoke-root.layout-luxury-owner .detail-card {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.bespoke-root.layout-franchise-ops .detail-card {
  border-left: 3px solid #2563eb;
}

.bespoke-root.layout-family-aquapark .detail-card {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.bespoke-root.layout-independent-density .detail-card {
  border-style: dashed;
}

.bespoke-root.layout-compact-direct .contacts-panel,
.bespoke-root.layout-compact-direct ~ .contacts-block .contacts-panel {
  border-width: 2px;
}

.bespoke-root.layout-residential-flag .detail-card {
  border-color: var(--flag-line);
  background: var(--flag-bg);
}

.bespoke-root.layout-residential-flag .dossier-h {
  color: var(--flag);
}
