.tk-dass21:is([data-self-check], [data-tk-dass21]) {
  --tk-ink: var(--wp--preset--color--ink, #163b38);
  --tk-green: var(--wp--preset--color--teal, #17665b);
  --tk-muted: var(--wp--preset--color--muted, #576963);
  --tk-page: var(--wp--preset--color--paper, #fafaf6);
  --tk-surface: var(--wp--preset--color--white, #fff);
  --tk-soft: var(--wp--preset--color--mint, #eaf2ed);
  --tk-line: var(--wp--preset--color--line, #dbe4dd);
  --tk-field-line: #84968e;
  --tk-button-text: #fff;
  --tk-padding: 24px;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto;
  color: var(--tk-ink);
  font: 400 1.125rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: start;
  overflow-wrap: anywhere;
}

.tk-dass21,
.tk-dass21 * {
  box-sizing: border-box;
}

.tk-dass21 [hidden] {
  display: none !important;
}

.tk-dass21 :is(h2, h3, h4) {
  margin: 0 0 8px;
  color: var(--tk-ink);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: normal;
}

.tk-dass21 h2 {
  font-size: 1.625rem;
  line-height: 1.25;
}

.tk-dass21 :is(h3, h4) {
  font-size: 1.125rem;
  line-height: 1.35;
}

.tk-dass21 p {
  margin: 0 0 8px;
}

.tk-dass21 .tk-dass21-kicker,
.tk-dass21 .tk-dass21-muted,
.tk-dass21 .tk-dass21-meta,
.tk-dass21 .tk-dass21-footnote,
.tk-dass21 .tk-dass21-live {
  color: var(--tk-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.tk-dass21 .tk-dass21-kicker {
  font-weight: 600;
}

.tk-dass21 .tk-dass21-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.tk-dass21 .tk-dass21-intro {
  margin-bottom: 16px;
}

.tk-dass21 :is(.tk-dass21-panel, .tk-dass21-form, .tk-choice-card) {
  min-width: 0;
  padding: var(--tk-padding);
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: var(--tk-surface);
}

.tk-dass21 :is(.tk-dass21-note, .tk-dass21-support) {
  margin: 24px 0 0;
  padding: var(--tk-padding);
  border: 1px solid var(--tk-line);
  border-radius: 12px;
  background: var(--tk-soft);
}

.tk-dass21 :is(.tk-dass21-note, .tk-dass21-support) > :last-child {
  margin-bottom: 0;
}

/* Keep content links legible when a theme applies a global link colour. */
.tk-dass21:is([data-self-check], [data-tk-dass21]) a:not(.tk-dass21-button) {
  color: var(--tk-link, var(--tk-green));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tk-dass21:is([data-self-check], [data-tk-dass21]) a:not(.tk-dass21-button):hover {
  color: var(--tk-link-hover, var(--tk-ink));
}

.tk-dass21 button,
.tk-dass21:is([data-self-check], [data-tk-dass21]) a.tk-dass21-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  background: var(--tk-green);
  border: 1px solid var(--tk-green);
  border-radius: 6px;
  color: var(--tk-button-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}

.tk-dass21 button:enabled:hover,
.tk-dass21:is([data-self-check], [data-tk-dass21]) a.tk-dass21-button:hover {
  color: var(--tk-button-text);
  background: var(--tk-ink);
  border-color: var(--tk-ink);
}

.tk-dass21 .tk-dass21-secondary,
.tk-dass21:is([data-self-check], [data-tk-dass21]) a.tk-dass21-button.tk-dass21-secondary {
  background: transparent;
  border-color: var(--tk-field-line);
  color: var(--tk-green);
}

.tk-dass21 button.tk-dass21-secondary:enabled:hover,
.tk-dass21:is([data-self-check], [data-tk-dass21]) a.tk-dass21-button.tk-dass21-secondary:hover {
  background: var(--tk-soft);
  border-color: var(--tk-ink);
  color: var(--tk-ink);
}

.tk-dass21 button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tk-dass21:is([data-self-check], [data-tk-dass21]) :is(a, button, input, summary):focus-visible,
.tk-dass21 [tabindex="-1"]:focus {
  outline: 3px solid var(--tk-green);
  outline-offset: 3px;
}

.tk-dass21 .tk-dass21-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tk-dass21 :is(input[type="checkbox"], input[type="radio"]) {
  appearance: auto;
  accent-color: var(--tk-green);
  width: 18px;
  height: 18px;
  flex: none;
  margin: 3px 0 0;
}

.tk-dass21 .tk-dass21-consent,
.tk-dass21 :is(.tk-check-options, .tk-dass21-options) label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--tk-field-line);
  border-radius: 6px;
  background: var(--tk-surface);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.tk-dass21 .tk-dass21-consent {
  margin: 16px 0 8px;
}

.tk-dass21 :is(.tk-dass21-consent, .tk-check-options label, .tk-dass21-options label):has(input:checked) {
  border-color: var(--tk-green);
  background: var(--tk-soft);
}

.tk-dass21 .tk-dass21-question {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--tk-line);
  margin: 16px 0 0;
  padding: 16px 0 0;
}

.tk-dass21 .tk-dass21-question legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.tk-dass21 :is(.tk-check-options, .tk-dass21-options, .tk-check-choices, .tk-dass21-topics) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  clear: both;
}

.tk-dass21 .tk-dass21-option-number,
.tk-dass21 .tk-dass21-item-no {
  color: var(--tk-green);
  font-weight: 600;
}

.tk-dass21 .tk-dass21-item-no {
  margin-inline-end: 8px;
}

.tk-dass21 .tk-dass21-topics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.tk-dass21 .tk-dass21-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tk-dass21 progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 8px 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  accent-color: var(--tk-green);
  background: var(--tk-soft);
}

.tk-dass21 progress::-webkit-progress-bar {
  background: var(--tk-soft);
}

.tk-dass21 progress::-webkit-progress-value {
  background: var(--tk-green);
}

.tk-dass21 progress::-moz-progress-bar {
  background: var(--tk-green);
}

.tk-dass21 .tk-dass21-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #fff1ec;
  border-inline-start: 3px solid #a43723;
  color: #842c1d;
}

.tk-dass21 .tk-dass21-field-error {
  color: #842c1d;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 8px;
}

.tk-dass21 .tk-dass21-reference {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tk-dass21 [data-review-list] p {
  padding: 8px 0;
  border-bottom: 1px solid var(--tk-line);
  font-size: 1rem;
}

.tk-dass21 .tk-dass21-footnote {
  margin-top: 16px;
}

.tk-dass21 .tk-dass21-enhanced {
  display: none;
}

.tk-dass21.is-enhanced .tk-dass21-enhanced {
  display: block;
}

.tk-dass21.is-enhanced button.tk-dass21-enhanced {
  display: inline-flex;
}

.tk-dass21.tk-self-check {
  --tk-check-sticky-offset: 12px;
}

.tk-self-check .tk-check-choices {
  gap: 16px;
}

.tk-self-check .tk-choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tk-self-check .tk-choice-card button {
  margin-top: auto;
  width: 100%;
}

.tk-self-check .tk-choice-card > p:last-of-type {
  margin-bottom: 16px;
}

.tk-self-check .tk-choice-external {
  grid-column: 1 / -1;
  background: var(--tk-soft);
}

.tk-self-check .tk-check-support ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tk-self-check .tk-check-support li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--tk-line);
  color: var(--tk-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.tk-self-check .tk-check-support li a {
  justify-self: start;
  font-weight: 600;
}

.tk-self-check .tk-check-sources {
  margin: 16px 0 0;
  color: var(--tk-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.tk-self-check .tk-check-sources + .tk-check-sources {
  margin-top: 0;
}

.tk-self-check .tk-check-sources summary {
  min-height: 44px;
  padding-block: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tk-self-check .tk-dass21-panel {
  scroll-margin-top: 24px;
}

.tk-self-check .tk-dass21-question,
.tk-self-check .tk-dass21-question input {
  scroll-margin-top: calc(var(--tk-check-sticky-offset) + 76px);
}

.tk-self-check .tk-check-progress {
  position: sticky;
  top: var(--tk-check-sticky-offset);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  color: var(--tk-muted);
  background: var(--tk-surface);
  border: 1px solid var(--tk-line);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tk-self-check .tk-check-progress-name {
  font-weight: 600;
  color: var(--tk-green);
}

.tk-self-check .tk-check-progress progress {
  grid-column: 1 / -1;
  margin: 0;
  height: 4px;
}

.tk-self-check .tk-check-score {
  color: var(--tk-green);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.tk-self-check .tk-check-urgent {
  --tk-link: #17665b;
  --tk-link-hover: #163b38;
  margin: 24px 0;
  padding: 16px;
  background: #fff3ee;
  border-inline-start: 4px solid #a6422e;
  color: #842c1d;
}

body.admin-bar .tk-dass21.tk-self-check {
  --tk-check-sticky-offset: 44px;
}

@supports (color: light-dark(white, black)) {
  .tk-dass21:is([data-self-check], [data-tk-dass21]) {
    --tk-field-line: light-dark(#84968e, var(--tk-muted));
    --tk-button-text: light-dark(#fff, var(--tk-page));
  }

  .tk-dass21 .tk-dass21-error {
    background: light-dark(#fff1ec, #422520);
    color: light-dark(#842c1d, #ffd9cc);
  }

  .tk-dass21 .tk-dass21-field-error {
    color: light-dark(#842c1d, #ffd9cc);
  }

  .tk-self-check .tk-check-urgent {
    --tk-link: light-dark(#17665b, var(--tk-green));
    --tk-link-hover: light-dark(#163b38, var(--tk-ink));
    background: light-dark(#fff3ee, #422520);
    color: light-dark(#842c1d, #ffd9cc);
  }
}

@media (max-width: 782px) {
  body.admin-bar .tk-dass21.tk-self-check {
    --tk-check-sticky-offset: 58px;
  }
}

@media (max-width: 781px) {
  .tk-dass21:is([data-self-check], [data-tk-dass21]) {
    --tk-padding: 16px;
    font-size: 1rem;
  }

  .tk-dass21 h2 {
    font-size: 1.5rem;
  }

  .tk-dass21 :is(.tk-check-options, .tk-dass21-options, .tk-check-choices, .tk-dass21-topics) {
    grid-template-columns: 1fr;
  }

  .tk-dass21 .tk-dass21-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-dass21 .tk-dass21-actions button,
  .tk-self-check .tk-choice-external .tk-dass21-button {
    width: 100%;
  }

  .tk-self-check .tk-check-support li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .tk-dass21.tk-self-check {
    --tk-check-sticky-offset: 12px;
  }
}

@media print {
  .tk-dass21 :is(.tk-dass21-intro, .tk-dass21-form, .tk-dass21-actions, .tk-dass21-live, .tk-check-progress, .tk-check-support, .tk-check-sources) {
    display: none;
  }

  .tk-dass21 .tk-dass21-panel {
    border: 0;
  }
}
