/* Digital Archive: shared site navigation, compact introduction, image-first content. */
.archive-page { margin:0; background:#fcfbf7; color:#173e33; font-family:var(--herbarium-font-body); }
.archive-page *, .archive-page *::before, .archive-page *::after { box-sizing:border-box; }
.archive-main { width:min(1600px,calc(100% - 96px)); margin:0 auto; padding:38px 0 64px; }
.archive-page .header .archive-search-toggle { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid #cbd4c2; border-radius:50%; background:transparent; color:#173e33; cursor:pointer; }
.archive-page .header .archive-search-toggle:hover,.archive-page .header .archive-search-toggle[aria-expanded="true"] { background:#e6ecdf; }
.archive-page .header .archive-search-toggle:focus-visible { outline:2px solid #a58140; outline-offset:3px; }
@media(max-width:991px) { .archive-page .header-inner > .archive-search-toggle { flex:0 0 40px; margin-left:auto; margin-right:8px; } }
.archive-search { position:absolute; z-index:1; top:calc(100% - 1px); right:48px; width:min(820px,calc(100% - 96px)); margin:0; padding:12px; border:1px solid #dde2d5; border-radius:0 0 14px 14px; background:#fcfbf7; box-shadow:0 12px 24px #173e3320; }
.archive-search[hidden] { display:none; }
.archive-search-field { display:flex; align-items:center; height:56px; overflow:hidden; border:1px solid rgba(70,111,100,.48); border-radius:999px; background:rgba(255,255,255,.55); box-shadow:0 7px 22px rgba(37,58,49,.035); }
.archive-search-field > i { flex-shrink:0; margin-left:22px; color:#16453c; font-size:18px; }
.archive-search-field input { flex:1; width:100%; min-width:0; height:100%; padding:0 16px; border:0; outline:none; background:transparent; color:#274a41; font:400 15px/1.4 var(--herbarium-font-body); }
.archive-search-field button { display:grid; place-items:center; flex:0 0 56px; width:56px; height:56px; padding:0; border:0; border-radius:50%; background:#064333; color:#fff; font:400 28px/1 var(--herbarium-font-body); cursor:pointer; }
.archive-search-field:focus-within { border-color:#315a44; box-shadow:0 0 0 3px #315a4418; }
.archive-search-field button:hover { background:#173e33; }
.archive-search-field button:focus-visible { outline:2px solid #a58140; outline-offset:-5px; }
.archive-layout { display:grid; grid-template-columns:minmax(0,1fr) 125px; align-items:start; gap:38px; }
.archive-content { min-width:0; }
#timeline { --archive-columns:5; --archive-image-height:260px; overflow-anchor:none; }
.archive-month-heading { display:flex; gap:18px; align-items:center; overflow:hidden; }
.archive-month-heading h2 { flex-shrink:0; margin:0; color:#173e33; font:600 29px/1.15 var(--herbarium-font-display); letter-spacing:-.015em; }
.archive-month-rule { height:1px; width:100%; background:#c8d1c0; }
.archive-row { display:grid; grid-template-columns:repeat(var(--archive-columns),minmax(0,1fr)); gap:16px; align-items:start; }
.archive-tile { display:block; width:100%; min-width:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#173e33; text-align:left; cursor:pointer; }
.archive-picture { display:flex; align-items:center; justify-content:center; flex-direction:column; width:100%; height:var(--archive-image-height); padding:10px; overflow:hidden; background:#f0efe8; transition:background-color .2s ease; }
.archive-picture img { display:block; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .22s ease,transform .25s ease; }
.archive-picture img.is-ready { opacity:1; }
.archive-tile:hover .archive-picture { background:#e4e9dd; }
.archive-tile:hover .archive-picture img { transform:scale(1.02); }
.archive-meta { display:block; padding:8px 0 0; }
.archive-meta strong { display:block; font:500 12px/1.4 var(--herbarium-font-body); }
.archive-meta em { display:block; margin-top:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 18px/1.3 var(--herbarium-font-display); }
.archive-time { position:sticky; top:110px; max-height:calc(100dvh - 134px); overflow-y:auto; padding:18px 0 16px 12px; scrollbar-width:thin; }
.archive-time-title { margin:0 0 22px; color:#173e33; font:500 11px/1.5 var(--herbarium-font-body); letter-spacing:.16em; }
.archive-time-year { position:relative; border-left:1px solid #bdc8b3; padding:0 0 22px 19px; }
.archive-time button { display:block; border:0; border-radius:0; background:transparent; color:#657062; text-align:left; cursor:pointer; }
.archive-year { position:relative; margin-left:-5px; padding:2px 5px; font:500 16px/1.5 var(--herbarium-font-body); }
.archive-year::before { content:''; position:absolute; left:-19px; top:10px; width:9px; height:9px; border:1px solid #80986d; border-radius:50%; background:#fcfbf7; }
.archive-time-year.is-active > .archive-year { color:#173e33; font-weight:600; }
.archive-time-year.is-active > .archive-year::before { background:#173e33; border-color:#173e33; }
.archive-year-months { display:none; padding-top:8px; }
.archive-time-year.is-active .archive-year-months { display:block; }
.archive-time .archive-time-month { padding:3px 10px; margin:3px 0 3px -5px; border-radius:16px; font:400 12px/1.5 var(--herbarium-font-body); }
.archive-time-month[aria-current="date"] { background:#e6ecdf; color:#173e33; }
.archive-time button:hover { color:#173e33; background:#eef1e7; }
.archive-time-error { color:#73796f; font:400 12px/1.6 var(--herbarium-font-body); }
.archive-mobile-time { display:none; }
.archive-more { display:flex; justify-content:center; margin-top:20px; }
.archive-more button { border:1px solid #aebda2; border-radius:999px; padding:11px 28px; background:transparent; color:#173e33; font:500 14px/1.5 var(--herbarium-font-body); cursor:pointer; }
.archive-more button:hover { background:#e6ecdf; }
.archive-more button:disabled { opacity:.6; cursor:wait; }
.archive-more button[hidden] { display:none; }
#archive-status { margin:12px 0; color:#73796f; font:400 13px/1.6 var(--herbarium-font-body); text-align:center; }
#archive-status:empty { display:none; }
.archive-loading { min-height:360px; }
.archive-skeleton { display:grid; grid-template-columns:repeat(var(--archive-columns),minmax(0,1fr)); gap:28px 16px; padding-top:78px; }
.archive-skeleton-picture { display:block; height:var(--archive-image-height); }
.archive-skeleton-caption { display:block; width:72%; height:14px; margin-top:14px; border-radius:3px; }
.is-loading { background:linear-gradient(100deg,#eeeee6 25%,#faf9f3 50%,#eeeee6 75%); background-size:200% 100%; animation:archive-shimmer 1.5s linear infinite; }
@keyframes archive-shimmer { to { background-position:-200% 0; } }
.archive-picture.image-failed,.archive-viewer-picture.image-failed { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; background:#f8e8c8; color:#916a32; font:400 12px/1.6 var(--herbarium-font-body); }
.image-failed i { font-size:25px; }
.archive-page :is(.archive-tile,.archive-time button,.archive-more button,.archive-mobile-time select):focus-visible { outline:2px solid #a58140; outline-offset:3px; }
.archive-viewer { width:min(1120px,94vw); max-width:94vw; max-height:92dvh; margin:auto; padding:0; border:0; background:#fcfbf7; color:#173e33; opacity:0; transform:translateY(14px) scale(.98); transition:opacity .22s ease,transform .26s cubic-bezier(.2,.7,.3,1); }
.archive-viewer.is-visible { opacity:1; transform:translateY(0) scale(1); }
.archive-viewer::backdrop { background:rgba(12,23,18,0); transition:background-color .22s ease; }
.archive-viewer.is-visible::backdrop { background:rgba(12,23,18,.88); }
.archive-viewer-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; }
.archive-viewer-picture { display:flex; align-items:center; justify-content:center; height:80dvh; min-height:450px; padding:24px; background:#eeefea; }
.archive-viewer-picture img { width:100%; height:100%; object-fit:contain; opacity:0; transform:scale(.985); transition:opacity .26s ease,transform .32s ease; }
.archive-viewer-picture img.is-ready { opacity:1; transform:scale(1); }
.archive-viewer-info { padding:76px 28px 30px; }
.archive-viewer-info > small { color:#8a713e; font:500 11px/1.5 var(--herbarium-font-body); letter-spacing:.12em; }
.archive-viewer-info h2 { margin:18px 0; font:500 30px/1.2 var(--herbarium-font-display); overflow-wrap:anywhere; }
.archive-viewer-info p { font:400 13px/1.7 var(--herbarium-font-body); }
.archive-viewer-info .archive-viewer-note { color:#73796f; font-size:12px; }
.archive-viewer-close { position:absolute; z-index:2; right:12px; top:10px; width:42px; height:42px; border:0; border-radius:50%; background:#fcfbf7; color:#173e33; font:400 30px/1 var(--herbarium-font-body); cursor:pointer; }
.archive-viewer-detail { display:inline-block; margin-top:24px; padding:11px 18px; border-radius:24px; background:#173e33; color:#fff; text-decoration:none; font:400 13px/1.5 var(--herbarium-font-body); }
.archive-viewer-controls { display:flex; align-items:center; gap:14px; margin-top:32px; }
.archive-viewer-controls button { border:1px solid #ccd2c4; border-radius:50%; width:42px; height:42px; color:#173e33; background:transparent; font:400 20px/1 var(--herbarium-font-body); cursor:pointer; }
.archive-viewer-controls button:disabled { opacity:.3; cursor:default; }
.archive-viewer :focus-visible { outline:2px solid #a58140; outline-offset:3px; }
@media(min-width:1600px) { #timeline { --archive-image-height:300px; } }
@media(max-width:1200px) { #timeline { --archive-columns:4; --archive-image-height:250px; }.archive-main { width:calc(100% - 64px); }.archive-layout { gap:28px; grid-template-columns:minmax(0,1fr) 108px; } }
@media(max-width:900px) { #timeline { --archive-columns:3; --archive-image-height:240px; }.archive-main { width:calc(100% - 40px); }.archive-layout { gap:20px; grid-template-columns:minmax(0,1fr) 88px; }.archive-time { padding-left:9px; }.archive-time-year { padding-left:13px; }.archive-year::before { left:-13px; } }
@media(max-width:600px) {
 .archive-search { right:20px; width:calc(100% - 40px); padding:9px; }
 #timeline { --archive-columns:2; --archive-image-height:220px; }
 .archive-main { padding-top:26px; }
 .archive-layout { display:block; }.archive-time { display:none; }.archive-mobile-time { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 4px; color:#657062; font-size:13px; }
 .archive-mobile-time select { max-width:70%; padding:8px 12px; border:1px solid #ccd2c4; border-radius:6px; background:#fffef9; color:#173e33; font:400 13px/1.5 var(--herbarium-font-body); }
 .archive-row { gap:12px; }.archive-month-heading h2 { font-size:26px; }.archive-meta em { font-size:17px; }.archive-picture { padding:8px; }
 .archive-viewer-layout { grid-template-columns:1fr; }.archive-viewer-picture { min-height:0; height:55dvh; padding:16px; }.archive-viewer-info { padding:24px; }.archive-viewer-info h2 { font-size:26px; }
}
@media(prefers-reduced-motion:reduce) { .archive-viewer,.archive-viewer::backdrop,.archive-viewer-picture img,.archive-picture,.archive-picture img { transition:none; transform:none; }.is-loading,.archive-loading { animation:none; } }
