/* Prominent Microsoft systems visuals for the root GitHub Pages site. */
.hero-systems {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin: 34px auto 0;
  max-width: 980px;
}

.hero-system {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  min-height: 150px;
  padding: 18px 14px;
  text-align: center;
}

.hero-system img {
  height: 46px;
  margin: 0 auto 13px;
  width: 46px;
}

.hero-system strong,
.hero-system span {
  display: block;
}

.hero-system strong {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.hero-system span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin-top: 7px;
  text-transform: uppercase;
}

.hero-system--primary {
  background: linear-gradient(160deg, rgba(212, 168, 75, 0.28), rgba(255, 255, 255, 0.1));
  border-color: rgba(212, 168, 75, 0.38);
}

.microsoft-platform {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 48px 0;
  position: relative;
}

.microsoft-platform__rail {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  height: 2px;
  left: 8%;
  opacity: 0.5;
  position: absolute;
  right: 8%;
  top: 54px;
  z-index: 0;
}

.microsoft-platform__node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  min-height: 250px;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.microsoft-platform__node img {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  height: 58px;
  padding: 8px;
  width: 58px;
}

.microsoft-platform__node span {
  color: rgba(255, 255, 255, 0.26);
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 13px;
}

.microsoft-platform__node strong {
  color: white;
  display: block;
  font-family: var(--font-heading);
  font-size: 1.24rem;
  margin-top: 24px;
}

.microsoft-platform__node p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 10px;
}

.microsoft-platform__node--lead {
  background: linear-gradient(160deg, rgba(0, 107, 94, 0.42), rgba(255, 255, 255, 0.08));
}

.microsoft-platform__node--secure {
  background: linear-gradient(160deg, rgba(212, 168, 75, 0.28), rgba(255, 255, 255, 0.08));
  border-color: rgba(212, 168, 75, 0.28);
}

.audited-architecture {
  background:
    radial-gradient(circle at 10% 15%, rgba(212, 168, 75, 0.16), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(0, 107, 94, 0.28), transparent 34%),
    #101010;
}

.audit-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.audit-hero__card,
.audit-panel,
.audit-flow {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.audit-hero__card {
  min-height: 245px;
  padding: 24px;
}

.audit-hero__card img {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  height: 56px;
  padding: 8px;
  width: 56px;
}

.audit-hero__card h3,
.audit-panel h3,
.audit-flow h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  margin-top: 18px;
}

.audit-hero__card p,
.audit-panel p,
.audit-panel li,
.audit-definition-list dd,
.audit-owner-table,
.audit-flow li span,
.audit-checks span,
.audit-evidence {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.875rem;
  line-height: 1.58;
}

.audit-hero__card code,
.audit-panel code,
.audit-flow code {
  color: var(--gold-light);
}

.audit-hero__card--tenant {
  background: linear-gradient(155deg, rgba(0, 107, 94, 0.42), rgba(255, 255, 255, 0.07));
  border-color: rgba(77, 182, 172, 0.24);
}

.audit-hero__card--secure {
  background: linear-gradient(155deg, rgba(212, 168, 75, 0.26), rgba(255, 255, 255, 0.07));
  border-color: rgba(212, 168, 75, 0.28);
}

.audit-blueprint {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  margin-bottom: 34px;
}

.audit-blueprint__layer {
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 168, 75, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  min-height: 290px;
  padding: 24px;
  position: relative;
}

.audit-blueprint__layer--identity {
  border-color: rgba(77, 182, 172, 0.24);
}

.audit-blueprint__layer--groups {
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 107, 94, 0.32), transparent 30%),
    rgba(255, 255, 255, 0.075);
}

.audit-blueprint__layer--resources {
  border-color: rgba(212, 168, 75, 0.28);
}

.audit-blueprint__icon {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  display: grid;
  height: 62px;
  place-items: center;
  width: 62px;
}

.audit-blueprint__icon img {
  height: 44px;
  width: 44px;
}

.audit-blueprint h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  margin-top: 22px;
}

.audit-blueprint p,
.audit-blueprint span {
  color: rgba(255, 255, 255, 0.66);
  display: block;
  font-size: 0.875rem;
  line-height: 1.58;
  margin-top: 12px;
}

.audit-blueprint span {
  background: rgba(0, 0, 0, 0.18);
  border-left: 3px solid rgba(212, 168, 75, 0.62);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.56);
  padding: 10px 12px;
}

.audit-blueprint code {
  color: var(--gold-light);
}

.audit-blueprint__connector {
  align-self: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  opacity: 0.82;
}

.audit-flow {
  margin-bottom: 34px;
  padding: 26px;
}

.audit-flow h3 {
  margin-top: 0;
}

.audit-flow ol {
  counter-reset: audit-step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.audit-flow li {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 18px;
  position: relative;
}

.audit-flow li::before {
  color: var(--gold);
  content: counter(audit-step, decimal-leading-zero);
  counter-increment: audit-step;
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.audit-flow li strong,
.audit-flow li span {
  display: block;
}

.audit-flow li strong {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.audit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-panel {
  padding: 26px;
}

.audit-panel h3 {
  margin-top: 0;
}

.audit-panel ul {
  margin: 18px 0 0;
  padding-left: 1.15rem;
}

.audit-panel li + li {
  margin-top: 9px;
}

.audit-panel--wide {
  grid-column: 1 / -1;
}

.audit-definition-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.audit-definition-list div {
  border-left: 3px solid rgba(212, 168, 75, 0.5);
  padding-left: 14px;
}

.audit-definition-list dt {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.audit-definition-list dd {
  margin: 0;
}

.audit-checks {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.audit-checks span {
  background: rgba(0, 107, 94, 0.18);
  border: 1px solid rgba(77, 182, 172, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
}

.audit-todo {
  background: rgba(212, 168, 75, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
}

.audit-owner-table {
  border-collapse: collapse;
  margin-top: 18px;
  width: 100%;
}

.audit-owner-table caption {
  color: rgba(255, 255, 255, 0.62); /* WCAG AA on translucent panel */
  font-size: 0.75rem;
  margin-bottom: 12px;
  text-align: left;
}

.audit-owner-table th,
.audit-owner-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.audit-owner-table th {
  color: #fff;
  font-weight: 700;
  padding-right: 18px;
  width: 42%;
}

.audit-panel a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.audit-panel--lifecycle {
  background: linear-gradient(155deg, rgba(0, 107, 94, 0.24), rgba(255, 255, 255, 0.07));
  border-color: rgba(77, 182, 172, 0.22);
}

.audit-next-steps {
  background: linear-gradient(155deg, rgba(212, 168, 75, 0.16), rgba(0, 107, 94, 0.16));
  border: 1px solid rgba(212, 168, 75, 0.22);
  border-radius: 24px;
  margin-top: 28px;
  padding: 26px;
}

.audit-next-steps h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  margin: 0 0 18px;
}

.audit-next-steps__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-next-steps__grid span {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 14px;
}

.audit-next-steps__grid strong {
  color: var(--gold-light);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
}

.audit-evidence {
  margin-top: 28px;
}

.audit-evidence a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar-aware intermediate breakpoint: viewport <=1407 -> content well
   <=1120px on sidebar pages, where 4-col audit grids and the 5-col blueprint
   start cramming content. Drop to 3-col / collapse blueprint here. */
@media (max-width: 1407px) {
  .hero-systems,
  .audit-hero,
  .audit-checks,
  .audit-next-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .hero-systems,
  .microsoft-platform,
  .audit-hero,
  .audit-flow ol,
  .audit-checks,
  .audit-next-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-blueprint {
    grid-template-columns: 1fr;
  }

  .audit-blueprint__connector {
    transform: rotate(90deg);
  }

  .microsoft-platform__rail {
    display: none;
  }

  .audit-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .hero-systems,
  .microsoft-platform,
  .audit-hero,
  .audit-flow ol,
  .audit-checks,
  .audit-next-steps__grid {
    grid-template-columns: 1fr;
  }

  .audit-hero__card,
  .audit-panel,
  .audit-flow,
  .audit-blueprint__layer,
  .audit-next-steps {
    border-radius: 18px;
    padding: 20px;
  }

  .audit-owner-table,
  .audit-owner-table tbody,
  .audit-owner-table tr,
  .audit-owner-table th,
  .audit-owner-table td {
    display: block;
    width: 100%;
  }

  .audit-owner-table th {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .audit-owner-table td {
    padding-top: 0;
  }
}

