/* ALR Corporate — division-specific rules (Child C)
   Shared tokens, type, spacing and nav logic stay in main.css.
   This file carries only what a division page needs beyond main.css:
   division heroes, status badges, the VISION flow diagram, step lists,
   Digital Africa stat chips and media channel cards. */

.page-hero--xpace { background: var(--xpace-bg); color: #fff; }
.page-hero--xpace .lede, .page-hero--xpace .eyebrow { color: rgba(255, 255, 255, 0.78); }
.page-hero--xpace .eyebrow .rule { background: var(--cyan); }
.page-hero--xpace .breadcrumb { color: rgba(255, 255, 255, 0.6); }
.page-hero--xpace .breadcrumb a { color: rgba(255, 255, 255, 0.85); }

.page-hero--da { background: var(--da-blue); color: #fff; }
.page-hero--da .lede, .page-hero--da .eyebrow { color: rgba(255, 255, 255, 0.82); }
.page-hero--da .eyebrow .rule { background: var(--da-pink); }
.page-hero--da .breadcrumb { color: rgba(255, 255, 255, 0.65); }
.page-hero--da .breadcrumb a { color: rgba(255, 255, 255, 0.9); }

.page-hero--media { background: var(--paper); }
.page-hero--media .eyebrow .rule { background: var(--lime-dark); }

/* ---------- Status badges ---------- */
.badge--violet { background: var(--violet); color: #fff; }
.badge--cyan-outline { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); }
.badge--pink { background: var(--da-pink); color: var(--ink); }
.badge--da-blue { background: var(--da-blue); color: #fff; }
.status-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.status-line .badge { font-size: 14px; padding: 8px 16px; }

/* ---------- Dark division sections ---------- */
.section--xpace { background: var(--xpace-bg); color: #fff; }
.section--xpace .lede, .section--xpace .eyebrow { color: rgba(255, 255, 255, 0.78); }
.section--xpace .eyebrow .rule { background: var(--cyan); }
.section--xpace h2, .section--xpace h3 { color: #fff; }
.section--xpace p { color: rgba(255, 255, 255, 0.82); }
.xpace-card { background: var(--xpace-surface); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.xpace-card p { color: rgba(255, 255, 255, 0.82); }
.xpace-card h3 { color: #fff; }
.xpace-card .capability { border-top-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.6); }
.xpace-card .capability span { color: #fff; }
.xpace-card .text-link { color: var(--cyan); }

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--hairline); border-left: 4px solid var(--lime-dark);
  background: var(--paper); border-radius: 0 12px 12px 0; padding: 24px 28px;
  max-width: 780px;
}
.callout h3 { font-size: 20px; margin-bottom: 8px; }
.callout p { margin-bottom: 0; color: #33373f; }
.callout--violet { border-left-color: var(--violet); background: #f4f2ff; }
.callout--cyan { border-left-color: var(--cyan); background: #eefbfd; }
.callout--pink { border-left-color: var(--da-pink); background: #fff0f8; }
.callout--dark { background: var(--xpace-surface); border-color: rgba(255, 255, 255, 0.12); border-left-color: var(--cyan); }
.callout--dark p, .callout--dark h3 { color: rgba(255, 255, 255, 0.88); }

/* ---------- VISION flow diagram (HTML/CSS, not a screenshot) ---------- */
.diagram { background: var(--xpace-surface); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 40px 32px; }
.diagram__flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.diagram__step { background: var(--xpace-bg); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.diagram__step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.diagram__step p { color: rgba(255, 255, 255, 0.72); font-size: 14px; margin-bottom: 0; }
.diagram__step .diagram__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.diagram__step--accent .diagram__num { background: var(--cyan); color: var(--ink); }
.diagram__arrow { align-self: center; color: var(--cyan); font-size: 22px; font-weight: 700; }
.diagram__note { margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* ---------- Numbered step list (development approach / how it works) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--hairline); align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-size: 15px; font-weight: 800;
  color: var(--violet); padding-top: 4px;
}
.steps--da li::before { color: var(--da-blue); }
.steps--lime li::before { color: var(--lime-dark); }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { color: #33373f; margin-bottom: 0; }
.section--xpace .steps li { border-top-color: rgba(255, 255, 255, 0.16); }
.section--xpace .steps li:last-child { border-bottom-color: rgba(255, 255, 255, 0.16); }
.section--xpace .steps li::before { color: var(--cyan); }
.section--xpace .steps p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-grid .card__body { padding: 28px; }
.cap-grid h3 { font-size: 21px; }

/* ---------- Digital Africa ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.stat-chip { border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; padding: 20px 24px; min-width: 150px; }
.stat-chip strong { display: block; font-size: 34px; font-weight: 800; color: var(--da-blue); line-height: 1.1; }
.stat-chip span { font-size: 14px; font-weight: 600; color: var(--muted); }
.da-card { border-top: 4px solid var(--da-blue); }
.da-card--pink { border-top-color: var(--da-pink); }
.da-note { font-size: 14px; color: var(--muted); max-width: 720px; }

/* ---------- Media ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.channel-card__visual { height: 150px; display: flex; align-items: flex-end; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.channel-card__visual span { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.channel-card__visual span em { font-style: normal; color: var(--lime-dark); }
.channel-card--soon .channel-card__visual { background: var(--ink); color: #fff; }
.channel-card--soon .channel-card__visual span em { color: var(--lime); }

@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .diagram__flow { grid-template-columns: 1fr; gap: 0; }
  .diagram__arrow { transform: rotate(90deg); justify-self: center; padding: 8px 0; }
}
@media (max-width: 760px) {
  .cap-grid, .channel-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  .diagram { padding: 28px 20px; }
  .stat-chip { min-width: 0; flex: 1 1 40%; padding: 16px; }
  .stat-chip strong { font-size: 28px; }
}
