/* Dark theme (generated from character-registry.css) */
:where(html[data-theme="dark"]) .registry-entry-media {
    background: linear-gradient(145deg,#241f20,#1e1b1b)
}
:where(html[data-theme="dark"]) .registry-portrait-placeholder {
    background: radial-gradient(ellipse at top,rgba(24,24,24,0.89),transparent 75%),linear-gradient(140deg,#292125,#1e1b1c);
    color: #c9b2bb
}
:where(html[data-theme="dark"]) .registry-sidebar input {
    border: 1px solid rgba(77,61,69,0.75);
    background: rgba(24,24,24,0.9);
    color: var(--ink)
}
:where(html[data-theme="dark"]) .registry-choice {
    border: 1px solid rgba(76,62,68,0.75);
    background: rgba(24,24,24,0.633);
    color: #d0c6cc
}
:where(html[data-theme="dark"]) .registry-thumb-placeholder {
    background: #211c1f;
    color: #c3a5b2
}
:where(html[data-theme="dark"]) .registry-choice:hover {
    background: #271d21
}
:where(html[data-theme="dark"]) .registry-choice[aria-pressed=true] {
    background: rgba(33,26,29,0.9);
    color: #e399ab;
    border-color: #9d4862;
    box-shadow: inset 4px 0 0 #8b182a
}
:where(html[data-theme="dark"]) .registry-choice:focus-visible {
    outline: 3px solid #9d4862
}
:where(html[data-theme="dark"]) .registry-banner:after {
    background: linear-gradient(90deg,#271e2dcc,#271e2d44)
}
:where(html[data-theme="dark"]) .registry-banner h1 {
    color: #fff
}
:where(html[data-theme="dark"]) .registry-banner p {
    color: #f7eff3
}
:where(html[data-theme="dark"]) .registry-fact h2 {
    color: #dab7c5
}
:where(html[data-theme="dark"]) .registry-fact>div {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .registry-biography .eyebrow {
    color: #d5a9b7
}
:where(html[data-theme="dark"]) .registry-fact-list div {
    border-bottom: 1px solid #8b182a1a
}
:where(html[data-theme="dark"]) .registry-fact-list div:last-child {
    border-bottom: 0
}
:where(html[data-theme="dark"]) .registry-fact-list dt {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-name-th {
    color: #f4ecef
}
:where(html[data-theme="dark"]) .character-chips li {
    background: rgba(24,24,24,0.35);
    border: 1px solid rgba(75,62,68,0.4)
}
:where(html[data-theme="dark"]) .character-house {
    background: rgba(24,24,24,0.338);
    border: 1px solid rgba(75,62,68,0.4)
}
:where(html[data-theme="dark"]) .character-card h2 {
    color: var(--ink)
}
:where(html[data-theme="dark"]) .character-card .eyebrow {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-profile div {
    border-bottom: 1px solid #8b182a1a
}
:where(html[data-theme="dark"]) .character-profile div:last-child {
    border-bottom: 0
}
:where(html[data-theme="dark"]) .character-profile dt {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-siblings li {
    background: rgba(24,24,24,0.522);
    border: 1px solid rgba(75,62,68,0.4)
}
:where(html[data-theme="dark"]) .character-siblings li:before {
    background: #8b182a14;
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-siblings li small {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-siblings li.is-self {
    border-color: #9d4862;
    background: rgba(33,26,29,0.9);
    color: #e399ab;
    box-shadow: inset 4px 0 0 #8b182a
}
:where(html[data-theme="dark"]) .character-toc a:hover,:where(html[data-theme="dark"]) .character-toc a:focus-visible {
    background: #8b182a12;
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-related-link {
    border: 1px solid #8b182a2e;
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-related-link:hover {
    background: #8b182a10
}
:where(html[data-theme="dark"]) .character-chapter {
    border-top: 1px solid #8b182a1f
}
:where(html[data-theme="dark"]) .character-chapter h3 {
    color: var(--ink)
}
:where(html[data-theme="dark"]) .character-chapter h3 span {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .registry-member-role {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-profile .th-reading,:where(html[data-theme="dark"]) .character-siblings .th-reading {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-profile .th-note {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-family li {
    background: rgba(24,24,24,0.522);
    border: 1px solid rgba(75,62,68,0.4)
}
:where(html[data-theme="dark"]) .character-family .family-role {
    color: var(--crimson)
}
:where(html[data-theme="dark"]) .character-family .th-reading {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-family p {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .character-extra-sub {
    color: var(--muted)
}
:where(html[data-theme="dark"]) .home-info-card {
    border: 1px solid rgba(199,96,112,.55);
    background: #1c1216;
    box-shadow: 0 14px 34px rgba(40,10,18,.28),inset 0 0 0 1px rgba(98,80,82,0.018);
    color: #f6ece9
}
:where(html[data-theme="dark"]) .home-info-card:hover {
    border-color: rgba(226,124,140,.85);
    box-shadow: 0 20px 40px rgba(40,10,18,.36),0 0 0 1px rgba(98,80,82,0.075)
}
:where(html[data-theme="dark"]) .home-info-card:after {
    background: linear-gradient(180deg,rgba(22,12,16,.25) 0%,rgba(22,12,16,.55) 34%,rgba(24,12,17,.9) 62%,rgba(24,12,17,.96) 100%)
}
:where(html[data-theme="dark"]) .home-info-card:before {
    background: linear-gradient(90deg,transparent,rgba(62,39,42,0.9),transparent);
    box-shadow: 0 0 12px rgba(98,80,82,0.21)
}
:where(html[data-theme="dark"]) .home-info-icon {
    color: #f3e2cf
}
:where(html[data-theme="dark"]) .home-info-card h2 {
    color: #fbf3ee
}
:where(html[data-theme="dark"]) .home-info-th {
    color: #f1c9a8
}
:where(html[data-theme="dark"]) .home-info-th:before,:where(html[data-theme="dark"]) .home-info-th:after {
    background: linear-gradient(90deg,transparent,#372a18)
}
:where(html[data-theme="dark"]) .home-info-text {
    color: #e6d8d4
}
:where(html[data-theme="dark"]) .home-info-button {
    border: 1px solid rgba(226,124,140,.75);
    background: rgba(70,18,30,.55);
    color: #fbe9ec
}
:where(html[data-theme="dark"]) .home-info-button:hover,:where(html[data-theme="dark"]) .home-info-button:focus-visible {
    background: rgba(139,24,42,.85);
    border-color: #f08a9a
}
:where(html[data-theme="dark"]) .home-info-button:focus-visible {
    outline: 2px solid rgba(83,59,63,0.75)
}
:where(html[data-theme="dark"]) .home-info-button.is-soon {
    background: rgba(40,20,26,.5)
}
@media (max-width:980px) {
    :where(html[data-theme="dark"]) .home-info-card:after {
        background: linear-gradient(90deg,rgba(24,12,17,0) 0%,rgba(24,12,17,.2) 30%,rgba(24,12,17,.92) 46%,rgba(24,12,17,.97) 100%)
    }
}

/* Manual dark adjustments: src/dark/character-registry.css */
html[data-theme="dark"] .character-hero-portrait{border-color:rgba(120,90,105,.6)}
html[data-theme="dark"] .character-siblings li.is-self{background:rgba(90,36,52,.55);color:#f6dbe2;border-color:#9d4862}
html[data-theme="dark"] .character-family li{background:rgba(255,255,255,.03)}
/* Home info cards are already dark artwork cards: keep their own colours */
html[data-theme="dark"] .home-info-card{border-color:rgba(199,96,112,.55);background:#1c1216}
