[data-variant-enhancement="policy-detective"] {
  --variant-pd-rule: currentColor;
  --variant-pd-soft: color-mix(in srgb, currentColor 6%, transparent);
  margin-block: 2.5rem;
  padding-block: 1.25rem;
  border-block: 1px solid currentColor;
  color: inherit;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__kicker {
  margin: 0 0 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-variant-enhancement="policy-detective"] h3 {
  margin-block: 0 0.75rem;
  max-inline-size: 30ch;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__truth {
  padding: 0.75rem 1rem;
  border-inline-start: 0.25rem solid currentColor;
  background: var(--variant-pd-soft);
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__image {
  max-inline-size: 38rem;
  margin-inline: 0;
}

[data-variant-enhancement="policy-detective"].variant-policy-detective__image img,
[data-variant-enhancement="policy-detective"] .variant-policy-detective__image img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__image figcaption {
  margin-block-start: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.25rem;
  padding: 1rem;
  border: 1px solid currentColor;
  background: var(--variant-pd-soft);
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control > div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(10rem, 2fr) 4rem;
  gap: 0.75rem;
  align-items: center;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control label {
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control input {
  inline-size: 100%;
  accent-color: currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control output {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control button {
  justify-self: start;
  min-block-size: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__control button:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__init-note {
  font-size: 0.9rem;
  font-style: italic;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps li {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.35rem;
  min-inline-size: 0;
  padding: 0.75rem;
  border-inline-end: 1px solid currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps li:last-child {
  border-inline-end: 0;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps strong {
  font-size: 0.85rem;
  text-transform: uppercase;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps output {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__machine {
  margin-block: 1rem;
  border-block: 1px solid currentColor;
  padding-block: 0.75rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__machine summary {
  cursor: pointer;
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__machine pre {
  max-block-size: 24rem;
  margin-block-end: 0;
  padding: 0.75rem;
  overflow: auto;
  border: 1px solid currentColor;
  background: var(--variant-pd-soft);
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: pre;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__machine pre:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap {
  max-inline-size: 100%;
  overflow-x: auto;
  margin-block: 1rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap table {
  inline-size: 100%;
  min-inline-size: 46rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap caption {
  margin-block-end: 0.65rem;
  text-align: start;
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap th {
  padding: 0.55rem;
  border: 1px solid currentColor;
  text-align: start;
  vertical-align: top;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap td {
  padding: 0.55rem;
  border: 1px solid currentColor;
  text-align: start;
  vertical-align: top;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__boundary-note {
  font-size: 0.9rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__code-lines {
  margin-block: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 3.25rem;
  overflow-x: auto;
  border: 1px solid currentColor;
  background: var(--variant-pd-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__code-lines li {
  padding-inline-start: 0.5rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__code-lines code {
  white-space: pre;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__annotations {
  display: grid;
  gap: 0.75rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__annotations div {
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__annotations dt {
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__annotations dd {
  margin: 0.25rem 0 0;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-form fieldset {
  display: grid;
  gap: 0.65rem;
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-form legend {
  padding-inline: 0.4rem;
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-form label {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.6rem;
  align-items: start;
  padding-block: 0.25rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-form input {
  margin-block-start: 0.2rem;
  accent-color: currentColor;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-actions button {
  min-block-size: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

[data-variant-enhancement="policy-detective"] .variant-policy-detective__board-actions button:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

[data-variant-enhancement="policy-detective"] [data-opd-hd-board-feedback]:empty {
  display: none;
}

[data-variant-enhancement="policy-detective"].variant-policy-detective--ready[data-enhancement="transfer-board"] [data-opd-hd-answer-key]:not([data-revealed]) {
  display: none;
}

@media (max-width: 44rem) {
  [data-variant-enhancement="policy-detective"] .variant-policy-detective__control > div {
    grid-template-columns: 1fr;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__control output {
    text-align: start;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps {
    grid-template-columns: 1fr;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps li {
    grid-template-columns: 2rem 5rem 1fr;
    grid-template-rows: auto;
    align-items: baseline;
    border-inline-end: 0;
    border-block-end: 1px solid currentColor;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__stamps li:last-child {
    border-block-end: 0;
  }
}

@media print {
  [data-variant-enhancement="policy-detective"] {
    break-inside: avoid-page;
    background: transparent;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__control {
    display: none;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__board-form {
    display: none;
  }

  [data-variant-enhancement="policy-detective"] [data-opd-hd-answer-key] {
    display: block !important;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__machine {
    display: none;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap {
    overflow: visible;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__table-wrap table {
    min-inline-size: 0;
    font-size: 8pt;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__image {
    max-inline-size: 5.5in;
    break-inside: avoid;
  }

  [data-variant-enhancement="policy-detective"] .variant-policy-detective__image img {
    max-block-size: 3.25in;
    object-fit: contain;
  }
}
