/* ==========================================================================
   Opaque — site design system
   Archivo (300/400/700) + IBM Plex Mono, one amber "seal" accent,
   graphite dark scheme / warm-neutral paper light scheme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

/* Shared tokens and local fonts load first from brand/opaque.css. */

/* --------------------------------------------------------------------------
   2. Chrome: header, tabs, footer
   -------------------------------------------------------------------------- */

.md-header {
  box-shadow: none;
  border-bottom: 1px solid var(--op-line);
}

.md-header--shadow {
  box-shadow: none;
}

/* Shared Opaque redaction glyph, including the navigation drawer on mobile. */
.md-header__button.md-logo svg,
.md-nav--primary .md-nav__title .md-nav__button.md-logo svg {
  display: none;
}

.md-header__button.md-logo::after,
.md-nav__button.md-logo::after {
  content: "";
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--op-accent);
  -webkit-mask: url("../brand/opaque-mark.svg") center / contain no-repeat;
  mask: url("../brand/opaque-mark.svg") center / contain no-repeat;
}

.md-header__topic .md-ellipsis {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-tabs {
  border-bottom: 1px solid var(--op-line);
}

.md-tabs__link {
  font-size: 0.72rem;
  margin-top: 0.63rem;
}

.md-tabs__link--active {
  font-weight: 700;
}

[data-md-color-scheme="default"] .md-search__form {
  background-color: rgba(20, 24, 29, 0.05);
}

[data-md-color-scheme="default"] .md-search__form:hover {
  background-color: rgba(20, 24, 29, 0.09);
}

[data-md-color-scheme="default"] .md-search__input::placeholder {
  color: rgba(20, 24, 29, 0.45);
}

/* --------------------------------------------------------------------------
   3. Docs typography + content polish
   -------------------------------------------------------------------------- */

.md-typeset h1,
.md-typeset h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--op-text);
}

.md-typeset h3,
.md-typeset h4 {
  font-weight: 700;
  letter-spacing: -0.005em;
}

.md-typeset code {
  border-radius: 3px;
  font-size: 0.82em;
}

.md-typeset pre > code {
  border-radius: var(--op-radius);
}

.md-typeset .highlight > pre > code,
.md-typeset > pre > code {
  border: 1px solid var(--op-line);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius-sm);
  font-size: 0.72rem;
}

.md-typeset table:not([class]) th {
  font-weight: 700;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--op-radius-sm);
  font-size: 0.72rem;
}

/* docs "grid cards": quiet hairlines, no shadow theatre */
.md-typeset .grid.cards > ol > li,
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  box-shadow: none;
  transition: border-color 125ms ease;
}

.md-typeset .grid.cards > ol > li:hover,
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--op-line-strong);
  box-shadow: none;
}

/* ==========================================================================
   4. Landing page (docs/overrides/home.html) — all classes prefixed .op-
   ========================================================================== */

.op-home {
  background: var(--op-bg);
  color: var(--op-text);
  font-size: 16px;
  line-height: 1.6;
}

.op-home section {
  border-top: 1px solid var(--op-line);
  padding: clamp(2.5rem, 4.5vw, 4rem) 0;
}

.op-home section:first-child {
  border-top: none;
}

.op-wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Element resets, wrapped in :where() so they carry zero specificity and every
   component class below beats them. Written as plain `.op-home p`, this reset
   silently ate the margin-top of every single-class paragraph rule on the
   page — the hero lede among them. */
:where(.op-home) h1,
:where(.op-home) h2,
:where(.op-home) h3 {
  margin: 0;
  color: var(--op-text);
}

:where(.op-home) p {
  margin: 0;
}

.op-home a {
  color: inherit;
}

.op-kicker {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.op-kicker h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.op-kicker p {
  margin-top: 0.8rem;
  color: var(--op-text-dim);
  font-size: 0.99rem;
}

.op-kicker code,
.op-home p code {
  font-family: var(--md-code-font-family);
  font-size: 0.85em;
  background: var(--op-bg-soft);
  border: 1px solid var(--op-line);
  border-radius: 3px;
  padding: 0.08em 0.32em;
}

/* ---- Hero ---------------------------------------------------------------- */

.op-home .op-hero {
  padding: clamp(1.25rem, 3vh, 3rem) 0 clamp(1.75rem, 5vh, 3.5rem);
}

.op-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.op-hero__copy {
  container-type: inline-size;
}

.op-hero h1 {
  /* Viewport-sized fallback first; the headline is two deliberate lines, so
     where container queries exist the type follows its own column and the
     break never lands mid-sentence. */
  font-size: clamp(1.9rem, 5.2vw + 1rem, 3.05rem);
  font-size: clamp(1.45rem, 9.05cqi, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

/* Highlight treatment: the word stays readable, on a redaction ground. */
.op-redact {
  padding: 0.02em 0.16em;
  margin-left: -0.16em;
  background: var(--op-redact-bg);
  color: var(--op-redact-fg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: op-sweep 0.65s cubic-bezier(0.77, 0, 0.18, 1) 0.3s both;
}

/* True redaction: the word is in the document — screen readers and search
   engines read "Secrets stay secret" — and a bar wipes across and covers it,
   which is the product's own promise performed in one gesture. Without motion
   the bar is simply there from the start. */
.op-redacted {
  position: relative;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

.op-redacted::after {
  content: "";
  position: absolute;
  /* Hug the word: a bar the height of the line box reads as missing content,
     one that hugs cap height reads as struck through by a censor. */
  inset: 0.1em -0.12em 0.14em -0.12em;
  border-radius: 2px;
  background: var(--op-redact-bg);
  animation: op-sweep 0.55s cubic-bezier(0.77, 0, 0.18, 1) 0.5s both;
}

@keyframes op-sweep {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-redact,
  .op-redacted::after {
    animation: none;
  }
}

.op-hero__lede {
  margin-top: 1.2rem;
  max-width: 34rem;
  font-size: 1.04rem;
  color: var(--op-text-dim);
}

.op-hero__explanation {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--op-text-dim);
  font-size: 0.86rem;
  line-height: 1.65;
}

.op-hero__lede strong {
  color: var(--op-text);
  font-weight: 700;
}

.op-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.op-home .op-btn {
  display: inline-block;
  padding: 0.56rem 1.1rem;
  border: 1px solid var(--op-line-strong);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--op-text);
  text-decoration: none;
  transition: border-color 125ms ease, background-color 125ms ease;
}

.op-home .op-btn:hover {
  border-color: var(--op-accent);
  color: var(--op-text);
}

.op-home .op-btn--solid {
  background: var(--op-btn-bg);
  border-color: var(--op-btn-bg);
  color: var(--op-btn-fg);
}

.op-home .op-btn--solid:hover {
  border-color: var(--op-btn-bg);
  color: var(--op-btn-fg);
  opacity: 0.88;
}

.op-btn:focus-visible,
.op-copy:focus-visible,
.op-home a:focus-visible {
  outline: 2px solid var(--op-accent);
  outline-offset: 2px;
}

.op-meta {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  color: var(--op-text-dim);
}

.op-install-line {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin-top: 1.9rem;
  border: 1px solid var(--op-line);
  border-radius: 6px;
  background: var(--op-bg-soft);
  overflow: hidden;
}

.op-install-line > code {
  padding: 0.6rem 0.9rem;
  font-family: var(--md-code-font-family);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow-x: auto;
  color: var(--op-text);
}

.op-copy {
  flex: none;
  padding: 0 0.85rem;
  border: none;
  border-left: 1px solid var(--op-line);
  background: transparent;
  color: var(--op-text-dim);
  font-family: var(--md-text-font-family);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 125ms ease;
}

.op-copy:hover {
  color: var(--op-accent);
}

.op-copy[data-copied] {
  color: var(--op-accent);
}

/* ---- Pipeline rail ------------------------------------------------------- */

.op-rail {
  list-style: none;
  counter-reset: gate;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.6rem;
  position: relative;
  margin: 0;
  padding: 0;
}

.op-rail::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 0.3rem;
  right: 18%;
  height: 1px;
  background: var(--op-line-strong);
}

.op-rail li {
  counter-increment: gate;
  margin: 0;
  padding: 0;
  position: relative;
}

.op-rail li::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--op-accent);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--op-bg);
}

.op-rail h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.op-rail h3::before {
  content: counter(gate);
  font-family: var(--md-code-font-family);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--op-text-dim);
  margin-right: 0.5rem;
}

.op-rail p {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--op-text-dim);
}

/* ---- Feature grid -------------------------------------------------------- */

.op-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--op-line);
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  overflow: hidden;
}

.op-cell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--op-bg);
  transition: background-color 125ms ease;
}

.op-cell:hover {
  background: var(--op-bg-soft);
}

.op-cell h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.op-cell p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--op-text-dim);
}

.op-cell samp {
  display: block;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--op-line);
  font-family: var(--md-code-font-family);
  font-size: 0.69rem;
  line-height: 1.5;
  color: var(--op-accent);
  overflow-wrap: break-word;
}

/* ---- Two trust configurations -------------------------------------------- */

.op-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--op-line);
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius);
  overflow: hidden;
}

.op-mode {
  padding: 1.6rem 1.7rem 1.4rem;
  background: var(--op-bg);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.op-mode--split {
  background: var(--op-bg-soft);
}

.op-mode h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.op-mode h3 small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--op-accent);
}

.op-mode p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--op-text-dim);
}

.op-mode samp {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--md-code-font-family);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--op-text-dim);
  overflow-wrap: break-word;
}

.op-modes-note {
  margin-top: 1.1rem;
  max-width: 46rem;
  font-size: 0.82rem;
  color: var(--op-text-dim);
}

/* ---- Providers ----------------------------------------------------------- */

.op-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.op-chips li {
  margin: 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--op-line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--op-text);
}

.op-clients {
  margin-top: 1.6rem;
  max-width: 46rem;
  font-size: 0.92rem;
  color: var(--op-text-dim);
}

/* ---- Install ------------------------------------------------------------- */

.op-install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.op-install__item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.op-install__code {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--op-line);
  border-radius: 6px;
  background: var(--op-bg-soft);
  overflow: hidden;
}

.op-install__code > code {
  flex: 1;
  padding: 0.7rem 0.85rem;
  font-family: var(--md-code-font-family);
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  color: var(--op-text);
}

.op-install-notes {
  margin-top: 2rem;
  max-width: 50rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--op-text-dim);
}

.op-install-notes + .op-install-notes {
  margin-top: 0.6rem;
}

/* ---- Docs index ---------------------------------------------------------- */

.op-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.op-docs a {
  display: block;
  padding: 1.05rem 0.15rem;
  border-top: 1px solid var(--op-line);
  text-decoration: none;
  transition: border-color 125ms ease;
}

.op-docs a:hover {
  border-top-color: var(--op-accent);
}

.op-docs a:hover h3 {
  color: var(--op-accent);
}

.op-docs h3 {
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 125ms ease;
}

.op-docs p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--op-text-dim);
}

/* ---- Responsive ---------------------------------------------------------- */

@media screen and (max-width: 76.1875em) {
  .op-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .op-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }

  .op-rail::before {
    display: none;
  }

  .op-rail li::before {
    box-shadow: none;
  }

  .op-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 44.9375em) {
  .op-rail,
  .op-grid,
  .op-modes,
  .op-install,
  .op-docs {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-install-line {
    display: flex;
  }

  .op-home section {
    padding: 2.75rem 0;
  }
}

/* ---- Architecture as a brand asset --------------------------------------- */

.op-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--op-accent);
  font-family: var(--md-code-font-family);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.op-brand-glyph {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: url("../brand/opaque-mark.svg") center / contain no-repeat;
  mask: url("../brand/opaque-mark.svg") center / contain no-repeat;
}

.op-architecture {
  --op-scene-duration: 12s;
  margin: 0;
  min-width: 0;
  align-self: center;
  border: 1px solid var(--op-line-strong);
  border-radius: 12px;
  background: var(--op-bg-soft);
  overflow: hidden;
}

.op-architecture__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--op-line);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.op-architecture__example {
  font-family: var(--md-code-font-family);
  font-size: 0.49rem;
  font-weight: 400;
  color: var(--op-text-dim);
  letter-spacing: 0;
}

.op-architecture__stage { position: relative; }
.op-architecture__drawing { display: block; width: 100%; height: auto; overflow: visible; }
.op-art-grid { color: var(--op-line-strong); opacity: 0.43; }
.op-art-ground { fill: none; stroke: var(--op-line); stroke-width: 0.7; }
.op-art-plane { fill: url(#op-face); stroke: var(--op-accent); stroke-width: 0.8; stroke-opacity: 0.65; }
.op-art-plane--back { fill: var(--op-accent-soft); stroke-opacity: 0.25; }
.op-art-plane-edge { fill: none; stroke: var(--op-accent); stroke-width: 0.65; stroke-opacity: 0.3; }
.op-art-fins { fill: url(#op-fin); }
.op-art-fins path { filter: drop-shadow(7px 9px 0 rgba(9, 12, 7, 0.19)); }
.op-art-line, .op-art-return, .op-art-approval-line { fill: none; stroke: var(--op-text-dim); stroke-width: 1; stroke-opacity: 0.5; }
.op-art-return { stroke-dasharray: 3 5; stroke-opacity: 0.38; }
.op-art-approval-line { stroke-dasharray: 3 5; stroke: var(--op-accent); }
.op-art-lane { fill: none; stroke: var(--op-bg); stroke-width: 12; }
.op-art-lane-edges { fill: none; stroke: var(--op-accent); stroke-width: 0.7; stroke-opacity: 0.75; }
.op-art-corner { fill: none; stroke: var(--op-accent); stroke-width: 1.5; }
.op-art-node { fill: var(--op-panel); stroke: var(--op-line-strong); stroke-width: 1; }
.op-art-icon { fill: none; stroke: var(--op-text); stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.5; }
.op-art-source-mask { stroke: var(--op-accent); stroke-width: 5; }
.op-art-label { fill: var(--op-text); font-size: 14px; font-weight: 700; }
.op-art-micro, .op-art-overline, .op-art-boundary-label { fill: var(--op-text-dim); font-family: var(--md-code-font-family); font-size: 10px; }
.op-art-micro--dim { opacity: 0.8; font-size: 9px; }
.op-art-overline { font-size: 9px; letter-spacing: 1px; }
.op-art-boundary-label { fill: var(--op-accent); font-size: 9px; letter-spacing: 1.4px; }
.op-art-packet { opacity: 0; fill: var(--op-accent); }
.op-art-packet path { fill: none; stroke: var(--op-bg); stroke-width: 1.4; }
.op-art-packet--evidence { fill: #c5d7b2; }
.op-art-result rect { fill: var(--op-bg-soft); stroke: var(--op-line-strong); }
.op-art-result text { fill: var(--op-text-dim); font: 9px var(--md-code-font-family); }
.op-art-stop, .op-art-interrupted { opacity: 0; }
.op-art-stop circle, .op-art-interrupted circle { fill: var(--op-bg); stroke: #da9881; stroke-width: 1.5; }
.op-art-stop path, .op-art-interrupted path { fill: none; stroke: #da9881; stroke-width: 1.5; }
.op-art-interrupted circle, .op-art-interrupted path { stroke: var(--op-accent); }

.op-architecture__switcher {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem 0.8rem 0.9rem;
}

.op-architecture__switcher button {
  min-height: 2.2rem;
  padding: 0.36rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--op-text-dim);
  font-family: var(--md-code-font-family);
  font-size: 0.59rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.op-architecture__switcher button:hover { color: var(--op-text); background: var(--op-line); }
.op-architecture__switcher button[aria-pressed="true"] { color: var(--op-accent); border-color: var(--op-line-strong); background: var(--op-accent-soft); }
.op-architecture__trace { padding: 1rem 1.1rem 0.75rem; border-top: 1px solid var(--op-line); background: var(--op-bg); }
.op-architecture__trace-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.op-architecture__step { color: var(--op-accent); font-family: var(--md-code-font-family); font-size: 0.5rem; letter-spacing: 0.06em; white-space: nowrap; }
.op-architecture__state { color: var(--op-text); font-size: 0.67rem; font-weight: 700; text-align: right; }
.op-architecture__description { min-height: 3.2em; margin-top: 0.65rem; color: var(--op-text-dim); font-size: 0.61rem; line-height: 1.6; }
.op-architecture__progress { display: flex; gap: 4px; margin: 0.85rem 0; }
.op-architecture__progress i { flex: 1; height: 2px; background: var(--op-line); transition: background-color 350ms ease; }
.op-architecture[data-step="0"] .op-architecture__progress i:first-child,
.op-architecture[data-step="1"] .op-architecture__progress i:nth-child(-n+2),
.op-architecture[data-step="2"] .op-architecture__progress i:nth-child(-n+3),
.op-architecture[data-step="3"] .op-architecture__progress i:nth-child(-n+4),
.op-architecture[data-step="4"] .op-architecture__progress i { background: var(--op-accent); }
.op-architecture[data-scenario="denied"] .op-architecture__progress i:not(:first-child) { background: var(--op-line); }
.op-architecture[data-scenario="denied"] .op-architecture__progress i:first-child { background: #da9881; }
.op-architecture[data-scenario="interrupted"] .op-architecture__progress i:nth-child(n+4) { background: var(--op-line); }
.op-architecture__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.65rem; }
.op-architecture__footer code { color: var(--op-text-dim); font: 0.47rem var(--md-code-font-family); overflow-wrap: anywhere; }
.op-architecture__footer code span { color: var(--op-text); }
.op-architecture__playback { display: flex; gap: 0.65rem; }
.op-architecture__playback button { min-height: 2.2rem; padding: 0.35rem 0; color: var(--op-text-dim); font-family: var(--md-code-font-family); font-size: 0.55rem; cursor: pointer; }
.op-architecture__playback button:hover { color: var(--op-accent); }
.op-architecture__playback button:disabled { opacity: 0.45; cursor: default; }
.op-architecture__code { border-top: 1px solid var(--op-line); background: var(--op-bg); }
.op-architecture__code summary { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.1rem; cursor: pointer; color: var(--op-text-dim); font-family: var(--md-code-font-family); font-size: 0.53rem; list-style: none; }
.op-architecture__code summary::-webkit-details-marker { display: none; }
.op-architecture__code summary:hover { color: var(--op-accent); }
.op-architecture__code pre { margin: 0; padding: 0.25rem 1.1rem 0.65rem; overflow-x: auto; font: 0.58rem/1.8 var(--md-code-font-family); color: var(--op-text); }
.op-architecture__code p { padding: 0 1.1rem 1rem; color: var(--op-text-dim); font-size: 0.57rem; }
.op-architecture button:focus-visible, .op-architecture summary:focus-visible { outline: 2px solid var(--op-accent); outline-offset: -2px; }
.op-architecture [hidden] { display: none; }

/* A stopped timeline freezes both the sprite positions and the evidence text.
   The unenhanced diagram is a complete, static allowed example. */
.op-architecture.is-enhanced .op-art-packet--request { animation: op-request var(--op-scene-duration) cubic-bezier(.42, 0, .22, 1) infinite; }
.op-architecture.is-enhanced .op-art-packet--approval { animation: op-approval var(--op-scene-duration) linear infinite; }
.op-architecture.is-enhanced .op-art-packet--evidence { animation: op-evidence var(--op-scene-duration) linear infinite; }
.op-architecture.is-enhanced .op-art-result { animation: op-result var(--op-scene-duration) ease infinite; }
.op-architecture.is-enhanced .op-art-fins path { animation: op-fins var(--op-scene-duration) ease infinite; }
.op-architecture.is-enhanced[data-scenario="denied"] .op-art-packet--request { animation-name: op-denied; }
.op-architecture.is-enhanced[data-scenario="denied"] .op-art-stop { animation: op-stop var(--op-scene-duration) ease infinite; }
.op-architecture.is-enhanced[data-scenario="interrupted"] .op-art-packet--request { animation-name: op-interrupted; }
.op-architecture.is-enhanced[data-scenario="interrupted"] .op-art-interrupted { animation: op-unknown var(--op-scene-duration) ease infinite; }
.op-architecture.is-enhanced[data-scenario="denied"] .op-art-packet--approval,
.op-architecture.is-enhanced[data-scenario="denied"] .op-art-fins path,
.op-architecture.is-enhanced:not([data-scenario="allowed"]) .op-art-packet--evidence,
.op-architecture.is-enhanced:not([data-scenario="allowed"]) .op-art-result { animation: none; opacity: 0; }
.op-architecture.is-enhanced[data-scenario="denied"] .op-art-fins path { opacity: 1; }
.op-architecture.is-enhanced:not(.is-running) * { animation-play-state: paused; }
.op-architecture.is-static * { animation: none !important; }
.op-architecture.is-static .op-art-packet { opacity: 0; }
.op-architecture.is-static[data-scenario="allowed"] .op-art-result { opacity: 1; }
.op-architecture.is-static[data-scenario="denied"] .op-art-stop,
.op-architecture.is-static[data-scenario="interrupted"] .op-art-interrupted { opacity: 1; }

@keyframes op-request {
  0%, 2% { transform: translate(124px, 244px); opacity: 0; }
  4% { opacity: 1; }
  20%, 30% { transform: translate(256px, 244px); opacity: 1; }
  42% { transform: translate(434px, 244px); opacity: 1; }
  56% { transform: translate(544px, 244px); opacity: 1; }
  59%, 100% { transform: translate(559px, 244px); opacity: 0; }
}
@keyframes op-approval {
  0%, 20% { transform: translate(335px, 83px); opacity: 0; }
  22% { opacity: 1; }
  31% { transform: translate(335px, 190px); opacity: 1; }
  33%, 100% { transform: translate(335px, 204px); opacity: 0; }
}
@keyframes op-evidence {
  0%, 60% { transform: translate(576px, 278px); opacity: 0; }
  62% { transform: translate(576px, 286px); opacity: 1; }
  67% { transform: translate(576px, 382px); opacity: 1; }
  68% { transform: translate(561px, 397px); opacity: 1; }
  85% { transform: translate(106px, 397px); opacity: 1; }
  86% { transform: translate(91px, 382px); opacity: 1; }
  91% { transform: translate(91px, 285px); opacity: 1; }
  93%, 100% { transform: translate(91px, 274px); opacity: 0; }
}
@keyframes op-result { 0%, 70% { opacity: 0; } 79%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes op-fins { 0%, 24%, 53%, 100% { transform: translate(0, 0); } 32%, 44% { transform: translate(5px, -3px); } }
@keyframes op-denied {
  0%, 2% { transform: translate(124px, 244px); opacity: 0; }
  4% { opacity: 1; }
  20%, 25% { transform: translate(256px, 244px); opacity: 1; }
  31% { transform: translate(236px, 244px); opacity: 1; }
  37%, 100% { transform: translate(221px, 244px); opacity: 0; }
}
@keyframes op-stop { 0%, 22% { opacity: 0; } 26%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes op-interrupted {
  0%, 2% { transform: translate(124px, 244px); opacity: 0; }
  4% { opacity: 1; }
  20%, 30% { transform: translate(256px, 244px); opacity: 1; }
  42% { transform: translate(434px, 244px); opacity: 1; }
  47% { transform: translate(454px, 244px); opacity: 1; }
  50%, 100% { transform: translate(454px, 244px); opacity: 0; }
}
@keyframes op-unknown { 0%, 47% { opacity: 0; } 51%, 94% { opacity: 1; } 100% { opacity: 0; } }

@media screen and (min-width: 60em) and (max-width: 76.1875em) {
  .op-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 2rem; }
  .op-hero__lede { font-size: 0.91rem; }
}
@media screen and (max-width: 59.9375em) {
  .op-hero__copy { max-width: 37rem; }
  .op-architecture { width: 100%; max-width: 37rem; }
  .op-hero__grid { gap: 2.5rem; }
}
@media screen and (max-width: 44.9375em) {
  .op-eyebrow { margin-bottom: 1.3rem; }
  .op-architecture__header { padding: 0.8rem; }
  .op-architecture__trace { padding: 0.85rem 0.8rem 0.65rem; }
  .op-architecture__description { min-height: 4.8em; }
  .op-architecture__example { font-size: 0.46rem; }
  .op-architecture__footer { gap: 0.3rem; }
  .op-architecture__playback { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .op-architecture *, .op-architecture *::before, .op-architecture *::after { animation: none !important; transition: none !important; }
  .op-architecture .op-art-packet { opacity: 0; }
}

/* Homepage controls and one concrete workflow. */
.op-home .op-text-link {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--op-line-strong);
}
.op-home .op-text-link:hover { color: var(--op-accent); }
.op-release { min-width: 0; }
.op-release h2 {
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.op-release p {
  margin-top: 0.7rem;
  max-width: 58ch;
  color: var(--op-text-dim);
  font-size: 0.8rem;
  line-height: 1.65;
}
.op-release .op-example { margin-top: 1rem; }
.op-controls { margin: 0; }
.op-controls > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
}
.op-controls > div + div { border-top: 1px solid var(--op-line); }
.op-controls dt {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.op-controls dd {
  margin: 0;
  color: var(--op-text-dim);
  font-size: 0.84rem;
}
.op-controls dd:last-child { justify-self: end; }
.op-workflow { padding: 0; margin: 0; list-style: none; }
.op-workflow > li {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--op-line);
}
.op-step {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--op-accent);
  font: 0.72rem var(--md-code-font-family);
}
.op-workflow h3, .op-detail h2, .op-invitation h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.op-workflow p, .op-detail p, .op-invitation > div > p {
  max-width: 52ch;
  margin-top: 0.7rem;
  color: var(--op-text-dim);
  font-size: 0.84rem;
  line-height: 1.65;
}
.op-example {
  min-width: 0;
  border: 1px solid var(--op-line);
  background: var(--op-bg-soft);
}
.op-example__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.35rem;
  padding: 0.2rem 1rem;
  color: var(--op-text-dim);
  border-bottom: 1px solid var(--op-line);
  font: 0.62rem var(--md-code-font-family);
}
.op-example .op-copy { padding: 0.45rem; min-height: 2rem; }
.op-example pre {
  margin: 0;
  padding: 1.15rem;
  overflow-x: auto;
  font: 0.68rem/1.8 var(--md-code-font-family);
  color: var(--op-text);
}
.op-request { margin: 0; min-width: 0; }
.op-request > div {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--op-line);
  font-size: 0.78rem;
}
.op-request dt { color: var(--op-text-dim); }
.op-request dd {
  margin: 0;
  font-family: var(--md-code-font-family);
  overflow-wrap: anywhere;
}
.op-detail, .op-invitation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
}
.op-detail .op-text-link { margin-top: 0.8rem; }
.op-invitation .op-actions { margin-top: 0; }
@media screen and (max-width: 44.9375em) {
  .op-workflow > li, .op-detail, .op-invitation { grid-template-columns: minmax(0, 1fr); }
  .op-controls > div { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .op-controls dd:last-child { justify-self: start; }
  .op-workflow > li { gap: 1.3rem; }
  .op-example pre { padding: 0.8rem; font-size: 0.58rem; }
}

.op-home .op-scope-label { margin: 0 0 0.4rem; color: var(--op-text-dim); font: 0.62rem var(--md-code-font-family); }

.op-home h2[id], .op-controls dt[id], .op-home #publish-a-github-actions-secret { scroll-margin-top: 5rem; }
