/* A V2.7 — Production Polish & Performance layer.
   Active by default when html[data-revision="2.7"] is set;
   disabled when ?revision=2.6 is requested so 100% pixel parity with Codex A V2.6 is preserved. */

html:not([data-revision="2.7"]) .v27-only {
  display: none !important;
}

html[data-revision="2.7"] .v26-only {
  display: none !important;
}

/* 0. Hero & Section Supporting Copy Refinements (Fanpage 07–11/2026 Evidence Layer) */
html[data-revision="2.7"] .hero .hero-intro {
  max-width: 430px;
}

html[data-revision="2.7"] .hero .hero-note {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 440px;
}

html[data-revision="2.7"] .hero .note-line {
  height: 28px;
  flex-shrink: 0;
}

html[data-revision="2.7"] .experience-description {
  max-width: 410px;
  line-height: 1.72;
}

html[data-revision="2.7"] .editorial-copy > p {
  max-width: 360px;
  line-height: 1.72;
}

/* 1. Warm Editorial Rest State on Desktop (replaces cold 100% grayscale(1)) */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  html[data-revision="2.7"]:not(.reduce-motion) .audience-bloom-enabled .audience-scene-base {
    filter: grayscale(0.64) sepia(0.07) contrast(1.01) brightness(0.99);
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  html[data-revision="2.7"]:not(.reduce-motion) .program-card .program-image > img:not(.program-color-wash) {
    filter: grayscale(0.64) sepia(0.07) contrast(1.01) brightness(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-revision="2.7"] .audience-bloom-enabled .audience-scene-base,
  html[data-revision="2.7"] .program-card .program-image > img:not(.program-color-wash) {
    filter: none !important;
  }
}

/* 2. Program Cards — Concrete Scope Summary (.program-scope) */
html[data-revision="2.7"] .program-card .program-image:after {
  background: linear-gradient(
    180deg,
    #00152426 0%,
    #00152400 22%,
    #00152466 50%,
    #001524f2 100%
  );
}

html[data-revision="2.7"] .program-copy .program-scope {
  display: -webkit-box;
  margin-top: 8px;
  margin-bottom: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 400;
  opacity: 1;
  color: rgba(248, 246, 239, 0.88);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-revision="2.7"] .program-copy .card-cta {
  margin-top: 14px;
}

/* 3. Verified Public Contact Strip in Footer (CLM-001: FB-02, PUB-02) */
html[data-revision="2.7"] .footer-contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--navy);
}

html[data-revision="2.7"] .footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-revision="2.7"] .footer-contact-item > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7f76;
}

html[data-revision="2.7"] .footer-contact-item > a,
html[data-revision="2.7"] .footer-contact-item > strong {
  font-weight: 500;
  color: var(--navy);
  width: fit-content;
}

html[data-revision="2.7"] .footer-contact-item > a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 4. Direct Contact Fallback inside Consultation Dialog Review */
html[data-revision="2.7"] .consult-direct-contact {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #ecefe2;
  font-size: 12px;
  line-height: 1.6;
  color: var(--navy);
}

html[data-revision="2.7"] .consult-direct-contact a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199px) {
  html[data-revision="2.7"] .footer-contact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  html[data-revision="2.7"] .hero .hero-note {
    display: flex;
    margin-top: 18px;
    font-size: 11.5px;
    line-height: 1.55;
  }
  html[data-revision="2.7"] #audiences .audience-choice-copy > span {
    max-width: none;
  }
  html[data-revision="2.7"] .program-copy .program-scope {
    font-size: 12px;
    margin-top: 6px;
  }
  html[data-revision="2.7"] .footer-contact-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }
}
