/* Subject-shaped editorial illustrations share the surrounding paper and text column. */
.editorial-cutout, .article-body figure.editorial-cutout {
    position: relative;
    float: right;
    width: min(42%, 20rem);
    clear: right;
    margin: .65rem 0 .9rem 1rem !important;
    shape-outside: var(--measured-cutout, var(--cutout-shape)) border-box;
    shape-margin: 1rem;
}
.editorial-cutout picture, .editorial-cutout img, .article-body .editorial-cutout picture img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    background: none;
    mask: none;
    filter: none;
}
.editorial-cutout::before, .paper-card-subject::before {
    content: "";
    position: absolute;
    left: var(--tape-x, 50%);
    top: var(--tape-y, 7%);
    width: clamp(24px, 24%, 78px);
    height: clamp(9px, 1.1vw, 17px);
    transform: translate(-50%, -40%) rotate(-10deg);
    background: linear-gradient(95deg, #e6cd91bf, #f0dba5ed 55%, #dbc28bbf);
    box-shadow: inset 0 1px #fff8d6a3;
    clip-path: polygon(2% 0,100% 3%,97% 44%,100% 91%,1% 100%,3% 55%);
    pointer-events: none;
}
.cutout-caption, .article-body figure .cutout-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0 !important;
    z-index: 4;
    font: 500 .85rem/1.45 var(--cy-sans);
    color: var(--cy-ink) !important;
}
.cutout-caption summary {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 32px;
    cursor: pointer;
    list-style: none;
}
.cutout-caption summary::-webkit-details-marker { display: none; }
.cutout-caption summary .cutout-badge {
    display: grid; place-items: center; width: 1.25rem; height: 1.25rem;
    border: 1px solid #584535; border-radius: 50%; background: #f7e9ca;
    color: #34271e; font: italic bold .88rem/1 Georgia, serif;
}
.cutout-caption summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cutout-note {
    width: 100%; padding: .85rem 1rem;
    text-align: left; overflow-wrap: anywhere; color: #33271e; background: #fff5e3;
    border: 1px solid #bda98d; box-shadow: 0 .25rem .75rem #38271e29; z-index: 5;
}
.cutout-note p, .article-body .cutout-note p { margin: 0 0 .4em !important; font: inherit !important; color: inherit; }
.cutout-note p:last-child { margin-bottom: 0 !important; }
.cutout-note a { color: inherit; text-decoration: underline; }
.cutout-caption:has(details[open]), .article-body figure .cutout-caption:has(details[open]) { position: static; }
.cutout-caption details[open] summary { width: fit-content; margin-left: auto; }
.editorial-cutout:has(details[open]) { shape-outside: margin-box; }
@media (max-width: 599px) {
    .editorial-cutout.cutout-lead:has(details[open]) {
        float: none; width: min(100%, 24rem); margin-inline: auto !important;
    }
}
#pageArticle .article-header.has-cutout { display: block !important; max-width: 62rem; margin-inline: auto; }
#pageArticle .article-header.has-cutout::before { content: none; }
#pageArticle .article-header.has-cutout > .pp-card, .hero.has-cutout .pp-card { display: flow-root; }
#pageArticle .article-header.has-cutout .article-actions-top { margin: 1.4rem 0 0; }
.has-cutout .cutout-lead { width: min(38%, 28rem); }
/* Clipping the deck establishes a formatting context that reserves the float's entire column. */
.hero.has-cutout .pp-card > p {
    display: block;
    overflow: visible;
    max-width: none;
    -webkit-line-clamp: unset;
    text-wrap: wrap;
}
.article-body figure.cutout-inline {
    margin: 1.1rem 0 1.1rem 1.2rem !important;
    shape-margin: 1rem;
}
/* A heading immediately after a cutout belongs to the text wrapping around it. */
.article-body:has(.cutout-inline) > :is(h2, h3):not(.cutout-inline + *) { clear: right; }
.article-body > .cutout-inline + :is(h2, h3) { margin-top: 0 !important; overflow-wrap: anywhere; }
.article-body figure.cutout-scene { width: min(51%, 26rem); }
.has-cutout .cutout-lead.cutout-scene { width: min(45%, 28rem); }
.hero.paper.has-cutout { min-height: 0 !important; }
.hero.has-cutout .hero-copy { width: min(100%, 68rem) !important; margin-inline: auto; }
.hero.has-cutout .pp-card { margin-left: 0; }
.article-body:has(.cutout-inline)::after { content: ""; display: block; clear: both; }
@media (max-width: 899px) {
    #pageArticle .article-header.has-cutout { padding: 0; }
    #pageArticle .article-header.has-cutout > .pp-card { margin: 0; padding: 1.4rem 1rem 1rem; }
    #pageArticle .article-header.has-cutout h1 { margin-top: 0 !important; }
    .hero.paper.has-cutout { display: flex !important; }
    .has-cutout .cutout-lead { width: clamp(94px, 36%, 15rem); }
    .has-cutout .cutout-lead.cutout-scene { width: clamp(108px, 41%, 17rem); }
    .cutout-lead { margin-left: .75rem !important; shape-margin: .65rem; }
}
@media (max-width: 599px) {
    .editorial-cutout { shape-outside: var(--measured-cutout, var(--cutout-small-shape)) border-box; }
    /* Keep a readable measure beside the silhouette even on the narrowest phones. */
    .article-body figure.cutout-inline {
        width: min(40%, max(24%, calc(100% - 10.5rem)), 14rem);
        margin: .3rem 0 .8rem .65rem !important;
        shape-margin: .6rem;
    }
    .article-body figure.cutout-inline:has(details[open]) {
        float: none;
        width: min(100%, 20rem);
        margin: 1rem auto !important;
    }
}

/* List cards keep the original subject and the same attachment point as the article. */
.paper-card-art:has(> .paper-card-subject) {
    display: grid;
    place-items: center;
    filter: none;
}
.paper-card-art:has(> .paper-card-subject)::before,
#discoverResultArt.paper-card-art:has(> .paper-card-subject)::before,
.niche-page .niche-feature .paper-card-art:has(> .paper-card-subject)::before { content: none; }
.paper-card-subject { position: relative; display: inline-block; max-width: 94%; }
.paper-card-subject > .paper-card-cover { display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(9rem, 27vw, 20rem); mask: none; }

/* In article lists the cover sets the row height, including while the image is loading. */
.article-art.paper-card-art:has(> .paper-card-subject) {
    aspect-ratio: auto;
    grid-template-columns: minmax(0, 1fr);
}
.article-art > .paper-card-subject {
    width: min(96%, calc(24rem * var(--cover-ratio, 16 / 9)));
    max-width: none;
}
.article-art > .paper-card-subject > .paper-card-cover {
    width: 100%;
    max-height: none;
    aspect-ratio: auto var(--cover-ratio, 16 / 9);
}
.article-art:has(> .paper-card-subject) + .card-body {
    padding-block-start: clamp(.625rem, 1vw, .875rem) !important;
}
/* The save control sits above the linked artwork and has its own tap target. */
.article:has(> .card-actions) > a > .article-art:has(> .paper-card-subject) {
    padding-block-start: 3.5rem;
}

.cutout-sr-label {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
#pageArticle .has-cutout h1, .hero.has-cutout h1 { text-wrap: wrap !important; }
@media (max-width: 600px) {
    #pageArticle .article-header.has-cutout .article-actions-top {
        display: grid !important; grid-template-columns: minmax(max-content, .72fr) minmax(max-content, 1fr) minmax(max-content, 1.45fr);
        gap: clamp(8px, 2.6vw, 14px) !important;
    }
    #pageArticle .article-header.has-cutout .article-actions-top .article-action-btn {
        min-width: 0; width: 100%; padding-inline: 3px !important; gap: .3em;
        font-size: clamp(13px, 3.8vw, 16px) !important;
    }
}

.cutout-callout-paragraph { position: relative; }
.cutout-callout-term {
    text-decoration: underline;
    text-decoration-color: var(--cy-wine);
    text-underline-offset: .16em;
}
.cutout-callout {
    position: absolute; top: 0; left: 0; width: 1px; height: 1px;
    overflow: visible; pointer-events: none;
    fill: none; stroke: var(--cy-wine); stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round;
}
body.dark .cutout-callout { stroke: var(--cy-rose); }
body.dark .cutout-callout-term { text-decoration-color: var(--cy-rose); }
.cutout-callout-expanded .cutout-callout { display: none; }
.cutout-callout-expanded .cutout-callout-term { text-decoration: none; }

.cutout-callout-outline { stroke: var(--cy-card); stroke-width: 3.5; }
.cutout-callout-source { display: none; }
/* Keep the image and its text connector aligned while the article reveals figures on scroll. */
.article-body figure.cutout-inline:has(> .cutout-callout-source) { translate: none; transition-property: opacity; }
