/* TABOOO DIGITAL EXPERIENCE · Premium single-case editorial refinement. */
/* Strictly scoped to single project pages. Never styles homepage or archives. */
body.single-tb_project {
  --tdxp-ink: #f4f7ff;
  --tdxp-muted: #b8c8de;
  --tdxp-accent: #92dafa;
  --tdxp-line: rgba(162,193,236,.17);
  --tdxp-surface: rgba(19,35,60,.64);
}
body.single-tb_project .tdxp-case-title,
body.single-tb_project main h1:first-of-type {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: clamp(2.55rem, 4.65vw, 5.55rem) !important;
  font-weight: 770 !important;
  line-height: 1.055 !important;
  letter-spacing: -.052em !important;
  max-width: 1170px !important;
  width:100%;
  text-wrap: balance;
  overflow-wrap: normal;
}
body.single-tb_project .tdxp-case-title .tdxp-title-event {
  color: var(--tdxp-ink);
}
body.single-tb_project .tdxp-case-title .tdxp-title-rest {
  color: var(--tdxp-ink);
}
body.single-tb_project .tdxp-case-hero {
  position:relative;
  isolation:isolate;
  min-height:unset !important;
  padding-bottom:clamp(44px,7vw,110px) !important;
}
body.single-tb_project .tdxp-case-hero:before {
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at 90% 16%, rgba(84,111,188,.10), transparent 51%);
  z-index:-1;
  pointer-events:none;
}
body.single-tb_project .tdxp-case-lead {
  max-width:780px !important;
  font-size:clamp(1.03rem,1.43vw,1.28rem) !important;
  line-height:1.64 !important;
  color:var(--tdxp-muted) !important;
  letter-spacing:-.006em !important;
  text-wrap:pretty;
}
body.single-tb_project .tdxp-project-meta {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  width:min(1160px,90vw);
  max-width:100%;
  margin:0 auto clamp(22px,4vw,44px) !important;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  border:1px solid var(--tdxp-line);
  border-radius:17px;
  background:rgba(173,197,234,.16);
  overflow:hidden;
  box-shadow:0 18px 80px rgba(0,0,0,.08);
}
body.single-tb_project .tdxp-project-meta-item {
  min-width:0;
  padding:clamp(17px,2.3vw,28px) clamp(17px,2.3vw,28px);
  background:#101b2e;
}
body.single-tb_project .tdxp-project-meta-label {
  display:block;
  margin-bottom:8px;
  font-size:clamp(.66rem,.72vw,.74rem);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:#a6d8f2;
}
body.single-tb_project .tdxp-project-meta-value {
  display:block;
  font-size:clamp(.92rem,1.2vw,1.13rem);
  font-weight:650;
  line-height:1.48;
  color:var(--tdxp-ink);
}
body.single-tb_project .tdxp-project-feature {
  width:min(1160px,90vw) !important;
  max-width:calc(100vw - 30px) !important;
  height:auto !important;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin:clamp(16px,2.9vw,38px) 0 clamp(38px,5vw,80px) !important;
  border-radius:clamp(12px,1.8vw,22px);
  overflow:hidden;
  border:1px solid var(--tdxp-line);
  box-shadow:0 28px 75px rgba(0,0,0,.24);
  background:#17263c;
}
body.single-tb_project .tdxp-project-feature img {
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio: 1.9 / 1 !important;
  object-fit:cover !important;
  object-position:center 45% !important;
  border:0 !important;
  border-radius:0 !important;
}
body.single-tb_project .tdxp-project-feature:after {
  content:'';
  position:absolute;
  inset:auto 0 0;
  height:16%;
  background:linear-gradient(transparent,rgba(5,12,24,.2));
  pointer-events:none;
}
body.single-tb_project .tdxp-project-prose {
  max-width:min(780px,85vw) !important;
  font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size:clamp(1.06rem,1.15vw,1.24rem) !important;
  line-height:1.78 !important;
  color:#cfdaee !important;
  letter-spacing:-.006em;
}
body.single-tb_project .tdxp-project-prose p,
body.single-tb_project .tdxp-project-prose li {
  font-size:inherit !important;
  line-height:inherit !important;
  color:inherit !important;
  max-width:780px !important;
}
body.single-tb_project .tdxp-project-prose h2,
body.single-tb_project .tdxp-project-prose h3,
body.single-tb_project .tdxp-section-title {
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif !important;
  font-size:clamp(1.36rem,2.15vw,2.05rem) !important;
  font-weight:750 !important;
  letter-spacing:-.036em !important;
  line-height:1.2 !important;
  color:#f7f8ff !important;
  margin:clamp(34px,4.2vw,62px) 0 16px !important;
}
body.single-tb_project .tdxp-project-prose h2:before,
body.single-tb_project .tdxp-project-prose h3:before,
body.single-tb_project .tdxp-section-title:before {
  content:'';
  display:block;
  width:40px;
  height:2px;
  background:linear-gradient(90deg, #75d7ec, #a58bfb);
  margin-bottom:18px;
}
body.single-tb_project .tdxp-project-prose a:not(.wp-block-button__link),
body.single-tb_project .tdxp-project-link {
  color:#a6e8ff !important;
  text-underline-offset:5px;
  text-decoration-thickness:1px;
}
body.single-tb_project .tdxp-project-prose .wp-block-buttons {margin:28px 0 0 !important;}
body.single-tb_project .tdxp-project-prose .wp-block-button__link,
body.single-tb_project .tdxp-project-cta {
  display:inline-flex;
  align-items:center;
  min-height:46px;
  border:1px solid rgba(147,217,242,.4) !important;
  border-radius:999px !important;
  background:rgba(124,194,221,.13) !important;
  color:#d6f7ff !important;
  padding:12px 24px !important;
  font:650 .87rem/1.4 'Helvetica Neue',Helvetica,Arial,sans-serif !important;
  text-decoration:none !important;
  letter-spacing:.025em !important;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
body.single-tb_project .tdxp-project-prose .wp-block-button__link:hover,
body.single-tb_project .tdxp-project-cta:hover {
  transform:translateY(-1px);
  border-color:#a8e5ff !important;
  background:rgba(124,194,221,.24) !important;
}
body.single-tb_project .tdxp-project-back {
  font-size:.83rem !important;
  font-weight:700 !important;
  letter-spacing:.09em !important;
  text-transform:uppercase;
  padding:10px 0 !important;
  color:#b6e6f5 !important;
  text-underline-offset:7px;
}
body.single-tb_project .tdxp-original-facts {display:none !important;}
body.single-tb_project .tdxp-case-hero a:focus-visible,
body.single-tb_project .tdxp-project-prose a:focus-visible,
body.single-tb_project .tdxp-project-back:focus-visible {outline:2px solid #91dfff;outline-offset:4px;}
@media(max-width:760px) {
  body.single-tb_project .tdxp-case-title,
  body.single-tb_project main h1:first-of-type {
    font-size:clamp(2.1rem,7.8vw,3.9rem) !important;
    line-height:1.08 !important;
    letter-spacing:-.047em !important;
    text-wrap:pretty;
  }
  body.single-tb_project .tdxp-project-meta {grid-template-columns:1fr;gap:1px;width:calc(100vw - 34px);}
  body.single-tb_project .tdxp-project-meta-item {padding:15px 21px;}
  body.single-tb_project .tdxp-project-feature {width:calc(100vw - 34px) !important;}
  body.single-tb_project .tdxp-project-feature img {aspect-ratio: 4 / 3 !important;object-fit:cover !important;}
  body.single-tb_project .tdxp-project-prose {max-width:calc(100vw - 48px) !important;font-size:1.03rem !important;line-height:1.73 !important;}
  body.single-tb_project .tdxp-case-hero {padding-bottom:45px !important;}
  body.single-tb_project .tdxp-case-lead {font-size:1.04rem !important;}
}
@media(prefers-reduced-motion:reduce) {
  body.single-tb_project .tdxp-project-cta,
  body.single-tb_project .tdxp-project-prose .wp-block-button__link {transition:none !important;transform:none !important;}
}

/* v0.2.3: factual rail adapts to projects with two verified fields. */
body.single-tb_project .tdxp-project-meta--2 {grid-template-columns: repeat(2,minmax(0,1fr));}
@media(max-width:760px){
  body.single-tb_project .tdxp-project-meta--2 {grid-template-columns: 1fr;}
}
