@layer components {

    /* === Slideshow (home) === */
    .slideshow-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-bottom: 2rem;
    }

    @media (max-width: 890px) {
        .slideshow-container {
            padding-left: 1rem;
            padding-right: 1rem;
        }
    }

    .slideshow-overlay-left,
    .slideshow-overlay-right {
        background-image: url("slideshow/ov-bg.png");
        height: 100%;
        position: absolute;
        z-index: 1;
        width: max(48px, calc((100vw - min(890px, 100vw)) / 2));
    }

    @media (max-width: 890px) {
        .slideshow-overlay-left,
        .slideshow-overlay-right {
            background-image: none;
        }
    }

    .slideshow-overlay-left  { left: 0; }
    .slideshow-overlay-right { right: 0; }

    .slideshow-track { display: flex; height: 100%; position: absolute; left: 50%; }
    .slideshow-slide { height: 100%; flex-shrink: 0; }
    .slideshow-slide img { width: 100%; height: 100%; object-fit: contain; }
    .slideshow-btn-prev { position: absolute; top: 50%; transform: translateY(-50%); right: 18%; cursor: pointer; }
    .slideshow-btn-next { position: absolute; top: 50%; transform: translateY(-50%); left: 18%; cursor: pointer; }

    /* === Footer === */
    .footer-text {
        text-align: center;
        font-size: 0.875rem;
        color: #846646;
        font-family: var(--font-body);
    }

    .footer-text > * + * { margin-top: 0.5rem; }

    .footer-copyright {
        text-align: center;
        font-size: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #594b3e;
        color: #594b3e;
        font-family: var(--font-heading);
        text-transform: uppercase;
    }

    /* --- Public page header --- */
    .public-page-header {
        padding-top: 1rem;
        padding-bottom: 1rem;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        border-bottom: 1px solid rgba(196, 161, 45, 0.2);
    }

    @media (min-width: 768px) {
        .public-page-header {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
    }

    .page-title {
        font-family: var(--font-heading);
        color: #f0d8aa;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        line-height: 1.25;
        font-size: 1.25rem;
    }

    @media (min-width: 768px) {
        .page-title { font-size: 1.7rem; }
    }

    .page-title-rule {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }

    .page-title-rule::after {
        content: "";
        display: block;
        height: 2px;
        width: 4rem;
        background: rgba(196, 161, 45, 0.4);
    }

    /* --- Public footer --- */
    .page-footer {
        border-top: 1px solid #594b3e;
    }

    .page-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-social-links {
        color: #846646;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-social-links a svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* === Shared public sidebar === */
    .public-sidebar {
        display: none;
        width: 100%;
        flex-shrink: 0;
    }

    @media (min-width: 1024px) {
        .public-sidebar {
            display: block;
            width: 16rem;
            position: sticky;
            top: 6rem;
            height: fit-content;
        }
    }

    .public-sidebar > * + * { margin-top: 2rem; }

    .sidebar-mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
    @media (min-width: 1024px) { .sidebar-mobile-header { display: none; } }

    .sidebar-mobile-title {
        font-family: var(--font-heading);
        color: #c4a12d;
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }

    .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; }

    .sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }

    .sidebar-mobile-trigger { position: relative; }

    .sidebar-mobile-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(196, 161, 45, 0.2);
        border-radius: 0.25rem;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #806a58;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s;
        &:hover { background: rgba(196, 161, 45, 0.1); }
    }

    .sidebar-mobile-btn svg { width: 0.875rem; height: 0.875rem; color: rgba(196, 161, 45, 0.7); }

    .sidebar-mobile-panel {
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 0.5rem;
        z-index: 50;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(196, 161, 45, 0.2);
        border-radius: 0.5rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        padding: 0.5rem 0;
        min-width: 180px;
        max-width: 220px;
    }

    .sidebar-mobile-panel .public-filter-button { width: 100%; }

    /* === Instrument sidebar sub-nav === */
    .sidebar-sub-nav {
        margin-bottom: 0.5rem;
        margin-left: 0.75rem;
        padding-left: 0.75rem;
        border-left: 1px solid rgba(196, 161, 45, 0.2);
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .sidebar-sub-link {
        display: block;
        text-align: left;
        padding: 0.25rem 0.75rem;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 700;
        transition: all 0.15s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }

    .sidebar-sub-link--active { color: #f0d8aa; }
    .sidebar-sub-link--inactive { color: rgba(128, 106, 88, 0.7); &:hover { color: #c4a12d; } }

    /* === Flash messages === */
    .flash-alert {
        display: flex;
        align-items: center;
        padding: 1rem;
        margin-bottom: 1rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        border-left-width: 4px;
        border-left-style: solid;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(4px);
        border-radius: 0 0.375rem 0.375rem 0;
    }

    .flash-alert--success { background: rgba(28, 67, 0, 0.8);  border-color: #4ade80; color: #4ade80; }
    .flash-alert--info    { background: rgba(0, 43, 77, 0.8);  border-color: #60a5fa; color: #60a5fa; }
    .flash-alert--danger  { background: rgba(59, 0, 0, 0.8);   border-color: #f87171; color: #f87171; }
    .flash-alert--warning { background: rgba(77, 38, 0, 0.8);  border-color: #fbbf24; color: #fbbf24; }

    .flash-alert-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-right: 0.75rem; }
    .flash-alert-msg  { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

    /* === Contact page === */
    .contact-map {
        margin-top: 2rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
        border-radius: 0.75rem;
        border: 1px solid rgba(196, 161, 45, 0.2);
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        height: 450px;
    }

    @media (min-width: 640px) {
        .contact-map iframe { filter: grayscale(1) invert(1); opacity: 0.8; transition: all 0.7s; }
        .contact-map iframe:hover { filter: none; opacity: 1; }
    }

    .contact-info-panel .body-heading-2,
    .contact-form-panel .body-heading-2 { margin-bottom: 1.5rem; }

    .contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
    .contact-info-row  { display: flex; align-items: flex-start; gap: 1rem; }

    .contact-info-icon { flex-shrink: 0; padding: 0.5rem; background: rgba(196, 161, 45, 0.1); border-radius: 0.5rem; color: #c4a12d; }
    .contact-info-icon svg { width: 1.5rem; height: 1.5rem; }
    .contact-info-row .content-label { margin-bottom: 0.25rem; }

    .contact-info-value { font-size: 0.875rem; }
    .contact-info-link  { color: #c4a12d; font-size: 0.875rem; transition: color 0.15s; &:hover { color: #fffbcf; } }

    .contact-social-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(196, 161, 45, 0.1); }
    .contact-social-section .content-label { margin-bottom: 1rem; }
    .contact-social-row { display: flex; gap: 1rem; }

    .contact-social-btn {
        padding: 0.5rem;
        background: rgba(196, 161, 45, 0.05);
        border: 1px solid rgba(196, 161, 45, 0.2);
        border-radius: 0.25rem;
        color: #c4a12d;
        transition: all 0.3s;
        &:hover { background: rgba(196, 161, 45, 0.1); border-color: #c4a12d; }
    }

    .contact-social-btn svg { width: 1.25rem; height: 1.25rem; }

    .contact-form { display: flex; flex-direction: column; gap: 1rem; }

    .contact-alert-success {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0.25rem;
        background: rgba(28, 67, 0, 0.2);
        border: 1px solid rgba(74, 222, 128, 0.4);
    }

    .contact-alert-success-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: #4ade80; }
    .contact-alert-success-msg  { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: #4ade80; }

    .contact-alert-danger { border-radius: 0.25rem; background: rgba(59, 0, 0, 0.2); border: 1px solid rgba(248, 113, 113, 0.4); padding: 1rem; }
    .contact-alert-danger-list { font-size: 0.875rem; color: rgba(248, 113, 113, 0.8); list-style: disc; padding-left: 1.25rem; }

    /* === Articles index === */
    .articles-empty { text-align: center; color: #594b3e; font-style: italic; font-size: 0.875rem; padding: 2rem 0; }

    .articles-section-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(196, 161, 45, 0.2);
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: #c4a12d;
        font-size: 1.2rem;
    }

    .article-list { display: flex; flex-direction: column; gap: 1rem; }
    .article-list--essays { margin-bottom: 2.5rem; }

    .surface-card {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 0.5rem;
        border: 1px solid rgba(196, 161, 45, 0.1);
        padding: 1.25rem;
        transition: all 0.3s;
        &:hover { background: rgba(0, 0, 0, 0.6); border-color: rgba(196, 161, 45, 0.3); }
    }

    .article-card-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #c4a12d;
        font-family: var(--font-body);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 700;
        transition: color 0.15s;
        &:hover { color: white; }
    }

    .article-card-link svg { width: 0.75rem; height: 0.75rem; }
    .article-card-date { font-size: 10px; color: #594b3e; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
    .article-card-teaser { font-size: 0.875rem; color: #B9A581; line-height: 1.625; margin-bottom: 1rem; }

    .article-list .body-heading-3 { margin-bottom: 0.5rem; }
    .activity-item .body-heading-3 { margin-bottom: 0.25rem; }

    /* === Activities === */
    .activity-timeline-section { position: relative; padding-left: 2rem; }

    .activity-timeline-line {
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, rgba(196, 161, 45, 0.4), rgba(196, 161, 45, 0.1), transparent);
    }

    .activity-scroll-top-btn {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        z-index: 40;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(196, 161, 45, 0.3);
        border-radius: 9999px;
        color: rgba(196, 161, 45, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(4px);
        cursor: pointer;
        transition: all 0.15s;
        &:hover { color: #c4a12d; background: rgba(0, 0, 0, 0.8); }
    }

    .activity-scroll-top-btn svg { width: 1rem; height: 1rem; }

    .activity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
    .activity-stat  { padding: 1rem; text-align: center; }

    .activity-stat-value          { font-family: Acme, sans-serif; font-size: 1.25rem; margin-bottom: 0.25rem; }
    .activity-stat-value--gold    { color: #c4a12d; }
    .activity-stat-value--heading { color: #f0d8aa; }

    .activity-year-row { position: relative; margin-bottom: 2rem; margin-left: -0.75rem; display: flex; align-items: center; }
    @media (min-width: 768px) { .activity-year-row { margin-left: -1rem; } }

    .activity-year-dot {
        width: 1.5rem; height: 1.5rem;
        border-radius: 9999px;
        background: black;
        border: 1px solid rgba(196, 161, 45, 0.5);
        display: flex; align-items: center; justify-content: center;
        z-index: 10;
        box-shadow: 0 0 10px rgba(196, 161, 45, 0.2);
    }

    .activity-year-dot-inner { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: #c4a12d; }
    .activity-year-label      { margin-left: 1.5rem; font-family: Acme, sans-serif; font-size: 1.25rem; color: #c4a12d; letter-spacing: 0.1em; }

    .activity-item        { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
    .activity-description { font-size: 0.875rem; line-height: 1.625; border-top: 1px solid rgba(196, 161, 45, 0.05); padding-top: 0.5rem; margin-top: 0.5rem; }

    .activity-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }

    .activity-badge {
        font-size: 8px; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.1em;
        padding: 0.125rem 0.5rem;
        border-radius: 0.25rem;
    }

    .activity-badge--type       { color: rgba(196, 161, 45, 0.7); background: rgba(196, 161, 45, 0.1); }
    .activity-badge--instrument { color: #b9a581; background: rgba(185, 165, 129, 0.1); border: 1px solid rgba(185, 165, 129, 0.2); }
    .activity-badge--award      { color: #c4a12d; background: rgba(196, 161, 45, 0.1); border: 1px solid rgba(196, 161, 45, 0.2); }

    .activity-location {
        font-size: 1rem; color: #594b3e; font-style: italic;
        letter-spacing: 0.05em;
        margin-top: 0.25rem; margin-bottom: 0.5rem;
        display: flex; align-items: center; gap: 0.5rem;
    }

    .activity-location svg { height: 0.625rem; width: 0.625rem; color: rgba(196, 161, 45, 0.4); flex-shrink: 0; }

    .activities-empty { text-align: center; padding: 2rem 0; color: #594b3e; font-style: italic; font-size: 0.75rem; }

    /* === Instruments === */
    .instrument-strip { padding: 0.75rem 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; }
    .instrument-strip-count { margin-left: auto; }

    .instrument-count-value {
        font-family: var(--font-heading);
        color: #f0d8aa;
    }

    .instrument-count-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #594b3e;
        font-weight: 700;
        margin-left: 0.25rem;
    }

    .instrument-grid-panel { padding: 1.5rem; }
    .instrument-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

    .instrument-card { display: block; width: 100%; }
    @media (min-width: 768px)  { .instrument-card { width: calc(50% - 1rem); } }
    @media (min-width: 1024px) { .instrument-card { width: calc(33.333% - 1.334rem); } }

    .instrument-card-image {
        position: relative;
        aspect-ratio: 2/3;
        background: black;
        border-radius: 0.75rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        isolation: isolate;
    }

    .instrument-card-image-bg { position: absolute; inset: 0; }

    .instrument-card-no-image {
        width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        color: #594b3e; font-style: italic;
        text-transform: uppercase; letter-spacing: 0.1em;
        font-size: 9px;
    }

    .instrument-card-caption { padding: 0.75rem 0.25rem; }

    .instrument-card-title {
        font-size: 0.75rem; text-transform: uppercase;
        letter-spacing: 0.1em; font-weight: 700;
        text-align: center; color: #b9a581;
        transition: color 0.15s;
    }

    .instrument-card:hover .instrument-card-title { color: #f0d8aa; }

    .instrument-images-panel { padding: 0.75rem 1.25rem; }
    .instrument-images-inner { max-width: 24rem; margin: 0 auto; }

    .public-empty-state {
        text-align: center;
        padding: 3rem 0;
        color: #594b3e;
        font-style: italic;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 1rem;
    }

    /* === Lightbox === */
    .lightbox-modal {
        position: fixed; inset: 0; z-index: 50;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(4px);
        display: flex; align-items: center; justify-content: center;
        padding: 1rem;
    }

    .lightbox-modal-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(80px) brightness(0.6); transform: scale(1.1); }

    .lightbox-close {
        position: absolute; top: 0; right: 1rem; z-index: 10;
        cursor: pointer; color: white; padding: 1rem; transition: color 0.15s;
        &:hover { color: #c4a12d; }
    }
    @media (min-width: 768px) { .lightbox-close { padding: 2rem; } }
    .lightbox-close svg { width: 2rem; height: 2rem; margin-right: 0.25rem; }

    .lightbox-prev {
        position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
        z-index: 10; cursor: pointer; color: white; padding: 1rem; transition: color 0.15s;
        &:hover { color: #c4a12d; }
    }
    @media (min-width: 768px) { .lightbox-prev { padding: 2rem; } }
    .lightbox-prev svg { width: 2.5rem; height: 2.5rem; }

    .lightbox-next {
        position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
        z-index: 10; cursor: pointer; color: white; padding: 1rem; transition: color 0.15s;
        &:hover { color: #c4a12d; }
    }
    @media (min-width: 768px) { .lightbox-next { padding: 2rem; } }
    .lightbox-next svg { width: 2.5rem; height: 2.5rem; }

    .lightbox-image {
        position: relative; z-index: 10;
        max-height: 85vh; max-width: 90vw;
        object-fit: contain;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border-radius: 0.125rem;
    }

    /* === Image gallery (instrument_images partial) === */
    .img-instruments { display: flex; align-items: flex-start; gap: 0.5rem; }

    .img-instruments-thumbs         { display: flex; flex-direction: column; flex-shrink: 0; width: 3rem; gap: 0.5rem; }
    .img-instruments-thumbs--admin  { gap: 0.375rem; }

    .img-instruments-thumb {
        width: 3rem; aspect-ratio: 2/3;
        border-radius: 0.125rem; overflow: hidden;
        cursor: pointer; transition: all 0.3s;
    }

    .img-instruments-thumb img {
        width: 100%; height: 100%; object-fit: cover;
        filter: grayscale(1); opacity: 0.75;
        transition: all 0.5s;
    }

    .img-instruments-thumb:hover img { filter: none; opacity: 1; }

    .img-instruments-admin-thumb {
        position: relative; width: 3rem; aspect-ratio: 2/3;
        flex-shrink: 0; cursor: grab; border-radius: 0.125rem;
    }

    .img-instruments-admin-thumb--cover { box-shadow: 0 0 0 2px #c4a12d; }
    .img-instruments-admin-thumb--dragging { opacity: 0.4; cursor: grabbing; }

    .img-instruments-admin-thumb-inner { width: 100%; height: 100%; overflow: hidden; border-radius: 0.125rem; }
    .img-instruments-admin-thumb-inner img { width: 100%; height: 100%; object-fit: cover; }

    .img-instruments-thumb-overlay {
        position: absolute; inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0; transition: opacity 0.15s;
        display: flex; align-items: flex-end; justify-content: flex-end;
        padding: 0.25rem; border-radius: 0.125rem;
    }

    .img-instruments-admin-thumb:hover .img-instruments-thumb-overlay { opacity: 1; }

    .img-instruments-thumb-set-cover {
        padding: 0.25rem; margin-right: 0.25rem;
        background: rgba(15, 10, 5, 0.9);
        border: 1px solid rgba(196, 161, 45, 0.4);
        border-radius: 9999px;
        color: rgba(196, 161, 45, 0.6);
        transition: all 0.15s;
        &:hover { background: rgba(196, 161, 45, 0.2); border-color: #c4a12d; color: #c4a12d; }
    }

    .img-instruments-thumb-set-cover svg { width: 0.625rem; height: 0.625rem; }

    .img-instruments-thumb-purge {
        padding: 0.25rem;
        background: rgba(127, 29, 29, 0.9);
        border-radius: 9999px; color: white; transition: all 0.15s;
        &:hover { background: rgb(220, 38, 38); }
    }

    .img-instruments-thumb-purge svg { width: 0.625rem; height: 0.625rem; }

    .img-instruments-pending { position: relative; width: 3rem; aspect-ratio: 2/3; flex-shrink: 0; border-radius: 0.125rem; }

    .img-instruments-pending img {
        width: 100%; height: 100%; object-fit: cover;
        border-radius: 0.125rem;
        border: 1px solid rgba(196, 161, 45, 0.2);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        cursor: pointer;
    }

    .img-instruments-pending-remove {
        position: absolute; top: -0.25rem; right: -0.25rem;
        background: rgba(127, 29, 29, 0.9); border-radius: 9999px;
        width: 1rem; height: 1rem;
        display: flex; align-items: center; justify-content: center;
        color: white; transition: all 0.15s;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        &:hover { background: rgb(220, 38, 38); }
    }

    .img-instruments-pending-remove svg { width: 0.625rem; height: 0.625rem; }

    .img-instruments-queue { display: flex; flex-direction: column; gap: 0.375rem; }

    .img-instruments-main        { margin-left: 1rem; flex: 1; }
    .img-instruments-main--fixed { flex: none; }

    .img-instruments-main-frame            { position: relative; overflow: hidden; border-radius: 0.75rem; }
    .img-instruments-main-frame--clickable { cursor: pointer; }

    .img-instruments-main-bg       { position: absolute; inset: 0; }
    .img-instruments-main-bg--blur { background-size: cover; background-position: center; transform: scale(1.15); filter: blur(28px); }

    .img-instruments-main-img { max-width: none; }
    .img-instruments-main-frame--clickable .img-instruments-main-img { transition: opacity 0.3s; }
    .img-instruments-main-frame--clickable:hover .img-instruments-main-img { opacity: 0.75; }

    .img-instruments-main-cover { width: 100%; height: 100%; object-fit: cover; }
    .img-instruments-main-frame--clickable .img-instruments-main-cover { transition: opacity 0.3s; }
    .img-instruments-main-frame--clickable:hover .img-instruments-main-cover { opacity: 0.75; }

    .img-instruments-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
    .img-instruments-no-image--public { color: #594b3e; font-style: italic; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
    .img-instruments-no-image-label { font-size: 9px; color: #594b3e; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; padding: 0 0.5rem; }

    /* --- Public layout --- */
    .public-container {
        max-width: 64rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    @media (min-width: 640px)  { .public-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
    @media (min-width: 1024px) { .public-container { padding-left: 2rem;   padding-right: 2rem; } }

    .public-main-content {
        flex: 1 1 0%;
        min-width: 0;
    }

    .public-layout-with-sidebar {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    @media (min-width: 1024px) { .public-layout-with-sidebar { flex-direction: row; } }

    /* --- Semantic surface primitives --- */
    .surface-panel {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(12px);
        border-radius: 0.75rem;
        border: 1px solid rgba(196, 161, 45, 0.2);
        padding: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    @media (min-width: 768px) { .surface-panel { padding: 2rem; } }

    .surface-panel-flex {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
        border-radius: 0.75rem;
        border: 1px solid rgba(196, 161, 45, 0.2);
        padding: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    @media (min-width: 768px) { .surface-panel-flex { padding: 2rem; } }

    .surface-panel-bleed {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
        border-radius: 0.75rem;
        border: 1px solid rgba(196, 161, 45, 0.2);
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .surface-subtle {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 0.5rem;
        border: 1px solid rgba(196, 161, 45, 0.1);
    }

    .content-richtext {
        max-width: none;
        color: #b9a581;
        line-height: 1.625;
        font-size: 1rem;
        font-family: var(--font-body);
    }

    .content-richtext-compact {
        max-width: none;
        color: #b9a581;
        line-height: 1.625;
        font-size: 0.875rem;
        font-family: var(--font-body);
        opacity: 0.8;
    }

    .content-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #594b3e;
        font-weight: 700;
    }

    .body-heading-2 {
        font-family: var(--font-heading);
        color: #c4a12d;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 1.2rem;
    }

    .body-heading-3 {
        font-family: var(--font-heading);
        font-size: 1rem;
        color: #f0d8aa;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

    /* --- Semantic grid primitives --- */
    .layout-grid-2-compact {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    @media (min-width: 768px) { .layout-grid-2-compact { grid-template-columns: repeat(2, 1fr); } }

    .layout-grid-2-relaxed {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 1024px) { .layout-grid-2-relaxed { grid-template-columns: repeat(2, 1fr); } }

    .layout-grid-3-balanced {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    @media (min-width: 768px)  { .layout-grid-3-balanced { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .layout-grid-3-balanced { grid-template-columns: repeat(3, 1fr); } }

    .layout-grid-3-relaxed {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 768px)  { .layout-grid-3-relaxed { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .layout-grid-3-relaxed { grid-template-columns: repeat(3, 1fr); } }

    .layout-grid-image-thumbs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    @media (min-width: 640px) { .layout-grid-image-thumbs { grid-template-columns: repeat(4, 1fr); } }
    @media (min-width: 768px) { .layout-grid-image-thumbs { grid-template-columns: repeat(6, 1fr); } }

    .layout-grid-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* --- Public form atoms --- */
    .form-label-subtle {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #594b3e;
        margin-bottom: 0.25rem;
        font-weight: 700;
    }

    .form-input-public {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(196, 161, 45, 0.2);
        border-radius: 0.25rem;
        padding: 0.75rem 1rem;
        color: #b9a581;
        font-size: 0.875rem;
        outline: none;
        transition: all 0.15s;

        &::placeholder { color: rgba(89, 75, 62, 0.4); }
        &:focus { border-color: #c4a12d; box-shadow: 0 0 0 1px #c4a12d; }
    }

    .btn-accent-block {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
        background-color: rgba(196, 161, 45, 0.05);
        border: 1px solid rgba(196, 161, 45, 0.4);
        color: #c4a12d;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
        font-weight: 700;
        transition: all 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

        &:hover { background-color: rgba(196, 161, 45, 0.1); border-color: #c4a12d; }
    }

    /* --- Public activity filter --- */
    .public-filter-title {
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: #c4a12d;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(196, 161, 45, 0.2);
        font-size: 1.2rem;
    }

    .public-filter-button {
        text-align: left;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.15s;
        color: #806a58;
        font-weight: 700;
        background: none;
        border: none;
        cursor: pointer;
        display: block;
        width: 100%;

        &:hover { background-color: rgba(196, 161, 45, 0.1); }
    }

    .active-filter {
        background-color: rgba(196, 161, 45, 0.2);
        color: #fffbcf;
        border-right: 2px solid #c4a12d;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@layer content {
    .richtext {
        font-family: var(--font-body);
        font-size: 1rem;
        line-height: 1.8;
        color: var(--color-on-surface);

        h1 {
            font-family: var(--font-heading);
            font-size: 1.7rem;
            color: var(--color-heading);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin: 1.5rem 0 0.75rem;
        }

        h2 {
            font-family: var(--font-heading);
            font-size: 1.2rem;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 1.5rem 0 0.75rem;
        }

        h3 {
            font-family: var(--font-nav);
            font-size: 1rem;
            color: var(--color-heading);
            margin: 1.25rem 0 0.5rem;
        }

        p { margin: 0 0 var(--space-block); }

        a { color: var(--color-primary); text-decoration: underline; }
        a:hover { color: var(--color-heading); }

        strong, b { font-weight: bold; color: var(--color-heading); }
        em, i     { font-style: italic; }

        blockquote {
            border-left: 4px solid var(--color-primary);
            padding-left: 1.5em;
            font-style: italic;
            margin: 2em 0;
            color: var(--color-on-surface-variant);
        }

        ul { list-style: disc;    padding-left: 1.5em; margin: 0.75rem 0; }
        ol { list-style: decimal; padding-left: 1.5em; margin: 0.75rem 0; }
        li { margin-bottom: 0.25rem; }

        hr { border: none; border-top: 1px solid var(--color-outline); margin: 2rem 0; }

        img    { max-width: 100%; height: auto; }
        figure { margin: 1.5rem 0; }
        figure img { display: block; }

        &::after { content: ""; display: table; clear: both; }
    }
}
