/* ============================================================
   WAVE 9 — denser balanced homepage (clone content restored)
   ============================================================ */

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

body.ed-skin .ed-section__lede {
  color: var(--muted, #5b6475);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
  margin: 10px 0 0;
}

/* Intent / search tabs */
body.ed-skin .ed-intent {
  margin: 0 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(13,27,62,0.08);
  box-shadow: 0 10px 28px rgba(13,27,62,0.06);
}
body.ed-skin .ed-intent__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
body.ed-skin .ed-intent__tabs a {
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 6px;
  border-radius: 999px;
  color: #0D1B3E;
  background: #F3F5F8;
}
body.ed-skin .ed-intent__tabs a.is-on {
  background: var(--accent);
  color: #fff;
}
body.ed-skin .ed-intent__search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
body.ed-skin .ed-intent__search input {
  border: 1px solid rgba(13,27,62,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  min-width: 0;
  background: #fff;
  color: #0D1B3E;
}
body.ed-skin .ed-intent__search button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  background: #0D1B3E;
  color: #fff;
  cursor: pointer;
}

/* Open houses */
body.ed-skin .ed-oh { margin-top: 6px; }
body.ed-skin .ed-oh__empty,
body.ed-skin .oh-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 22px 18px;
  border-radius: 18px;
  background: #F7F8FA;
  border: 1px dashed rgba(13,27,62,0.14);
}
body.ed-skin .ed-oh__empty[hidden],
body.ed-skin .oh-empty[hidden] { display: none !important; }
body.ed-skin .ed-oh__empty p,
body.ed-skin .oh-empty p {
  margin: 0;
  color: #0D1B3E;
  font-weight: 600;
  font-size: 15px;
}
body.ed-skin #oh-grid {
  overflow: hidden;
  border-radius: 18px;
}
body.ed-skin #oh-grid .oh-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: edOhMarquee var(--oh-dur, 36s) linear infinite;
}
body.ed-skin #oh-grid .oh-card {
  position: relative;
  flex: 0 0 78vw;
  max-width: 340px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #0D1B3E;
  color: #fff;
}
@media (min-width: 768px) {
  body.ed-skin #oh-grid .oh-card { flex-basis: 300px; }
}
body.ed-skin #oh-grid .oh-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
body.ed-skin #oh-grid .oh-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,16,40,0.88) 100%);
}
body.ed-skin #oh-grid .oh-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  z-index: 2;
}
body.ed-skin #oh-grid .oh-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #fff; color: #0D1B3E;
  border-radius: 10px; padding: 6px 8px;
  font-size: 11px; font-weight: 800; line-height: 1.1;
}
body.ed-skin #oh-grid .oh-badge b { display: block; font-size: 10px; opacity: 0.7; }
body.ed-skin #oh-grid .oh-live {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 6px 8px; border-radius: 999px;
}
body.ed-skin #oh-grid .oh-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block;
}
body.ed-skin #oh-grid .oh-name { margin: 4px 0; font-size: 17px; }
body.ed-skin #oh-grid .oh-addr,
body.ed-skin #oh-grid .oh-time {
  display: flex; align-items: center; gap: 6px;
  margin: 0; font-size: 12px; opacity: 0.92;
}
body.ed-skin #oh-grid .oh-addr svg,
body.ed-skin #oh-grid .oh-time svg { width: 14px; height: 14px; flex: 0 0 auto; }
body.ed-skin #oh-grid .oh-metarow {
  display: flex; gap: 10px; align-items: baseline; margin-top: 6px; font-size: 12px;
}
body.ed-skin #oh-grid .oh-price { font-weight: 800; font-size: 15px; }
body.ed-skin #oh-grid .oh-actions { display: flex; gap: 8px; margin-top: 10px; }
body.ed-skin #oh-grid .oh-primary {
  background: #fff; color: #0D1B3E; text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 999px;
}
body.ed-skin #oh-grid .oh-cal {
  background: rgba(255,255,255,0.16); border: 0; color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
body.ed-skin #oh-grid .oh-cal svg { width: 16px; height: 16px; }
@keyframes edOhMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Story metrics */
body.ed-skin .ed-story__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}
body.ed-skin .ed-story__metrics > div {
  background: #F3F5F8;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
body.ed-skin .ed-story__metrics strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #0D1B3E;
}
body.ed-skin .ed-story__metrics span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted, #5b6475);
  font-weight: 600;
}

/* Team strength + stats */
body.ed-skin .ed-team {
  display: grid;
  gap: 18px;
}
@media (min-width: 992px) {
  body.ed-skin .ed-team {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 28px;
  }
}
body.ed-skin .ed-team__note {
  font-size: 12px;
  color: var(--muted, #5b6475);
  margin: 10px 0 0;
}
body.ed-skin .ed-team__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
body.ed-skin .ed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
body.ed-skin .ed-stats__item {
  background: #0D1B3E;
  color: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  min-height: 96px;
}
body.ed-skin .ed-stats__item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}
body.ed-skin .ed-stats__item span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.85;
  font-weight: 600;
}

/* Why / concierge */
body.ed-skin .ed-why {
  display: grid;
  gap: 10px;
}
@media (min-width: 700px) {
  body.ed-skin .ed-why { grid-template-columns: 1fr 1fr; }
}
body.ed-skin .ed-why__card {
  background: #fff;
  border: 1px solid rgba(13,27,62,0.08);
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 20px rgba(13,27,62,0.04);
}
body.ed-skin .ed-why__card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0D1B3E;
}
body.ed-skin .ed-why__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #5b6475);
}

/* Instagram horizontal rail */
body.ed-skin .ed-section--flush { padding-left: 0; padding-right: 0; }
body.ed-skin .ed-section__head--pad { padding-left: 16px; padding-right: 16px; }
body.ed-skin .ed-ig {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
}
body.ed-skin .ed-ig__card {
  position: relative;
  flex: 0 0 42%;
  max-width: 180px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  background: #0D1B3E;
}
@media (min-width: 768px) {
  body.ed-skin .ed-ig__card { flex-basis: 160px; }
}
body.ed-skin .ed-ig__card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
body.ed-skin .ed-ig__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 10px 12px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8,16,40,0.88));
}

/* Trust bar */
body.ed-skin .ed-trust {
  margin: 0 16px;
  border-radius: 18px;
  background: #0D1B3E;
  color: #fff;
  padding: 18px 16px;
}
body.ed-skin .ed-trust__inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
body.ed-skin .ed-trust__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}
body.ed-skin .ed-trust__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
body.ed-skin .ed-trust__logos img {
  max-height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
body.ed-skin .ed-trust__score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
}
body.ed-skin .ed-trust__score strong { font-size: 28px; line-height: 1; }
body.ed-skin .ed-trust__score span { color: #F5C518; letter-spacing: 1px; }
body.ed-skin .ed-trust__score small { width: 100%; opacity: 0.8; font-size: 12px; }

/* Review CTA card (Jennifer — real Google links only) */
body.ed-skin .ed-review--cta figcaption {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 12px;
}
body.ed-skin .ed-reviews {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
body.ed-skin .ed-review {
  flex: 0 0 86%;
  scroll-snap-align: start;
  max-width: 420px;
}
@media (min-width: 900px) {
  body.ed-skin .ed-reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  body.ed-skin .ed-review { flex: none; max-width: none; }
}

/* Phone density balance */
@media (max-width: 991.98px) {
  body.ed-skin .ed-home-wrap .ed-air { height: 18px; }
  body.ed-skin .ed-section { padding-top: 6px; padding-bottom: 6px; }
}


/* Metrics rail — sits under Meet section, outside ed-story so layout waves can restructure story freely */
body.ed-skin .ed-metrics-rail {
  width: min(var(--max, 1120px), calc(100% - 32px));
  margin: 8px auto 0;
}
body.ed-skin .ed-metrics-rail .ed-story__metrics { margin-top: 0; }
