/* Only our own fragments receive editorial typography. Theme layout is retained. */
.ts-explained-label {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.6rem 0.9rem;
  background-color: #f5f6f6;
  color: var(--ts-explained-accent, #3E7C78);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.ts-explained-label::after {
  content: "";
  display: block;
  width: 2.75rem;
  max-width: 100%;
  height: 2px;
  margin-top: 0.4rem;
  background-color: currentColor;
}
.ts-explained-footer {
  box-sizing: border-box;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background-color: #f5f6f6;
  border: 1px solid #dde3e2;
  border-inline-start: 3px solid var(--ts-explained-accent, #3E7C78);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ts-explained-footer p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
/* Tint follows the configured accent where color-mix is supported.
   Older browsers retain the quiet neutral background declared above. */
@supports (background-color: color-mix(in srgb, black 8%, white)) {
  .ts-explained-label,
  .ts-explained-footer {
    background-color: color-mix(in srgb, var(--ts-explained-accent, #3E7C78) 8%, white);
  }
  .ts-explained-footer {
    border-color: color-mix(in srgb, var(--ts-explained-accent, #3E7C78) 25%, white);
    border-inline-start-color: var(--ts-explained-accent, #3E7C78);
  }
}
/* Conventional theme/archive-block selectors are enhancement only.
   A theme using other heading classes still gets the archive body class. */
.ts-explained-archive :where(.archive-title, .page-title, .wp-block-query-title) {
  border-inline-start: 2px solid var(--ts-explained-accent, #3E7C78);
  padding-inline-start: 0.65em;
}

/* Give the introduction and optional destination a clear reading order. */
.ts-explained-footer p.ts-explained-footer-title {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}
.ts-explained-footer p.ts-explained-footer-link { margin-top: 0.75rem; }
.ts-explained-footer-link a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.ts-explained-footer-link a:focus-visible {
  outline: 2px solid var(--ts-explained-accent, #3E7C78);
  outline-offset: 3px;
}
