/* Utvecklat av Mats Brännström för Varbergs fotoklubb. */
/* Only DigitalCup documents load this stylesheet; the WordPress theme is untouched. */
html[data-dc-theme]{background:var(--bg);color:var(--text)}
html[data-dc-theme] body{background:var(--bg);color:var(--text)}
html[data-dc-theme] body>header{background:var(--panel);border-color:var(--line)}
html[data-dc-theme] :is(main,header,footer,aside) :is(p,small){color:var(--muted)}
html[data-dc-theme] :is(main,header,footer,aside) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--field);border-color:var(--line);color:var(--text)}
html[data-dc-theme] :is(main,header,footer,aside) button:where(:not(.star-toggle,.rank-toggle,.tab,.link-button,.collection,.thumb,[data-layout])){background:var(--field);border-color:var(--line);color:var(--text)}
html[data-dc-theme] :is(main,header,footer,aside) button:where(:not(.star-toggle,.rank-toggle,.tab,.link-button,.collection,.thumb,[data-layout])):hover{background:var(--field);color:var(--text)}
html[data-dc-theme] :is(.panel,.competition-body,.vote-card,.demo-note,.round-end,.final-panel,.collection.active){background:var(--panel);border-color:var(--line);color:var(--text)}
html[data-dc-theme] :is(.dropzone,.secondary,.demo,.segmented .active){background:var(--field);border-color:var(--line);color:var(--accent)}
html[data-dc-theme] :is(main,header,footer,aside) :is(button.primary,#vote-submit){background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
html[data-dc-theme] :is(main,header,footer,aside) :is(button.primary,#vote-submit):hover{filter:brightness(1.08)}
html[data-dc-theme] :is(.eyebrow,.pill,.competition-meta,a){color:var(--accent)}
html[data-dc-theme] .tab.active,html[data-dc-theme] .tab:hover{color:var(--text)}
html[data-dc-theme] .dc-logo{filter:none;mix-blend-mode:normal;object-fit:contain;background:#f4f4f0;border-radius:5px;padding:7px}
html[data-dc-theme] :is(.stage,.board-photo,.result-board,.vote-photo){background:#050605}
html[data-dc-theme] .result-board{color:#eff0e9;--accent:#c8dbab;--muted:#b0bbb2}
html[data-dc-theme=light] .error{color:#a12620}
html[data-dc-theme=rainbow] body>header{border-bottom:5px solid transparent;border-image:linear-gradient(90deg,#e75d65,#efad4b,#eee27a,#70c894,#70b5ed,#b38cdb) 1}
html[data-dc-theme=rainbow] main .primary,html[data-dc-theme=rainbow] #vote-submit{background:linear-gradient(110deg,#f3b5cf,#efce86,#c8e6b6,#b4dcf4,#d5b8ee);color:#30203c;border-color:#e4bfed}
/* These local variables never inherit the selected theme. Photos are never filtered. */
#projection{color-scheme:dark;--bg:#000000;--panel:#111a14;--field:#152019;--line:#35463a;--text:#d2dacf;--muted:#a5b1a2;--accent:#b8c9ac;--accent-ink:#162019;background:#000;color:var(--text)}
#projection .projection-controls{background:#111a14}
#projection :is(.round-end,.final-panel,.panel,.comment-row){background:#111a14;color:var(--text);border-color:var(--line)}
#projection :is(.round-end,.final-panel,.panel,.comment-row) p{color:var(--muted)}
#projection :is(.primary,.secondary){background:#23362a;color:#b8c9ac;border-color:#40533f}
html[data-dc-theme] main :is(.class-toolbar,.view-class-picker,.competition-shortcode,.collection-badge,.alternative-choice){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-dc-theme] :is(#problem-dialog,#duplicate-dialog,.cup-action-dialog){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-dc-theme] dialog :is(input,select,textarea){background:var(--field);color:var(--text);border-color:var(--line)}
html[data-dc-theme] dialog p{color:var(--muted)}
html[data-dc-theme] .status.approved{color:#d0e7b5}html[data-dc-theme] .status.pending{color:#e3cf9d}html[data-dc-theme] .status.excluded{color:#e9b0a8}
body.projection-open dialog{--panel:#111a14;--field:#152019;--line:#35463a;--text:#d2dacf;--muted:#a5b1a2;--accent:#b8c9ac;--accent-ink:#162019;color-scheme:dark}

/* Navigation and selection controls keep their own surface and active states. */
html[data-dc-theme] header nav .tab{background:transparent;border-color:transparent;color:var(--muted)}
html[data-dc-theme] header nav .tab:hover,html[data-dc-theme] header nav .tab.active{background:transparent;color:var(--text)}
html[data-dc-theme] .link-button{background:transparent;color:var(--accent)}
html[data-dc-theme] .link-button:hover{background:transparent;text-decoration:underline}
html[data-dc-theme] .collection{background:transparent;color:var(--text)}
html[data-dc-theme] .collection.active{background:var(--field);color:var(--accent)}
html[data-dc-theme] main .segmented button{background:transparent;color:var(--muted)}
html[data-dc-theme] main .segmented button.active{background:var(--accent);color:var(--accent-ink)}
html[data-dc-theme] .thumb{background:var(--panel);color:var(--text)}
html[data-dc-theme] .provenance-tooltip{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-dc-theme] .image-description{color:#e3ebdf}
html[data-dc-theme] main .danger{color:#f2afa5}
html:is([data-dc-theme=light],[data-dc-theme=light_blue],[data-dc-theme=light_sand],[data-dc-theme=light_lavender]) :is(.error,main .danger){color:#a12620}
