/* ==========================================================
   RuGo v103 — CANONICAL TITLE/SUBTITLE GAP + ACCENT HIERARCHY

   CONTROLLING ADMIN DECISIONS

   A. TITLE → SUBTITLE GAP
   The approved SERVICIOS first-family relationship is the single authority.
   It has ZERO additional vertical spacing between title and subtitle.

   Canonical token:
   --rugo-title-subtitle-gap: 0px

   Applies to:
   - SERVICIOS main
   - PROYECTOS ESPECIALES
   - LAB SPACE main
   - LAB SPACE + PROJECTS / COMUNIDAD

   B. HIERARCHY
   The v102 decision to reduce secondary shared-branch titles to 0.5x
   is SUPERSEDED.

   ALL shared-branch titles return to the full approved SERVICES title scale.

   Hierarchy is now created by ACCENT COLOR on the true branch titles only:
   - PROYECTOS ESPECIALES = accent
   - COMUNIDAD = accent

   Secondary titles remain black and full scale.

   v102 exact LAB right alignment remains active.
   v102 family-to-family spacing remains outside this correction scope.
   ========================================================== */

:root{
  --rugo-title-subtitle-gap:0px;
}

/* ----------------------------------------------------------
   1. SERVICIOS MAIN — CANONICAL AUTHORITY
   ---------------------------------------------------------- */

/* This is already 0 in approved source.
   Explicitly lock only the actual title→statement relationship.
   DO NOT remove content-zone padding because that padding is BEFORE
   the family title and is not a title→subtitle gap. */
.core-panel--services
  .services-overview-family__statement{
  margin-top:var(--rugo-title-subtitle-gap)!important;
}

.core-panel--services
  .services-overview-family--residential
  .services-overview-family__statement-zone{
  padding-top:var(--rugo-title-subtitle-gap)!important;
}

/* ----------------------------------------------------------
   2. PROYECTOS ESPECIALES — SAME CANONICAL GAP
   ---------------------------------------------------------- */

.special-projects-v099
  .services-overview-family__statement{
  margin-top:var(--rugo-title-subtitle-gap)!important;
}

/* First family uses separate title/statement zones. */
.special-projects-v099
  .services-overview-family--residential
  .services-overview-family__statement-zone{
  padding-top:var(--rugo-title-subtitle-gap)!important;
}

/* ----------------------------------------------------------
   3. MAIN LAB SPACE — REMOVE THE .08 EXTRA GAP
   ---------------------------------------------------------- */

.core-panel--lab
  .lab-space-v083__territory-copy{
  margin-top:var(--rugo-title-subtitle-gap)!important;
}

/* ----------------------------------------------------------
   4. LAB SPACE + PROJECTS / COMUNIDAD — SAME CANONICAL GAP
   ---------------------------------------------------------- */

.lab-projects-v100
  .services-overview-family__statement{
  margin-top:var(--rugo-title-subtitle-gap)!important;
}

.lab-projects-v100
  .services-overview-family--residential
  .services-overview-family__statement-zone{
  padding-top:var(--rugo-title-subtitle-gap)!important;
}

/* ----------------------------------------------------------
   5. SUPERSEDE v102 0.5x HIERARCHY
   Restore ALL secondary titles to full SERVICES title scale.
   ---------------------------------------------------------- */

/* PROYECTOS ESPECIALES secondary titles */
.special-projects-v099
  .services-overview-family--strategy
  .services-overview-family__title,
.special-projects-v099
  .services-overview-family--systems
  .services-overview-family__title,
.special-projects-v099
  .special-projects-v099__development
  .services-overview-family__title{
  font-size:var(--services-title-scale)!important;
  color:var(--launch-ink)!important;
}

/* LAB + PROJECTS secondary titles */
.lab-projects-v100
  .services-overview-family--strategy
  .services-overview-family__title,
.lab-projects-v100
  .services-overview-family--systems
  .services-overview-family__title,
.lab-projects-v100
  .lab-projects-v100__aprendizaje
  .services-overview-family__title{
  font-size:var(--services-title-scale)!important;
  color:var(--launch-ink)!important;
}

/* ----------------------------------------------------------
   6. TRUE BRANCH TITLES — ACCENT HIERARCHY
   ---------------------------------------------------------- */

/* PROYECTOS ESPECIALES */
.branch-panel--services.special-projects-v099
  .services-overview-family--residential
  .services-overview-family__title,
.branch-panel--services.special-projects-v099
  .services-overview-family--residential:hover
  .services-overview-family__title,
.branch-panel--services.special-projects-v099
  .services-overview-family--residential:focus-visible
  .services-overview-family__title{
  font-size:var(--services-title-scale)!important;
  color:var(--services-red)!important;
}

/* COMUNIDAD */
.branch-panel--lab.lab-projects-v100
  .services-overview-family--residential
  .services-overview-family__title,
.branch-panel--lab.lab-projects-v100
  .services-overview-family--residential:hover
  .services-overview-family__title,
.branch-panel--lab.lab-projects-v100
  .services-overview-family--residential:focus-visible
  .services-overview-family__title{
  font-size:var(--services-title-scale)!important;
  color:var(--services-red)!important;
}

/* No text scaling, transform mirroring or independent title system. */