/* AENET Services — DGRID full-bleed public surface.
 * Geometry is deliberately page-scoped: KGRID keeps identity/slots, DGRID
 * owns the 24-column area, and FGRID classes own typography. */

body[data-page="services"][data-dgrid-layout="D.LAYOUT.SERVICES"] > .wrap {
  width: 100vw;
  max-width: none;
  padding-inline: 0;
}

body[data-page="services"][data-dgrid-layout="D.LAYOUT.SERVICES"] main.content-field {
  width: 100vw;
  max-width: none;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

body[data-page="services"] main.content-field > .services-hero,
body[data-page="services"] main.content-field > .services-content {
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  overflow-y: auto;
}

body[data-page="services"] main.content-field > .services-hero {
  grid-column: 1 / 9;
  grid-row: 1;
  padding: clamp(24px, 4vw, 64px) clamp(20px, 3vw, 48px);
  border: 0;
  border-right: 1px solid var(--border-strong);
  background: linear-gradient(155deg, rgba(20, 38, 67, .94), rgba(11, 18, 32, .9));
  box-shadow: inset 3px 0 0 var(--rgbm-insight);
}

body[data-page="services"] main.content-field > .services-content {
  grid-column: 9 / 25;
  grid-row: 1;
  padding: clamp(20px, 3vw, 48px);
  border: 0;
  background: rgba(13, 19, 28, .92);
  box-shadow: inset -3px 0 0 var(--rgbm-navigation);
}

body[data-page="services"] .services-coordinate {
  display: block;
  margin: 0 0 12px;
  color: var(--rgbm-navigation);
}

body[data-page="services"] .services-hero .eyebrow { margin-bottom: 16px; }
body[data-page="services"] .services-hero h1 { margin: 0 0 16px; }
body[data-page="services"] .services-hero .lede { max-width: 34ch; margin: 0; }

body[data-page="services"] .services-content > p { max-width: 76ch; margin: 0 0 16px; }
body[data-page="services"] .services-offers {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: var(--dgrid-space-03);
  margin: 24px 0;
}
body[data-page="services"] .services-content article.card {
  grid-column: span 5;
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  border-radius: 0;
  border-color: var(--border-strong);
  background: rgba(16, 26, 46, .9);
}
body[data-page="services"] .services-content article.card:first-child { grid-column: span 6; }
body[data-page="services"] .services-content article.card h2 { margin: 8px 0 10px; }
body[data-page="services"] .services-content article.card p { margin: 0; display: block; max-width: none; }
body[data-page="services"] .services-evidence { color: var(--text-dim); }
body[data-page="services"] .services-links { margin-bottom: 28px; }
body[data-page="services"] .services-links a { color: var(--rgbm-navigation); }
body[data-page="services"] .services-next {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--rgbm-action);
  background: rgba(20, 33, 58, .8);
}
body[data-page="services"] .services-next h2 { margin: 8px 0 10px; }
body[data-page="services"] .services-next p { margin-bottom: 16px; }
body[data-page="services"] .services-next .btn { color: var(--text); border-color: var(--rgbm-action); }

@media (max-width: 1199px) {
  body[data-page="services"] main.content-field {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    overflow-y: auto;
  }
  body[data-page="services"] main.content-field > .services-hero,
  body[data-page="services"] main.content-field > .services-content {
    grid-column: 1 / 13;
    grid-row: auto;
  }
  body[data-page="services"] main.content-field > .services-hero { padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--border-strong); }
  body[data-page="services"] main.content-field > .services-content { padding: 24px; }
}

@media (max-width: 719px) {
  body[data-page="services"] main.content-field { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-page="services"] main.content-field > .services-hero,
  body[data-page="services"] main.content-field > .services-content { grid-column: 1 / 5; }
  body[data-page="services"] main.content-field > .services-hero { padding: 24px 16px; }
  body[data-page="services"] main.content-field > .services-content { padding: 20px 16px; }
  body[data-page="services"] .services-offers { grid-template-columns: 1fr; gap: 8px; }
  body[data-page="services"] .services-content article.card,
  body[data-page="services"] .services-content article.card:first-child { grid-column: 1; min-height: 0; }
}
