/* Perforated World: stamp-album design. Change the palette here. */
/* Use the same Georgia serif typography throughout the website. */


* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;


    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}
a {
    color: inherit;
    text-decoration: none;
}
button,input {
    font: inherit;
}
main {
    max-width: 1920px;
    min-height: 100vh;
    margin: auto;

}
.site-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 104px;
    padding: 8px clamp(12px,2vw,34px);
    border: 1px solid var(--line);


}
.brand {
    display: flex;
    flex-direction: column;

    font-size: clamp(27px,3vw,48px);
    line-height: .96;
    letter-spacing: .035em;
    white-space: nowrap;
}
.brand small {
    margin-top: 12px;
    text-align: center;
    font: 10px Arial,sans-serif;
    letter-spacing: .45em;
}
.postmark {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 83px;
    height: 83px;
    border: 3px double #82785e;
    border-radius: 50%;
    transform: rotate(-15deg);

    font: 10px Georgia, "Times New Roman", serif;
    text-align: center;
    letter-spacing: .2em;
}
.postmark::after {
    content: "──── ──── ────";
    position: absolute;
    left: 72px;
    top: 30px;
    width: 100px;
    font-size: 12px;
    letter-spacing: -1px;
    opacity: .55;
    pointer-events: none;
}
.postmark i {
    position: absolute;
    inset: 7px;
    border: 1px dotted #82785e;
    border-radius: 50%;
}
.header-quote {
    margin: 0 20px 0 auto;

    text-align: right;
    font-size: clamp(15px,1.7vw,24px);
    font-style: italic;
    line-height: 1.15;
}
.header-stamp {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 67px;
    height: 78px;
    margin: 0 4px;

    border: 7px solid #f7f0e1;
    outline: 1px solid #b6a587;
    box-shadow: 0 1px 4px #0002;
    color: #75694f;
    font-size: 35px;
}
.header-stamp span {
    position: absolute;
    bottom: 3px;
    font: 7px Arial,sans-serif;
    letter-spacing: .15em;
}
.intro {
    display: none;
}
.explorer-layout {
    display: grid;
    grid-template-columns: clamp(210px,19vw,290px) minmax(0,1fr);
    gap: 8px;
    margin-top: 8px;
    align-items: stretch;
}
.explorer-sidebar,.explorer-content {
    border: 1px solid var(--line);
    background: var(--sheet);
    box-shadow: var(--shadow);
}
.explorer-sidebar {
    position: sticky;
    top: 8px;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
}
.sidebar-menulink {
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 19px 18px;
    color: #fff8e7;
    font-size: clamp(16px,1vw,22px);
    text-align: center;
    line-height: 1;
}
.sidebar-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 19px 18px;


    font-size: clamp(23px,2vw,31px);
    line-height: 1;
}
.sidebar-label span {
    font-size: 31px;

}
.collection-tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    border: 0;
}
.collection-tabs>.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #d9ccb5;
    border-radius: 0;
    background: transparent;
    color: #28291f;
    text-align: left;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.collection-tabs>.nav-link::before {
    content: "📁";
    flex: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    filter: sepia(.5);
}
.collection-tabs>.nav-link:hover,.collection-tabs>.nav-link:focus-visible {
    background: #e8ddc6;
    color: var(--forest-dark);
}
.collection-tabs>.nav-link.active {
    border-radius: 5px;
    background: #e8dcc4;
    color: #222c20;
    box-shadow: inset 0 0 0 1px #c9b996;
}
.collection-tabs>.nav-link.active::before {
    filter: sepia(.8);
}
.folder-name {
    min-width: 0;
    flex: 1;
}
.collection-count {
    flex: none;
    margin-left: auto;

    font: 11px Arial,sans-serif;
}
.sidebar-note {
    margin-top: auto;
    padding: 27px 8px 22px;
    border-top: 1px solid var(--line);

    text-align: center;
    font-size: 17px;

    line-height: 1.75;
}
.sidebar-note span {
    display: block;
    margin-top: 10px;
    font-size: 34px;
    line-height: 1;
}
.explorer-content {
    min-width: 0;
    min-height: 72vh;
    padding: clamp(15px,2.2vw,36px);
}
.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 13px;
    border-bottom: 1px solid #b7a787;
}
.heading-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}
.collection-heading {
    margin: 0;

    font-size: clamp(29px,3vw,44px);
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.collection-heading::before {
    content: "▱";
    margin-right: 12px;

    font-size: .8em;
}
.collection-subtitle {
    margin: 0;

    font-size: 16px;
    font-style: italic;
    white-space: nowrap;
}
.gallery-search-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 1 225px;
    min-width: 140px;
    padding: 6px 11px;
    border: 1px solid #bdac90;
    border-radius: 4px;

}
.gallery-search-wrap span {
    font: 27px Arial,sans-serif;
    color: #675d48;
    line-height: 1;
}
.gallery-search {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}
.gallery-search::placeholder {
    color: #786e5e;
}
.gallery-search-wrap:focus-within {
    outline: 2px solid #927849;
    outline-offset: 2px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: clamp(17px,2.7vw,42px) clamp(11px,1.6vw,27px);
    align-items: start;
}
.gallery-item {
    min-width: 0;
    margin: 0;
    text-align: center;
}
.gallery-item[hidden] {
    display: none !important;
}
.gallery-item a {
    display: block;
    max-width: 270px;
    margin: auto;
    color: var(--ink);
    transition: transform .2s;
}
.gallery-item .gallery-static-product {
    display: block;
    width: 100%;
    max-width: 270px;
    margin: auto;
    color: var(--ink);
    cursor: default;
}
.gallery-item a:hover,.gallery-item a:focus-visible {
    transform: translateY(-4px);
}
.gallery-item a:focus-visible,.collection-tabs>.nav-link:focus-visible {
    outline: 2px solid #826c40;
    outline-offset: 4px;
}
.image-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4/4.65;


    clip-path: polygon(0% 0%,1.9% 0%,2.108% 0.673%,2.691% 1.212%,3.533% 1.511%,4.467% 1.511%,5.309% 1.212%,5.892% 0.673%,6.1% 0%,9.9% 0%,10.108% 0.673%,10.691% 1.212%,11.533% 1.511%,12.467% 1.511%,13.309% 1.212%,13.892% 0.673%,14.1% 0%,17.9% 0%,18.108% 0.673%,18.691% 1.212%,19.533% 1.511%,20.467% 1.511%,21.309% 1.212%,21.892% 0.673%,22.1% 0%,25.9% 0%,26.108% 0.673%,26.691% 1.212%,27.533% 1.511%,28.467% 1.511%,29.309% 1.212%,29.892% 0.673%,30.1% 0%,33.9% 0%,34.108% 0.673%,34.691% 1.212%,35.533% 1.511%,36.467% 1.511%,37.309% 1.212%,37.892% 0.673%,38.1% 0%,41.9% 0%,42.108% 0.673%,42.691% 1.212%,43.533% 1.511%,44.467% 1.511%,45.309% 1.212%,45.892% 0.673%,46.1% 0%,49.9% 0%,50.108% 0.673%,50.691% 1.212%,51.533% 1.511%,52.467% 1.511%,53.309% 1.212%,53.892% 0.673%,54.1% 0%,57.9% 0%,58.108% 0.673%,58.691% 1.212%,59.533% 1.511%,60.467% 1.511%,61.309% 1.212%,61.892% 0.673%,62.1% 0%,65.9% 0%,66.108% 0.673%,66.691% 1.212%,67.533% 1.511%,68.467% 1.511%,69.309% 1.212%,69.892% 0.673%,70.1% 0%,73.9% 0%,74.108% 0.673%,74.691% 1.212%,75.533% 1.511%,76.467% 1.511%,77.309% 1.212%,77.892% 0.673%,78.1% 0%,81.9% 0%,82.108% 0.673%,82.691% 1.212%,83.533% 1.511%,84.467% 1.511%,85.309% 1.212%,85.892% 0.673%,86.1% 0%,89.9% 0%,90.108% 0.673%,90.691% 1.212%,91.533% 1.511%,92.467% 1.511%,93.309% 1.212%,93.892% 0.673%,94.1% 0%,100% 0%,100% 1.9%,99.327% 2.108%,98.788% 2.691%,98.489% 3.533%,98.489% 4.467%,98.788% 5.309%,99.327% 5.892%,100% 6.1%,100% 9.9%,99.327% 10.108%,98.788% 10.691%,98.489% 11.533%,98.489% 12.467%,98.788% 13.309%,99.327% 13.892%,100% 14.1%,100% 17.9%,99.327% 18.108%,98.788% 18.691%,98.489% 19.533%,98.489% 20.467%,98.788% 21.309%,99.327% 21.892%,100% 22.1%,100% 25.9%,99.327% 26.108%,98.788% 26.691%,98.489% 27.533%,98.489% 28.467%,98.788% 29.309%,99.327% 29.892%,100% 30.1%,100% 33.9%,99.327% 34.108%,98.788% 34.691%,98.489% 35.533%,98.489% 36.467%,98.788% 37.309%,99.327% 37.892%,100% 38.1%,100% 41.9%,99.327% 42.108%,98.788% 42.691%,98.489% 43.533%,98.489% 44.467%,98.788% 45.309%,99.327% 45.892%,100% 46.1%,100% 49.9%,99.327% 50.108%,98.788% 50.691%,98.489% 51.533%,98.489% 52.467%,98.788% 53.309%,99.327% 53.892%,100% 54.1%,100% 57.9%,99.327% 58.108%,98.788% 58.691%,98.489% 59.533%,98.489% 60.467%,98.788% 61.309%,99.327% 61.892%,100% 62.1%,100% 65.9%,99.327% 66.108%,98.788% 66.691%,98.489% 67.533%,98.489% 68.467%,98.788% 69.309%,99.327% 69.892%,100% 70.1%,100% 73.9%,99.327% 74.108%,98.788% 74.691%,98.489% 75.533%,98.489% 76.467%,98.788% 77.309%,99.327% 77.892%,100% 78.1%,100% 81.9%,99.327% 82.108%,98.788% 82.691%,98.489% 83.533%,98.489% 84.467%,98.788% 85.309%,99.327% 85.892%,100% 86.1%,100% 89.9%,99.327% 90.108%,98.788% 90.691%,98.489% 91.533%,98.489% 92.467%,98.788% 93.309%,99.327% 93.892%,100% 94.1%,100% 100%,98.1% 100%,97.892% 99.327%,97.309% 98.788%,96.467% 98.489%,95.533% 98.489%,94.691% 98.788%,94.108% 99.327%,93.9% 100%,90.1% 100%,89.892% 99.327%,89.309% 98.788%,88.467% 98.489%,87.533% 98.489%,86.691% 98.788%,86.108% 99.327%,85.9% 100%,82.1% 100%,81.892% 99.327%,81.309% 98.788%,80.467% 98.489%,79.533% 98.489%,78.691% 98.788%,78.108% 99.327%,77.9% 100%,74.1% 100%,73.892% 99.327%,73.309% 98.788%,72.467% 98.489%,71.533% 98.489%,70.691% 98.788%,70.108% 99.327%,69.9% 100%,66.1% 100%,65.892% 99.327%,65.309% 98.788%,64.467% 98.489%,63.533% 98.489%,62.691% 98.788%,62.108% 99.327%,61.9% 100%,58.1% 100%,57.892% 99.327%,57.309% 98.788%,56.467% 98.489%,55.533% 98.489%,54.691% 98.788%,54.108% 99.327%,53.9% 100%,50.1% 100%,49.892% 99.327%,49.309% 98.788%,48.467% 98.489%,47.533% 98.489%,46.691% 98.788%,46.108% 99.327%,45.9% 100%,42.1% 100%,41.892% 99.327%,41.309% 98.788%,40.467% 98.489%,39.533% 98.489%,38.691% 98.788%,38.108% 99.327%,37.9% 100%,34.1% 100%,33.892% 99.327%,33.309% 98.788%,32.467% 98.489%,31.533% 98.489%,30.691% 98.788%,30.108% 99.327%,29.9% 100%,26.1% 100%,25.892% 99.327%,25.309% 98.788%,24.467% 98.489%,23.533% 98.489%,22.691% 98.788%,22.108% 99.327%,21.9% 100%,18.1% 100%,17.892% 99.327%,17.309% 98.788%,16.467% 98.489%,15.533% 98.489%,14.691% 98.788%,14.108% 99.327%,13.9% 100%,10.1% 100%,9.892% 99.327%,9.309% 98.788%,8.467% 98.489%,7.533% 98.489%,6.691% 98.788%,6.108% 99.327%,5.9% 100%,0% 100%,0% 98.1%,0.673% 97.892%,1.212% 97.309%,1.511% 96.467%,1.511% 95.533%,1.212% 94.691%,0.673% 94.108%,0% 93.9%,0% 90.1%,0.673% 89.892%,1.212% 89.309%,1.511% 88.467%,1.511% 87.533%,1.212% 86.691%,0.673% 86.108%,0% 85.9%,0% 82.1%,0.673% 81.892%,1.212% 81.309%,1.511% 80.467%,1.511% 79.533%,1.212% 78.691%,0.673% 78.108%,0% 77.9%,0% 74.1%,0.673% 73.892%,1.212% 73.309%,1.511% 72.467%,1.511% 71.533%,1.212% 70.691%,0.673% 70.108%,0% 69.9%,0% 66.1%,0.673% 65.892%,1.212% 65.309%,1.511% 64.467%,1.511% 63.533%,1.212% 62.691%,0.673% 62.108%,0% 61.9%,0% 58.1%,0.673% 57.892%,1.212% 57.309%,1.511% 56.467%,1.511% 55.533%,1.212% 54.691%,0.673% 54.108%,0% 53.9%,0% 50.1%,0.673% 49.892%,1.212% 49.309%,1.511% 48.467%,1.511% 47.533%,1.212% 46.691%,0.673% 46.108%,0% 45.9%,0% 42.1%,0.673% 41.892%,1.212% 41.309%,1.511% 40.467%,1.511% 39.533%,1.212% 38.691%,0.673% 38.108%,0% 37.9%,0% 34.1%,0.673% 33.892%,1.212% 33.309%,1.511% 32.467%,1.511% 31.533%,1.212% 30.691%,0.673% 30.108%,0% 29.9%,0% 26.1%,0.673% 25.892%,1.212% 25.309%,1.511% 24.467%,1.511% 23.533%,1.212% 22.691%,0.673% 22.108%,0% 21.9%,0% 18.1%,0.673% 17.892%,1.212% 17.309%,1.511% 16.467%,1.511% 15.533%,1.212% 14.691%,0.673% 14.108%,0% 13.9%,0% 10.1%,0.673% 9.892%,1.212% 9.309%,1.511% 8.467%,1.511% 7.533%,1.212% 6.691%,0.673% 6.108%,0% 5.9%,0% 0%);
}
.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    border: 1px solid #a99a7f;
    transition: transform .25s;
}
.gallery-item a:hover img {
    transform: scale(1.025);
}
figcaption {
    margin-top: 8px;
    font-size: clamp(13px,1.15vw,17px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
figcaption .index {
    display: none;
}
.search-empty,.collection-empty {
    padding: 35px 0;
    color: var(--muted);
    font-style: italic;
}
.search-empty[hidden] {
    display: none;
}
.empty-state {
    padding: 45px;
    border: 1px solid var(--line);
    background: var(--sheet);
}
.empty-mark {
    display: none;
}
.empty-state h2 {
    color: var(--forest);
    font-size: 35px;
}
.empty-state p {
    color: var(--muted);
}
.captcha-widget {
    margin-top: 15px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 17px 28px;
    border: 1px solid var(--line);


    font-size: 17px;
    font-style: italic;
}
footer p {
    margin: 0;
}
footer a {
    font: 10px Arial,sans-serif;
    letter-spacing: .13em;
}
.gallery-modal-content {
    border: 1px solid var(--gold);
    border-radius: 2px;

    color: var(--ink);
}
.gallery-modal-content .modal-header {
    border-bottom: 1px solid var(--line);
}
.gallery-modal-content .modal-title {
    font-family: Georgia, "Times New Roman", serif;
}
.gallery-modal-content .modal-body {
    padding: 18px;
}
.gallery-preview-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: auto;
    object-fit: contain;
}
@media (max-width:1350px) {
    .gallery {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}
@media (max-width:1050px) {
    .gallery {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .explorer-layout {
        grid-template-columns: 210px minmax(0,1fr);
    }
    .header-stamp {
        display: none;
    }
}
@media (max-width:760px) {
    .site-header {
        min-height: 85px;
    }
    .postmark {
        width: 55px;
        height: 55px;
        font-size: 7px;
    }
    .postmark::after {
        display: none;
    }
    .brand {
        font-size: 26px;
    }
    .brand small {
        font-size: 7px;
    }
    .header-quote {
        display: none;
    }
    .explorer-layout {
        grid-template-columns: 155px minmax(0,1fr);
    }
    .sidebar-label {
        padding: 14px 9px;
        font-size: 23px;
    }
    .collection-tabs {
        padding: 6px;
    }
    .collection-tabs>.nav-link {
        gap: 5px;
        padding: 10px 5px;
        font-size: 16px;
    }
    .collection-tabs>.nav-link::before {
        font-size: 15px;
    }
    .collection-count {
        font-size: 9px;
    }
    .sidebar-note {
        font-size: 11px;
    }
    .explorer-content {
        padding: 12px;
    }
    .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 17px 9px;
    }
    .collection-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .gallery-search-wrap {
        flex: auto;
        width: 100%;
    }
}
@media (max-width:430px) {
    main {
        padding: 5px;
    }
    .site-header {
        gap: 8px;
        padding: 8px;
    }
    .postmark {
        display: none;
    }
    .brand {
        font-size: 25px;
    }
    .explorer-layout {
        grid-template-columns: 105px minmax(0,1fr);
        gap: 4px;
    }
    .sidebar-label {
        font-size: 18px;
        padding: 12px 5px;
    }
    .sidebar-label span {
        display: none;
    }
    .collection-tabs>.nav-link {
        font-size: 13px;
    }
    .collection-tabs>.nav-link::before {
        display: none;
    }
    .collection-count {
        display: none;
    }
    .sidebar-note {
        font-size: 9px;
        letter-spacing: .1em;
    }
    .explorer-content {
        padding: 8px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .image-frame {
        max-width: 210px;
        margin: auto;
    }
    .collection-heading {
        font-size: 27px;
    }
    footer {
        padding: 12px;
        font-size: 13px;
    }
    footer a {
        display: none;
    }
}
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*::before,*::after {
        transition: none !important;
    }
}
/* Raised stamp-paper shadow: apply to the unclipped link, not the clipped frame.
   A filter on .image-frame itself is clipped away by its clip-path. */


/* Fine, shallow, rounded stamp perforations. The shadow belongs on the
   unclipped link so it follows the cut-paper silhouette. */
.image-frame {
    padding: clamp(7px, .85vw, 12px);

}


/* 2026 stamp-album palette — inspired by the approved reference artwork.
   Keep this section together for straightforward future colour adjustments. */
:root {
    --paper: #eae2cf;
    --sheet: #fbf6e9;
    --ink: #292b24;
    --forest: #203d30;
    --forest-dark: #193528;
    --gold: #a58b5d;
    --muted: #746b59;
    --line: #c9bda4;
    --shadow: 0 3px 15px rgba(53, 42, 24, .13);
}

.site-header {
    background: linear-gradient(115deg, #fcf8eb, #f3ead7);
    border-color: #c9bda3;
    box-shadow: inset 0 0 0 5px #f9f3e5, inset 0 0 0 6px #d3c7af, 0 2px 9px #342c1a12;
}
.brand {
    color: #1e3a2d;
}
.postmark {
    color: #84765a;
    border-color: #98896b;
}
.postmark i {
    border-color: #98896b;
}
.header-quote {
    color: #665c49;
}
.header-stamp {
    background: #d9d0b5;
    border-color: #fff9ea;
    outline-color: #ad9b7c;
}
.explorer-sidebar {
    background: linear-gradient(160deg, #294737, #1d382c 76%);
    border-color: #243a2d;
    color: #f8f0db;
    box-shadow: 2px 3px 12px #332b1b23;
}
.sidebar-label {
    background: #203b2e;
    color: #fff9e9;
    border-bottom: 1px solid rgba(236, 221, 182, .24);
}
.sidebar-label span {
    color: #dfc998;
}
.collection-tabs {
    padding: 12px 11px 18px;
}
.collection-tabs > .nav-link {
    color: #f2e9d5;
    border-bottom: 1px solid rgba(235, 219, 179, .18);
    border-radius: 4px;
    padding: 12px 11px;
}
.collection-tabs > .nav-link::before {
    filter: sepia(.6) brightness(1.2);
}
.collection-tabs > .nav-link:hover,
.collection-tabs > .nav-link:focus-visible {
    background: rgba(248, 239, 213, .14);
    color: #fff9eb;
}
.collection-tabs > .nav-link.active {
    background: #eee2c6;
    color: #25392c;
    border-bottom-color: #d5c49e;
    box-shadow: inset 0 0 0 1px #fdf6e5, 0 2px 5px #111e1740;
}
.collection-count {
    color: #d4c5a6;
}
.collection-tabs > .nav-link.active .collection-count {
    color: #756c56;
}
.sidebar-note {
    border-top-color: rgba(235, 219, 179, .23);
    color: #e7d6b4;
    font-style: italic;
    letter-spacing: .12em;
}
.explorer-content {
    background: radial-gradient(ellipse at 50% 5%, #fffaf0 0%, transparent 85%), var(--sheet);
    border-color: #cdbfa5;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .22), var(--shadow);
}
.collection-toolbar {
    border-bottom-color: #c2b394;
}
.collection-heading {
    color: #203b2e;
}
.collection-heading::before {
    color: #a38b5d;
}
.collection-subtitle {
    color: #736853;
}
.gallery-search-wrap {
    background: #fffdf5;
    border-color: #c6b79a;
}
.gallery-search-wrap:focus-within {
    outline-color: #987d4c;
}
.image-frame {
    background: #fffaf0;
}
.image-frame img {
    border-color: #b7a78c;
    background: #f5eddb;
}
.gallery-item a {
    filter: drop-shadow(0 1px 1px rgba(51, 39, 21, .32))
            drop-shadow(1px 3px 3px rgba(51, 39, 21, .20));
}
.gallery-item a:hover, .gallery-item a:focus-visible {
    filter: drop-shadow(0 2px 2px rgba(51, 39, 21, .35))
            drop-shadow(2px 6px 5px rgba(51, 39, 21, .23));
}
footer {
    background: #f6eedc;
    border-color: #cbbd9f;
    color: #74654c;
}
.gallery-modal-content {
    background: #fbf6e9;
    border-color: #ad9363;
}
.gallery-modal-content .modal-header {
    background: #f4ead5;
}
/* Archival specimen viewer — scoped to the Bootstrap image modal. */
.archive-preview {
    --archive-forest: #203c2e;
    --archive-gold: #ad9464;
    --archive-ink: #283b30;
}
.archive-preview .modal-dialog {
    max-width: min(1100px, calc(100vw - 28px));
    margin: 1rem auto;
}
.archive-preview .gallery-modal-content {
    overflow: hidden;
    border: 1px solid #b59c6c;
    border-radius: 5px;
    color: var(--archive-ink);
    background: #f9f2e3;
    box-shadow: 0 25px 90px #101d16a8, inset 0 0 0 5px #fdf9ee, inset 0 0 0 6px #d6c7a9;
}

.archive-preview .archive-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 30px 17px;
    border-bottom: 1px solid #cbb996;
    background: linear-gradient(110deg,#f7eedb,#fffaf0 55%,#f0e3c8);
}
.archive-modal-heading {
    min-width: 0;
}
.archive-modal-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #89754f;
    font: 10px/1.3 Arial,sans-serif;
    letter-spacing: .25em;
}
.archive-preview .modal-title {
    overflow-wrap: anywhere;
    font: normal clamp(23px,3vw,36px)/1.12 Georgia, "Times New Roman", serif;
    color: var(--archive-forest);
}
.archive-modal-close {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 53px;
    width: 53px;
    height: 53px;
    margin-left: auto;
    border: 1px solid #a9946e;
    border-radius: 50%;
    background: #fffaf0;
    color: var(--archive-forest);
    cursor: pointer;
    transition: background .2s,transform .2s;
}
.archive-modal-close span {
    font: 32px/27px Georgia, "Times New Roman", serif;
}
.archive-modal-close small {
    font: 8px/1.4 Arial,sans-serif;
    letter-spacing: .13em;
}
.archive-modal-close:hover,.archive-modal-close:focus-visible {
    background: #e9ddc4;
    transform: rotate(8deg);
    outline-offset: 3px;
}
.archive-preview .archive-modal-body {
    padding: clamp(18px,3vw,34px);
    background: radial-gradient(ellipse at 50% 25%,#fffdf6 0%,#f5ecd9 82%);
}
.archive-preview-mat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(44vh,360px);
    padding: clamp(14px,3vw,30px);
    border: 1px solid #cdbb98;
    background: var(--product-preview-colour, #eae0ca);
    box-shadow: inset 0 0 0 6px #f5ecda, inset 0 0 0 7px #cbb996, inset 0 4px 22px #59482b1c;
}
.archive-preview .gallery-preview-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    box-shadow: none;
}
.archive-preview-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 17px;
    color: #77664b;
    text-align: center;
    font: italic 16px/1.4 Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}
.archive-caption-ornament {
    color: #aa9162;
}
.archive-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 30px 19px;
    border-top: 1px solid #cbb996;
    color: #82714f;
    font: 10px/1.5 Arial,sans-serif;
    letter-spacing: .17em;
}
.archive-modal-footer a {
    color: var(--archive-forest);
    text-decoration: none;
    border-bottom: 1px solid #a58b5a;
    padding-bottom: 3px;
}
.archive-modal-footer a:hover,.archive-modal-footer a:focus-visible {
    color: #8c6630;
    border-color: currentColor;
}
@media (max-width: 600px) {
    .archive-preview .archive-modal-header {
        padding: 16px;
    }
    .archive-preview .archive-modal-body {
        padding: 14px;
    }
    .archive-preview-mat {
        min-height: 180px;
        padding: 12px;
    }
    .archive-preview .gallery-preview-image {
        max-height: 48vh;
    }
    .archive-modal-footer {
        padding: 14px 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .archive-modal-close {
        transition: none;
    }
}
/* Minimal collection header: compact, left-aligned title and discreet image count. */
.explorer-content .collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 0 13px;
    border-bottom: 1px solid #c2b394;
}
.explorer-content .heading-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-width: 0;
}
.explorer-content .collection-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(23px,2.1vw,32px);
    font-weight: 500;
    line-height: 1.25;
    color: #203b2e;
}
.explorer-content .collection-heading::before {
    content: none;
}
.explorer-content .collection-folder-icon {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1;


    flex-shrink: 0;
}
.explorer-content .collection-subtitle {
    margin: 0;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    color: #736853;
}
@media (max-width:760px) {
    .explorer-content .collection-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .explorer-content .gallery-search-wrap {
        width: 100%;
        flex: auto;
    }
}
@media (max-width:430px) {
    .explorer-content .collection-heading {
        font-size: 22px;
    }
    .explorer-content .collection-folder-icon {
        font-size: 19px;
    }
}
/* Clear, scalable folder icon in the compact collection heading. */
.explorer-content .collection-folder-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    color: #a38b5d;
    vertical-align: middle;
    transform: none;
}
@media (max-width:430px) {
    .explorer-content .collection-folder-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }
}
/* Keep the archive typography consistent across headings and preview labels. */
.archive-preview .modal-title, .gallery-modal-content .modal-title, .archive-modal-eyebrow, .archive-modal-close span, .archive-modal-close small, .archive-preview-caption, .collection-count, .brand small {
    font-family: Georgia, "Times New Roman", serif;
}

/* Multiple-image product preview. */
.archive-preview-thumbnails:not([hidden]) { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 14px 12px 4px; }
.archive-preview-thumbnails[hidden] { display: none !important; }
.archive-preview-thumb { width: 70px; height: 70px; padding: 4px; border: 2px solid transparent; border-radius: 8px; background: var(--product-preview-colour, #eae0ca); cursor: pointer; }
.archive-preview-thumb[aria-pressed="true"] { border-color: #2764b2; box-shadow: 0 0 0 2px rgba(39,100,178,.16); }
.archive-preview-thumb:focus-visible { outline: 3px solid #2764b2; outline-offset: 2px; }
.archive-preview-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Mouse-only 2x detail lens, scoped to the product preview. */
.archive-preview-mat { position: relative; }
.archive-preview .gallery-preview-image { cursor: crosshair; }
.archive-preview-zoom {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: min(42%, 260px);
    aspect-ratio: 1;
    border: 3px solid #fffdf6;
    border-radius: 8px;
    background-color: var(--product-preview-colour, #eae0ca);
    background-repeat: no-repeat;
    box-shadow: 0 6px 28px #30271e66;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease, visibility 120ms ease;
}
.archive-preview-zoom.is-visible { opacity: 1; visibility: visible; }
.archive-zoom-hint {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 20px;
    background: #fffdf6e8;
    color: #554a38;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
    .archive-preview-zoom, .archive-zoom-hint { display: none; }
    .archive-preview .gallery-preview-image { cursor: auto; }
}
@media (max-width: 560px) { .archive-preview-zoom { width: 46%; } }

/* Two-column product details: image and thumbnails on the left, metadata on the right. */
.archive-preview .archive-modal-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 42px);
}
.archive-preview-media { min-width: 0; }
.archive-preview .archive-preview-thumbnails {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.archive-preview-details {
    min-width: 0;
    padding: 8px 0;
    color: #3f382e;
}
.archive-details-title {
    margin: 0 0 25px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.archive-details-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.archive-details-list > div {
    grid-column: 1 / -1;
    padding: 14px 0;
    border-top: 1px solid #d5c8b2;
}
.archive-details-list > div.archive-details-half { grid-column: auto; min-width: 0; }
.archive-details-list dt {
    margin-bottom: 7px;
    color: #77674f;
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.archive-details-list dd {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.archive-details-description { white-space: pre-wrap; }
@media (max-width: 760px) {
    .archive-preview .archive-modal-columns { grid-template-columns: minmax(0, 1fr); }
    .archive-preview-details { padding: 0; }
}

/* Gallery card owner attribution */
.gallery-item figcaption .gallery-owner {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75em;
    font-variant: small-caps;
    letter-spacing: 0.055em;
    color: var(--muted);
}

/* Database-driven collection-type navigation */
.type-navigation {  flex-wrap: wrap; align-items: center;     }
.type-navigation-link { display: inline-block;  border: 1px solid transparent;  color: #3d493e; font-weight: 650; text-decoration: none; }
.type-navigation-link:hover, .type-navigation-link:focus-visible { color: #214c39; border-color: #b9c8b8; background: #eef2ea; text-decoration: none; }


/* Museum-inspired introduction pages: local subject photographs, legible copy. */
.type-navigation {  border-bottom-color: #e8e1d9; }
.type-navigation-link { border-radius: 0; }
.type-navigation-link.is-active {  background: transparent; border-color: transparent;  }
.type-intro-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;








}
.type-intro-page::before {
    content: "";
    position: absolute;

    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    pointer-events: none;
}
.type-intro-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;
}
.type-intro-eyebrow { color: #9b4b51; font-size: .76rem; font-weight: 750; letter-spacing: .15em; }
.type-intro-page h2 {   font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.16;  }
.type-intro-page > p:not(.type-intro-eyebrow) {  font-size: 1.04rem; line-height: 1.8;  }
.type-intro-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 13px 21px;   color: #fff; font-weight: 700; text-decoration: none; }
.type-intro-action:hover, .type-intro-action:focus-visible { background: #70232e; color: #fff; }
.type-intro-postage-stamps::before { background-image: url("../images/postage-stamps-collage-full.jpg?v=20261018-background-refresh"); }
.type-intro-first-day-covers::before { background-image: url("../images/first-day-covers-photo.jpg"); }
.type-intro-philatelic-literature::before { background-image: url("../images/philatelic-literature-photo.jpg"); }
.type-intro-postal-history::before { background-image: url("../images/postal-history-photo.jpg"); }
.type-intro-postcards::before { background-image: url("../images/postcards-photo.jpg"); }
.type-intro-revenue-stamps::before { background-image: url("../images/revenue-stamps-photo.jpg"); }
.type-intro-stamp-club::before { background-image: url("../images/stamp-club-collectors.jpg"); background-size: min(48vw, 680px) auto; background-position: 88% 50%; background-repeat: no-repeat; }
.type-intro-general-philately::before { background-image: url("../images/postage-stamps-photo.jpg"); }
@media (max-width: 680px) {
    .type-intro-page { width: calc(100% - 24px); padding: 28px 22px; }
    .type-intro-page::before { inset: 30% 0 0 0; opacity: .18; }
    .type-intro-page::after { background: linear-gradient(180deg, #fcfaf7 0%, rgb(252 250 247 / 96%) 48%, rgb(252 250 247 / 78%) 100%); }
}

/* Thematic and topical introductions: local artwork cropped from the approved preview. */
.type-intro-thematic-stamps::before { background-image: url("../images/thematic-stamps-photo.jpg"); }
.type-intro-topical-stamps::before { background-image: url("../images/topical-stamps-photo.jpg"); }

/* The Perforated World — editorial header and collection landing pages. */
body { background: #faf7f2; color: #192330; }
main { padding: 0; }
.perforated-header { min-height: 105px; padding: 15px clamp(18px, 3vw, 55px); background: #fffdfa; border: 0; border-bottom: 1px solid #e8e0da; box-shadow: none; display: flex; justify-content: space-between; gap: 24px; }
.perforated-brand { display: inline-flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: #182331; }
.perforated-brand:hover { color: #963340; }
.perforated-logo { flex: none; width: clamp(58px, 5.5vw, 72px); height: auto; object-fit: contain; }
.perforated-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.perforated-brand-copy strong { font: 500 clamp(24px, 3.2vw, 46px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.perforated-brand-copy small { margin-top: 8px; font: 10px/1.4 Arial, sans-serif; letter-spacing: .32em; color: #8b5e55; }
.perforated-account { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; font-size: 14px; }
.perforated-account a { white-space: nowrap; }
.perforated-account form { display: inline-flex; }
.perforated-account button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.type-navigation { display: flex; justify-content: center; gap: clamp(4px, 1.5vw, 22px); padding: 0 clamp(12px, 2vw, 35px); background: #fff; border-bottom: 1px solid #e7dfda; overflow-x: auto; }
.type-navigation-link { flex: none; padding: 17px 10px; font: 15px/1.25 Georgia, "Times New Roman", serif; white-space: nowrap; }
.type-navigation-link.is-active { color: #963340; border-bottom: 3px solid #963340; }
.type-intro-page { width: 100%; min-height: clamp(440px, 38vw, 560px); margin: 0; padding: clamp(38px, 5vw, 75px) clamp(22px, 5vw, 75px); border: 0; border-radius: 0; box-shadow: none; background: #fffdfa; }
.type-intro-page::before { inset: 0 0 0 35%; opacity: .30; }
.type-intro-page::after { background: linear-gradient(90deg, #fffdfa 0%, #fffdfa 22%, rgb(255 253 250 / 94%) 38%, rgb(255 253 250 / 45%) 62%, transparent 100%); }
.type-intro-eyebrow, .perforated-section-eyebrow { font: 11px/1.5 Arial, sans-serif; letter-spacing: .25em; color: #815f56; }
.type-intro-page .perforated-intro-title { max-width: 720px; margin: 14px 0 8px; font: 500 clamp(42px, 6vw, 78px)/1.05 Georgia, "Times New Roman", serif; color: #172130; }
.type-intro-page h2 { max-width: 660px; margin: 10px 0 24px; color: #963340; font: 500 clamp(23px, 2.7vw, 34px)/1.25 Georgia, "Times New Roman", serif; }
.type-intro-page > p:not(.type-intro-eyebrow) { max-width: 570px; font: 17px/1.7 Georgia, "Times New Roman", serif; color: #27313b; }
.type-intro-action { background: #963340; border-radius: 4px; font: 16px Georgia, "Times New Roman", serif; }
.perforated-discover { padding: 34px clamp(20px, 3vw, 48px) 65px; background: #fffdfa; border-top: 1px solid #eee6df; }
.perforated-discover h2 { margin: 4px 0 20px; font: 500 clamp(27px, 3vw, 39px)/1.2 Georgia, "Times New Roman", serif; color: #172130; }
.perforated-type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 12px; }
.perforated-type-card { display: block; min-width: 0; overflow: hidden; border: 1px solid #e9e1dc; border-radius: 4px; background: white; box-shadow: 0 2px 7px #0000000c; color: #182331; }
.perforated-type-card:hover, .perforated-type-card:focus-visible { color: #963340; box-shadow: 0 5px 16px #00000018; }
.perforated-type-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.perforated-type-card > span { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font: 14px/1.35 Georgia, "Times New Roman", serif; }
.perforated-type-card > span > span { color: #963340; font-size: 19px; }
@media (max-width: 700px) { .perforated-header { flex-wrap: wrap; } .perforated-account { width: 100%; justify-content: flex-start; } .perforated-brand-copy small { letter-spacing: .15em; } .type-intro-page::before { inset: 25% 0 0 0; opacity: .19; } .type-intro-page::after { background: linear-gradient(180deg, #fffdfa 0%, rgb(255 253 250 / 97%) 55%, rgb(255 253 250 / 55%) 100%); } .perforated-type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shared typography for the public gallery, account pages and administration. */
:root { --archive-font-body: Georgia, "Times New Roman", serif; --archive-font-heading: Georgia, "Times New Roman", serif; }
body, button, input, select, textarea, .btn, .form-control, .form-select, .modal, .dropdown-menu { font-family: var(--archive-font-body); }
h1, h2, h3, .collection-heading, .classic-title h2, .type-intro-page h2 { font-family: var(--archive-font-heading); }
.perforated-brand-copy strong, .classic-brand strong { font-family: var(--archive-font-heading); }

/* Collection type editor: compact and contained within its table row. */
#collection-type-table .type-row-actions { white-space: nowrap; vertical-align: middle; }
#collection-type-table .type-row-actions > button, #collection-type-table .type-row-actions > form { display: inline-flex; vertical-align: middle; margin: 0 .25rem 0 0; }
#collection-type-table .type-edit-row > td { padding: .75rem; }
#collection-type-table .type-inline-editor { margin: 0; max-width: none; }
#collection-type-table .type-inline-editor form { display: grid; gap: .4rem; }
#collection-type-table .type-inline-editor label { margin: .35rem 0 0; }
#collection-type-table .type-inline-editor input, #collection-type-table .type-inline-editor select { width: 100%; box-sizing: border-box; }
#collection-type-table .type-inline-editor .admin-compact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .65rem; }
#collection-type-table .type-edit-row[hidden] { display: none !important; }

/* Collection descriptions: compact, readable table preview. */
:is(#collection-table, #stamp-club-table) .collection-description-preview { max-width: 24rem; min-width: 10rem; overflow-wrap: anywhere; white-space: normal; vertical-align: middle; }

/* Account navigation: clearly separated actions and a consistent logout control. */
.perforated-account .account-link-separator { display: inline-block; width: 1px; height: 20px; flex: 0 0 1px; background: #b7aa93; opacity: .9; }
.perforated-account .account-logout-form { margin: 0; padding: 0; display: inline-flex; align-items: center; }
.perforated-account .account-logout-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 15px; border: 1px solid #244c3b; border-radius: 5px; background: #244c3b; color: #fffdf6; font: 13px/1.3 Georgia, "Times New Roman", serif; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.perforated-account .account-logout-button:hover { background: #173728; border-color: #173728; color: #fff; }
.perforated-account .account-logout-button:focus-visible { outline: 2px solid #8da597; outline-offset: 3px; }
@media (max-width: 480px) { .perforated-account { gap: 8px; } .perforated-account .account-logout-button { padding: 7px 10px; } }

/* Contributor identity in the stamp preview. */
.archive-owner-inline { display: inline-flex; align-items: center; gap: 0.55rem; vertical-align: middle; }
.archive-owner-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid #d5d8c8; flex: 0 0 34px; }
.archive-owner-avatar[hidden] { display: none; }

/* Public gallery contributor filter */
.gallery-contributor-filter { display: grid; gap: .45rem; margin: 1rem 0 1.4rem; }
.gallery-contributor-filter label { font-weight: 700; color: #244a3c; font-size: .9rem; }
.gallery-contributor-filter select { width: 100%; max-width: 100%; padding: .7rem .6rem; border: 1px solid #aab8a9; border-radius: .45rem; background: #fffcf5; color: #244a3c; }
.gallery-contributor-filter select:focus-visible { outline: 2px solid #244a3c; outline-offset: 2px; }

/* Padded contributor picker with profile photos; works without JavaScript. */
.explorer-sidebar .gallery-contributor-filter {  min-width: 0; }
.gallery-contributor-label { font-weight: 700; color: #244a3c; font-size: .9rem; }
.gallery-contributor-dropdown { position: relative; min-width: 0; }
.gallery-contributor-dropdown > summary { display: flex; align-items: center; gap: .6rem; padding: .65rem .7rem; min-height: 48px; border: 1px solid #aab8a9; border-radius: .5rem; background: #fffcf5; color: #244a3c; cursor: pointer; list-style: none; }
.gallery-contributor-dropdown > summary::-webkit-details-marker { display: none; }
.gallery-contributor-dropdown > summary:focus-visible, .gallery-contributor-option:focus-visible { outline: 2px solid #244a3c; outline-offset: 2px; }
.gallery-contributor-current { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gallery-contributor-chevron { margin-left: auto; font-size: 1.2rem; }
.gallery-contributor-dropdown[open] .gallery-contributor-chevron { transform: rotate(180deg); }
.gallery-contributor-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; border: 1px solid #d5d8c8; }
.gallery-contributor-placeholder { display: inline-flex; align-items: center; justify-content: center; background: #e8ede4; color: #446453; font-size: 1.1rem; }
.gallery-contributor-options { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: .35rem; background: #fffcf5; border: 1px solid #aab8a9; border-radius: .5rem; box-shadow: 0 8px 24px #172d2440; }
.gallery-contributor-option { display: flex; align-items: center; gap: .65rem; padding: .5rem .55rem; border-radius: .35rem; color: #244a3c; text-decoration: none; overflow-wrap: anywhere; }
.gallery-contributor-option:hover, .gallery-contributor-option.is-selected { background: #e8ede4; color: #244a3c; }
.gallery-contributor-option small { display: block; font-size: .75rem; opacity: .75; }

/* Contributor avatars and picker: keep photos visible alongside names. */
.gallery-contributor-dropdown > summary .gallery-contributor-avatar,
.gallery-contributor-option .gallery-contributor-avatar { display: inline-flex; width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex-shrink: 0; vertical-align: middle; }
.gallery-contributor-option > span:last-child { min-width: 0; }
.gallery-contributor-dropdown > summary { font-size: 1rem; }

/* Compact contributor selector: readable names without oversized sidebar text. */
.explorer-sidebar .gallery-contributor-filter { gap: .4rem; margin: .85rem .85rem 1.1rem; }
.explorer-sidebar .gallery-contributor-label { font-size: .88rem; line-height: 1.3; }
.explorer-sidebar .gallery-contributor-dropdown > summary { font-size: .86rem; line-height: 1.3; min-height: 42px; padding: .4rem .55rem; gap: .45rem; }
.explorer-sidebar .gallery-contributor-current { font-size: inherit; line-height: inherit; }
.explorer-sidebar .gallery-contributor-option { font-size: .85rem; line-height: 1.3; padding: .4rem .5rem; gap: .5rem; }
.explorer-sidebar .gallery-contributor-avatar,
.explorer-sidebar .gallery-contributor-dropdown > summary .gallery-contributor-avatar,
.explorer-sidebar .gallery-contributor-option .gallery-contributor-avatar { width: 26px; height: 26px; min-width: 26px; min-height: 26px; flex-basis: 26px; }
.explorer-sidebar .gallery-contributor-chevron { font-size: .95rem; }

/* Compact public product thumbnails: approximately 75% of the former 270px cards.
   Keep the five-column layout and stamp edges, without the heavy raised effect. */
.gallery .gallery-item a {



    transition: transform .18s ease, filter .18s ease;
}

.gallery .gallery-item figcaption {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    text-shadow: none;
}
.gallery .gallery-item figcaption .gallery-owner {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
    font-variant: normal;
    letter-spacing: .015em;
    text-shadow: none;
}
@media (max-width: 480px) {
    .gallery .gallery-item figcaption { font-size: 12px; }
    .gallery .gallery-item figcaption .gallery-owner { font-size: 10px; }
}

/* Keep the original stamp-paper holder size; scale only the product image. */


/* Gallery refinement: 90% stamp holder and 90% image, with a gentle raised-paper shadow. */
.gallery .gallery-item a {


    filter: drop-shadow(0 2px 2px rgba(49, 39, 24, .22))
            drop-shadow(2px 5px 5px rgba(49, 39, 24, .18));
}
.gallery .gallery-item a:hover,
.gallery .gallery-item a:focus-visible {
    filter: drop-shadow(0 3px 3px rgba(49, 39, 24, .27))
            drop-shadow(3px 7px 7px rgba(49, 39, 24, .21));
}


/* Six stamps per row on wide screens; holder and image at 75%. */
@media (min-width: 1351px) {
    .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* Subtle gallery hover: lift the stamp slightly without zooming its image. */
.gallery .gallery-item a:hover,
.gallery .gallery-item a:focus-visible {
    transform: translateY(-2px);
}
.gallery .gallery-item a:hover img,
.gallery .gallery-item a:focus-visible img {
    transform: none;
}

/* Restore full-size stamp holder and image; retain six-column layout and gentle hover. */


/* Flat stamp gallery: remove holder and caption shadows, including hover. */

.gallery .gallery-item figcaption,
.gallery .gallery-item figcaption *,
.gallery .gallery-item figcaption .gallery-owner {
    text-shadow: none;
    filter: none;
}

/* Uniform perforated stamp holders: the frame stays the same size for every
   product; only the artwork scales to fit inside it. */
.gallery .gallery-item a {
    width: 100%;
    max-width: 270px;
}
.gallery .gallery-item .image-frame {
    width: 100%;
    aspect-ratio: 4 / 4.9;
    padding: clamp(7px, .85vw, 12px);
    display: grid;
    place-items: center;
    background: #fffaf0;
}
.gallery .gallery-item .image-frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    background: transparent;
    border: 0;
    transform: none;
}


/* A restrained shadow on the perforated holder only; no hover motion or caption shadow. */
.gallery .gallery-item a,
.gallery .gallery-item a:hover,
.gallery .gallery-item a:focus-visible {
    transform: none;
    transition: none;
    filter: drop-shadow(0 2px 3px rgba(49, 39, 24, .18));
    box-shadow: none;
}
.gallery .gallery-item a:hover .image-frame img,
.gallery .gallery-item a:focus-visible .image-frame img {
    transform: none;
}
.gallery .gallery-item figcaption,
.gallery .gallery-item figcaption * {
    text-shadow: none;
    filter: none;
}

/* Product titles only: keep owner names and other typography unchanged. */
.gallery .gallery-item figcaption > span:first-child {
    font-family: Arial, Helvetica, sans-serif;
}

/* Small caps for contributor names only; keep role labels in their usual type. */
.gallery-contributor-current, .gallery-contributor-name { font-variant: small-caps; }

/* Keep the contributor list accessible even when there are only a few collections.
   Opening the picker expands the sidebar instead of clipping its options. */
.explorer-sidebar:has(.gallery-contributor-dropdown[open]) {
    max-height: none;
    overflow: visible;
}
.explorer-sidebar .gallery-contributor-dropdown[open] .gallery-contributor-options {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 6px;
    max-height: min(55vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Document products in the public gallery */
.gallery .gallery-item .document-frame {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-pdf-icon {
    width: 58%;
    max-width: 118px;
    color: #8d302c;
}
.gallery-pdf-icon svg { display: block; width: 100%; height: auto; }
.gallery-pdf-icon .pdf-page { fill: #fffdf8; stroke: #8c806a; stroke-width: 2; }
.gallery-pdf-icon .pdf-fold { fill: none; stroke: #8c806a; stroke-width: 2; }
.gallery-pdf-icon .pdf-band { fill: #8d302c; }
.gallery-pdf-icon text { fill: #fff; font: 700 15px Arial, sans-serif; letter-spacing: 1px; }
.document-gallery .restricted-document-frame .gallery-pdf-icon { opacity: .58; filter: saturate(.7); }
.gallery-document-preview {
    display: block;
    width: min(100%, 900px);
    height: min(68vh, 820px);
    min-height: 520px;
    border: 1px solid rgba(48, 75, 62, .24);
    border-radius: 4px;
    background: #fff;
}
.document-preview-actions {
    display: flex;
    gap: .7rem;
    justify-content: center;
    margin-top: .85rem;
}
.document-action-button {
    border: 1px solid #315c4b;
    border-radius: 5px;
    background: #fffdf8;
    color: #244a3c;
    padding: .55rem .9rem;
    font: 600 .9rem Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.document-action-button:hover,
.document-action-button:focus-visible { background: #eef3ed; color: #173b2e; }
@media (max-width: 700px) {
    .gallery-document-preview { min-height: 420px; height: 62vh; }
}
\n\n/* Document preview: reading-first layout, isolated from image product modal. */
.archive-preview.archive-document-mode .modal-dialog {
    width: min(96vw, 1540px);
    max-width: none;
    margin: 1.25rem auto;
}
.archive-preview.archive-document-mode .gallery-modal-content {
    border: 1px solid #c9b894;
    border-radius: 8px;
    background: #f8f3e7;
    box-shadow: 0 18px 48px rgba(42, 50, 42, .18);
    overflow: hidden;
}
.archive-preview.archive-document-mode .archive-modal-header {
    padding: 12px 18px;
    background: #f2ead8;
    border-bottom: 1px solid #d8c8a9;
}
.archive-preview.archive-document-mode .archive-modal-eyebrow { display: none; }
.archive-preview.archive-document-mode .modal-title {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #244a3c;
}
.archive-preview.archive-document-mode .archive-modal-body {
    padding: 14px;
}
.archive-preview.archive-document-mode .archive-modal-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.archive-preview.archive-document-mode .archive-preview-media {
    width: 100%;
}
.archive-preview.archive-document-mode .archive-preview-mat {
    width: 100%;
    padding: 10px;
    border: 1px solid #d7c7a8;
    border-radius: 6px;
    background: var(--product-preview-colour, #eae0ca);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.archive-preview.archive-document-mode .gallery-document-preview {
    width: 100%;
    max-width: none;
    height: calc(100vh - 260px);
    min-height: 600px;
    border: 1px solid #c7c7c2;
    border-radius: 4px;
    background: #fff;
}
.archive-preview.archive-document-mode .document-preview-actions {
    justify-content: flex-end;
    gap: 8px;
    margin: 10px 0 0;
}
.archive-preview.archive-document-mode .document-action-button {
    padding: .55rem .9rem;
    border-color: #315c4b;
    border-radius: 5px;
    background: #fffdf8;
    font-size: .82rem;
    box-shadow: none;
}
.archive-preview.archive-document-mode .archive-preview-details {
    width: 100%;
    padding: 0;
}
.archive-preview.archive-document-mode .archive-details-title {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #244a3c;
}
.archive-preview.archive-document-mode .archive-details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.archive-preview.archive-document-mode .archive-details-list > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd0b8;
    border-radius: 5px;
    background: #fffaf0;
}
.archive-preview.archive-document-mode .archive-details-list > div:nth-child(n+4) {
    grid-column: 1 / -1;
}
.archive-preview.archive-document-mode .archive-details-list > div.archive-details-half { grid-column: auto; }
.archive-preview.archive-document-mode .archive-details-list dt {
    margin-bottom: 4px;
    font: 700 .68rem Arial, sans-serif;
    letter-spacing: .06em;
}
.archive-preview.archive-document-mode .archive-details-list dd {
    font-size: .88rem;
    line-height: 1.4;
}
@media (max-width: 760px) {
    .archive-preview.archive-document-mode .modal-dialog { width: calc(100vw - 12px); margin: 6px auto; }
    .archive-preview.archive-document-mode .archive-modal-body { padding: 8px; }
    .archive-preview.archive-document-mode .archive-preview-mat { padding: 5px; }
    .archive-preview.archive-document-mode .gallery-document-preview { height: 68vh; min-height: 420px; }
    .archive-preview.archive-document-mode .archive-details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-preview.archive-document-mode .archive-details-list > div:nth-child(n+4) { grid-column: auto; }
    .archive-preview.archive-document-mode .document-preview-actions { justify-content: stretch; }
    .archive-preview.archive-document-mode .document-action-button { flex: 1; text-align: center; }
}

/* Document collection page: description-first layout with horizontal PDF shelf. */
.document-collection-pane .collection-toolbar { margin-bottom: 16px; }
.document-collection-description {
    min-height: clamp(300px, 40vh, 500px);
    padding: clamp(24px, 3vw, 46px);
    border: 1px solid #d6c8ad;
    border-radius: 8px;
    background:
        radial-gradient(circle at 92% 16%, rgba(141,165,151,.13), transparent 24%),
        linear-gradient(135deg, #fffdf7, #f8f2e5);
    box-shadow: 0 7px 22px rgba(62, 52, 35, .07);
    color: #243b31;
}
.document-description-heading { display:flex; align-items:center; gap:14px; margin-bottom:22px; padding-bottom:14px; border-bottom:1px solid #d8c9aa; }
.document-description-icon { display:grid; place-items:center; width:46px; height:52px; border:2px solid #315c4b; border-radius:5px; color:#315c4b; font:700 26px/1 Arial,sans-serif; background:#f3f5ed; }
.document-kicker { display:block; margin-bottom:3px; color:#786b53; font:600 .72rem/1.2 Arial,sans-serif; letter-spacing:.16em; }
.document-description-heading h3 { margin:0; color:#244a3c; font-size:clamp(1.35rem,2vw,1.9rem); }
.document-description-copy { max-width: 980px; font-size:1rem; line-height:1.75; color:#293d35; }
.document-description-copy p { margin:0 0 1em; }
.document-description-copy p:last-child { margin-bottom:0; }
.document-description-note { display:flex; gap:12px; align-items:center; max-width:980px; margin-top:28px; padding:13px 16px; border:1px solid #bfd3c3; border-radius:7px; background:#edf4e9; color:#29473a; }
.document-description-note > span { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:#315c4b; color:#fff; font:700 16px Arial,sans-serif; }
.document-description-note p { margin:0; font: .86rem/1.45 Arial,sans-serif; }
.document-products-header { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:26px 0 12px; padding-bottom:9px; border-bottom:1px solid #c7b793; }
.document-products-header h3 { margin:0; color:#244a3c; font-size:1.35rem; }
.document-products-header h3 span { color:#756b58; font-size:.9rem; font-weight:400; }
.document-products-header label { display:flex; align-items:center; gap:8px; color:#3d4e46; font:600 .78rem Arial,sans-serif; }
.document-sort { min-width:145px; padding:8px 30px 8px 10px; border:1px solid #c9b998; border-radius:5px; background:#fffdf8; color:#243b31; font:400 .82rem Arial,sans-serif; }
.document-sort[hidden] { display: none !important; }
.document-sort-control { display: flex; align-items: center; gap: 8px; color: #3d4e46; font: 600 .78rem Arial,sans-serif; }
.document-sort-menu { position: relative; z-index: 12; }
.document-sort-menu[open] { z-index: 40; }
.document-sort-menu > summary { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 165px; height: 40px; box-sizing: border-box; padding: 0 13px; border: 1px solid #cfc6b6; border-radius: 6px; background: #fffdf8; color: #244a3c; font: 400 .82rem/1.3 Arial,sans-serif; cursor: pointer; list-style: none; white-space: nowrap; }
.document-sort-menu > summary::-webkit-details-marker { display: none; }
.document-sort-menu > summary:hover { background: #f3f3eb; }
.document-sort-menu > summary svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.document-sort-menu[open] > summary svg { transform: rotate(180deg); }
.document-sort-menu-panel { position: absolute; top: calc(100% + 6px); right: 0; min-width: 165px; padding: 6px; border: 1px solid #d8cfbe; border-radius: 8px; background: #fffdf8; box-shadow: 0 10px 26px rgba(38,55,45,.13); }
.document-sort-menu-panel button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; color: #244a3c; font: 400 .82rem/1.3 Arial,sans-serif; text-align: left; cursor: pointer; white-space: nowrap; }
.document-sort-menu-panel button:hover,.document-sort-menu-panel button[aria-current="true"] { background: #edf1e9; }
.document-sort-menu :is(summary,button):focus-visible { outline: 2px solid #244a3c; outline-offset: 2px; }
@media(max-width:600px) { .document-sort-control { width: 100%; justify-content: space-between; } }
.document-gallery { display:flex !important; grid-template-columns:none !important; gap:12px; overflow-x:auto; padding:2px 2px 14px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.document-gallery .gallery-item { flex:0 0 154px; width:154px; scroll-snap-align:start; }
.document-gallery .gallery-item a { min-height:0; filter:none; }
.document-gallery .image-frame { width:100%; aspect-ratio: 1 / .9; padding:14px; border:1px solid #d5c8ae; border-radius:6px; background:#fffdf8; box-shadow:0 3px 9px rgba(55,44,28,.08); }
.document-gallery .gallery-pdf-icon { width:54%; max-width:72px; }
.document-gallery figcaption { padding-top:8px; text-align:center; }
.document-gallery figcaption > span:first-child { display:block; font-size:.78rem; line-height:1.3; font-weight:600; }
.document-gallery .gallery-owner { display:none; }
@media (max-width: 700px) {
    .document-collection-description { min-height:0; padding:20px; }
    .document-products-header { align-items:flex-start; flex-direction:column; }
    .document-description-heading { align-items:flex-start; }
    .document-gallery .gallery-item { flex-basis:138px; width:138px; }
}

/* Refined frontend collection workspace — lighter, mockup-inspired presentation. */
.frontend-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px clamp(18px, 2.4vw, 38px) 10px;
    color: #776f60;
    font: 14px/1.4 Arial, sans-serif;
}
.frontend-breadcrumb a { color: #244a3c; }
.frontend-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.refined-explorer-layout {
    gap: 18px;
    margin: 0 clamp(18px, 2.4vw, 38px) 36px;
}
.refined-explorer-layout .explorer-sidebar,
.refined-explorer-layout .explorer-content {
    border: 0;
    box-shadow: none;
    background: rgba(255, 252, 245, .78);
}
.refined-explorer-layout .explorer-sidebar {
    border-radius: 8px;
    overflow-x: visible;
}
.refined-explorer-layout .explorer-content {
    border-radius: 8px;
    padding: clamp(18px, 2vw, 30px);
}
.refined-explorer-layout .sidebar-menulink {
    border-radius: 8px 8px 0 0;
}
.refined-explorer-layout .sidebar-label {
    border-top: 0;
    font-size: 1.25rem;
    padding-top: 16px;
    padding-bottom: 12px;
}
.refined-explorer-layout .collection-tabs > .nav-link {
    margin: 0 10px 3px;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
}
.refined-explorer-layout .collection-toolbar {
    border: 0;
    border-bottom: 1px solid rgba(180,154,101,.45);
    box-shadow: none;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}
.refined-explorer-layout .document-collection-description {
    min-height: clamp(280px, 38vh, 470px);
    padding: clamp(22px, 3vw, 42px);
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(255,253,247,.92), rgba(248,242,229,.68));
    box-shadow: none;
}
.refined-explorer-layout .document-description-heading {
    border-bottom: 0;
    margin-bottom: 18px;
    padding-bottom: 0;
}
.refined-explorer-layout .document-description-heading::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 10px;
    background: #b49a65;
}
.refined-explorer-layout .document-description-note {
    border: 0;
    background: rgba(229, 239, 225, .72);
    box-shadow: inset 0 0 0 1px rgba(94,128,104,.22);
}
.refined-explorer-layout .document-products-header {
    border-bottom: 0;
    margin-top: 24px;
}
.refined-explorer-layout .document-products-header h3::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 8px;
    background: #b49a65;
}
.refined-explorer-layout .document-gallery .image-frame {
    border: 1px solid rgba(180,154,101,.34);
    box-shadow: 0 2px 7px rgba(55,44,28,.055);
}
.refined-explorer-layout .gallery-contributor-filter { border: 0; }
.refined-explorer-layout .gallery-contributor-dropdown > summary {
    box-shadow: none;
}
@media (max-width: 760px) {
    .frontend-breadcrumb { margin-inline: 12px; }
    .refined-explorer-layout { margin-inline: 12px; gap: 10px; }
    .refined-explorer-layout .explorer-content { padding: 14px; }
}

/* Mobile collection workspace — stacked, compact and touch friendly. */
@media (max-width: 760px) {
    .frontend-breadcrumb {
        margin: 10px 12px 8px;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
        scrollbar-width: none;
    }
    .frontend-breadcrumb::-webkit-scrollbar { display: none; }

    .refined-explorer-layout,
    .explorer-layout.refined-explorer-layout {
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 0 10px 24px;
        gap: 10px;
    }
    .refined-explorer-layout .explorer-sidebar {
        position: static;
        top: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        border-radius: 7px;
    }
    .refined-explorer-layout .sidebar-menulink {
        padding: 12px 10px;
        font-size: 15px;
    }
    .refined-explorer-layout .gallery-contributor-filter {
        margin: 10px;
    }
    .refined-explorer-layout .gallery-contributor-label {
        font-size: 13px;
    }
    .refined-explorer-layout .gallery-contributor-dropdown > summary {
        min-height: 44px;
        padding: 7px 9px;
    }
    .refined-explorer-layout .gallery-contributor-options {
        position: static;
        width: 100%;
        max-height: 240px;
        margin-top: 5px;
    }
    .refined-explorer-layout .sidebar-label {
        padding: 11px 12px 8px;
        font-size: 18px;
    }
    .refined-explorer-layout .sidebar-label span { font-size: 20px; }
    .refined-explorer-layout .collection-tabs {
        display: flex;
        flex-direction: row;
        gap: 7px;
        padding: 5px 9px 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }
    .refined-explorer-layout .collection-tabs > .nav-link {
        flex: 0 0 auto;
        width: auto;
        max-width: 78vw;
        margin: 0;
        padding: 9px 11px;
        border: 1px solid rgba(180,154,101,.22);
        border-radius: 6px;
        font-size: 15px;
        white-space: nowrap;
    }
    .refined-explorer-layout .collection-tabs > .nav-link.active {
        box-shadow: inset 3px 0 0 #b49a65;
    }
    .refined-explorer-layout .collection-tabs > .nav-link::before { font-size: 16px; }

    .refined-explorer-layout .explorer-content {
        width: 100%;
        min-height: 0;
        padding: 12px;
        border-radius: 7px;
        overflow: hidden;
    }
    .refined-explorer-layout .document-collection-description {
        min-height: 0;
        padding: 16px 14px;
        border-radius: 6px;
    }
    .refined-explorer-layout .document-description-heading {
        gap: 10px;
        margin-bottom: 14px;
    }
    .refined-explorer-layout .document-description-icon {
        width: 38px;
        height: 42px;
        flex: 0 0 38px;
        font-size: 21px;
    }
    .refined-explorer-layout .document-kicker {
        font-size: 10px;
        letter-spacing: .12em;
    }
    .refined-explorer-layout .document-description-heading h3 {
        font-size: 1.45rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }
    .refined-explorer-layout .document-description-copy {
        max-width: 100%;
        font-size: .95rem;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
    .refined-explorer-layout .document-description-copy * { max-width: 100%; }
    .refined-explorer-layout .document-description-note {
        margin-top: 16px;
        padding: 10px 11px;
        align-items: flex-start;
    }
    .refined-explorer-layout .document-products-header {
        margin: 18px 0 10px;
        gap: 10px;
    }
    .refined-explorer-layout .document-products-header h3 { font-size: 1.15rem; }
    .refined-explorer-layout .document-products-header label {
        width: 100%;
        justify-content: space-between;
    }
    .refined-explorer-layout .document-sort {
        min-width: 0;
        width: min(190px, 62vw);
    }
    .refined-explorer-layout .document-gallery {
        width: 100%;
        gap: 9px;
        padding-bottom: 10px;
    }
    .refined-explorer-layout .document-gallery .gallery-item {
        flex: 0 0 126px;
        width: 126px;
    }
    .refined-explorer-layout .document-gallery .image-frame { padding: 10px; }
    .refined-explorer-layout .document-gallery figcaption > span:first-child { font-size: .72rem; }

    .refined-explorer-layout .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 8px;
    }
}

@media (max-width: 430px) {
    .refined-explorer-layout,
    .explorer-layout.refined-explorer-layout { margin-inline: 7px; }
    .refined-explorer-layout .explorer-content { padding: 9px; }
    .refined-explorer-layout .document-collection-description { padding: 14px 11px; }
    .refined-explorer-layout .document-description-heading h3 { font-size: 1.3rem; }
    .refined-explorer-layout .document-description-copy { font-size: .9rem; }
    .refined-explorer-layout .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 6px; }
}

/* Document collection editorial background art */
.document-collection-description { position: relative; overflow: hidden; isolation: isolate; }
.document-collection-description::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: clamp(18px, 4vw, 58px);
    top: 50%;
    width: min(31%, 370px);
    aspect-ratio: 370 / 265;
    transform: translateY(-50%);
    background: url("../images/document-newsletter-art.jpg") center / contain no-repeat;
    opacity: .34;
    filter: sepia(.12) saturate(.72);
    pointer-events: none;
}
.document-collection-description .document-description-heading,
.document-collection-description .document-description-copy,
.document-collection-description .document-description-note { position: relative; z-index: 1; }
.document-collection-description .document-description-copy,
.document-collection-description .document-description-note { max-width: min(72%, 900px); }

/* Compact signed-in account menu */
.perforated-account .account-profile { position: relative; }
.perforated-account .account-profile > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px; border-radius: 999px; cursor: pointer; color: #244a3c; }
.perforated-account .account-profile > summary::-webkit-details-marker { display: none; }
.perforated-account .account-profile > summary:hover { background: rgba(141,165,151,.16); }
.perforated-account .header-account-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #9eb0a4; background: #edf1e9; }
.perforated-account .header-account-avatar-placeholder { display: grid; place-items: center; font: 20px/1 Arial,sans-serif; }
.perforated-account .account-profile-name { font-size: .9rem; white-space: nowrap; }
.perforated-account .account-profile-chevron { font: 11px/1 Arial,sans-serif; transition: transform .15s ease; }
.perforated-account .account-profile[open] .account-profile-chevron { transform: rotate(180deg); }
.perforated-account .account-profile-menu { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 7px; border: 1px solid #d8cfbe; border-radius: 8px; background: #fffdf8; box-shadow: 0 10px 26px rgba(38,55,45,.13); }
.perforated-account .account-profile-menu a,
.perforated-account .account-profile-menu button { display: flex; width: 100%; align-items: center; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; color: #244a3c; font: 14px/1.3 Georgia,"Times New Roman",serif; text-decoration: none; text-align: left; cursor: pointer; }
.perforated-account .account-profile-menu a:hover,
.perforated-account .account-profile-menu button:hover { background: #edf1e9; }
.perforated-account .account-profile-menu form { display: block; margin: 0; }
.perforated-account .account-profile-menu .account-menu-divider { height: 1px; margin: 5px 4px; background: #ded5c5; }
@media (max-width: 700px) {
    .document-collection-description::after { right: -22px; top: 32px; width: 190px; transform: none; opacity: .12; }
    .document-collection-description .document-description-copy,
    .document-collection-description .document-description-note { max-width: 100%; }
    .perforated-account { width: auto !important; margin-left: auto; justify-content: flex-end !important; }
    .perforated-account .account-profile-name { display: none; }
    .perforated-account .account-profile > summary { padding-right: 5px; }
}

/* 2026-09-24: compact collapsible Collections sidebar based on approved mockup. */
.refined-explorer-layout .sidebar-menulink {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.refined-explorer-layout .sidebar-menulink a {
    flex: 1 1 50%;
    padding: 14px 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(36,74,60,.10);
}
.refined-explorer-layout .sidebar-menulink a:first-child {
    border-bottom: 3px solid #2f705a;
}
.refined-explorer-layout .gallery-contributor-filter {
    margin: 14px 12px 16px;
}
.refined-explorer-layout .collections-toggle {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(36,74,60,.14);
    border-radius: 9px 9px 0 0;
    background: rgba(255,252,245,.72);
    color: #173d32;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(35,48,40,.035);
}
.refined-explorer-layout .collections-toggle-icon {
    display: inline-flex;
    font-size: 22px;
    line-height: 1;
}
.refined-explorer-layout .collections-toggle-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 600;
}
.refined-explorer-layout .collections-toggle-chevron {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    transition: transform .18s ease;
}
.refined-explorer-layout .collections-toggle[aria-expanded="false"] .collections-toggle-chevron {
    transform: rotate(-90deg);
}
.refined-explorer-layout .collection-tabs {
    margin: 0 8px 8px;
    padding: 8px 0 10px;
    border: 1px solid rgba(36,74,60,.08);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    background: rgba(255,252,245,.48);
    box-shadow: none;
}
.refined-explorer-layout .collection-tabs > .nav-link {
    position: relative;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 16px 9px 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: #173d32;
    text-align: left;
    font-size: 17px;
}
.refined-explorer-layout .collection-tabs > .nav-link::before {
    content: '📁';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
}
.refined-explorer-layout .collection-tabs > .nav-link:hover {
    background: rgba(141,165,151,.08);
}
.refined-explorer-layout .collection-tabs > .nav-link.active {
    background: transparent;
    color: #173d32;
}
.refined-explorer-layout .collection-tabs > .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: #2f705a;
}
.refined-explorer-layout .collection-tabs .folder-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.refined-explorer-layout .collection-tabs .collection-count {
    margin-left: auto;
    padding-left: 8px;
    color: #7f7562;
    font-size: 14px;
    font-weight: 400;
}
@media (max-width: 760px) {
    .refined-explorer-layout .collection-tabs {
        display: block;
        overflow: visible;
        padding: 6px 0 8px;
    }
    .refined-explorer-layout .collection-tabs[hidden] { display: none !important; }
    .refined-explorer-layout .collection-tabs > .nav-link {
        max-width: none;
        min-height: 43px;
        padding: 8px 14px 8px 43px;
        font-size: 15px;
    }
    .refined-explorer-layout .collection-tabs > .nav-link::before { left: 16px; font-size: 16px; }
}
\n/* 2026-09-24: approved compact Collections menu — exact user-selected direction. */
.refined-explorer-layout .collections-toggle {
    width: 100%;
    margin: 0;
    padding: 15px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 13px;
}
.refined-explorer-layout .collections-toggle:hover { background: rgba(141,165,151,.055); }
.refined-explorer-layout .collections-toggle-icon { width: 27px; height: 27px; color: #17483b; }
.refined-explorer-layout .collections-toggle-icon svg { display: block; width: 100%; height: 100%; }
.refined-explorer-layout .collections-toggle-title { font-size: 22px; font-weight: 600; }
.refined-explorer-layout .collections-toggle-chevron { width: 20px; height: 20px; font-size: 0; }
.refined-explorer-layout .collections-toggle-chevron svg { display: block; width: 100%; height: 100%; }
.refined-explorer-layout .collection-tabs {
    margin: 0;
    padding: 4px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.refined-explorer-layout .collection-tabs > .nav-link {
    min-height: 47px;
    padding: 9px 18px 9px 58px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}
.refined-explorer-layout .collection-tabs > .nav-link::before { left: 27px; }
.refined-explorer-layout .collection-tabs > .nav-link.active::after {
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
}
.refined-explorer-layout .collection-tabs > .nav-link:hover { background: rgba(141,165,151,.055) !important; }
@media (max-width: 760px) {
    .refined-explorer-layout .collections-toggle { padding: 12px 14px; }
    .refined-explorer-layout .collections-toggle-icon { width: 23px; height: 23px; }
    .refined-explorer-layout .collections-toggle-title { font-size: 19px; }
    .refined-explorer-layout .collection-tabs { margin: 0; padding: 3px 0 9px; }
    .refined-explorer-layout .collection-tabs > .nav-link { padding: 8px 14px 8px 48px; }
    .refined-explorer-layout .collection-tabs > .nav-link::before { left: 20px; }
}

/* 2026-09-24: final approved compact collection navigation. */
.refined-explorer-layout .explorer-sidebar {
    overflow: visible;
}
.refined-explorer-layout .collections-toggle,
.refined-explorer-layout .collections-toggle:focus,
.refined-explorer-layout .collections-toggle:focus-visible,
.refined-explorer-layout .collections-toggle:active {
    width: 100%;
    margin: 0;
    padding: 13px 18px;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: #17483b;
}
.refined-explorer-layout .collections-toggle-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}
.refined-explorer-layout .collections-toggle-icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
}
.refined-explorer-layout .collections-toggle-chevron {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
.refined-explorer-layout .collection-tabs {
    margin: 0;
    padding: 4px 0 12px;
    border: 0 !important;
    outline: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}
.refined-explorer-layout .collection-tabs > .nav-link,
.refined-explorer-layout .collection-tabs > .nav-link:focus,
.refined-explorer-layout .collection-tabs > .nav-link:focus-visible {
    position: relative;
    min-height: 46px;
    margin: 0;
    padding: 9px 42px 9px 58px;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
/* Draw the folder in CSS instead of an emoji so it cannot overlap the title. */
.refined-explorer-layout .collection-tabs > .nav-link::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    width: 22px;
    height: 15px;
    transform: translateY(-42%);
    border-radius: 2px;
    background: #e5c36d;
    box-shadow: inset 0 0 0 1px rgba(132,101,35,.08);
}
.refined-explorer-layout .collection-tabs > .nav-link .folder-name::before {
    content: '';
    position: absolute;
    left: 27px;
    top: calc(50% - 11px);
    width: 10px;
    height: 5px;
    border-radius: 2px 2px 0 0;
    background: #e5c36d;
}
.refined-explorer-layout .collection-tabs .folder-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}
.refined-explorer-layout .collection-tabs .collection-count {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}
.refined-explorer-layout .collection-tabs > .nav-link.active::after {
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: #2f705a;
}
@media (max-width: 760px) {
    .refined-explorer-layout .collections-toggle { padding: 11px 14px; }
    .refined-explorer-layout .collections-toggle-title { font-size: 18px; }
    .refined-explorer-layout .collection-tabs > .nav-link { padding: 8px 38px 8px 50px; }
    .refined-explorer-layout .collection-tabs > .nav-link::before { left: 18px; width: 21px; height: 14px; }
    .refined-explorer-layout .collection-tabs > .nav-link .folder-name::before { left: 20px; }
    .refined-explorer-layout .collection-tabs .collection-count { right: 14px; }
}
\n/* 2026-09-24: collection navigation structural fix — explicit icon element, no pseudo-folder overlap. */
.refined-explorer-layout .collection-tabs > .nav-link,
.refined-explorer-layout .collection-tabs > .nav-link:focus,
.refined-explorer-layout .collection-tabs > .nav-link:focus-visible {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 9px 18px !important;
    position: relative;
}
.refined-explorer-layout .collection-tabs > .nav-link::before,
.refined-explorer-layout .collection-tabs > .nav-link .folder-name::before { content: none !important; display: none !important; }
.refined-explorer-layout .collection-list-folder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    color: #e5c36d;
    flex: none;
}
.refined-explorer-layout .collection-list-folder svg { display:block; width:24px; height:20px; }
.refined-explorer-layout .collection-tabs .folder-name {
    position: static !important;
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.refined-explorer-layout .collection-tabs .collection-count {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 18px;
    text-align: right;
}
.refined-explorer-layout .collection-tabs > .nav-link.active::after { left: 0; }
@media (max-width:760px) {
    .refined-explorer-layout .collection-tabs > .nav-link,
    .refined-explorer-layout .collection-tabs > .nav-link:focus,
    .refined-explorer-layout .collection-tabs > .nav-link:focus-visible {
        grid-template-columns: 22px minmax(0,1fr) auto;
        column-gap: 11px;
        padding: 8px 14px !important;
    }
    .refined-explorer-layout .collection-list-folder { width:22px; height:20px; }
    .refined-explorer-layout .collection-list-folder svg { width:22px; height:18px; }
}


/* 2026-09-24: gallery navigation state + stable collection row layout. */
.refined-explorer-layout .explorer-sidebar > .sidebar-menulink {
    display: flex !important;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 18px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.refined-explorer-layout .explorer-sidebar > .sidebar-menulink > a {
    position: relative;
    flex: 1 1 0;
    display: block;
    padding: 14px 8px 13px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(36,74,60,.12) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #173d32;
    text-align: center;
    text-decoration: none;
}
.refined-explorer-layout .explorer-sidebar > .sidebar-menulink > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: transparent;
}
.refined-explorer-layout .explorer-sidebar > .sidebar-menulink > a.is-active::after {
    background: #2f705a;
}
.refined-explorer-layout .explorer-sidebar > .sidebar-menulink > a:first-child {
    border-bottom: 1px solid rgba(36,74,60,.12) !important;
}

/* Keep icon, title and count in independent columns in every interaction state. */
.refined-explorer-layout #collectionTabs > button.nav-link,
.refined-explorer-layout #collectionTabs > button.nav-link:hover,
.refined-explorer-layout #collectionTabs > button.nav-link:focus,
.refined-explorer-layout #collectionTabs > button.nav-link:focus-visible,
.refined-explorer-layout #collectionTabs > button.nav-link:active,
.refined-explorer-layout #collectionTabs > button.nav-link.active {
    display: grid !important;
    grid-template-columns: 26px minmax(0,1fr) 28px !important;
    column-gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px;
    padding: 9px 18px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}
.refined-explorer-layout #collectionTabs > button.nav-link::before { content: none !important; display: none !important; }
.refined-explorer-layout #collectionTabs > button.nav-link .collection-list-folder {
    grid-column: 1;
    position: static !important;
    display: block !important;
    width: 26px !important;
    height: 22px !important;
    margin: 0 !important;
    transform: none !important;
}
.refined-explorer-layout #collectionTabs > button.nav-link .collection-list-folder svg {
    display: block !important;
    width: 26px !important;
    height: 22px !important;
}
.refined-explorer-layout #collectionTabs > button.nav-link .folder-name {
    grid-column: 2;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.refined-explorer-layout #collectionTabs > button.nav-link .folder-name::before { content: none !important; display: none !important; }
.refined-explorer-layout #collectionTabs > button.nav-link .collection-count {
    grid-column: 3;
    position: static !important;
    width: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    text-align: right !important;
}
@media (max-width:760px) {
    .refined-explorer-layout .explorer-sidebar > .sidebar-menulink { padding: 0 12px !important; }
    .refined-explorer-layout #collectionTabs > button.nav-link,
    .refined-explorer-layout #collectionTabs > button.nav-link:hover,
    .refined-explorer-layout #collectionTabs > button.nav-link:focus,
    .refined-explorer-layout #collectionTabs > button.nav-link:focus-visible,
    .refined-explorer-layout #collectionTabs > button.nav-link:active,
    .refined-explorer-layout #collectionTabs > button.nav-link.active {
        grid-template-columns: 24px minmax(0,1fr) 24px !important;
        column-gap: 11px !important;
        padding: 8px 14px !important;
    }
    .refined-explorer-layout #collectionTabs > button.nav-link .collection-list-folder,
    .refined-explorer-layout #collectionTabs > button.nav-link .collection-list-folder svg { width: 24px !important; height: 20px !important; }
    .refined-explorer-layout #collectionTabs > button.nav-link .collection-count { width: 24px !important; }
}

/* 2026-09-24: page-flow footer + softer frontend breadcrumb. */
html,
body {
    min-height: 100%;
    height: auto;
}
body > main {
    position: relative;
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
}
body > main > footer {
    position: static !important;
    inset: auto !important;
    clear: both;
    width: auto;
    margin-top: 32px;
    flex: none;
}
.frontend-breadcrumb,
.frontend-breadcrumb > span {
    color: #918a7e;
}
.frontend-breadcrumb a {
    color: #667a72;
}
.frontend-breadcrumb a:hover,
.frontend-breadcrumb a:focus-visible {
    color: #49675d;
}

/* 2026-09-24: collections sidebar participates in document flow.
   Do not cap/scroll the desktop sidebar independently: its full height must
   contribute to the explorer row so the footer always follows all entries. */
.refined-explorer-layout .explorer-sidebar {
    position: static !important;
    top: auto !important;
    align-self: stretch !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
.refined-explorer-layout {
    align-items: start !important;
}
body > main > footer {
    position: relative !important;
    z-index: 0 !important;
}
\n\n/* 2026-09-24: keep a long Collections menu usable while the selected content stays visible. */
@media (min-width: 761px) {
    .refined-explorer-layout .explorer-sidebar {
        position: sticky !important;
        top: 18px !important;
        align-self: start !important;
        max-height: calc(100vh - 36px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(47,112,90,.42) transparent;
    }
    .refined-explorer-layout .explorer-sidebar::-webkit-scrollbar { width: 7px; }
    .refined-explorer-layout .explorer-sidebar::-webkit-scrollbar-track { background: transparent; }
    .refined-explorer-layout .explorer-sidebar::-webkit-scrollbar-thumb {
        background: rgba(47,112,90,.34);
        border-radius: 999px;
    }
}


/* 2026-09-24: keep only the Collections entries scrollable on desktop.
   Gallery controls stay visible while long collection lists are constrained to the viewport. */
@media (min-width: 761px) {
    .refined-explorer-layout .explorer-sidebar {
        position: sticky !important;
        top: 18px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .refined-explorer-layout #collectionTabs {
        max-height: calc(100vh - 390px);
        min-height: 110px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(47,112,90,.48) rgba(180,154,101,.10);
        padding-right: 5px;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar { width: 7px; }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar-track {
        background: rgba(180,154,101,.10);
        border-radius: 999px;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar-thumb {
        background: rgba(47,112,90,.42);
        border-radius: 999px;
    }
}

/* 2026-09-24: collection list is a true viewport-limited scroll region.
   Keep the navigation controls visible; show a scrollbar only when needed. */
@media (min-width: 761px) {
    .refined-explorer-layout #collectionTabs {
        display: block !important;
        height: min(62vh, 620px) !important;
        max-height: min(62vh, 620px) !important;
        min-height: 260px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto !important;
        scrollbar-width: auto !important;
        scrollbar-color: #78998d #eee8dc !important;
        padding-right: 4px !important;
        overscroll-behavior-y: contain;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar {
        width: 11px !important;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar-track {
        background: #eee8dc !important;
        border-radius: 8px;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar-thumb {
        background: #78998d !important;
        border: 2px solid #eee8dc;
        border-radius: 8px;
        min-height: 44px;
    }
    .refined-explorer-layout #collectionTabs::-webkit-scrollbar-thumb:hover {
        background: #557b6d !important;
    }
}

/* 2026-09-24: final document collection newsletter watermark treatment. */
.refined-explorer-layout .document-collection-description {
    overflow: hidden;
}
.refined-explorer-layout .document-collection-description::after {
    right: clamp(12px, 2.5vw, 42px);
    top: 53%;
    width: min(42%, 465px);
    transform: translateY(-50%);
    opacity: .25;
    filter: sepia(.12) saturate(.68);
    z-index: 0;
}
.refined-explorer-layout .document-collection-description .document-description-heading,
.refined-explorer-layout .document-collection-description .document-description-copy,
.refined-explorer-layout .document-collection-description .document-description-note {
    position: relative;
    z-index: 1;
}
.refined-explorer-layout .document-collection-description .document-description-copy,
.refined-explorer-layout .document-collection-description .document-description-note {
    max-width: 100%;
}
@media (max-width: 700px) {
    .refined-explorer-layout .document-collection-description::after {
        right: -35px;
        top: 46%;
        width: min(72%, 310px);
        transform: translateY(-50%);
        opacity: .10;
    }
}

/* Stamp Club landing artwork: club newsletter/reference material, kept consistent with the archive layout. */
@media (max-width: 700px) {
    .type-intro-stamp-club::before {
        inset: 34% 0 0 0;
        background-size: min(88vw, 520px) auto;
        background-position: 50% 70%;
        opacity: .14;
    }
}

/* Address-enabled collection type search */
.nearby-collection-search {
    max-width: 680px;
    margin: 28px 0 8px;
}
.nearby-collection-search-results {
    margin: 18px auto 24px;
    padding-inline: 18px;
}
.nearby-collection-search label {
    display: block;
    margin-bottom: 9px;
    color: #244a3c;
    font: 600 1.05rem Georgia, "Times New Roman", serif;
}
.nearby-collection-search-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nearby-collection-search-fields input[type="text"] {
    flex: 1 1 360px;
    min-width: 0;
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(36, 74, 60, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #243c33;
    font: inherit;
    box-shadow: 0 5px 18px rgba(29, 57, 47, .08);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nearby-collection-search-fields input[type="text"]::placeholder {
    color: rgba(36, 60, 51, .58);
}
.nearby-collection-search-fields input[type="text"]:focus {
    border-color: rgba(36, 74, 60, .65);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 74, 60, .10), 0 6px 20px rgba(29, 57, 47, .09);
}
.nearby-collection-search-fields .nearby-search-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #244a3c;
    border-radius: 50%;
    background: #244a3c;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(29, 57, 47, .16);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nearby-collection-search-fields .nearby-search-button:hover {
    background: #193b30;
    box-shadow: 0 7px 18px rgba(29, 57, 47, .22);
}
.nearby-collection-search-fields .nearby-search-button:focus-visible {
    outline: 3px solid rgba(36, 74, 60, .22);
    outline-offset: 2px;
}
.nearby-collection-search-fields .nearby-search-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nearby-collection-search-fields a {
    color: #244a3c;
    text-underline-offset: 3px;
}
@media (max-width: 600px) {
    .nearby-collection-search-fields { flex-wrap: wrap; }
    .nearby-collection-search-fields input[type="text"] { flex-basis: 100%; }
}


/* Keep address search aligned with the collection actions on type landing pages. */
.type-intro-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
}
.type-intro-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.nearby-collection-search-intro {
    flex: 0 1 520px;
    max-width: 520px;
    margin: 0 0 0 auto;
}
.nearby-collection-search-intro .nearby-collection-search-fields input[type="text"] {
    flex-basis: 320px;
}
@media (max-width: 850px) {
    .type-intro-actions-row {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }
    .nearby-collection-search-intro {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

/* 2026-09-26: compact address search + breadcrumb toolbar. */
.nearby-collection-search-fields {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}
.nearby-collection-search-fields input[type="text"] {
    height: 42px;
    padding: 0 48px 0 16px;
    border: 1px solid rgba(36, 74, 60, .28);
    border-radius: 10px;
    background: #fffdf8;
    box-shadow: 0 2px 8px rgba(29, 57, 47, .06);
}
.nearby-collection-search-fields input[type="text"]:focus {
    border-color: #537466;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 74, 60, .08);
}
.nearby-collection-search-fields .nearby-search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #244a3c;
    box-shadow: none;
}
.nearby-collection-search-fields .nearby-search-button:hover {
    background: rgba(36, 74, 60, .09);
    box-shadow: none;
    transform: none;
}
.nearby-collection-search-fields .nearby-search-button svg { width: 18px; height: 18px; }
.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 14px clamp(18px, 2.4vw, 38px) 12px;
}
.collection-toolbar .frontend-breadcrumb { margin: 0; min-width: 0; }
.collection-toolbar .nearby-collection-search-results {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(430px, 44vw);
    max-width: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.collection-toolbar .nearby-collection-search-results .nearby-collection-search-fields { flex: 1 1 auto; }
.collection-toolbar .nearby-collection-search-results input[type="text"] { width: 100%; flex-basis: auto; }
.nearby-search-clear {
    flex: 0 0 auto;
    font-size: .82rem;
    color: #5e6d65;
    text-decoration: none;
}
.nearby-search-clear:hover { color: #244a3c; text-decoration: underline; text-underline-offset: 3px; }
.nearby-collection-search-intro { max-width: 460px; }
.nearby-collection-search-intro .nearby-collection-search-fields input[type="text"] { flex-basis: 300px; }
@media (max-width: 760px) {
    .collection-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .collection-toolbar .nearby-collection-search-results { width: 100%; margin-left: 0; }
}

/* 2026-09-26: account menu item separators and About/Help navigation. */
.perforated-account .account-link-separator{width:1px;height:18px;background:#d8cfbe;display:inline-block;align-self:center}

/* 2026-09-26: constrain About/Help icons in the signed-out header navigation. */
.perforated-account > a .account-menu-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    vertical-align: -3px;
}

/* Image products: compact catalogue cards; document collections retain their own layout. */
.gallery:not(.document-gallery) .gallery-item {
    background: #fffdf8;
    border: 1px solid #e6dfd1;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 8px rgba(49, 39, 24, .06);
}
.gallery:not(.document-gallery) .gallery-item > a,
.gallery:not(.document-gallery) .gallery-item > .gallery-static-product {
    max-width: none;
    height: 100%;
    margin: 0;
    filter: none;
    color: inherit;
    text-decoration: none;
}
.gallery:not(.document-gallery) .gallery-item > a:hover,
.gallery:not(.document-gallery) .gallery-item > a:focus-visible {
    filter: none;
    background: #fffefb;
}
.gallery:not(.document-gallery) .gallery-item .image-frame {
    aspect-ratio: 4 / 4.3;
    padding: clamp(10px, 1.15vw, 18px);
    background: #f3f0e7;
    clip-path: none;
}
.gallery:not(.document-gallery) .gallery-item figcaption {
    box-sizing: border-box;
    min-height: 55px;
    margin: 0;
    padding: 10px 11px 12px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
}
.gallery:not(.document-gallery) .gallery-item figcaption > span:first-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: inherit;
    font-weight: 400;
}
.gallery:not(.document-gallery) .gallery-item .gallery-owner {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
}
@media (min-width: 1351px) {
    .gallery:not(.document-gallery) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; }
}

/* Collection type navigation collapses to an accessible menu on phones. */
.type-navigation-mobile { display: none; }
@media (max-width: 760px) {
    .type-navigation { display: none; }
    .type-navigation-mobile { display: block; background: #fff; border-bottom: 1px solid #e7dfda; }
    .type-navigation-mobile > summary {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 54px;
        padding: 10px 18px;
        list-style: none;
        color: #244a3c;
        font: 14px/1.3 Arial, Helvetica, sans-serif;
        cursor: pointer;
    }
    .type-navigation-mobile > summary::-webkit-details-marker { display: none; }
    .type-navigation-mobile > summary:focus-visible,
    .type-navigation-mobile-link:focus-visible { outline: 2px solid #244a3c; outline-offset: -3px; }
    .type-navigation-hamburger { display: flex; flex: 0 0 22px; flex-direction: column; gap: 4px; }
    .type-navigation-hamburger span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
    .type-navigation-current { margin-left: auto; color: #746b59; font-size: 12px; text-align: right; }
    .type-navigation-mobile-links { display: grid; gap: 2px; padding: 7px 12px 12px; border-top: 1px solid #eee7da; background: #fffdf8; }
    .type-navigation-mobile-link { display: block; padding: 12px 14px; border-radius: 5px; color: #304a3d; font: 14px/1.3 Arial, Helvetica, sans-serif; text-decoration: none; }
    .type-navigation-mobile-link:hover { background: #f2f1e8; color: #1e513b; text-decoration: none; }
    .type-navigation-mobile-link.is-active { padding-left: 11px; border-left: 3px solid #31775c; background: #eaf0e9; color: #1e513b; font-weight: 600; }
}

/* Navigation icons and quiet selection on desktop and mobile. */
.gallery-nav-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; vertical-align: middle; color: #607b69; }
.type-navigation-link { display: inline-flex; align-items: center; gap: 7px; }
.type-navigation-link.is-active { padding-bottom: 16px; border: 1px solid #ddd3c2; border-radius: 5px; background: #f1ede4; color: #34483d; }
.perforated-account > a { display: inline-flex; align-items: center; gap: 6px; }
.mobile-account-navigation { display: none; }
@media (max-width: 760px) {
    .perforated-header { position: relative; z-index: 50; flex-wrap: nowrap; align-items: center; min-height: 68px; padding: 10px 16px; gap: 8px; }
    .perforated-brand { min-width: 0; }
    .perforated-brand-copy strong { white-space: nowrap; }
    .perforated-account { display: none !important; }
    .mobile-account-navigation { display: block; flex: none; margin-left: auto; }
    .mobile-account-navigation > summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d8cbb8; border-radius: 7px; list-style: none; color: #244a3c; cursor: pointer; }
    .mobile-account-navigation > summary::-webkit-details-marker { display: none; }
    .mobile-account-navigation > summary:focus-visible { outline: 2px solid #244a3c; outline-offset: 2px; }
    .mobile-account-hamburger { display: flex; flex-direction: column; gap: 5px; }
    .mobile-account-hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
    .mobile-account-navigation-links { position: absolute; z-index: 60; top: 100%; right: 0; width: min(240px, 100vw); padding: 8px; border: 1px solid #dfd4c4; border-top: 0; border-radius: 0 0 0 10px; background: #fffdf8; box-shadow: -7px 12px 24px rgba(45,37,27,.15); }
    .mobile-account-navigation-links a,
    .mobile-account-navigation-links button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; border: 0; border-radius: 5px; background: transparent; color: #304a3d; font: 14px/1.3 Arial, Helvetica, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
    .mobile-account-navigation-links a:hover,
    .mobile-account-navigation-links button:hover { background: #f2f1e8; text-decoration: none; }
    .mobile-account-navigation-links form { margin: 0; }
    .type-navigation-mobile-link { display: flex; align-items: center; gap: 10px; }
    .type-navigation-mobile-link.is-active { padding: 10px 12px; border: 1px solid #ddd3c2; background: #f1ede4; color: #34483d; font-weight: 600; }
}
@media (max-width: 760px) {
    .perforated-brand { gap: 8px; }
    .perforated-logo { width: 40px; }
    .perforated-brand-copy strong { font-size: clamp(16px, 4.4vw, 21px); }
    .perforated-brand-copy small { margin-top: 3px; font-size: 8px; letter-spacing: .08em; }
}

/* Let the contributor picker float over Collections instead of shifting them. */
.refined-explorer-layout .explorer-sidebar { z-index: 20; }
.refined-explorer-layout .gallery-contributor-dropdown { position: relative; }
.refined-explorer-layout .explorer-sidebar .gallery-contributor-dropdown[open] .gallery-contributor-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    max-height: min(55vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
@media (max-width: 760px) {
    .refined-explorer-layout .explorer-sidebar .gallery-contributor-dropdown[open] .gallery-contributor-options {
        max-height: min(45vh, 300px);
    }
}

/* Desktop collection navigation keeps the site header colour and red active tab. */
.type-navigation { background: #fff; }
.type-navigation-link.is-active {
    background: transparent;
    border-color: transparent;
    border-bottom: 3px solid #963340;
    border-radius: 0;
    color: #963340;
}
.type-navigation.is-enhanced { flex-wrap: nowrap; overflow: visible; }
.type-navigation.is-enhanced .type-navigation-link { flex: none; }
.type-navigation.is-enhanced .type-navigation-link.is-overflowed { display: none; }
.type-navigation.is-enhanced.all-in-overflow { justify-content: flex-start; }
.type-navigation-overflow[hidden] { display: none !important; }
.type-navigation-overflow { position: relative; flex: none; align-self: center; margin-left: auto; }
.type-navigation-overflow > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; list-style: none; color: #3d493e; font: 15px/1.25 Georgia, "Times New Roman", serif; cursor: pointer; }
.type-navigation-overflow > summary::-webkit-details-marker { display: none; }
.type-navigation-overflow > summary:focus-visible,
.type-navigation-overflow-links a:focus-visible { outline: 2px solid #244a3c; outline-offset: 2px; }
.type-navigation-overflow.is-active > summary { color: #963340; border-bottom: 3px solid #963340; }
.type-navigation-overflow-bars { display: flex; flex-direction: column; gap: 3px; }
.type-navigation-overflow-bars span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.type-navigation-overflow-links { position: absolute; z-index: 45; top: calc(100% + 3px); right: 0; min-width: max(220px, 100%); max-height: min(65vh, 480px); overflow-y: auto; padding: 6px; border: 1px solid #e8e0da; border-radius: 4px; background: #fff; box-shadow: 0 10px 25px rgba(45,37,27,.13); }
.type-navigation-overflow-links a { display: flex; align-items: center; gap: 9px; padding: 11px; color: #3d493e; font: 14px/1.3 Georgia, "Times New Roman", serif; text-decoration: none; white-space: nowrap; }
.type-navigation-overflow-links a:hover { background: #f7f3eb; text-decoration: none; }
.type-navigation-overflow-links a.is-active { color: #963340; border-bottom: 2px solid #963340; }
.type-navigation.is-enhanced.all-in-overflow .type-navigation-overflow { margin-left: 0; }
.type-navigation.is-enhanced.all-in-overflow .type-navigation-overflow-links { left: 0; right: auto; }

@media (max-width: 760px) {
    .mobile-account-navigation > summary { display: flex; align-items: center; justify-content: center; gap: 5px; width: 52px; padding: 0; }
    .mobile-account-navigation > summary .gallery-nav-icon { width: 19px; height: 19px; flex-basis: 19px; color: currentColor; }
    .mobile-account-hamburger { flex: 0 0 14px; gap: 4px; }
    .mobile-account-hamburger span { width: 14px; height: 2px; }
}

/* Use the configured product preview colour for gallery image holders. */
.image-frame,
.gallery .gallery-item .image-frame,
.gallery:not(.document-gallery) .gallery-item .image-frame,
.document-gallery .image-frame {
    background: var(--product-preview-colour, #eae0ca);
}

/* Consistent gallery empty states, matching the ivory and forest palette. */
.gallery-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 340px;
    box-sizing: border-box;
    padding: 64px 24px;
    border: 0;
    background: transparent;
    text-align: center;
    box-shadow: none;
}
.gallery-empty-state[hidden] { display: none; }
.gallery-empty-icon { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: #eef1e6; color: #244a3c; }
.gallery-empty-icon svg { width: 36px; height: 36px; }
.gallery-empty-state h2 { margin: 0; color: #244a3c; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.3; }
.gallery-empty-state p { max-width: 560px; margin: 0; color: #746e61; font-size: 16px; line-height: 1.7; }
.gallery-empty-state--compact { min-height: 240px; padding: 36px 20px; }
@media (max-width: 600px) { .gallery-empty-state { min-height: 280px; padding: 40px 18px; } .gallery-empty-state p { font-size: 14px; } }

/* Related stamp collections: approved ivory and burgundy callout. */
.type-intro-page .thematic-collection-callout{display:flex;align-items:center;gap:18px;box-sizing:border-box;width:100%;max-width:760px;margin:22px 0 4px;padding:16px 20px;border:1px solid #d9cbb7;border-left:5px solid #8c1938;border-radius:6px;background:rgba(255,253,248,.92);color:#292522}
.thematic-collection-callout>svg{flex:0 0 34px;width:34px;height:40px;color:#8c1938}
.thematic-collection-callout>div{min-width:0;line-height:1.5;font-size:1.04rem}
.thematic-collection-callout>div>span{display:block}
.type-intro-page .thematic-collection-callout a{display:inline-flex;align-items:center;gap:14px;max-width:100%;margin-top:2px;color:#8c1938;font-weight:700;text-decoration:none}
.thematic-collection-callout a>span:first-child{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.type-intro-page .thematic-collection-callout a:hover{color:#65142b}
.thematic-collection-callout a:focus-visible{outline:2px solid #8c1938;outline-offset:5px;border-radius:2px}
.thematic-link-arrow{flex-shrink:0;font-size:1.4em;line-height:1}
@media(max-width:600px){.type-intro-page .thematic-collection-callout{gap:12px;padding:14px;margin-top:18px}.thematic-collection-callout>svg{flex-basis:26px;width:26px;height:32px}.thematic-collection-callout>div{font-size:1rem}.type-intro-page .thematic-collection-callout a{gap:8px}}






