.sumory-atlas {
  --sa-paper: var(--paper); --sa-ink: var(--ink); --sa-muted: var(--ink-2); --sa-rule: var(--rule); --sa-forest: var(--ink); --sa-accent: var(--rust-ink);
  --sa-serif: var(--serif);
  color: var(--sa-ink); background: var(--sa-paper); font-family: var(--sans);
  line-height: 1.7; overflow: clip;
}
.sumory-atlas *, .sumory-atlas *::after, .sumory-atlas *::before {box-sizing:border-box;}
.sumory-atlas :is(h1,h2,h3,p,dl,dt,dd,figure,figcaption) {margin:0;}
.sumory-atlas a {color:inherit;text-underline-offset:.26em;}
.sumory-atlas a:focus-visible {outline:3px solid var(--rust);outline-offset:4px;}
.sumory-atlas .sa-width {width:min(70rem,calc(100% - 5rem));margin-inline:auto;}
.sumory-atlas h1,.sumory-atlas h2,.sumory-atlas h3 {font-family:var(--sa-serif);font-weight:500;color:var(--sa-ink);letter-spacing:-.04em;line-height:1.13;text-wrap:balance;}
.sumory-atlas[lang="zh-Hans"] :is(h1,h2,h3) {line-height:1.28;}
.sumory-atlas img {max-width:100%;display:block;height:auto;}
.sumory-atlas.sa-index {padding:clamp(3.2rem,6.5vw,6rem) 0;}
.sumory-atlas .sa-index-intro {display:flex;align-items:end;justify-content:space-between;gap:2rem;padding-bottom:1.65rem;border-bottom:2px solid var(--sa-forest);}
.sumory-atlas .sa-index-intro h2 {font-size:clamp(2.3rem,4.2vw,4rem);}
.sumory-atlas .sa-index-intro p {font-size:1rem;color:var(--sa-muted);max-width:35ch;line-height:1.7;}
.sumory-atlas .sa-directory {display:grid;grid-template-columns:1.02fr 1fr;column-gap:clamp(1.5rem,4vw,3.4rem);}
.sumory-atlas .sa-entry {display:grid;grid-template-columns:26% 1fr;align-items:center;gap:1.25rem;text-decoration:none;padding:1.3rem 0;border-bottom:1px solid var(--sa-rule);}
.sumory-atlas .sa-entry:hover h3 {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em;}
.sumory-atlas .sa-entry-ledger {grid-row:span 4;display:flex;align-items:stretch;justify-content:center;flex-direction:column;gap:1.35rem;padding:1.75rem 0;}
.sumory-atlas .sa-book-image {position:relative;isolation:isolate;overflow:hidden;align-self:stretch;display:grid;place-items:center;border-radius:.22rem;background:#d5d9c6;min-height:6.1rem;}
.sumory-atlas .sa-book-image img {height:100%;width:100%;object-fit:cover;}
.sumory-atlas .sa-entry-ledger .sa-book-image {align-self:stretch;min-height:0;aspect-ratio:1.58;background-color:#dfd6c0;background-image:repeating-linear-gradient(0deg,#938a6e21 0 1px,transparent 1px 1.1rem);}
.sumory-atlas .sa-entry-ledger .sa-book-image img {position:absolute;height:auto;width:64%;top:8%;transform:rotate(-4deg);border:5px solid #faf8ef;box-shadow:1px 4px 10px #423c2333;}
.sumory-atlas .sa-entry-activities .sa-book-image img,.sumory-atlas .sa-entry-belongings .sa-book-image img {position:absolute;inset:0;object-position:center 60%;}
.sumory-atlas .sa-entry-journal .sa-book-image img {position:absolute;inset:0;object-position:center 45%;}
.sumory-atlas .sa-entry-reports .sa-book-image img {position:absolute;inset:0;object-position:center top;}
.sumory-atlas .sa-tab,.sumory-atlas .sa-kicker {font-size:.84rem;line-height:1.4;color:var(--sa-accent);font-weight:650;letter-spacing:.045em;}
.sumory-atlas .sa-entry h3 {font-size:clamp(1.35rem,2vw,1.9rem);margin:.36rem 0 .42rem;}
.sumory-atlas .sa-entry-ledger h3 {font-size:clamp(2.1rem,3.6vw,3.25rem);}
.sumory-atlas .sa-entry p,.sumory-atlas .sa-chapter p {color:var(--sa-muted);line-height:1.75;}
.sumory-atlas .sa-entry p {font-size:.99rem;}
.sumory-atlas .sa-crumb {display:flex;gap:.7rem;color:var(--sa-muted);padding:1.55rem 0 .85rem;font-size:.94rem;align-items:center;}
.sumory-atlas .sa-crumb a:hover,.sumory-atlas .sa-next a:hover {color:var(--sa-accent);}
.sumory-atlas .sa-lead {display:grid;grid-template-columns:.94fr 1.06fr;align-items:center;gap:clamp(2rem,4vw,4.7rem);padding:clamp(1.4rem,2.6vw,2.8rem) 0 clamp(2.9rem,5.2vw,4.75rem);border-bottom:2px solid var(--sa-forest);}
.sumory-atlas .sa-lead h1 {font-size:clamp(2.7rem,5.2vw,5rem);margin: .8rem 0 1.25rem;}
.sumory-atlas .sa-deck {font-size:clamp(1.04rem,1.5vw,1.19rem);line-height:1.8;color:var(--sa-muted);}
.sumory-atlas .sa-download {display:inline-flex;background:var(--ink);color:var(--paper);border-radius:.3rem;padding:.75rem 1.15rem;line-height:1.5;text-decoration:none;font-weight:650;margin-top:1.45rem;}
.sumory-atlas .sa-download:hover {background:var(--rust);color:#fffaf2;}
.sumory-atlas figure {min-width:0;}
.sumory-atlas figcaption {font-size:.88rem;line-height:1.6;color:var(--sa-muted);margin-top:.7rem;}
.sumory-atlas .sa-art {isolation:isolate;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.53;background:#e4dfcf;border-radius:.23rem;}
.sumory-atlas .sa-art img {flex-shrink:0;}
.sumory-atlas .sa-art-hero-ledger,.sumory-atlas .sa-art-receipt {background-color:#e7ddc6;background-image:repeating-linear-gradient(0deg,transparent 0 1.28rem,#a6977540 1.28rem calc(1.28rem + 1px));}
.sumory-atlas .sa-art-hero-ledger .sa-img-receipt {width:48%;transform:translateX(8%) rotate(-9deg);box-shadow:0 5px 13px #53462a42;}
.sumory-atlas .sa-art-hero-ledger .sa-img-scan {width:40%;transform:translateX(-1%) rotate(4deg);box-shadow:0 4px 14px #53462a42;border-radius:4%/3%;}
.sumory-atlas .sa-art-hero-activities .sa-img-forest,.sumory-atlas .sa-art-hero-belongings .sa-img-camera {width:100%;height:100%;object-fit:cover;object-position:50% 63%;position:absolute;inset:0;z-index:-1;}
.sumory-atlas .sa-art-hero-activities .sa-img-balances {width:40%;position:absolute;bottom:6%;right:6%;transform:rotate(3deg);box-shadow:0 3px 15px #18251c65;border:4px solid #f8f6ee;}
.sumory-atlas .sa-art-hero-belongings .sa-img-use {width:46%;position:absolute;right:5%;bottom:6%;border:5px solid #f5efe0;transform:rotate(-4deg);box-shadow:0 3px 12px #1e201e30;}
.sumory-atlas .sa-art-hero-journal,.sumory-atlas .sa-art-photos,.sumory-atlas .sa-art-pinned {background-color:#c5ccb5;background-image:repeating-linear-gradient(90deg,transparent 0 1.3rem,#9ba58b3d 1.3rem calc(1.3rem + 1px)),repeating-linear-gradient(0deg,transparent 0 1.3rem,#9ba58b3d 1.3rem calc(1.3rem + 1px));}
.sumory-atlas .sa-art-hero-journal {aspect-ratio:1.24;}
.sumory-atlas .sa-art-hero-journal img {height:89%;width:auto;box-shadow:4px 4px 0 #89967f,6px 7px 14px #32432a3d;transform:rotate(-4deg);border:5px solid #e7ebdb;}
.sumory-atlas .sa-art-hero-reports {background:#d7dfd4;align-items:flex-start;}
.sumory-atlas .sa-art-hero-reports .sa-img-report {width:51%;transform:translate(4%,7%) rotate(-3deg);border:4px solid #f9f7ec;box-shadow:1px 4px 8px #43543d29;}
.sumory-atlas .sa-art-hero-reports .sa-img-trend {width:40%;transform:translate(-1%,14%) rotate(4deg);border:4px solid #f9f7ec;box-shadow:1px 4px 8px #43543d29;}
.sumory-atlas .sa-body {padding:1.4rem 0;}
.sumory-atlas .sa-chapter {display:grid;grid-template-columns:1fr 1.03fr;align-items:center;column-gap:clamp(2rem,6.4vw,7rem);padding:clamp(2rem,4vw,3.7rem) 0;}
.sumory-atlas .sa-chapter h2,.sumory-atlas .sa-footnotes h2 {font-size:clamp(1.8rem,3.3vw,3.2rem);margin-bottom:.8rem;}
.sumory-atlas .sa-chapter p {font-size:1.05rem;max-width:42ch;}
.sumory-atlas .sa-chapter:nth-child(2) {border-top:1px solid var(--sa-rule);}
.sumory-atlas .sa-chapter:nth-child(2)>div {grid-column:2;grid-row:1;}
.sumory-atlas .sa-chapter:nth-child(2)>figure {grid-column:1;grid-row:1;}
.sumory-atlas .sa-chapter .sa-art {aspect-ratio:1.58;}
.sumory-atlas .sa-art-receipt img {width:46%;transform:rotate(-5deg);box-shadow:2px 4px 9px #58482a30;}
.sumory-atlas .sa-art-scan {background:#e1d5c8;}
.sumory-atlas .sa-art-scan img {width:auto;height:91%;transform:rotate(2deg);border-radius:.3rem;box-shadow:2px 3px 9px #58482a34;}
.sumory-atlas .sa-art-activities,.sumory-atlas .sa-art-settlement,.sumory-atlas .sa-art-timeline,.sumory-atlas .sa-art-themes {background:#dce1cf;}
.sumory-atlas .sa-art-activities img {width:65%;align-self:flex-start;margin-top:5%;transform:rotate(-2deg);border:.35rem solid #f7f5ec;box-shadow:1px 4px 10px #2c412e2b;}
.sumory-atlas .sa-art-settlement {flex-direction:column;gap:.5rem;}
.sumory-atlas .sa-art-settlement img {width:52%;box-shadow:0 2px 6px #545d4b24;}
.sumory-atlas .sa-art-settlement .sa-img-balances {width:47%;}
.sumory-atlas .sa-art-cost {flex-direction:column;gap:6%;background:#d9d4c4;}
.sumory-atlas .sa-art-cost .sa-img-use {width:59%;border:.38rem solid #f8f4e8;box-shadow:1px 4px 10px #50473130;transform:rotate(-2deg);}
.sumory-atlas .sa-arithmetic {display:flex;justify-content:space-evenly;width:90%;border-block:1px solid #a5a596;padding:.55rem .36rem;gap:.4rem;background:#f5f1e4;}
.sumory-atlas .sa-arithmetic dt {color:#56614c;font-size:.74rem;}
.sumory-atlas .sa-arithmetic dd {font:600 clamp(.99rem,1.8vw,1.48rem)/1.5 var(--sa-serif);font-variant-numeric:tabular-nums;}
.sumory-atlas .sa-art-timeline .sa-img-item {width:48%;transform:rotate(-4deg);border:4px solid #f6f3e6;box-shadow:1px 4px 8px #494d2d2b;}
.sumory-atlas .sa-art-timeline .sa-img-timeline {width:42%;transform:translate(-3%,9%) rotate(2deg);border:3px solid #f6f3e6;box-shadow:1px 4px 8px #494d2d2b;}
.sumory-atlas .sa-art-photos .sa-img-page-photo {height:91%;width:auto;transform:rotate(-2deg);box-shadow:1px 4px 8px #414c3929;}
.sumory-atlas .sa-art-pinned .sa-img-page-bill {width:83%;border:.4rem solid #e9efdd;transform:rotate(2deg);box-shadow:1px 4px 8px #414c3929;}
.sumory-atlas .sa-art-trend {background:#e4d9c6;}
.sumory-atlas .sa-art-trend img,.sumory-atlas .sa-art-themes img {height:93%;width:auto;box-shadow:1px 4px 8px #414c3929;}
.sumory-atlas .sa-footnotes {padding:2.2rem clamp(1.3rem,4vw,3rem);background:#e6e9da;border-block:1px solid #c2c8b8;}
.sumory-atlas .sa-footnotes h2 {font-size:clamp(1.65rem,2.75vw,2.45rem);}
.sumory-atlas .sa-footnotes dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,3vw,2.8rem);margin-top:1.2rem;}
.sumory-atlas .sa-footnotes dt {font-weight:650;margin-bottom:.35rem;}
.sumory-atlas .sa-footnotes dd {color:var(--sa-muted);line-height:1.72;}
.sumory-atlas .sa-next {display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:2rem 0 3.5rem;}
.sumory-atlas .sa-next a:first-child {display:flex;flex-direction:column;text-decoration:none;}
.sumory-atlas .sa-next span {font-size:.85rem;color:var(--sa-muted);}
.sumory-atlas .sa-next strong {font:600 1.42rem/1.3 var(--sa-serif);margin-top:.25rem;}
@media(max-width:50rem) {
 .sumory-atlas .sa-width {width:calc(100% - 2.3rem);}
 .sumory-atlas .sa-lead {grid-template-columns:1fr;gap:1.55rem;}
 .sumory-atlas .sa-lead h1 {font-size:clamp(2.6rem,8vw,4rem);}
 .sumory-atlas .sa-directory {column-gap:1.2rem;}
 .sumory-atlas .sa-entry {gap:.75rem;}
 .sumory-atlas .sa-chapter {gap:1.5rem;}
}
@media(max-width:37.5rem) {
 .sumory-atlas.sa-index {padding:2.7rem 0 3.3rem;}
 .sumory-atlas .sa-index-intro {display:block;}
 .sumory-atlas .sa-index-intro p {margin-top:.7rem;}
 .sumory-atlas .sa-directory {grid-template-columns:minmax(0,1fr);}
 .sumory-atlas .sa-entry-ledger {grid-row:auto;gap:.9rem;padding:1.2rem 0;}
 .sumory-atlas .sa-entry-ledger .sa-book-image {aspect-ratio:2.3;}
 .sumory-atlas .sa-entry h3 {font-size:1.44rem;}
 .sumory-atlas .sa-entry-ledger h3 {font-size:1.9rem;}
 .sumory-atlas .sa-crumb {padding-top:1.25rem;}
 .sumory-atlas .sa-deck {font-size:1rem;}
 .sumory-atlas .sa-body {padding:0;}
 .sumory-atlas .sa-chapter {grid-template-columns:1fr;gap:1rem;}
 .sumory-atlas .sa-chapter:nth-child(2)>div,.sumory-atlas .sa-chapter:nth-child(2)>figure {grid-column:auto;grid-row:auto;}
 .sumory-atlas .sa-footnotes dl {grid-template-columns:1fr;}
 .sumory-atlas .sa-footnotes dl div+div {border-top:1px solid var(--sa-rule);padding-top:.8rem;}
 .sumory-atlas .sa-next {align-items:flex-start;flex-direction:column;}
}

.sumory-atlas .split-demo{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(1.4rem,6vw,5rem);align-items:center;margin:3rem 0;padding:clamp(1.35rem,3vw,3rem);background:#e6ecdd;border:1px solid #c1cbb6;border-radius:.35rem;color:#293e31}
.split-demo h2{font:500 clamp(1.7rem,3vw,2.75rem)/1.25 Georgia,"Songti SC",serif;margin:.4rem 0}.split-demo fieldset{min-width:0;border:1px solid #c4c7b8;background:#fffdf5;padding:1.1rem 1.3rem}.split-demo legend{padding:0 .45rem;font-size:.9rem;font-weight:650}.split-demo input{width:1px;height:1px;position:absolute;opacity:0}.split-demo label{display:inline-block;cursor:pointer;min-height:2.6rem;padding:.45rem .85rem;margin-right:.3rem;border:1px solid #a2ab97;border-radius:.35rem}.split-demo input:checked+label{background:#294334;color:#fff}.split-demo input:focus-visible+label{outline:3px solid #9e5427;outline-offset:2px}.split-demo dl{margin:.9rem 0}.split-demo dl>div{display:flex;justify-content:space-between;padding:.35rem 0;border-bottom:1px dashed #c3c8b8}.split-demo dd{font-variant-numeric:tabular-nums;font-weight:650}.split-demo .split-result p{font-size:.94rem;margin:.6rem 0 0}.split-demo #ride-2:checked~.riders-3,.split-demo #ride-3:checked~.riders-2{display:none}
@media(max-width:45rem){.sumory-atlas .split-demo{grid-template-columns:minmax(0,1fr);margin:1.65rem 0}.split-demo fieldset{padding:.75rem}}

/* Latin headlines use the Latin serif; CJK keeps Songti. */
.sumory-atlas[lang="en"] :is(h1,h2,h3),.sumory-atlas[lang="en"] .sa-next strong{font-family:var(--serif-latin);}
.sumory-atlas[lang="zh-Hans"] :is(h1,h2,h3){letter-spacing:.01em;font-weight:600;}
.sumory-atlas .sa-detail-cta{margin-top:1.45rem;}

/* Dark appearance: the collages keep their printed photos but sit on dimmer paper. */
@media (prefers-color-scheme:dark){
 .sumory-atlas .sa-art,.sumory-atlas .sa-book-image,.sumory-atlas .sa-art-scan,.sumory-atlas .sa-art-trend,.sumory-atlas .sa-art-cost,.sumory-atlas .sa-art-hero-reports,
 .sumory-atlas :is(.sa-art-activities,.sa-art-settlement,.sa-art-timeline,.sa-art-themes){background-color:var(--paper-3);}
 .sumory-atlas :is(.sa-art-hero-ledger,.sa-art-receipt,.sa-entry-ledger .sa-book-image){background-color:#2e2a22;}
 .sumory-atlas :is(.sa-art-hero-journal,.sa-art-photos,.sa-art-pinned){background-color:#263027;}
 .sumory-atlas .sa-art img{filter:brightness(.92);}
 .sumory-atlas .sa-arithmetic{background:var(--paper-2);border-color:var(--rule);}
 .sumory-atlas .sa-arithmetic dt{color:var(--ink-2);}
 .sumory-atlas .sa-footnotes{background:var(--paper-2);border-color:var(--rule);}
 .sumory-atlas .split-demo{background:var(--sage-soft);border-color:var(--rule);color:var(--ink);}
 .split-demo fieldset{background:var(--paper-2);border-color:var(--rule);}
 .split-demo label{border-color:var(--ink-3);}
 .split-demo input:checked+label{background:var(--rust);color:#1b1f1b;}
 .split-demo dl>div{border-bottom-color:var(--rule);}
}
.split-demo h2{color:inherit;}
