/* Annual folios: warm paper, oatmeal binding, and immediate navigation.
   This layer changes only archive presentation; the existing records and flows stay intact. */
body.visual-system.collection-active[data-visual-page="archive"] .editorial{display:none}
body.visual-system.collection-active[data-visual-page="archive"] .layout{display:block;width:100%;max-width:1160px;box-sizing:border-box;margin:0 auto;padding:36px 32px 64px}
body.visual-system.collection-active[data-visual-page="archive"] #app{width:100%;min-width:0;min-height:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
body.visual-system.collection-active[data-visual-page="archive"] .collection-page{width:100%;max-width:1040px;box-sizing:border-box;margin:0 auto;padding:0}
body.visual-system.collection-active[data-visual-page="archive"] .collection-detail{max-width:800px}
.visual-system .collection-shelf-page .collection-heading{align-items:flex-start;gap:20px;margin:18px 0 24px}
.visual-system .collection-shelf-page .collection-heading h2{font-size:clamp(1.875rem,2.8vw,2.5rem);line-height:1.35;letter-spacing:.03em;margin-bottom:12px}
.visual-system .collection-shelf-page .collection-heading p:last-child{font-size:1rem;line-height:1.75}
.collection-shelf-page .collection-heading-actions{padding-top:4px}
.collection-shelf-page .collection-shelf-tools{margin:0 0 22px}
.collection-shelf-page .collection-shelf-tools p{letter-spacing:.03em}

/* A small paper folio keeps the year primary; its animal is an engraved annual mark. */
.visual-system .collection-bookshelf{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,11.25rem),1fr));
 align-items:start;gap:28px;width:100%;max-width:900px;padding:8px 4px 20px;margin:0 auto 20px;
 border:0;background:none;
}
.visual-system .collection-year-book{
 --folio-paper:#fcfaf5;--folio-oat:#e9e1d1;--folio-line:#e1dacb;--folio-gold:#a28a57;
 position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;
 justify-self:start;width:100%;max-width:12.5rem;min-width:0;min-height:0;height:auto;aspect-ratio:5/6;box-sizing:border-box;
 padding:20px 22px 25px;border:1px solid var(--folio-line);border-left:4px solid var(--folio-oat);border-radius:2px;
 color:var(--green);background:var(--folio-paper);background-image:none;text-decoration:none;overflow:visible;
 box-shadow:2px 3px 0 -1px #f7f4ee,3px 4px 0 -1px #ded6c6;
 transition:transform 220ms ease,box-shadow 220ms ease;
}
.visual-system .collection-year-book::before{content:"";position:absolute;pointer-events:none;left:7px;top:13px;bottom:13px;width:1px;background:#e0d8c8;border:0;border-radius:0;box-shadow:none;inset-inline-end:auto}
.visual-system .collection-year-book::after{content:none}
.visual-system .collection-year-book.is-current{border-color:#d2c7b0;border-left-color:#e4dac6;background:var(--folio-paper)}
.visual-system .collection-folio-top{display:flex;justify-content:flex-end;align-items:flex-start;width:100%}
.visual-system .collection-folio-zodiac{display:block;flex:0 0 2rem;width:2rem;height:2rem;min-width:0;min-height:0;border:0;border-radius:0;color:var(--folio-gold);background:none}
.visual-system .collection-folio-zodiac svg{display:block;width:100%;height:100%;overflow:visible}
.visual-system .collection-book-year{display:block;margin:0;writing-mode:horizontal-tb;text-orientation:mixed;transform:none;white-space:nowrap;font:400 2.5rem/1.2 Georgia,"Songti SC",serif;letter-spacing:.025em;text-shadow:none}
.visual-system .collection-year-book:focus-visible{outline:2px solid #718375;outline-offset:5px}
.visual-system .collection-year-book:active{transform:translateY(-1px)}
.visual-system .collection-undated{padding:18px 2px;border-color:#dcd8ca}
.visual-system .collection-undated small{margin-top:5px}

/* The album title leads; the existing filters remain fully available beneath it. */
.visual-system .collection-album-page .collection-heading{margin:12px 0 24px}
.visual-system .collection-album-page .collection-heading h2{letter-spacing:.03em}
.visual-system .collection-album-page .collection-timeline-tools{margin:0 0 12px;gap:16px}
.visual-system .collection-album-page .collection-timeline-tools label{flex:0 1 200px}
.visual-system .collection-album-page .collection-filter-count{margin-bottom:24px}
.visual-system .collection-album-page .collection-year{margin-top:0}
.collection-enter .collection-heading,.collection-enter .collection-grid,.collection-enter .collection-large{animation:collection-open 260ms ease-out both}
@keyframes collection-open{from{opacity:.55;transform:perspective(1200px) rotateY(-2deg) translateY(4px)}to{opacity:1;transform:none}}
.collection-enter .collection-grid,.collection-enter .collection-large{transform-origin:left center}
@media(hover:hover){.visual-system .collection-year-book:hover{transform:translateY(-2px);box-shadow:2px 4px 0 -1px #f7f4ee,3px 5px 0 -1px #d9d1c1}}
@media(min-width:1001px){.visual-system .collection-album-page .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}}
@media(min-width:721px) and (max-width:1000px){body.visual-system.collection-active[data-visual-page="archive"] .layout{padding:28px 24px 48px}}
@media(max-width:720px){
 body.visual-system.collection-active[data-visual-page="archive"] .layout{max-width:520px;padding:0}
 body.visual-system.collection-active[data-visual-page="archive"] .collection-page{padding:22px 22px 110px}
 .visual-system .collection-shelf-page .collection-heading{margin:18px 0 20px;gap:12px;flex-wrap:wrap}
 .visual-system .collection-shelf-page .collection-heading h2{font-size:1.875rem;margin-bottom:10px}
 .visual-system .collection-shelf-page .collection-heading p:last-child{font-size:.9375rem}
 .collection-shelf-page .collection-heading-actions{padding-top:0}
 .collection-shelf-page .collection-shelf-tools{margin-bottom:18px;gap:6px 16px}
 .visual-system .collection-bookshelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));gap:20px 16px;max-width:340px;padding:6px 3px 18px;margin-bottom:14px;background:none}
 .visual-system .collection-year-book{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;width:100%;max-width:none;height:auto;min-height:10.5rem;aspect-ratio:5/6;padding:16px 16px 20px;border-radius:2px;border-left-width:3px}
 .visual-system .collection-folio-zodiac{flex-basis:1.875rem;width:1.875rem;height:1.875rem}
 .visual-system .collection-book-year{flex:none;margin:0;transform:none;font-size:2rem;letter-spacing:.02em;text-align:left}
 .visual-system .collection-undated{gap:12px;padding:18px 2px}
 .visual-system .collection-album-page .collection-heading{gap:12px;flex-wrap:wrap}
 .visual-system .collection-album-page .collection-timeline-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .visual-system .collection-album-page .collection-timeline-tools label{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .visual-system .collection-year-book,.collection-enter .collection-heading,.collection-enter .collection-grid,.collection-enter .collection-large{animation:none;transition:none}
 .visual-system .collection-year-book:hover,.visual-system .collection-year-book:active{transform:none}
}

/* Let the date and the words already left by the owner lead the album. */
.visual-system .collection-shelf-page .collection-shelf-tools{justify-content:flex-end;margin-bottom:8px}
.visual-system .collection-record-types{display:flex;flex-wrap:wrap;gap:6px 28px;align-items:center;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #ded9cc}
.visual-system .collection-record-types button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:9px 0;background:none;border:0;border-bottom:1.5px solid transparent;border-radius:0;color:var(--sub);font:inherit;font-size:1rem;line-height:1.6;white-space:normal;text-align:left}
.visual-system .collection-record-types button.active{color:var(--green);border-bottom-color:var(--green)}
.visual-system .collection-kind-tools{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px;margin:0 0 18px}
.visual-system .collection-kind-tools .collection-filter-label{font-size:.875rem;line-height:1.7;color:var(--sub)}
.visual-system .collection-album-page .collection-kind-tools .collection-filters{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:0 20px;border:0;margin:0}
.visual-system .collection-album-page .collection-kind-tools .collection-filters button{flex:0 0 auto;padding:8px 0;min-height:44px;min-width:44px;border-bottom:0;font-size:.875rem;line-height:1.7}
.visual-system .collection-kind-tools .collection-filters button.active{color:var(--green);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.visual-system .collection-album-page .collection-timeline-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 24px;margin:0 0 28px}
.visual-system .collection-album-page .collection-timeline-tools label{flex:0 1 170px;max-width:100%;min-width:0;font-size:.8125rem}
.visual-system .collection-album-page .collection-timeline-tools button{grid-column:auto;min-height:44px;width:auto;max-width:100%;padding:8px 0;border:0;background:none;font-size:.9375rem;white-space:normal;text-align:left}
.visual-system .collection-record-types button:focus-visible{outline:2px solid #a38049;outline-offset:4px}
.visual-system .collection-album-page .collection-grid{align-items:start;row-gap:36px}
.visual-system .collection-card-image{padding:7px;border:1px solid #e1dccf;border-radius:2px;background:#fffdf8;box-shadow:0 1px 3px #352f2010}
.visual-system .collection-card-copy{padding:0 2px}
.visual-system .collection-page .collection-card strong{font-size:1.125rem;line-height:1.55;font-weight:400;margin:14px 0 5px;overflow-wrap:anywhere}
.visual-system .collection-page .collection-card .collection-card-date{font-size:.8125rem;line-height:1.8;color:var(--sub)}
.visual-system .collection-card-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.9375rem;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:9px 0 0}
.visual-system .collection-page .collection-card .collection-source{font-size:.8125rem;line-height:1.8;margin-top:9px;color:var(--sub)}
.visual-system .collection-page .collection-card .collection-source.is-ai{color:var(--green)}
@media(max-width:720px){
 .visual-system .collection-record-types{gap:4px 20px;padding-bottom:10px;margin-bottom:10px}
 .visual-system .collection-kind-tools{gap:0 16px;margin-bottom:14px}
 .visual-system .collection-album-page .collection-kind-tools .collection-filters{gap:0 16px}
 .visual-system .collection-album-page .collection-timeline-tools{gap:10px 20px;margin-bottom:24px}
 .visual-system .collection-card-image{padding:5px}
 .visual-system .collection-page .collection-card strong{font-size:1rem;margin-top:12px}
 .visual-system .collection-card-note{font-size:.875rem;line-height:1.9}
 .visual-system .collection-album-page .collection-grid{row-gap:30px}
}

.visual-system .collection-page .collection-account-link{min-width:44px}
