.site-nav a[aria-current="page"] {
  color: var(--white);
  position: relative;
}

/* Compact headline scale; preserve the existing layout and body typography. */
h1 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
}

.site-nav a:focus-visible {
  outline: 3px solid rgba(55, 208, 181, 0.7);
  outline-offset: 6px;
  border-radius: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #bbccd7;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.78;
  transform: rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-dropdown[open] summary::after {
  transform: rotate(225deg);
  opacity: 1;
}

.nav-dropdown summary:focus-visible {
  outline: 3px solid rgba(55, 208, 181, 0.7);
  outline-offset: 6px;
  border-radius: 4px;
}

.nav-dropdown__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: var(--navy-2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.nav-dropdown__menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.nav-dropdown__menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown--foundation .nav-dropdown__menu {
  right: auto;
  left: 0;
}

.subtabs {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subtabs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.subtab {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #bbccd7;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.subtab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.subtab:focus-visible {
  outline: 3px solid rgba(55, 208, 181, 0.7);
  outline-offset: 3px;
}

.subtab--active,
.subtab[aria-current="page"] {
  color: #05271f;
  border-color: transparent;
  background: linear-gradient(135deg, #62efd3, #a7f5e6);
  box-shadow: 0 10px 24px rgba(28, 210, 177, 0.22);
}

/* ---------- Diagram figure (used on Business Value, Architecture, Operating Principles) ---------- */
.diagram-figure {
  margin: 48px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f9fbfc;
  box-shadow: var(--shadow-soft);
}

.diagram-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #ffffff;
}

.diagram-figure figcaption {
  margin-top: 14px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.diagram-figure figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.diagram-figure figcaption .text-link {
  display: inline-block;
  margin-top: 8px;
  color: #08705f;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.diagram-figure figcaption .text-link:hover {
  text-decoration: underline;
}

.diagram-figure figcaption .text-link:focus-visible {
  outline: 3px solid rgba(55, 208, 181, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Embedded technical architecture: a visual part of the Foundation page, not a presentation slide. */
.workflow-section .diagram-figure--architecture {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(108, 226, 208, 0.26);
  background: #0b2032;
  box-shadow: none;
}


.workflow-section .diagram-figure--architecture img {
  border-radius: 0;
  background: transparent;
}


/* ---------- Header / nav overrides (do not modify styles.css) ---------- */
/* Restore real navigation below 1080px and keep the full brand visible at all widths. */

@media (max-width: 1080px) {
  .site-header {
    background: var(--navy);
  }

  .hero-layout {
    padding-top: 64px;
  }

  .nav-wrap {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 18px;
    padding-block: 14px;
  }

  .site-nav {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-left: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
  }

  .nav-dropdown summary {
    padding: 10px 4px;
  }

  .site-nav a[aria-current="page"]::after {
    bottom: 4px;
  }

  .nav-wrap > .button {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .site-nav a[aria-current="page"]::after {
    bottom: -6px;
  }

  .subtabs-wrap {
    padding: 10px 0;
    gap: 6px;
  }

  .subtab {
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  /* Keep the full brand visible; only tighten the brand text on small screens. */
  .brand span {
    font-size: 0.92rem;
  }

  .brand span::after {
    content: none;
  }

  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 8px;
  }

  .brand {
    min-width: 0;
    white-space: normal;
  }

  .brand img {
    flex-shrink: 0;
  }

  .brand strong {
    display: block;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 10px 18px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 2px;
  }

  .nav-dropdown summary {
    padding: 10px 2px;
  }

  .nav-dropdown__menu {
    right: auto;
    left: 0;
  }
}

/* Compact headline scale; preserve the existing layout and body typography. */
h1 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.orchestration-card--nav h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .hero--home,
  .hero--home .hero-layout {
    min-height: auto;
  }

  .orchestration-card--nav {
    width: 100%;
    max-width: none;
    padding: 22px 20px;
  }

  .orchestration-card--nav .mini-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .orchestration-card--nav .mini-flow li {
    margin: 0;
    min-height: auto;
  }

  .orchestration-card--nav .mini-flow li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .orchestration-card--nav .mini-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 0.86rem;
    letter-spacing: -0.02em;
  }

  .nav-wrap > .button {
    padding-inline: 12px;
    font-size: 0.78rem;
  }
}
