/* 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(75,62,68,0.563);
    background: #1c1216;
    box-shadow: 0 12px 38px rgba(53,32,45,.11),inset 0 1px 0 rgba(97,80,87,0.21);
    color: #f6ece9
}
:where(html[data-theme="dark"]) .home-info-card:hover {
    border-color: rgba(75,62,68,0.712);
    box-shadow: 0 18px 44px rgba(53,32,45,.18),inset 0 1px 0 rgba(97,80,87,0.22)
}
: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(47,31,16,0.9),transparent);
    box-shadow: 0 0 10px rgba(96,82,71,0.105)
}
: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(75,62,68,0.413);
    background: rgba(24,24,24,0.315);
    color: #fbf3ee
}
:where(html[data-theme="dark"]) .home-info-button:hover,:where(html[data-theme="dark"]) .home-info-button:focus-visible {
    background: rgba(24,24,24,0.453);
    border-color: rgba(75,62,68,0.75)
}
:where(html[data-theme="dark"]) .home-info-button:focus-visible {
    outline: 2px solid rgba(75,62,68,0.6)
}
:where(html[data-theme="dark"]) .home-info-button.is-soon {
    background: rgba(24,24,24,0.258)
}
@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: artwork stays dark; frame follows the dark glass theme */
html[data-theme="dark"] .home-info-card{border-color:rgba(84,62,74,.6);background:#1c1216;box-shadow:0 12px 38px rgba(0,0,0,.32),inset 0 1px 0 rgba(97,80,87,.21)}
html[data-theme="dark"] .home-info-card:hover{border-color:rgba(140,112,126,.75);box-shadow:0 18px 44px rgba(0,0,0,.42),inset 0 1px 0 rgba(120,100,108,.3)}
html[data-theme="dark"] .home-info-card:before{background:linear-gradient(90deg,transparent,rgba(201,162,110,.55),transparent);box-shadow:0 0 10px rgba(201,162,110,.25)}
html[data-theme="dark"] .home-info-th:before,html[data-theme="dark"] .home-info-th:after{background:linear-gradient(90deg,transparent,#c9a26e)}
html[data-theme="dark"] .home-info-button{border-color:rgba(150,124,136,.6);background:rgba(36,26,31,.6);color:#f3e9e6}
html[data-theme="dark"] .home-info-button:hover,html[data-theme="dark"] .home-info-button:focus-visible{background:rgba(70,54,62,.8);border-color:rgba(190,164,174,.85)}
html[data-theme="dark"] .home-info-button:focus-visible{outline-color:rgba(190,164,174,.85)}
html[data-theme="dark"] .home-info-button.is-soon{background:rgba(36,26,31,.45)}
