/* ==========================================================================
   /services: a long reference page read as chapters.
   Loaded after nmos-glass-site.css and nmos-site-components.css.
   Hero: title, lead, two actions, and a quiet index of the chapters.
   Chapter: heading + lead + capability lines on the left, the longer
   explanations of the same things on the right. Hairlines, no cards.
   Two moments: a log excerpt (verification) and the install snippet (setup).
   ========================================================================== */

/* ---------- Hero ---------------------------------------------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  align-items: start;
  gap: 40px 64px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .about-hero.svc-hero > * + * { margin-top: 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-hero .svc-hero-lead { margin-top: 16px; }

/* In-page index: a plain list on a hairline, current item gets the accent hairline */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-index-label {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--outline);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-index-list { border-left: 1px solid var(--border-subtle); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-index-list a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-index-list a:hover {
  color: var(--on-surface);
  border-left-color: var(--border-strong);
}

/* ---------- Chapters ------------------------------------------------------ */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px 64px;
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: var(--nav-height);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter:last-child { padding-bottom: 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) :is(#how-it-works, #tracking-systems) { scroll-margin-top: var(--nav-height); }

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter-lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* Capability lines: title + one line, hairline between rows */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-glance { margin: 32px 0 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-glance-row {
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-glance dt {
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--on-surface);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-glance dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}
/* A chapter without explanations shows its lines in two columns on the right */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-glance.svc-glance--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-more {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 24px;
}

/* Explanations: a readable text block in two columns */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-details-lead {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--outline);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 24px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-detail {
  padding: 16px 0 24px;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--nav-height) + 32px);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-detail:target { border-top-color: var(--primary); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-detail h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-detail p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* Moments: log excerpt and install snippet, placed under the explanations' heading */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-moment { margin: 24px 0 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) :is(.svc-moment-note, .svc-moment-label) {
  font-size: 13px;
  line-height: 20px;
  color: var(--outline);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-moment-note { margin: 8px 0 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-moment-label { margin: 0 0 8px; }
/* Code keeps its characters: no "<!--" or "-->" ligatures */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-snippet { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

/* ---------- How it works: three steps on hairlines ------------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-step {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-step h3 { font-size: 17px; line-height: 24px; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-step p {
  max-width: 36rem;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 24px;
}

/* ---------- Tracking systems: bot pages as a list of links ----------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px 64px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots-head p { margin: 12px 0 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 24px;
  color: var(--on-surface-variant);
  transition: color var(--t-fast) var(--ease);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots a .lucide-icon { color: var(--outline); transition: color var(--t-fast) var(--ease); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots a:hover,
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-bots a:hover .lucide-icon { color: var(--on-surface); }

/* ---------- Closing call to action: follows the bot list without a second band */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .sentinel-section.svc-cta-section { padding-top: 0; }

/* ---------- Narrow screens ------------------------------------------------ */
@media (max-width: 959px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) :is(.svc-hero, .svc-chapter, .svc-bots-wrap) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter { gap: 32px; }
}

@media (max-width: 767px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter { padding: 48px 0; }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter:last-child { padding-bottom: 0; }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) :is(.svc-details, .svc-glance.svc-glance--cols, .svc-steps, .svc-bots) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-details { margin-top: 16px; }
  /* One column: the capability lines would repeat the explanations right below them,
     so phones read the explanations only (chapters without explanations keep their lines) */
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-chapter:not(.svc-chapter--glance) .svc-chapter-aside .svc-glance { display: none; }
  /* Log excerpt: keep each line on one row; the time is sample meta */
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-moment .nmos-log-line-seg:has(.nmos-log-line-when) { display: none; }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .svc-detail { padding: 16px 0; }
}
