/* Seal lifecycle education. Human action stays primary; protocol detail is disclosed on demand. */

.seal-lifecycle-context {
  width: 100%;
  margin: 12px 0 28px;
  overflow: hidden;
  border: 1px solid var(--campaign-line-dark);
  border-radius: 10px;
  color: var(--campaign-paper-soft);
  background: rgba(250, 248, 242, .025);
}

.seal-lifecycle-context > summary {
  min-height: 82px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.seal-lifecycle-context > summary::-webkit-details-marker {
  display: none;
}

.seal-lifecycle-context > summary:hover,
.seal-lifecycle-context > summary:focus-visible {
  background: rgba(82, 216, 223, .055);
  outline: none;
}

.seal-lifecycle-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 216, 223, .4);
  border-radius: 50%;
  color: var(--campaign-cyan);
  font: 720 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.seal-lifecycle-summary-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 16px;
}

.seal-lifecycle-summary-copy small,
.seal-lifecycle-detail header > span,
.seal-lifecycle-roles dt,
.seal-lifecycle-context footer b,
.technical-sealing-boundary b {
  color: var(--campaign-cyan);
  font: 720 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seal-lifecycle-summary-copy b {
  color: var(--campaign-paper-soft);
  font-size: 15px;
  font-weight: 620;
}

.seal-lifecycle-summary-copy em {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #91a09a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seal-lifecycle-summary-action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a9b5b0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seal-lifecycle-summary-action i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--campaign-ink);
  border-radius: 50%;
  background: var(--campaign-mint);
  font-size: 16px;
  font-style: normal;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.seal-lifecycle-context[open] .seal-lifecycle-summary-action i {
  transform: rotate(45deg);
  background: var(--campaign-orange);
}

.seal-lifecycle-detail {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr);
  border-top: 0;
}

.seal-lifecycle-detail > header {
  padding: 24px;
  border-right: 1px solid var(--campaign-line-dark);
}

.seal-lifecycle-detail h2 {
  max-width: 15ch;
  margin: 14px 0 12px;
  color: var(--campaign-paper-soft);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 560;
  line-height: .98;
  letter-spacing: -.045em;
}

.seal-lifecycle-detail header p {
  max-width: 36ch;
  margin: 0;
  color: #8e9d97;
  font-size: 11px;
  line-height: 1.55;
}

.seal-lifecycle-roles {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seal-lifecycle-roles > div {
  min-width: 0;
  padding: 24px;
}

.seal-lifecycle-roles > div + div {
  border-left: 1px solid var(--campaign-line-dark);
}

.seal-lifecycle-roles dd {
  margin: 12px 0 0;
  color: #c0c9c5;
  font-size: 11px;
  line-height: 1.55;
}

.seal-lifecycle-sequence {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 0;
  border-bottom: 0;
  list-style: none;
}

.seal-lifecycle-sequence li {
  min-width: 0;
  min-height: 68px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.seal-lifecycle-sequence li + li {
  border-left: 1px solid var(--campaign-line-dark);
}

.seal-lifecycle-sequence li.active {
  background: rgba(82, 216, 223, .07);
}

.seal-lifecycle-sequence li > span {
  color: var(--campaign-lime);
  font: 720 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.seal-lifecycle-sequence li div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.seal-lifecycle-sequence li b {
  font-size: 11px;
}

.seal-lifecycle-sequence li small {
  overflow: hidden;
  color: #71817b;
  font: 680 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seal-lifecycle-notes {
  grid-column: 1 / -1;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.seal-lifecycle-notes p {
  margin: 0;
  padding: 12px 0;
  color: #8f9d98;
  font-size: 10px;
  line-height: 1.5;
}

.seal-lifecycle-notes p b {
  color: var(--campaign-paper-soft);
}

.seal-lifecycle-context footer {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 0;
}

.seal-lifecycle-context footer span {
  color: #c0c9c5;
  font-size: 11px;
}

.technical-sealing-screen {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  padding-top: clamp(40px, 5vw, 68px) !important;
}

.technical-sealing-aperture {
  width: 144px;
  height: 144px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.technical-sealing-aperture > div {
  position: relative;
  width: 144px;
  height: 144px;
  padding: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--campaign-cyan) 0deg, rgba(250, 248, 242, .13) 0deg);
  box-shadow: none;
  animation: none;
}

.technical-sealing-aperture > div::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--campaign-green-deep);
}

.technical-sealing-aperture.progress-1 > div { background: conic-gradient(var(--campaign-cyan) 72deg, rgba(250, 248, 242, .13) 72deg); }
.technical-sealing-aperture.progress-2 > div { background: conic-gradient(var(--campaign-cyan) 144deg, rgba(250, 248, 242, .13) 144deg); }
.technical-sealing-aperture.progress-3 > div { background: conic-gradient(var(--campaign-cyan) 216deg, rgba(250, 248, 242, .13) 216deg); }
.technical-sealing-aperture.progress-4 > div { background: conic-gradient(var(--campaign-cyan) 288deg, rgba(250, 248, 242, .13) 288deg); }
.technical-sealing-aperture.progress-5 > div { background: conic-gradient(var(--campaign-lime) 360deg, rgba(250, 248, 242, .13) 360deg); }

.technical-sealing-aperture > div > * {
  position: relative;
  z-index: 1;
}

.technical-sealing-aperture strong {
  max-width: 92px;
  color: var(--campaign-paper-soft);
  font-size: 16px !important;
  line-height: 1.05;
}

.technical-sealing-aperture i {
  background: var(--campaign-lime);
  box-shadow: none;
}

.technical-sealing-ledger {
  width: 100%;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 0;
  border-bottom: 0;
  text-align: left;
}

.technical-sealing-ledger > div {
  min-width: 0;
  min-height: 132px;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  color: #71817b;
  background: transparent;
}

.technical-sealing-ledger > div + div {
  border-left: 1px solid var(--campaign-line-dark);
}

.technical-sealing-ledger > div > i {
  color: currentColor;
  font: 720 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}

.technical-sealing-ledger > div > span {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.technical-sealing-ledger b {
  color: currentColor;
  font-size: 13px;
}

.technical-sealing-ledger small {
  color: currentColor;
  font-size: 10px;
  line-height: 1.4;
}

.technical-sealing-ledger em {
  grid-column: 2;
  color: currentColor;
  font: 720 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.technical-sealing-ledger > div.active {
  color: var(--campaign-paper-soft);
  background: rgba(82, 216, 223, .08);
}

.technical-sealing-ledger > div.done {
  color: var(--campaign-mint);
}

.technical-sealing-boundary {
  width: 100%;
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #92a19b;
  border-bottom: 0;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .seal-lifecycle-detail {
    grid-template-columns: 1fr;
  }

  .seal-lifecycle-detail > header {
    border-right: 0;
    border-bottom: 0;
  }

  .technical-sealing-ledger {
    grid-template-columns: 1fr;
  }

  .technical-sealing-ledger > div {
    min-height: 72px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }

  .technical-sealing-ledger > div + div {
    border-top: 0;
    border-left: 0;
  }

  .technical-sealing-ledger em {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .seal-lifecycle-context {
    margin: 10px 0 22px;
  }

  .seal-lifecycle-context > summary {
    min-height: 72px;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 12px;
  }

  .seal-lifecycle-index {
    width: 36px;
    height: 36px;
  }

  .seal-lifecycle-summary-copy {
    display: grid;
    gap: 3px;
  }

  .seal-lifecycle-summary-copy small,
  .seal-lifecycle-summary-copy b,
  .seal-lifecycle-summary-copy em {
    grid-column: auto;
  }

  .seal-lifecycle-summary-copy em {
    display: none;
  }

  .seal-lifecycle-summary-action {
    font-size: 0;
  }

  .seal-lifecycle-summary-action i {
    width: 30px;
    height: 30px;
  }

  .seal-lifecycle-detail > header,
  .seal-lifecycle-roles > div,
  .seal-lifecycle-notes {
    padding: 18px;
  }

  .seal-lifecycle-roles {
    grid-template-columns: 1fr;
  }

  .seal-lifecycle-roles > div {
    padding-block: 16px;
  }

  .seal-lifecycle-roles > div + div {
    border-top: 0;
    border-left: 0;
  }

  .seal-lifecycle-sequence {
    grid-template-columns: 1fr;
  }

  .seal-lifecycle-sequence li {
    min-height: 58px;
    padding: 12px 18px;
  }

  .seal-lifecycle-sequence li + li {
    border-top: 0;
    border-left: 0;
  }

  .seal-lifecycle-notes {
    grid-template-columns: 1fr;
  }

  .seal-lifecycle-context footer,
  .technical-sealing-boundary {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .technical-sealing-screen {
    width: calc(100% - 24px) !important;
    padding-top: 30px !important;
  }

  .technical-sealing-ledger > div {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal-lifecycle-context > summary,
  .seal-lifecycle-summary-action i {
    transition: none;
  }
}
