/* Content is readable before JavaScript runs. Reviews keep their four-line cards. */
.wb3-readable-copy,
.wb3-content-preview {
  color: #5e5e63;
  font: 400 var(--wb-reading-size, 1.0625rem)/var(--wb-reading-line, 1.68) var(--wb-reading-font, Inter, ui-sans-serif, system-ui, sans-serif);
  overflow-wrap: break-word;
}
.wb3-readable-copy > :first-child { margin-top: 0; }
.wb3-readable-copy > :last-child { margin-bottom: 0; }
.wb3-readable-copy p { margin: 0 0 1em; }
.wb3-readable-copy :is(h2, h3, h4) { margin: 1.5em 0 .6em; }
.wb3-readable-copy :is(img, video, iframe) { max-width: 100%; }
.wb3-readable-copy :is(img, video) { height: auto; }
.wb3-readable-copy :is(ul, ol) { padding-left: 1.5em; }
.wb3-readable-copy a { color: var(--wb3-accent); }
.wb3-project-summary { margin: 0 0 28px; }
.wb3-progressive-preview { overflow-anchor: none; }
.wb3-content-preview { margin: 0; }

/* Scoped overrides retire the former inline token without changing review buttons. */
@layer wb-public-type {
  [data-progressive-preview] > [data-progressive-open] {
    display: inline-flex !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    align-items: center !important;
    gap: .55em !important;
    min-height: 44px !important;
    margin: 4px 0 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--wb3-accent) !important;
    font: 600 .9375rem/1.3 var(--wb-reading-font, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    touch-action: manipulation;
  }
  [data-progressive-preview] > [data-progressive-open]:is(:hover, :focus-visible) {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }
  [data-progressive-preview] > [data-progressive-open]:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px !important;
  }
  [data-progressive-preview] > [data-progressive-open][hidden],
  .wb3-readable-copy[hidden],
  .wb3-content-preview[hidden] { display: none !important; }
  /* A failed or disabled script leaves complete reviews and no inactive controls. */
  [data-review-preview]:not([data-wb3-review-ready]) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  [data-review-clamp]:not(.wb3-read-more-source-hidden) {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
  }
  [data-review-preview]:not([data-wb3-review-ready]) [data-review-expand] { display: none !important; }
}
.wb3-disclosure-chevron {
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-top: -.25em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
[data-progressive-open][aria-expanded="true"] .wb3-disclosure-chevron {
  margin-top: .25em;
  transform: rotate(225deg);
}
@media print {
  @layer wb-public-type {
    [data-progressive-preview] > [data-progressive-copy],
    [data-progressive-preview] > [data-progressive-copy][hidden] { display: block !important; }
    [data-progressive-preview] > [data-content-preview],
    [data-progressive-preview] > [data-progressive-open] { display: none !important; }
  }
}

.wb3-project-services { margin: 0 0 28px; line-height: 1.7; }
.wb3-project-services a { color: var(--wb3-accent); text-underline-offset: 3px; }
.wb3-project-services a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wb3-page-project-gallery .wb3-legal-full-copy { color: #5e5e63; line-height: var(--wb-reading-line, 1.68); }
/* Old cached markup must also be readable when JavaScript cannot initialize. */
[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; max-height: none !important; overflow: visible !important; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) > :is(p,h2,h3,h4,h5,h6,ul,ol,figure,section,article,blockquote,div) { display: block !important; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) > p { margin: 0 0 1em !important; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) > :is(ul,ol) { margin: 1em 0 !important; padding-left: 1.5em !important; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) :is(img,picture,figure,video,iframe,form,table,br) { display: revert !important; max-width: 100%; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) > :is(h2,h3,h4,h5,h6) { margin: 1.5em 0 .6em !important; font-weight: 700 !important; }
.wb3-progressive-copy[data-progressive-copy]:not(.wb3-read-more-source-hidden):not([hidden]) > *::after { content: none !important; }
