/*
 * GTI Phase 2 core-page family layer — preview/local scope only — 2026-09-10
 *
 * This layer composes the Phase 1 foundation into the retained public core
 * journeys. It intentionally does not create routes, change Admin, touch
 * runtime data, or alter production configuration. Home is excluded so its
 * already accepted owner-review composition remains stable in this pass.
 */

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) {
  --gti-core-ink: #102638;
  --gti-core-muted: #52677a;
  --gti-core-line: #d7e6f1;
  --gti-core-canvas: #f7fbff;
  --gti-core-surface: #ffffff;
  --gti-core-surface-blue: #e8f6ff;
  --gti-core-surface-mint: #e4f8f1;
  --gti-core-surface-peach: #fff0e9;
  --gti-core-navy: #073b5c;
}

/* Every core page opens with the same editorial rhythm. The media keeps the
   approved gold frame from Phase 1 while the copy remains readable at wide
   and narrow widths. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .page-hero {
  padding-block: clamp(70px, 8vw, 118px) clamp(76px, 8vw, 126px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-grid, .detail-hero-grid) {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 92px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-copy, .detail-hero-copy, .page-hero-copy) {
  gap: 16px;
  min-inline-size: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-copy, .detail-hero-copy) .section-icon {
  margin-block: 2px 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .page-hero h1 {
  max-inline-size: 15ch;
  font-size: clamp(2.9rem, 5.4vw, 5.6rem);
  line-height: .99;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .page-hero p {
  max-inline-size: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.7;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-media, .detail-hero-visual, .page-hero-visual) {
  width: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  block-size: clamp(320px, 38vw, 560px);
  max-block-size: 590px;
  aspect-ratio: auto;
  border-width: 10px;
  border-radius: 38% 16% 34% 18% / 18% 34% 17% 39%;
}

/* Collection/detail families share section surfaces and a deliberate accent
   rail. This gives each page a visible progression without adding decoration
   that can compete with the content. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) main > .section {
  position: relative;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) main > .section:nth-of-type(3n + 2) {
  background: var(--gti-core-canvas);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) main > .section:nth-of-type(3n + 3) {
  background: var(--gti-core-surface-blue);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.section-heading, .centered-section) {
  gap: 14px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .section-heading h2 {
  max-inline-size: 20ch;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: 1.02;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .section-heading p {
  max-inline-size: 70ch;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.seo-answer-section, .service-quick-answer, .product-quick-answer, .solution-quick-answer) {
  background: linear-gradient(118deg, #fffaf1 0 62%, #e8f6ff 62% 100%);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.seo-answer-section, .service-quick-answer, .product-quick-answer, .solution-quick-answer) .centered-section {
  max-inline-size: 1040px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--gti-core-line);
  border-inline-start: 6px solid #f2c14e;
  border-radius: var(--gti-radius-lg);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--gti-shadow-sm);
}

/* Readable, auto-fitting cards are the core page workhorse. Fixed column
   counts are avoided so the same component works from small phones to wide
   laptops without sideways scrolling. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .service-overview-grid,
  .solution-overview-grid,
  .capability-grid,
  .pillar-grid,
  .leader-grid,
  .proof-card-grid,
  .phase3-context-grid,
  .service-section-grid,
  .product-module-grid,
  .solution-stack-grid
) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  min-inline-size: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card {
  display: grid;
  align-content: start;
  min-inline-size: 0;
  min-block-size: 300px;
  gap: 10px;
  padding: clamp(24px, 3.5vw, 36px);
  overflow: hidden;
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-lg);
  background: linear-gradient(145deg, #ffffff, #e8f6ff);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #e4f8f1);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #f0ecff);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card:nth-child(4) {
  background: linear-gradient(145deg, #ffffff, #fff0e9);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card .capability-line-icon {
  width: 68px;
  height: 68px;
  margin-block-end: 6px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card > span {
  color: var(--rl-blue-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card h3 {
  max-inline-size: 18ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.08;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card p {
  max-inline-size: 48ch;
  margin: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-card .text-link {
  align-self: end;
  width: fit-content;
  max-inline-size: 100%;
  margin-block-start: auto;
  padding-block-start: 14px;
  color: var(--rl-navy);
  font-weight: 850;
  text-underline-offset: 4px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid article {
  display: grid;
  align-content: start;
  min-inline-size: 0;
  min-block-size: 260px;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-md);
  background: #ffffff;
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid article:nth-child(2) {
  background: var(--gti-core-surface-blue);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid article:nth-child(3) {
  background: var(--gti-core-surface-mint);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid article:nth-child(4) {
  background: var(--gti-core-surface-peach);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid .capability-line-icon {
  width: 64px;
  height: 64px;
  margin-block-end: 8px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid p {
  margin: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-contact-section .contact-panel {
  background: linear-gradient(135deg, #ffffff, #e8f6ff 58%, #e4f8f1);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-block: 0 clamp(34px, 5vw, 58px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card {
  display: grid;
  align-content: start;
  min-inline-size: 0;
  min-block-size: 250px;
  gap: 10px;
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-md);
  background: linear-gradient(145deg, #ffffff, #e8f6ff);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card:nth-child(2n) {
  background: linear-gradient(145deg, #ffffff, #e4f8f1);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card:nth-child(3n) {
  background: linear-gradient(145deg, #ffffff, #fff0e9);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card .capability-line-icon {
  width: 64px;
  height: 64px;
  margin-block-end: 4px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-status {
  width: fit-content;
  max-inline-size: 100%;
  padding: 5px 9px;
  color: var(--rl-blue-deep);
  border: 1px solid #b9d9ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-card p {
  margin: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid article {
  display: grid;
  align-content: start;
  min-inline-size: 0;
  min-block-size: 250px;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-md);
  background: linear-gradient(145deg, #ffffff, #e8f6ff);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid article:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #f0ecff);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid article:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #e4f8f1);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid article:nth-child(4) {
  background: linear-gradient(145deg, #ffffff, #fff0e9);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid .capability-line-icon {
  width: 64px;
  height: 64px;
  margin-block-end: 6px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid p {
  margin: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid article {
  display: grid;
  align-content: start;
  min-inline-size: 0;
  min-block-size: 320px;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-md);
  background: linear-gradient(145deg, #ffffff, #e8f6ff);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid article:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #e4f8f1);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid article:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #f0ecff);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid article:nth-child(4) {
  background: linear-gradient(145deg, #ffffff, #fff0e9);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid .capability-line-icon {
  width: 64px;
  height: 64px;
  margin-block-end: 6px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid h3 {
  margin: 0;
  font-size: clamp(1.28rem, 1.9vw, 1.65rem);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid p {
  margin: 0 0 4px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid .text-link {
  width: fit-content;
  max-inline-size: 100%;
  color: var(--rl-navy);
  font-weight: 800;
  text-underline-offset: 4px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .service-card,
  .solution-card,
  .capability-grid article,
  .pillar-grid article,
  .leader-grid article,
  .proof-card-grid article,
  .phase3-context-grid article,
  .service-section-grid article,
  .product-module-grid article,
  .solution-stack-grid a
) {
  min-inline-size: 0;
  overflow: hidden;
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-md);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .capability-grid article,
  .pillar-grid article,
  .leader-grid article,
  .proof-card-grid article,
  .phase3-context-grid article,
  .service-section-grid article,
  .product-module-grid article
) {
  min-block-size: 240px;
  align-content: start;
  padding: clamp(22px, 3vw, 30px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .capability-grid article,
  .pillar-grid article,
  .leader-grid article,
  .proof-card-grid article,
  .phase3-context-grid article,
  .service-section-grid article,
  .product-module-grid article
) :is(h2, h3, h4, p, span, small) {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .capability-grid article,
  .pillar-grid article,
  .leader-grid article,
  .proof-card-grid article,
  .phase3-context-grid article,
  .service-section-grid article,
  .product-module-grid article
) :is(h3, h4) {
  margin-block: 12px 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(
  .capability-grid article,
  .pillar-grid article,
  .leader-grid article,
  .proof-card-grid article,
  .phase3-context-grid article,
  .service-section-grid article,
  .product-module-grid article
) p {
  line-height: 1.6;
}

/* A compact four-pillar treatment is used wherever the page presents the
   company's primary capability story. Existing semantic accent attributes
   continue to supply the colour family. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .capability-grid article,
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .pillar-grid article {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(232, 246, 255, .78));
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .capability-grid article:nth-child(3n + 2),
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .pillar-grid article:nth-child(3n + 2) {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(228, 248, 241, .8));
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .capability-grid article:nth-child(3n + 3),
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .pillar-grid article:nth-child(3n + 3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 240, 233, .84));
}

/* Collection cards retain their photographs but give the text and action a
   predictable content frame. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .service-card.service-card-visual {
  display: grid;
  grid-template-rows: auto 1fr;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card-media, .collection-card-visual) {
  width: 100%;
  min-block-size: 0;
  block-size: auto;
  margin-inline: 0;
  aspect-ratio: 16 / 10;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card-body, .solution-card > :not(.collection-card-visual)) {
  min-inline-size: 0;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card-body, .solution-card) :is(h3, p, a) {
  overflow-wrap: anywhere;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card a, .solution-card a) {
  width: fit-content;
  max-inline-size: 100%;
  min-block-size: 44px;
  margin-block-start: 12px;
  overflow-wrap: anywhere;
}

/* Image-led sections and operating panels become a contained reading unit. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.media-feature, .split-panel, .product-operating-panel, .solution-problem-outcome, .service-deliverable-panel, .phase3-context-panel, .contact-panel) {
  min-inline-size: 0;
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-lg);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.media-feature, .split-panel) {
  padding: clamp(24px, 5vw, 58px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.media-feature, .split-panel) .media-frame {
  min-block-size: clamp(300px, 38vw, 520px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.product-operating-panel, .solution-problem-outcome, .service-deliverable-panel, .phase3-context-panel, .contact-panel) {
  padding: clamp(24px, 4vw, 48px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.product-operating-panel, .solution-problem-outcome) > div + div {
  border-inline-start: 1px solid var(--gti-core-line);
  padding-inline-start: clamp(20px, 4vw, 48px);
}

/* Tabs and architecture strips should wrap as a deliberate grid instead of
   producing compressed text or horizontal scroll on phones. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.matrix-tabs, .architecture-strip) {
  min-inline-size: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.matrix-tab, .architecture-strip article) {
  min-inline-size: 0;
  min-block-size: 50px;
  overflow-wrap: anywhere;
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-process-list, .architecture-strip) {
  border-radius: var(--gti-radius-lg);
}

/* Contact is a primary conversion journey. Keep the form controls and direct
   channels in one readable two-column frame, then collapse cleanly. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"])[data-page-path="/contact"] .contact-layout,
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .contact-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 32px);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.contact-form, .contact-card) {
  min-inline-size: 0;
  border-radius: var(--gti-radius-lg);
  box-shadow: var(--gti-shadow-md);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .contact-card {
  background: linear-gradient(155deg, #fffaf1 0%, #e8f6ff 100%);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.contact-form, .contact-card) :is(h2, h3, label, p, span, a) {
  overflow-wrap: anywhere;
}

/* Detail-page FAQ/related modules stay visually quiet so the primary CTA is
   the clear end of the journey. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-faq-list, .product-faq-list, .solution-faq-list) details {
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-sm);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--gti-shadow-sm);
}

body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-related-strip, .product-related-strip, .solution-related-strip) {
  gap: clamp(18px, 4vw, 52px);
  border: 1px solid var(--gti-core-line);
  border-radius: var(--gti-radius-lg);
  background: linear-gradient(135deg, #ffffff, #e8f6ff);
  box-shadow: var(--gti-shadow-sm);
}

/* Prevent a long label or button from forcing a page wider than the viewport.
   This is scoped to content modules and does not hide overflow globally. */
body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) main :is(h1, h2, h3, h4, p, a, button, span, strong, small, li) {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1020px) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-grid, .detail-hero-grid) {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-media, .detail-hero-visual, .page-hero-visual) {
    max-block-size: 560px;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.product-operating-panel, .solution-problem-outcome) > div + div {
    border-block-start: 1px solid var(--gti-core-line);
    border-inline-start: 0;
    padding-block-start: 24px;
    padding-inline-start: 0;
  }
}

@media (max-width: 760px) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/about"] .about-audience-grid {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/capabilities"] .capability-pillar-grid {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/products"] .product-direction-grid {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/solutions"] .solution-audience-grid {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/services"] .service-family-grid {
    grid-template-columns: 1fr;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .page-hero h1 {
    max-inline-size: 13ch;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.collection-hero-media, .detail-hero-visual, .page-hero-visual) {
    block-size: clamp(260px, 72vw, 360px);
    min-block-size: 0;
    max-block-size: 360px;
    border-width: 8px;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) .section-heading h2 {
    max-inline-size: 17ch;
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.media-feature, .split-panel, .product-operating-panel, .solution-problem-outcome, .service-deliverable-panel, .phase3-context-panel, .contact-panel) {
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.matrix-tabs, .architecture-strip) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.matrix-tab, .architecture-strip article) {
    min-block-size: 46px;
    padding-inline: 10px;
  }

  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card-media, .collection-card-visual) {
    min-block-size: 0;
  }
}

@media (max-width: 380px) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.matrix-tabs, .architecture-strip) {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"]:not([data-page-path="/"]) :is(.service-card, .solution-card, .capability-grid article, .pillar-grid article, .leader-grid article) {
    transition: none;
  }
}
