/* Shared article typography for the public template and Gutenberg canvas. */
:where(.ofl-work__content, .editor-styles-wrapper) {
    color: #171717;
    font-family: PublicSans, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.012em;
    overflow-wrap: anywhere;
}
:where(.ofl-work__content, .editor-styles-wrapper) p {
    margin: 0 0 1.35em;
    line-height: inherit;
}
:where(.ofl-work__content, .editor-styles-wrapper) h2 {
    font-size: 2.4rem;
    font-weight: 550;
    letter-spacing: -0.035em;
    line-height: 1.18;
    margin: 2.2em 0 0.7em;
    text-wrap: balance;
}
:where(.ofl-work__content, .editor-styles-wrapper) h3 {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 1.8em 0 0.65em;
}
:where(.ofl-work__content, .editor-styles-wrapper) a:not(.wp-element-button):not(.wp-block-button__link):not(.wp-block-file__button) {
    color: #5900d6;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    text-decoration-thickness: 0.0625rem;
}
:where(.ofl-work__content, .editor-styles-wrapper) a:hover {
    text-decoration-thickness: 0.125rem;
}
:where(.ofl-work__content, .editor-styles-wrapper) a:focus-visible {
    outline: 0.2rem solid #6a00ff;
    outline-offset: 0.25rem;
}
:where(.ofl-work__content, .editor-styles-wrapper) ul,
:where(.ofl-work__content, .editor-styles-wrapper) ol {
    padding-left: 1.45em;
    margin: 0 0 1.4em;
}
:where(.ofl-work__content, .editor-styles-wrapper) ul { list-style: disc; }
:where(.ofl-work__content, .editor-styles-wrapper) ol { list-style: decimal; }
:where(.ofl-work__content, .editor-styles-wrapper) li { margin: 0.4em 0; }
:where(.ofl-work__content, .editor-styles-wrapper) strong { font-weight: 650; }
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-image {
    margin: 2em 0;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
}
:where(.ofl-work__content, .editor-styles-wrapper) figcaption {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: #5b5b5b;
    text-align: left;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-quote {
    border-left: 0.2rem solid #6a00ff;
    padding: 0.2em 0 0.2em 1.25em;
    margin: 2em 0;
    font-size: 1.33rem;
    line-height: 1.55;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-quote p:last-child {
    margin-bottom: 0;
}
/* Core may enqueue pullquote CSS after the theme on demand. Keep the
   article/editor defaults more specific than its centered 4em padding. */
:is(.ofl-work__content, .editor-styles-wrapper) .wp-block-pullquote {
    margin: 2em 0;
    border: 0;
    padding: 1.5em 1.4em;
    border-radius: 0.2rem;
    background: #f5f0ff;
    color: #4700ad;
    text-align: left;
    font-size: 1.515rem;
    line-height: 1.5;
}
:is(.ofl-work__content, .editor-styles-wrapper) .wp-block-pullquote blockquote {
    border: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
}
:is(.ofl-work__content, .editor-styles-wrapper) .wp-block-pullquote p {
    font: inherit;
    margin: 0;
}
:where(.ofl-work__content, .editor-styles-wrapper) cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #5b5b5b;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6em 0 2em;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-button__link,
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-file__button {
    display: inline-block;
    box-sizing: border-box;
    background: #6a00ff;
    color: #fff;
    border: 0.0625rem solid #6a00ff;
    border-radius: 0.56rem;
    padding: 0.95rem 1.45rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    min-height: 3rem;
    transition: background-color 160ms ease;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-button__link:hover,
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-file__button:hover {
    background: #5000c4;
    border-color: #5000c4;
    color: #fff;
    text-decoration: none;
}
:where(.ofl-work__content, .editor-styles-wrapper) .is-style-outline .wp-block-button__link {
    color: #5900d6;
    background: #fff;
}
:where(.ofl-work__content, .editor-styles-wrapper) .wp-block-file { margin: 1.8em 0; }
/* The backend canvas retains a readable working scale; public pages follow
   the same aspect-ratio mode and fluid root size as the existing header. */
@media (max-aspect-ratio: 800/1000) {
    .ofl-work__content {
        font-size: 1.45rem;
        line-height: 1.65;
    }
    .ofl-work__content h3 { font-size: 1.9rem; }
    .ofl-work__content figcaption,
    .ofl-work__content cite { font-size: 1.2rem; }
    .ofl-work__content .wp-block-pullquote {
        padding: 1.15em;
        font-size: 1.8rem;
    }
    .ofl-work__content .wp-block-quote {
        font-size: 1.62rem;
    }
    .ofl-work__content .wp-block-button__link,
    .ofl-work__content .wp-block-file__button {
        font-size: 1.36rem;
        padding: 1.28rem 1.97rem;
        min-height: 4.1rem;
    }
}

/* The Lab uses native Group/Image/Heading/Paragraph blocks for its credits. */
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    margin: 2rem 0 3rem;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-person {
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-portrait {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    margin: 0 0 1rem;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-portrait .wp-block-image {
    height: 100%;
    margin: 0;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-person h3 {
    font-size: 1.2rem;
    margin: 0 0 0.4em;
}
:is(.ofl-work__content, .editor-styles-wrapper) .ofl-lab-person p {
    margin: 0 0 0.6em;
}
@media (max-aspect-ratio: 800/1000) {
    .ofl-work__content .ofl-lab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
    .ofl-work__content .ofl-lab-person { font-size: 1.25rem; }
    .ofl-work__content .ofl-lab-person h3 { font-size: 1.4rem; }
}

/* Classic themes add this wrapper when rendering native Group blocks. */
.ofl-work__content .ofl-lab-team > .wp-block-group__inner-container { display: contents; }
.ofl-work__content .ofl-lab-portrait > .wp-block-group__inner-container { height: 100%; }
