/* Shared by the writing field and the published story. */
:is(.mem-bio .mem-prose,.place-history .mem-prose) hr {
    display:block; width:100%; margin:1em 0; height:0; border:0;
    border-block-start:1px solid #cdd8de; background:transparent; opacity:1;
}
.bio-composer .ck-content .bio-divider-widget {
    display:grid; align-items:center; width:100%; height:20px; margin:.45em 0; cursor:pointer;
}
.bio-composer .ck-content .bio-divider-widget::before {
    content:""; display:block; border-block-start:1px solid #cdd8de;
}
.mem-bio, .bio-composer[data-subject="биографии"] { --bio-text-leading: 1.48; }
:is(.bio-composer .ck-content, .mem-bio .mem-prose, .place-history .mem-prose) blockquote {
    position: relative;
    margin: .85em 0;
    padding: .6em .9em .6em 2.15em;
    border: 0;
    border-inline-start: 3px solid #729ab5;
    border-radius: 0 9px 9px 0;
    background: linear-gradient(105deg, #f0f5f8 0%, #f7f9fa 75%, #fafbfb);
    color: #474744;
    font-style: normal;
    text-align: start;
}
:is(.bio-composer .ck-content, .mem-bio .mem-prose, .place-history .mem-prose) blockquote::before {
    content: "";
    position: absolute;
    inset-inline-start: .55em;
    top: .6em;
    width: 1em;
    height: 1lh;
    background: center / 1em 1em no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m10 5-5 5 5 5m6-10-5 5 5 5' fill='none' stroke='%2367889e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    pointer-events: none;
}
:is(.bio-composer .ck-content, .mem-bio .mem-prose, .place-history .mem-prose) blockquote p {
    margin: 0;
    font-style: normal;
}
:is(.bio-composer .ck-content, .mem-bio .mem-prose, .place-history .mem-prose) blockquote p+p { margin-top: .45em; }
.place-history { display:grid; gap:clamp(14px,2vw,25px); min-width:0; }
.place-history .mem-prose { min-width:0; overflow-wrap:anywhere; line-height:1.55; }
.place-history .mem-prose p+p { margin-block-start:.7em; }
.place-history .mem-prose a { color:#236fa6; text-decoration:underline; }
/* This frame has the same 4:3 proportions as the photo archive. */
.place-history .mem-bio__pictures { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
:is(.mem-bio, .place-history) .mem-bio__pictures { align-items:stretch; }
:is(.mem-bio, .place-history) .mem-bio__pictures > .mem-photo {
    display:flex; flex-direction:column; align-self:stretch; min-width:0; width:100%; margin:0;
}
:is(.mem-bio, .place-history) .mem-bio__pictures > .mem-photo:only-child {
    grid-column:1/-1; justify-self:center; width:min(100%,36rem);
}
:is(.mem-bio, .place-history) .mem-photo > a {
    position:relative; display:block; width:100%; height:auto; aspect-ratio:4 / 3; flex:none;
    background:#eeefec; overflow:hidden; border:1px solid #d7dfe1; border-radius:14px;
}
:is(.mem-bio, .place-history) .mem-photo:has(> figcaption) > a { border-bottom:0; border-radius:14px 14px 0 0; }
:is(.mem-bio, .place-history) .mem-photo img {
    display:block; width:100%; height:100%; border-radius:0; object-fit:contain; object-position:center;
}
:is(.mem-bio, .place-history) .mem-photo figcaption {
    flex:auto; display:grid; align-content:center; min-width:0; margin:0; text-align:center; overflow-wrap:anywhere;
}
.place-history .mem-photo figcaption {
    padding:.4em .55em; color:#515b60; background:#f3f6f7; border:1px solid #d7dfe1; border-radius:0 0 14px 14px;
}
.place-history .mem-expand { display:none; }

:is(.mem-bio,.place-history,.bio-composer .ck-content) .bio-columns {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0;
    margin-block:.75em; min-width:0;
}
:is(.mem-bio,.place-history,.bio-composer .ck-content) .bio-columns:has(> .bio-column:nth-child(3)) {
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.bio-columns > .bio-column { min-width:0; overflow-wrap:anywhere; padding-inline:clamp(10px,1.5vw,24px); }
.bio-columns > .bio-column:first-child { padding-inline-start:0; }
.bio-columns > .bio-column:last-child { padding-inline-end:0; }
.bio-column + .bio-column { border-inline-start:1px solid #cdd8de; }
.bio-column > * + * { margin-block-start:.7em; }
.bio-column .mem-bio__pictures { grid-template-columns:minmax(0,1fr); }
@media (max-width:650px) {
    :is(.mem-bio,.place-history,.bio-composer .ck-content) .bio-columns,
    :is(.mem-bio,.place-history,.bio-composer .ck-content) .bio-columns:has(> .bio-column:nth-child(3)) { grid-template-columns:minmax(0,1fr); }
    .bio-columns > .bio-column { padding:0; }
    .bio-column + .bio-column { margin-block-start:.8em; padding-block-start:.8em; border-inline-start:0; border-block-start:1px solid #cdd8de; }
}

:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) :is(p,li,h2,h3,h4).bio-align-left {text-align:left;}
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) :is(p,li,h2,h3,h4).bio-align-center {text-align:center;}
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) :is(p,li,h2,h3,h4).bio-align-right {text-align:right;}
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) u {text-decoration-line:underline!important;text-underline-offset:.12em;}
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) .bio-ink { color:var(--arc-accent,#236fa6); }
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) a[href] {
    color:var(--arc-accent,#236fa6); text-decoration:none;
}
:is(.bio-composer .ck-content,.mem-bio .mem-prose,.place-history .mem-prose) a[href]::after {
    content:""; display:inline-block; width:.87em; height:.87em; margin-inline-start:.22em; vertical-align:-.06em;
    background-color:currentColor;
    --bio-link-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='1.4' y='1.4' width='17.2' height='17.2' rx='3.5'/%3E%3Cpath d='m6.4 13.6 7.2-7.2m-5.8 0h5.8v5.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask: var(--bio-link-symbol) center/contain no-repeat; mask: var(--bio-link-symbol) center/contain no-repeat;
}
:is(.mem-bio .mem-prose,.place-history .mem-prose) a[href]:focus-visible {outline:2px solid currentColor;outline-offset:2px;border-radius:2px}

/* Biography previews use the original proportions, with one common frame for a pair. */
.mem-bio .mem-bio__pictures {
    --bio-picture-height:clamp(290px,42vw,465px);
    --bio-picture-gap:clamp(10px,2vw,26px);
    width:100%; min-width:0; justify-self:center; column-gap:var(--bio-picture-gap);
}
.mem-bio .mem-bio__pictures[data-bio-frame=pair] {
    max-width:calc(2 * var(--bio-picture-height) * var(--bio-picture-ratio,1.33333) + var(--bio-picture-gap));
}
.mem-bio .mem-photo > a {
    box-sizing:border-box; border:0; background:#f9faf9;
    aspect-ratio:var(--bio-picture-ratio, 4 / 3);
}
.mem-bio .mem-photo:has(> figcaption) > a::before {
    content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
    border:1px solid #dde2e3; border-bottom:0; border-radius:inherit;
}
.mem-bio .mem-bio__pictures > .mem-photo:only-child {
    display:grid; grid-template-columns:minmax(0,1fr); width:fit-content; max-width:min(100%,44rem);
}
.mem-bio .mem-bio__pictures > .mem-photo:only-child > a {aspect-ratio:auto; width:fit-content; max-width:100%;}
.mem-bio .mem-bio__pictures > .mem-photo:only-child img {
    display:block; width:auto; height:auto; max-width:100%; max-height:var(--bio-picture-height);
}
.mem-bio .mem-bio__pictures > .mem-photo:only-child figcaption {contain:inline-size;}
.mem-bio .mem-bio__pictures[data-bio-frame=single] > .mem-photo {
    width:min(100%,44rem,calc(var(--bio-picture-height) * var(--bio-picture-ratio,1.33333)));
}
.mem-bio .mem-bio__pictures[data-bio-frame=single] > .mem-photo > a {width:100%;}
.mem-bio .mem-bio__pictures[data-bio-frame=single] > .mem-photo img {width:100%; height:auto;}

@media (min-width:651px) {
    :is(.mem-bio,.bio-composer .ck-content) .bio-columns { --bio-col-gap:clamp(20px,3vw,48px); column-gap:var(--bio-col-gap); }
    :is(.mem-bio,.bio-composer .ck-content) .bio-columns > .bio-column {position:relative; padding-inline:0; border-inline:0;}
    :is(.mem-bio,.bio-composer .ck-content) .bio-column + .bio-column::before {
        content:""; position:absolute; inset-block:0; inset-inline-start:calc(var(--bio-col-gap) / -2);
        border-inline-start:1px solid #cdd8de; pointer-events:none;
    }
}
.mem-bio .mem-bio__pictures[data-bio-frame=columns] > .mem-photo {
    display:flex; width:min(100%,44rem,calc(var(--bio-picture-height) * var(--bio-picture-ratio)));
}
.mem-bio .mem-bio__pictures[data-bio-frame=columns] > .mem-photo > a {width:100%; aspect-ratio:var(--bio-picture-ratio);}
.mem-bio .mem-bio__pictures[data-bio-frame=columns] > .mem-photo img {width:100%;height:100%;max-height:none;}
.mem-bio .mem-bio__pictures[data-bio-frame=columns] figcaption,
.bio-composer .ck-content figure.image[data-bio-frame=columns] figcaption {box-sizing:border-box;min-height:var(--bio-caption-height,0px);}
