/* Public brand collections. Theme IDs remain compatible with saved brands. */
.bd-page {
    --bd-paper: #f6f5f0;
    --bd-ink: #242923;
    --bd-muted: #666b62;
    --bd-line: #d5d8cd;
    --bd-accent: #496247;
    --bd-soft: #e8eadf;
    margin: 0;
    background: var(--bd-paper);
    color: var(--bd-ink);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Noto Sans JP", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.bd-page *, .bd-page *::before, .bd-page *::after { box-sizing: border-box; }
.bd-page a { color: inherit; text-decoration: none; }
.bd-page button { font: inherit; color: inherit; cursor: pointer; }
.bd-page [hidden] { display: none !important; }
.bd-page :focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 5px; }
.bd-page h1, .bd-page h2, .bd-page h3, .bd-page p { margin: 0; }
.bd-page h1, .bd-page h3 { word-break: keep-all; overflow-wrap: anywhere; }
.bd-shell { width: min(1480px, 100% - 112px); margin-inline: auto; }
.bd-skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--bd-paper); z-index: 100; }
.bd-skip:focus { top: 10px; }
.bd-owner { padding: 9px 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 12px; background: var(--bd-soft); }
.bd-owner a { text-decoration: underline; text-underline-offset: 3px; }
.bd-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--bd-line); }
.bd-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 650; min-height: 44px; }
.bd-brand > span:last-child { max-width: 40ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bd-logo { display: block; width: auto; height: auto; max-width: 160px; max-height: 40px; object-fit: contain; flex-shrink: 0; }
.bd-index-link { flex-shrink: 0; padding-block: 12px; font-size: 12px; }
.bd-index-link span { margin-left: 8px; }
.bd-intro { display: block; padding: 28px 0 24px; }
.bd-heading { flex: 1; min-width: 0; }
.bd-eyebrow { font-size: 12px; letter-spacing: .04em; font-weight: 550; margin-bottom: 10px !important; color: var(--bd-muted); overflow-wrap: anywhere; }
.bd-heading h1 { font-size: clamp(32px, 4.1vw, 60px); letter-spacing: -.05em; line-height: 1.2; font-weight: 650; }
.bd-intro-aside { max-width: 70ch; margin-top: 12px; min-width: 0; font-size: 13px; color: var(--bd-muted); overflow-wrap: anywhere; }
.bd-collection-count { color: var(--bd-muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.bd-filters { padding: 0 0 12px; }
.bd-filter { display: flex; flex-direction: column; gap: 4px; }
.bd-filter-row { display: flex; align-items: center; gap: 20px; }
.bd-filter-label { min-width: 40px; font-size: 11px; color: var(--bd-muted); }
.bd-filter-options { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; min-width: 0; }
.bd-filter-options::-webkit-scrollbar { display: none; }
.bd-filter-options a {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}
/* Keep the visible pill compact independently of its touch target. */
.bd-filter-options a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid transparent;
    border-radius: 999px;
}
.bd-filter-options a:hover::before { border-color: var(--bd-line); }
.bd-filter-options a[aria-current="page"] { color: var(--bd-paper); }
.bd-filter-options a[aria-current="page"]::before { background: var(--bd-ink); }
@media (any-pointer: coarse) {
    .bd-filter-options a { min-height: 44px; }
    .bd-filter-options a::before { inset-block: 6px; }
}
.bd-collection { scroll-margin-top: 20px; }
.bd-section-head { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--bd-line); padding: 14px 0; }
.bd-section-head h2 { font-size: 13px; font-weight: 600; }
.bd-year { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 500; margin: 32px 0 20px !important; letter-spacing: -.04em; }
.bd-year:first-of-type { margin-top: 0 !important; }
.bd-year span { font-size: 11px; color: var(--bd-muted); letter-spacing: 0; }
.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.bd-card { min-width: 0; }
.bd-card-link { display: block; height: 100%; }
.bd-visual { position: relative; aspect-ratio: 4 / 3; background: var(--bd-soft); overflow: hidden; }
.bd-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bd-cover-fallback { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--bd-accent); font-size: 12px; }
.bd-cover-fallback > span { font-family: Georgia, serif; font-size: 64px; font-style: italic; }
.bd-image-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; background: var(--bd-paper); color: var(--bd-ink); border-radius: 50%; font-size: 20px; }
.bd-status { position: absolute; top: 14px; left: 14px; padding: 5px 10px; font-size: 11px; background: var(--bd-paper); color: var(--bd-ink); border-radius: 18px; }
.bd-card-info { padding: 16px 0 0; }
.bd-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: 10px; color: var(--bd-muted); margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.bd-card h3 { font-size: clamp(18px, 1.6vw, 23px); font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.bd-card-description { font-size: 12px; color: var(--bd-muted); margin-top: 8px !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bd-open { display: none; font-size: 12px; margin-top: 24px; }
.bd-open > span { margin-left: 12px; }
.bd-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 80px; border-top: 1px solid var(--bd-line); padding: 24px 0 36px; font-size: 11px; color: var(--bd-muted); }
.bd-empty { padding: 72px 20px; text-align: center; color: var(--bd-muted); border: 1px dashed var(--bd-line); }
.bd-empty > span { display: block; font-size: 40px; margin-bottom: 12px; }
.bd-rail { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 12px; }
.bd-rail::-webkit-scrollbar { display: none; }
.bd-rail .bd-card { flex: 0 0 72%; scroll-snap-align: start; }
.bd-rail-controls { display: flex; align-items: center; gap: 8px; }
.bd-position { font-size: 11px; color: var(--bd-muted); margin-right: 14px; font-variant-numeric: tabular-nums; }
.bd-rail-controls button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bd-line); background: transparent; }
.bd-rail-controls button svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.bd-rail-controls button:disabled { opacity: .3; cursor: default; }
.bd-rail-controls button:not(:disabled):hover { background: var(--bd-ink); color: var(--bd-paper); }
@media (hover: hover) { .bd-card-link:hover .bd-visual img { transform: scale(1.025); } .bd-card-link:hover h3 { color: var(--bd-accent); } }

/* 01: a quiet, growing archive; first cover introduces each year's collection. */
.bd-design-1 .bd-grid .bd-card:first-child { grid-column: span 2; }
.bd-design-1 .bd-grid .bd-card:first-child .bd-visual { aspect-ratio: 2.1; }
.bd-design-1 .bd-grid .bd-card:nth-child(2) .bd-visual { aspect-ratio: 1.02; }

/* 02: a cinematic exhibition, with manual navigation instead of autoplay. */
.bd-design-2 { --bd-paper: #171b1b; --bd-ink: #f1f0e8; --bd-muted: #b4bbb4; --bd-line: #424b45; --bd-accent: #c3d3a2; --bd-soft: #29322d; }

.bd-design-2 .bd-heading h1 { font-size: clamp(32px, 4.1vw, 60px); }
.bd-design-2 .bd-rail .bd-card { flex-basis: 100%; }
.bd-design-2 .bd-card-link { position: relative; }
.bd-design-2 .bd-visual { aspect-ratio: 2.05; min-height: 460px; }
.bd-design-2 .bd-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0,0,0,.82)); }
.bd-design-2 .bd-card-info { position: absolute; inset: auto 6% 9%; max-width: 72%; color: white; }
.bd-design-2 .bd-card-meta, .bd-design-2 .bd-card-description { color: #e0e4df; }
.bd-design-2 .bd-card h3 { font-size: clamp(28px, 4vw, 58px); }
.bd-design-2 .bd-open { display: block; }
.bd-design-2 .bd-image-arrow { z-index: 1; }

/* 03: landscape strip. */
.bd-design-3 { --bd-paper: #eef2f2; --bd-ink: #23353a; --bd-muted: #5c7074; --bd-line: #cbd6d7; --bd-accent: #386d74; --bd-soft: #d6e2e3; }
.bd-design-3 .bd-intro { text-align: center; display: block; }
.bd-design-3 .bd-heading { max-width: 100%; }
.bd-design-3 .bd-intro-aside { margin: 12px auto 0; max-width: 60ch; }

.bd-design-3 .bd-rail .bd-card { flex-basis: 79%; }
.bd-design-3 .bd-visual { aspect-ratio: 2.3; }

/* 04: a curated gallery of generous portrait-ish covers. */
.bd-design-4 { --bd-paper: #e9e7e1; --bd-ink: #343a31; --bd-muted: #666d61; --bd-line: #c9ccc1; --bd-accent: #53634c; --bd-soft: #d4d9c9; }

.bd-design-4 .bd-rail .bd-card { flex-basis: 43%; }
.bd-design-4 .bd-visual { aspect-ratio: 1.12; border-radius: 2px; }
.bd-design-4 .bd-card-info { padding: 20px 10px; }

/* 05: editorial rhythm, not a uniform card grid. */
.bd-design-5 { --bd-paper: #faf7f0; --bd-ink: #373127; --bd-muted: #766c5c; --bd-line: #dbd2c1; --bd-accent: #9a4d35; --bd-soft: #ece4d5; }
.bd-design-5 .bd-heading h1, .bd-design-5 .bd-card h3 { font-family: Georgia, 'Noto Serif KR', 'Noto Serif JP', serif; font-weight: 500; }
.bd-design-5 .bd-grid { grid-template-columns: 1.25fr 1fr; gap: 64px 64px; }
.bd-design-5 .bd-card:nth-child(even) { padding-top: 100px; }
.bd-design-5 .bd-card:nth-child(odd) .bd-visual { aspect-ratio: .94; }
.bd-design-5 .bd-card:nth-child(even) .bd-visual { aspect-ratio: 1.3; }
.bd-design-5 .bd-open { display: block; }

/* 06: touch-first vertical stories without timed transitions. */
.bd-design-6 { --bd-paper: #23212b; --bd-ink: #f2edf7; --bd-muted: #b9b2c9; --bd-line: #494353; --bd-accent: #d6bce8; --bd-soft: #393143; }
.bd-design-6 .bd-heading h1 { font-size: clamp(34px, 4vw, 60px); }

.bd-design-6 .bd-rail .bd-card { flex-basis: 31%; }
.bd-design-6 .bd-visual { aspect-ratio: 3 / 4; border-radius: 18px; }
.bd-design-6 .bd-card-info { padding: 16px 4px; }

/* 07: warm rounded family archive. */
.bd-design-7 { --bd-paper: #fbf6ee; --bd-ink: #493d31; --bd-muted: #7d6a56; --bd-line: #e2d5c3; --bd-accent: #9c5b3a; --bd-soft: #eee1ce; }
.bd-design-7 .bd-intro { text-align: center; display: block; }
.bd-design-7 .bd-heading { max-width: 100%; }
.bd-design-7 .bd-intro-aside { max-width: 60ch; margin: 12px auto 0; }

.bd-design-7 .bd-card { background: #fffcf7; padding: 12px; border-radius: 22px; }
.bd-design-7 .bd-visual { border-radius: 14px; }
.bd-design-7 .bd-card-info { padding: 18px 10px 12px; }

/* 08: retained legacy ID, replaced the inaccessible shutter effect with split stories. */
.bd-design-8 { --bd-paper: #f1eee7; --bd-ink: #2d302b; --bd-muted: #686b61; --bd-line: #cccfc3; --bd-accent: #596e50; --bd-soft: #dce2d2; }
.bd-design-8 .bd-grid { grid-template-columns: 1fr; gap: 52px; }
.bd-design-8 .bd-card-link { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8%; align-items: center; }
.bd-design-8 .bd-card:nth-child(even) .bd-visual { order: 2; }
.bd-design-8 .bd-card h3 { font-size: clamp(26px, 3vw, 42px); }
.bd-design-8 .bd-card-info { padding: 20px 0; }
.bd-design-8 .bd-card-description { font-size: 14px; -webkit-line-clamp: 4; }
.bd-design-8 .bd-open { display: block; }

/* 09: varied blocks, with titles outside the photographs for contrast. */
.bd-design-9 { --bd-paper: #f0f2ee; --bd-ink: #26352e; --bd-muted: #607065; --bd-line: #cdd6cd; --bd-accent: #3e7452; --bd-soft: #dde6d3; }
.bd-design-9 .bd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bd-design-9 .bd-card { grid-column: span 2; padding: 12px; background: #e4eadd; border-radius: 16px; }
.bd-design-9 .bd-card:nth-child(3n + 2), .bd-design-9 .bd-card:nth-child(3n + 3) { grid-column: span 1; }
.bd-design-9 .bd-visual { aspect-ratio: 1.7; border-radius: 9px; }
.bd-design-9 .bd-card:nth-child(3n + 2) .bd-visual, .bd-design-9 .bd-card:nth-child(3n + 3) .bd-visual { aspect-ratio: .82; }
.bd-design-9 .bd-card-info { padding: 16px 6px 10px; }
.bd-design-9 .bd-card-description { display: none; }

/* 10: print-like cards, no hidden content or 3D rotation. */
.bd-design-10 { --bd-paper: #ece7df; --bd-ink: #42382e; --bd-muted: #786c5c; --bd-line: #d3c9ba; --bd-accent: #7c5e40; --bd-soft: #ddd2c2; }
.bd-design-10 .bd-rail { padding: 18px 10px 28px; gap: 40px; scroll-padding-inline: 10px; }
.bd-design-10 .bd-rail .bd-card { flex-basis: 32%; padding: 14px 14px 24px; background: #fffdf7; box-shadow: 0 8px 20px #4435220d; transform: rotate(-1.2deg); }
.bd-design-10 .bd-card:nth-child(even) { transform: rotate(1.2deg); }
.bd-design-10 .bd-visual { aspect-ratio: 1; }
.bd-design-10 .bd-card-info { padding: 22px 6px 0; }

@media (max-width: 1000px) {
    .bd-shell { width: calc(100% - 56px); }
    .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-design-1 .bd-grid .bd-card:first-child { grid-column: span 2; }
    .bd-design-1 .bd-grid .bd-card:nth-child(2) .bd-visual { aspect-ratio: 4 / 3; }
    .bd-design-5 .bd-grid { gap: 36px; }
    .bd-design-6 .bd-rail .bd-card { flex-basis: 43%; }
    .bd-design-9 .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-design-9 .bd-card { grid-column: auto !important; }
    .bd-design-9 .bd-visual { aspect-ratio: 1.1 !important; }
    .bd-design-10 .bd-rail .bd-card { flex-basis: 42%; }
}
@media (max-width: 600px) {
    .bd-shell { width: calc(100% - 36px); }
    .bd-topbar { padding: 6px 0; gap: 12px; }
    .bd-brand { font-size: 12px; gap: 9px; }
    .bd-brand > span:last-child { max-width: 46vw; min-width: 0; }
    .bd-logo { max-width: 96px; max-height: 32px; }
    .bd-index-link { font-size: 11px; }
    .bd-index-link span { margin-left: 5px; }
    .bd-page .bd-intro { display: block; padding: 20px 0 18px; }
    .bd-heading { max-width: 100%; }
    .bd-heading h1 { font-size: clamp(32px, 8.2vw, 48px); letter-spacing: -.05em; }
    .bd-eyebrow { margin-bottom: 8px !important; font-size: 11px; }
    .bd-page .bd-intro-aside { max-width: 100%; margin-top: 10px; font-size: 12px; }
    .bd-filter-row { gap: 8px; }
    .bd-filter-label { min-width: 28px; }
    .bd-filter-options a { padding-inline: 10px; }
    .bd-filters { padding-bottom: 8px; }
    .bd-section-head { padding-block: 12px; }
    .bd-grid { grid-template-columns: 1fr; gap: 30px; }
    .bd-page .bd-grid .bd-card { grid-column: auto; padding-top: 0; }
    .bd-design-1 .bd-grid .bd-card:first-child .bd-visual { aspect-ratio: 4 / 3; }
    .bd-card-meta { font-size: 10px; }
    .bd-card h3 { font-size: 20px; }
    .bd-image-arrow { width: 32px; height: 32px; }
    .bd-footer { margin-top: 44px; padding-bottom: 26px; }
    .bd-rail { gap: 14px; }
    .bd-rail .bd-card { flex-basis: 88%; }
    .bd-position { margin-right: 4px; }
    .bd-design-2 .bd-visual { min-height: 480px; aspect-ratio: 3 / 4; }
    .bd-design-2 .bd-card-info { max-width: none; inset: auto 24px 32px; }
    .bd-design-2 .bd-card h3 { font-size: 32px; }
    .bd-design-3 .bd-rail .bd-card { flex-basis: 91%; }
    .bd-design-3 .bd-visual { aspect-ratio: 1.4; }
    .bd-design-4 .bd-rail .bd-card { flex-basis: 86%; }
    .bd-design-5 .bd-grid { grid-template-columns: 1fr; }
    .bd-design-5 .bd-card:nth-child(n) .bd-visual { aspect-ratio: 1.2; }
    .bd-design-6 .bd-rail .bd-card { flex-basis: 84%; }
    .bd-design-6 .bd-visual { aspect-ratio: 3 / 4; }
    .bd-design-7 .bd-intro-aside { display: block; }
    .bd-design-8 .bd-card-link { display: flex; flex-direction: column; gap: 0; }
    .bd-design-8 .bd-visual { width: 100%; order: 0 !important; }
    .bd-design-8 .bd-card-info { width: 100%; }
    .bd-design-8 .bd-card h3 { font-size: 26px; }
    .bd-design-9 .bd-grid { grid-template-columns: 1fr; }
    .bd-design-9 .bd-visual { aspect-ratio: 1.4 !important; }
    .bd-design-10 .bd-rail { gap: 20px; }
    .bd-design-10 .bd-rail .bd-card { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) {
    .bd-page *, .bd-page *::before, .bd-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
