/* Pirz optional dark palette. Light is always the default, regardless of OS theme. */
[data-pirz-design] .pirz-theme-toggle { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; gap:8px; padding:8px 12px; font-size:13px; white-space:nowrap; }
[data-pirz-design] .pirz-theme-toggle[hidden] { display:none; }
.theme-icon { font:24px/1 Arial,sans-serif; }
html[data-theme=dark] { color-scheme:dark; background:#0c0b0a; --pirz-ink:#f2e8dc; --pirz-line:#524031; }
html[data-theme=dark] [data-pirz-design] { --paper:#1c1916; --cream:#30241a; --muted:#c2ad98; color:#f2e8dc; background:#0c0b0a; }
html[data-theme=dark] body > table { background:#0c0b0a; }
html[data-theme=dark] [data-pirz-design] :is(.head,.gradient) { background-color:#0c0b0a; background-image:url('/images/fill-dark.svg'); background-repeat:repeat-x; background-position:top center; }
html[data-theme=dark] [data-pirz-design] .head { background-image:none; }
html[data-theme=dark] [data-pirz-design] #topMenuBar { background:#211915; border-bottom:1px solid #75452b; }
html[data-theme=dark] [data-pirz-design] #top-menu li a.root span { color:#f2e8dc; }
html[data-theme=dark] [data-pirz-design] #top-menu li a.root:is(:hover,[aria-current=page]) { background:#39261b; }
html[data-theme=dark] [data-pirz-design] #top-menu li a.root:is(:hover,[aria-current=page]) span { color:#ffad5c; }
html[data-theme=dark] [data-pirz-design] .pirz-header .site-fish { background-color:#ff9933; }
html[data-theme=dark] [data-pirz-design] :is(a,.creative-category-arrow,.person-more,.message-actions button) { color:#ffad5c; }
html[data-theme=dark] [data-pirz-design] a:hover { color:#ffd0a0; }
html[data-theme=dark] [data-pirz-design] :is(h1,h2,h3,.pirz-header p) { color:#f7ecde; }
html[data-theme=dark] [data-pirz-design] :is(.home-photo,.home-news,.home-creative,.home-interesting,.album-tile,.album-search,.photo-card,.photo-design-media .photo-detail,.photo-design-discussion,.guest-design-messages,.comment-form,.person-card,.photo-discussion,.archive-masonry figure,.creative-category,.creative-card,.creative-article,.identity-history,.archive-lightbox) { background:#1c1916; border-color:#524031; color:#f2e8dc; }
html[data-theme=dark] [data-pirz-design] :is(button,.design-button,.photo-navigation a,.pagination a,.pagination > span[aria-disabled],.page-numbers > span[aria-current],.guest-design-compose summary) { background:#251e18; border-color:#775539; color:#f3c99e; }
html[data-theme=dark] [data-pirz-design] :is(button,.design-button,.photo-navigation a):hover { background:#39291c; }
html[data-theme=dark] [data-pirz-design] :is(button[type=submit],.primary) { background:#b7352d; border-color:#d45e45; color:#fff4dc; }
html[data-theme=dark] [data-pirz-design] :is(input:not([type=hidden]),textarea,select) { background:#100e0c; color:#f2e8dc; border-color:#99704e; }
html[data-theme=dark] [data-pirz-design] ::placeholder { color:#ad9b87; opacity:1; }
html[data-theme=dark] [data-pirz-design] :is(.small,.message-meta time,.message-permalink,.album-info time,.album-counts dt,.photo-swipe-hint,.archive-kind,.archive-download span,.archive-heading > p,.archive-sources p,.archive-sources summary span,.identity-eyebrow,.identity-mark > span) { color:#c2ad98; }
html[data-theme=dark] [data-pirz-design] .discussion-body span[style] { color:#c2ad98 !important; }
html[data-theme=dark] [data-pirz-design] :is(.section-navigation,.pirz-message,.creative-recent,.creative-recent li,.creative-back,.archive-sources,.archive-dictionary,.bottom,.creative-article hr) { border-color:#524031; }
html[data-theme=dark] [data-pirz-design] .section-navigation a { background:none; }
html[data-theme=dark] [data-pirz-design] .section-navigation a[aria-current=page] { color:#ffad5c; border-bottom-color:#ff9933; }
html[data-theme=dark] [data-pirz-design] :is(.message-avatar,.gallery-view-switch [aria-pressed=true],.creative-article .code,.creative-category:hover,.identity-hero,.archive-filters [aria-pressed=true]) { background:#30241a; border-color:#a56836; color:#ffad5c; }
html[data-theme=dark] [data-pirz-design] .identity-hero h2 em { color:#ffad5c; }
html[data-theme=dark] [data-pirz-design] .identity-mark img { mix-blend-mode:normal; }
html[data-theme=dark] [data-pirz-design] :is(.archive-image,.image-status) { background:#14110e; }
html[data-theme=dark] [data-pirz-design] .image-status { color:#c2ad98; }
html[data-theme=dark] [data-pirz-design] :is(.field-error,.form-status) { color:#ffad82; }
html[data-theme=dark] [data-pirz-design] .comment-success { background:#202b1b; color:#dce7c7; }
html[data-theme=dark] [data-pirz-design] .pagination .page-numbers > span[aria-current] { background:#b7352d; color:#fff4dc; }
html[data-theme=dark] [data-pirz-design] :is(a,button,input,textarea,select,summary):focus-visible { outline-color:#ffad5c; }
/* Fullscreen retains its compact controls and neutral photograph stage. */
html[data-theme=dark] [data-pirz-design] .photo-viewer header { background:#211915; }
html[data-theme=dark] [data-pirz-design] .photo-viewer footer { background:#1c1916; }
html[data-theme=dark] [data-pirz-design] .photo-viewer button { background:transparent; color:#fff8ec; }
@media(max-width:640px) {
 [data-pirz-design] .pirz-theme-toggle { width:44px; height:44px; padding:0; }
 .pirz-theme-toggle .theme-label { display:none; }
 [data-pirz-design] .pirz-header .site-fish { flex-shrink:1; min-width:40px; }
}
html[data-theme=dark] [data-pirz-design] img.site-logo { filter:brightness(0) saturate(100%) invert(70%) sepia(57%) saturate(1364%) hue-rotate(331deg) brightness(104%) contrast(101%); }
html[data-theme=dark] [data-pirz-design] .home-news td:first-child { color:#c2ad98; }
html[data-theme=dark] [data-pirz-design] .home-news td { border-color:#524031; }

html[data-theme=dark] [data-pirz-design] .bottom { background:#0c0b0a url('/images/fill-dark.svg') repeat-x 100% 20%; }
html[data-theme=dark] [data-pirz-design].pirz-standalone { background:#0c0b0a url('/images/fill-dark.svg') repeat-x top center; }

/* Keep the archive hero artwork and its primary link legible on the dark surface. */
html[data-theme=dark] [data-pirz-design] .identity-mark img { filter:brightness(0) saturate(100%) invert(70%) sepia(57%) saturate(1364%) hue-rotate(331deg) brightness(104%) contrast(101%); }
html[data-theme=dark] [data-pirz-design] a.identity-jump { color:#fff4dc; }
