/*
 * TTDigitals UX/SEO integrity layer — prepared from the 25 Oct 2026
 * production audit.  This is deliberately additive: it resolves the
 * contrast, overlay and accordion defects without changing page semantics,
 * headings, canonical URLs, schema or internal links.
 */
:root {
  --tt-ink: #14253d;
  --tt-muted: #4b6077;
  --tt-navy: #102841;
  --tt-orange: #e95520;
  --tt-paper: #f7fafc;
  --tt-line: #d6e1ea;
}

/* Service overview: explicit colours prevent inherited dark type over the
 * navy/indigo gradient used by the commercial-growth introduction. */
.service-experience__intro,
.service-experience__intro :is(h1,h2,h3,strong) {
  color: #fff !important;
}
.service-experience__intro p,
.service-experience__intro :is(span,small) {
  color: #e8f0f7 !important;
}
.service-experience__intro .eyebrow {
  color: #ffc0a7 !important;
}
.service-experience__intro {
  background: linear-gradient(122deg, #0e2944 0%, #173f66 60%, #725145 100%) !important;
  box-shadow: 0 18px 42px rgba(11, 34, 57, .17);
}
.service-experience__fact {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(255,255,255,.76) !important;
}
.service-experience__fact strong { color: var(--tt-navy) !important; }
.service-experience__fact span { color: #38536d !important; }

/* Service overview panels should read as one deliberate full-width section,
 * while the rail, copy and cards retain a comfortable editorial measure. */
.service-experience {
  max-width: none !important;
  margin: -18px 0 64px !important;
  padding: 0 clamp(20px, 5vw, 84px) 42px !important;
  background: #102841 !important;
}
.service-experience__rail,
.service-experience__intro,
.service-experience__grid,
.service-experience__actions {
  width: min(1184px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.service-experience__rail {
  border-top-color: rgba(255,255,255,.2) !important;
  border-bottom-color: rgba(255,255,255,.2) !important;
}
.service-experience__rail a { color: #eef5fa !important; }
.service-experience__rail a:not(:last-child)::after { color: #92aac0 !important; }

/* FAQ: a clear question/answer system with a visible open state and large
 * tap targets.  It preserves native <details> semantics for crawlers. */
:is(.faq, .specialist-faq, .service-expanded-faq) {
  color: var(--tt-ink) !important;
}
:is(.faq, .specialist-faq, .service-expanded-faq) :is(h2,h3) {
  color: var(--tt-ink) !important;
}
:is(.faq, .specialist-faq, .service-expanded-faq) > p,
.specialist-faq__head > p {
  color: var(--tt-muted) !important;
}
:is(.faq, .specialist-faq, .service-expanded-faq) details {
  margin: 10px 0 !important;
  overflow: clip;
  border: 1px solid var(--tt-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(20,37,61,.035);
}
:is(.faq, .specialist-faq, .service-expanded-faq) summary {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 64px;
  padding: 18px 58px 18px 20px !important;
  color: var(--tt-ink) !important;
  font-size: clamp(1rem, 1.25vw, 1.1rem) !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  cursor: pointer;
  list-style: none;
}
:is(.faq, .specialist-faq, .service-expanded-faq) summary::-webkit-details-marker { display: none; }
:is(.faq, .specialist-faq, .service-expanded-faq) summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff0ea;
  color: #b44019;
  font-size: 1.45rem;
  font-weight: 500;
}
:is(.faq, .specialist-faq, .service-expanded-faq) details[open] {
  border-color: #ec936f !important;
  box-shadow: 0 12px 28px rgba(20,37,61,.09);
}
:is(.faq, .specialist-faq, .service-expanded-faq) details[open] summary {
  background: linear-gradient(90deg, #fff8f5, #fff);
}
:is(.faq, .specialist-faq, .service-expanded-faq) details[open] summary::after { content: "–"; }
:is(.faq, .specialist-faq, .service-expanded-faq) details > p {
  max-width: 78ch;
  margin: 0 !important;
  padding: 0 20px 20px !important;
  color: var(--tt-muted) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* The 2-second conversation prompt remains available, but no longer obscures
 * the first-screen message on desktop. */
@media (min-width: 801px) {
  #tt-chat-panel,
  .tt-chat-panel {
    left: auto !important;
    right: 24px !important;
    bottom: 96px !important;
    width: min(360px, calc(100vw - 48px)) !important;
    max-height: min(560px, calc(100vh - 150px)) !important;
  }
}

/* Small screens keep the question readable and prevent horizontal clipping. */
@media (max-width: 760px) {
  .service-experience {
    margin: -12px 0 44px !important;
    padding: 0 18px 28px !important;
  }
  .service-experience__intro { padding: 28px 22px !important; }
  :is(.faq, .specialist-faq, .service-expanded-faq) summary { padding: 17px 52px 17px 16px !important; }
  :is(.faq, .specialist-faq, .service-expanded-faq) details > p { padding: 0 16px 18px !important; }
}
