:root {
  --ihl-ink: #0b0e12;
  --ihl-panel: #12171d;
  --ihl-panel-raised: #171d24;
  --ihl-line: rgba(148, 163, 184, 0.18);
  --ihl-orange: #ef7d32;
  --ihl-orange-bright: #ff9a52;
  --ihl-steel: #9aa8b7;
  --md-primary-fg-color: #11161c;
  --md-primary-fg-color--light: #1a222b;
  --md-primary-fg-color--dark: #090c10;
  --md-accent-fg-color: #d9651b;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--ihl-ink);
  --md-default-bg-color--light: #10151b;
  --md-default-fg-color: #dce3ea;
  --md-default-fg-color--light: #b7c0ca;
  --md-typeset-a-color: var(--ihl-orange-bright);
  --md-code-bg-color: #080b0f;
  --md-code-fg-color: #e5e9ee;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: #f6f4f1;
  --md-default-fg-color: #17202a;
  --md-typeset-a-color: #a9440b;
  --ihl-panel: #ffffff;
  --ihl-panel-raised: #faf8f5;
  --ihl-line: rgba(28, 36, 45, 0.15);
  --ihl-steel: #5c6875;
}

.md-header {
  border-bottom: 1px solid rgba(239, 125, 50, 0.3);
  box-shadow: none;
}

.md-header__title {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.md-tabs {
  background: #0e1318;
}

.md-main__inner {
  margin-top: 1.2rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  letter-spacing: -0.025em;
}

.md-typeset h1 {
  font-weight: 720;
}

.md-typeset h2 {
  margin-top: 2.1em;
  font-weight: 680;
}

.md-typeset h2::after {
  display: block;
  width: 2.6rem;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--ihl-orange);
  content: "";
}

.md-typeset code {
  border: 1px solid var(--ihl-line);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--ihl-line);
  border-radius: 0.35rem;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background: rgba(239, 125, 50, 0.09);
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 0 0 0 0.2rem;
  border-radius: 0.2rem;
  box-shadow: none;
}

.ihl-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.6rem;
  padding: clamp(2.2rem, 7vw, 5.4rem) clamp(1.4rem, 5vw, 4rem);
  border: 1px solid var(--ihl-line);
  border-radius: 0.4rem;
  background:
    linear-gradient(105deg, rgba(8, 11, 15, 0.98) 0%, rgba(14, 19, 25, 0.94) 65%, rgba(57, 33, 20, 0.92) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(255, 255, 255, 0.02) 39px, transparent 40px);
  color: #f1f4f7;
}

.ihl-hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 7rem;
  height: 3px;
  background: var(--ihl-orange);
  content: "";
}

.ihl-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(239, 125, 50, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(239, 125, 50, 0.03), 0 0 0 6rem rgba(239, 125, 50, 0.02);
  content: "";
  pointer-events: none;
}

.ihl-hero h1 {
  max-width: 13ch;
  margin: 0.35rem 0 0.5rem;
  color: #ffffff;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.ihl-hero > p {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  color: #b9c3cd;
  font-size: 0.95rem;
}

.ihl-hero .md-button {
  margin-top: 0.8rem;
  margin-right: 0.45rem;
  border-color: rgba(241, 244, 247, 0.34);
  border-radius: 0.15rem;
  color: #f1f4f7;
}

.ihl-hero .md-button--primary {
  border-color: var(--ihl-orange);
  background-color: var(--ihl-orange);
  color: #16100c;
}

.ihl-eyebrow {
  color: var(--ihl-orange-bright);
  font-family: var(--md-code-font-family);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ihl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.3rem 0 2.2rem;
}

.ihl-card {
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid var(--ihl-line);
  border-radius: 0.3rem;
  background: var(--ihl-panel);
}

.ihl-card:hover {
  border-color: rgba(239, 125, 50, 0.45);
  background: var(--ihl-panel-raised);
}

.ihl-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.ihl-card p {
  margin: 0.4rem 0;
  color: var(--ihl-steel);
  font-size: 0.73rem;
}

.ihl-card p:last-child {
  margin-top: 0.8rem;
}

.ihl-grid--compact .ihl-card {
  border-top: 2px solid var(--ihl-orange);
}

.ihl-status {
  margin: 1rem 0 1.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--ihl-line);
  border-left: 3px solid var(--ihl-orange);
  background: var(--ihl-panel);
  font-family: var(--md-code-font-family);
  font-size: 0.7rem;
}

.ihl-status p {
  margin: 0;
}

.ihl-hero--portfolio {
  background:
    linear-gradient(112deg, rgba(8, 11, 15, 0.99) 0%, rgba(15, 21, 28, 0.96) 58%, rgba(70, 37, 17, 0.92) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(255, 255, 255, 0.02) 39px, transparent 40px);
}

.ihl-hero--alfred {
  background: linear-gradient(110deg, #080c11 0%, #111b25 65%, #28303a 100%);
}

.ihl-hero--watchtower {
  background: linear-gradient(110deg, #070c0a 0%, #101c19 64%, #263a2f 100%);
}

.ihl-hero--containers {
  background: linear-gradient(110deg, #0b0b09 0%, #1c1711 64%, #57301a 100%);
}

.ihl-hero--foxsight {
  background: linear-gradient(110deg, #09090e 0%, #161624 64%, #2b2949 100%);
}

.ihl-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 2.6rem;
}

.ihl-product-card {
  --ihl-card-accent: var(--ihl-orange);
  position: relative;
  min-height: 14rem;
  padding: 1.4rem 1.45rem 1.2rem;
  overflow: hidden;
  border: 1px solid var(--ihl-line);
  border-top: 3px solid var(--ihl-card-accent);
  border-radius: 0.35rem;
  background: var(--ihl-panel);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.ihl-product-card::after {
  position: absolute;
  right: -2.6rem;
  bottom: -3rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid color-mix(in srgb, var(--ihl-card-accent) 24%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ihl-product-card:hover {
  border-color: color-mix(in srgb, var(--ihl-card-accent) 55%, transparent);
  background: var(--ihl-panel-raised);
  transform: translateY(-2px);
}

.ihl-product-card h3 {
  margin: 0.75rem 0 0.55rem;
  font-size: 1.15rem;
}

.ihl-product-card p {
  position: relative;
  z-index: 1;
  color: var(--ihl-steel);
  font-size: 0.76rem;
}

.ihl-product-card p strong {
  color: var(--md-default-fg-color);
  font-size: 0.8rem;
}

.ihl-product-label,
.ihl-level-number {
  color: var(--ihl-card-accent, var(--ihl-orange-bright));
  font-family: var(--md-code-font-family);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ihl-product-card--alfred {
  --ihl-card-accent: #89a8c7;
}

.ihl-product-card--watchtower {
  --ihl-card-accent: #75b798;
}

.ihl-product-card--containers {
  --ihl-card-accent: var(--ihl-orange);
}

.ihl-product-card--foxsight {
  --ihl-card-accent: #9a92d6;
}

.ihl-product-card--nygma {
  --ihl-card-accent: #d23636;
  grid-column: 1 / -1;
  min-height: 10rem;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, 0.99), rgba(24, 7, 7, 0.96)),
    repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255, 255, 255, 0.015) 5px);
  color: #ece7e2;
}

.ihl-product-card--nygma p,
.ihl-product-card--nygma p strong {
  color: #b9aeaa;
}

.ihl-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.ihl-level-card {
  --ihl-card-accent: var(--ihl-orange);
  padding: 1.2rem;
  border: 1px solid var(--ihl-line);
  border-top: 3px solid var(--ihl-card-accent);
  border-radius: 0.3rem;
  background: var(--ihl-panel);
}

.ihl-level-card h3 {
  margin: 0.65rem 0 0.55rem;
  font-size: 1.05rem;
}

.ihl-level-card p {
  color: var(--ihl-steel);
  font-size: 0.72rem;
}

.ihl-level-card p strong {
  color: var(--md-default-fg-color);
}

.ihl-level-card--secure {
  --ihl-card-accent: #7ca8c9;
}

.ihl-level-card--hardened {
  --ihl-card-accent: #db8a43;
}

.ihl-level-card--validated {
  --ihl-card-accent: #79b58c;
}

.ihl-qualification-note {
  margin-top: 2.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ihl-line);
  color: var(--ihl-steel);
  font-size: 0.62rem;
}

.ihl-classified {
  position: relative;
  min-height: 70vh;
  padding: clamp(1.4rem, 5vw, 3.6rem);
  overflow: hidden;
  border: 1px solid rgba(210, 54, 54, 0.52);
  background:
    radial-gradient(circle at 75% 20%, rgba(132, 15, 15, 0.2), transparent 25rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 5px),
    #070707;
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.82), 0 0 2rem rgba(120, 0, 0, 0.12);
  color: #d8d1cb;
}

.ihl-classified::before {
  position: absolute;
  right: -2rem;
  bottom: 5rem;
  color: rgba(210, 54, 54, 0.055);
  content: "RESTRICTED";
  font-family: var(--md-code-font-family);
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  transform: rotate(-12deg);
  pointer-events: none;
}

.ihl-classified h1 {
  position: relative;
  max-width: none;
  margin: 1.4rem 0 0.7rem;
  color: #f0e9e2;
  font-family: var(--md-code-font-family);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  letter-spacing: 0.08em;
}

.ihl-classified h2 {
  position: relative;
  margin-top: 2.3rem;
  color: #d23636;
  font-family: var(--md-code-font-family);
  letter-spacing: 0.1em;
}

.ihl-classified h2::after {
  background: #d23636;
}

.ihl-classified p {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  color: #aaa19a;
}

.ihl-clearance-band {
  margin: -0.4rem -4rem 2rem;
  padding: 0.45rem 4rem;
  background: #a51f1f;
  color: #fff;
  font-family: var(--md-code-font-family);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.ihl-classified-code {
  color: #817b76;
  font-family: var(--md-code-font-family);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.ihl-classified-stamp {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 3px solid #d23636;
  color: #d23636;
  font-family: var(--md-code-font-family);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  transform: rotate(-2deg);
}

.ihl-redaction {
  position: relative;
  z-index: 1;
  width: min(32rem, 86%);
  height: 0.72rem;
  margin: 1.8rem 0 0.6rem;
  background: #181818;
  box-shadow: 0 0 0 1px #030303;
}

.ihl-redaction--short {
  width: min(20rem, 62%);
  margin-top: 0;
}

.ihl-classified .md-button {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  border-color: #8b2929;
  color: #d8d1cb;
}

.ihl-classified-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(210, 54, 54, 0.35);
  font-family: var(--md-code-font-family);
  font-size: 0.52rem !important;
  letter-spacing: 0.08em;
}

@media screen and (max-width: 44.984375em) {
  .ihl-grid,
  .ihl-product-grid,
  .ihl-level-grid {
    grid-template-columns: 1fr;
  }

  .ihl-product-card--nygma {
    grid-column: auto;
  }

  .ihl-hero {
    margin-right: -0.4rem;
    margin-left: -0.4rem;
  }

  .ihl-clearance-band {
    margin-right: -2rem;
    margin-left: -2rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
