/* The same reading rhythm and image viewport for all twenty Anna sections. */
.anna-compact-reader{--anna-width:760px;--anna-gap:24px;--media-height:min(48svh,400px);--media-space:12px}
body main .anna-compact-reader [data-anna-content]{display:block;gap:0;width:100%;max-width:var(--anna-width);margin-inline:auto!important;padding:0}
body main .anna-compact-reader [data-anna-editable-heading]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:1.25em;margin:0 0 12px!important;padding:0;font:700 calc(32px * var(--text-scale,1))/1.25 Georgia,serif!important;text-align:center;text-wrap:balance}
body main .anna-compact-reader :is(.anna-photo-section,.anna-writing-section){box-sizing:border-box;width:100%;max-width:var(--anna-width);margin:var(--anna-gap) auto!important;padding:12px!important;border:2px solid #b49aa3;border-radius:8px}
body main .anna-compact-reader :is(.anna-photo-section,.anna-writing-section)>h2{margin:0 0 10px!important;font:700 calc(22px * var(--text-scale,1))/1.25 Georgia,serif!important}
body main .anna-compact-reader .anna-user-carousel{width:100%;max-width:none;margin:0!important;padding:0!important}
body main .anna-compact-reader .anna-user-carousel>h3{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body main .anna-compact-reader .anna-user-carousel>.anna-carousel-hint{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:2.9em;margin:0 0 8px!important;font-size:13px;line-height:1.45}
body main .anna-compact-reader .anna-user-carousel>[data-carousel-slide]>a{height:var(--media-height)!important;grid-template-columns:minmax(0,1fr);min-width:0}
body main .anna-compact-reader .anna-user-carousel>[data-carousel-slide]>a>:is(img,svg){min-width:0!important;max-width:100%!important}
body main .anna-compact-reader .anna-user-carousel>[data-carousel-slide]>figcaption{display:block;box-sizing:border-box;height:6em;min-height:6em;overflow-y:auto;scrollbar-width:thin;padding:8px 0 0;font-size:13px;line-height:1.45}
body main .anna-compact-reader .anna-carousel-controls{margin:8px 0 0!important;gap:20px}
body main .anna-compact-reader .anna-carousel-controls button{width:44px;height:44px;min-height:44px}
body main .anna-compact-reader .anna-owner-writing{white-space:normal;line-height:1.6;font-size:calc(17px * var(--text-scale,1))}
body main .anna-compact-reader :is(.anna-owner-writing,.anna-pregnancy-statement,.record-account,.reading-section,#anna-serial-killer) p{max-width:none;margin:0 0 12px!important;line-height:1.6}
body main .anna-compact-reader :is(.anna-owner-writing,.anna-pregnancy-statement,.record-account,.reading-section,#anna-serial-killer) p:last-child{margin-bottom:0!important}
body main .anna-compact-reader .anna-writing-empty{margin:0!important;line-height:1.6}
body main .anna-compact-reader .anna-section-downloads{margin:12px auto;max-width:var(--anna-width);padding:0;text-align:center}
body main .anna-compact-reader .anna-section-downloads :is(p,h3){margin:0 0 8px!important;line-height:1.5}
body main .anna-compact-reader .anna-section-downloads :last-child{margin-bottom:0!important}
body main .anna-compact-reader .anna-section-downloads h3{font-size:18px}
body main .anna-compact-reader .anna-section-footer{margin-top:20px;padding-top:16px}
body main .anna-compact-reader .anna-pregnancy-statement{margin:12px auto 0!important;max-width:none!important;line-height:1.6!important}
body main .anna-compact-reader .anna-pregnancy-statement section{margin:16px 0 0!important}
body main .anna-compact-reader .anna-pregnancy-statement h3{margin:0 0 10px!important}
body main .anna-compact-reader #anna-audio{display:block!important;gap:0!important}
body main .anna-compact-reader #anna-audio{max-width:var(--anna-width)!important}
body main .anna-compact-reader #anna-audio .audio-clip{box-sizing:border-box;max-width:var(--anna-width)!important;width:100%;margin:12px auto!important}
body main .anna-compact-reader .anna-writing-optional:has([data-anna-writing][hidden]){display:none}
body main .anna-compact-reader #anna-welfare :is(.anna-photo-section,.anna-writing-section){margin:var(--anna-gap) auto!important}
body main .anna-compact-reader :is(.anna-photo-empty,.anna-writing-empty){margin:0!important;font:calc(16px * var(--text-scale,1))/1.6 system-ui,sans-serif}
@media(max-width:900px){body main .anna-compact-reader .anna-chapter-navigation{margin-bottom:16px}}
@media(max-width:600px){
 .anna-compact-reader{--anna-gap:24px;--media-height:min(44svh,340px);--media-space:10px}
 body main .anna-compact-reader [data-anna-editable-heading]{font-size:calc(26px * var(--text-scale,1))!important;min-height:2.5em;margin-bottom:10px!important}
 body main .anna-compact-reader :is(.anna-photo-section,.anna-writing-section){padding:10px!important;margin:var(--anna-gap) auto!important}
 body main .anna-compact-reader .anna-owner-writing{font-size:calc(16px * var(--text-scale,1))}
}
@media print{body main .anna-compact-reader :is(.anna-photo-section,.anna-writing-section){border:0;padding:0!important}.anna-compact-reader{--media-height:auto}}

body main .anna-compact-reader .aol-chapter-expanded :is(.anna-photo-section,.anna-writing-section){
 border:0;box-shadow:none
}
body main .anna-compact-reader .aol-chapter-expanded .anna-photo-section{
 padding-inline:0!important
}
@media screen{
 body main .anna-compact-reader .aol-chapter-expanded .anna-writing-section{
  padding:clamp(1rem,4vw,1.5rem)!important
 }
}
body main .anna-compact-reader .aol-chapter-expanded .anna-section-footer{
 border-top:0;padding-top:0
}
body main .anna-compact-reader .aol-chapter-expanded > .anna-chapter-navigation{
 margin:var(--tile-inner) 0 0
}


/* Fit the actual picture to a common width without stretching it. */
body main .anna-compact-reader {
 --anna-picture-width:224px;
}
body main .anna-compact-reader [data-anna-content] :is(.anna-user-carousel:not(.anna-video-carousel),.anna-share-meme,.anna-photo-grid>.anna-photo) {
 box-sizing:border-box;width:min(100%,var(--anna-picture-width));max-width:none;margin-inline:auto!important;border:0;background:transparent;box-shadow:none;padding:0!important;
}
body main .anna-compact-reader [data-anna-photo-section] {
 border:0;background:transparent;box-shadow:none;padding-inline:0!important;
}
body main .anna-compact-reader [data-anna-content] :is(.anna-user-carousel:not(.anna-video-carousel)>[data-carousel-slide],.anna-share-meme,.anna-photo-grid>.anna-photo)>a {
 display:block;width:100%;height:auto!important;min-width:0;line-height:0;background:transparent;
}
body main .anna-compact-reader [data-anna-content] :is(.anna-user-carousel:not(.anna-video-carousel)>[data-carousel-slide],.anna-share-meme,.anna-photo-grid>.anna-photo)>a>:is(img,svg) {
 display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:none!important;margin:0 auto;object-fit:contain!important;aspect-ratio:auto;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>[data-carousel-slide]>a>svg {
 width:100%!important;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel) :is(.anna-resume-visual,.anna-page-visual) {
 width:100%;max-width:100%;height:auto;margin:0 auto;
}
body main .anna-compact-reader [data-anna-content] .anna-photo-grid:not(:empty) {grid-template-columns:minmax(0,1fr)}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-hint {display:none}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>[data-carousel-slide]>figcaption {
 height:auto;min-height:0;overflow:visible;padding-top:8px;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>[data-carousel-slide]>figcaption:empty {display:none}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls {
 order:3;gap:6px;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel):not(:has(>[data-carousel-slide]~[data-carousel-slide]))>.anna-carousel-controls {
 display:none;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls button {
 isolation:isolate;position:relative;background:none;border:0;font-size:18px;box-shadow:none;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls button::before {
 content:"";position:absolute;inset:7px;z-index:-1;border-radius:5px;background:#783c4e;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls button:hover::before {background:#572e41}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls button:focus-visible {
 outline:2px solid #622f43;outline-offset:0;border-radius:5px;
}
body main .anna-compact-reader [data-anna-content] .anna-user-carousel:not(.anna-video-carousel)>.anna-carousel-controls [data-carousel-count] {
 width:6ch;min-width:6ch;
}
@media print {body main .anna-compact-reader [data-anna-content] .anna-user-carousel>.anna-carousel-controls {display:none}}

body main .anna-compact-reader [data-anna-content] .anna-chapter-swipe {
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.35rem .75rem;
 margin:0 0 .5rem!important;text-align:center;color:#4b363c;font:600 calc(.8125rem * var(--text-scale,1))/1.4 system-ui,sans-serif;
}
body main .anna-compact-reader .anna-chapter-swipe [data-carousel-count] {min-width:3.25ch;font-variant-numeric:tabular-nums}
body main .anna-compact-reader .anna-chapter-evidence {
 margin:12px auto 0!important;text-align:center;
}

/* Put the position on the picture, not in a separate row. */
body main .anna-compact-reader [data-carousel-slide]>a:has(>.anna-picture-count) {
 position:relative;touch-action:pan-y pinch-zoom;
}
body main .anna-compact-reader [data-carousel-slide]>a>.anna-picture-count {
 position:absolute;inset-inline-end:.3rem;inset-block-end:.3rem;padding:.15rem .4rem;
 border-radius:.28rem;background:#191414e8;color:#fff;text-align:center;
 font:600 .75rem/1.25 system-ui,sans-serif;font-variant-numeric:tabular-nums;pointer-events:none;
}

/* Reserve the entire gallery (including the longest caption) before swapping slides. */
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]{
 display:grid!important;grid-template-columns:minmax(0,1fr);row-gap:.35rem;overflow-anchor:none;
 --gallery-ratio:1083/1401;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery="photo"]{--gallery-ratio:4/5}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery="round-two"]{--gallery-ratio:4/3}
body main .anna-compact-reader #anna-round-two>.anna-photo-section{margin-block:.75rem 0!important;padding-block:0!important}
body main .anna-compact-reader #anna-round-two>.anna-writing-section{margin-block-start:.75rem!important}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]>.anna-gallery-top{
 grid-area:1/1;position:relative;min-width:0;align-self:center;text-align:center;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-chapter-swipe{margin:0!important}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]>figure[data-carousel-slide]{
 grid-area:2/1;min-width:0;display:grid;grid-template-rows:auto 1fr;align-content:start;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]>figure[data-carousel-slide][hidden]{
 display:grid!important;visibility:hidden;pointer-events:none;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]>figure[data-carousel-slide]>a{
 display:block;position:relative;width:100%;aspect-ratio:var(--gallery-ratio);height:auto!important;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery]>figure[data-carousel-slide]>a>:is(img,svg){
 width:100%!important;height:100%!important;position:absolute;inset:0;object-fit:contain!important;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-page-visual{
 position:absolute!important;inset:0;width:100%;height:100%;line-height:0;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-page-visual>img{
 width:100%!important;height:100%!important;object-fit:contain!important;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-gallery-top>button:not(:focus-visible){
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-gallery-top>button:focus-visible{
 position:absolute;inset-block-start:100%;z-index:2;width:auto;min-height:44px;padding:0 .6rem;font:inherit;
}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-gallery-top>button[data-carousel-prev]{inset-inline-start:0}
body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] .anna-gallery-top>button[data-carousel-next]{inset-inline-end:0}
body main .anna-compact-reader .anna-writing-section>.anna-accident-photo-note{margin:1rem 0 0;line-height:1.6}

/* Announce position without rendering a second number beside the swipe hint. */
body main .anna-compact-reader [data-anna-content] [data-anna-carousel] [data-carousel-count].sr-only{
 position:absolute!important;display:block!important;width:1px!important;min-width:0!important;
 height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;
 overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;border:0!important;
}

body main .anna-compact-reader [data-anna-content] [data-clean-chapter-gallery] > .anna-gallery-top-numbered{
 display:flex;justify-content:center;align-items:center;gap:.53rem;white-space:nowrap;font-variant-numeric:tabular-nums;
}
body main .anna-compact-reader [data-anna-content] .anna-gallery-top-numbered [data-carousel-count]{
 font:600 calc(.8125rem * var(--text-scale,1))/1.4 system-ui,sans-serif;color:#4b363c;min-width:auto;
}
