/* Dark theme (generated from remaining.css) */
:where(html[data-theme="dark"]) .remaining-region {
    background: var(--realm-paper);
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .region-backdrop {
    background: radial-gradient(ellipse at 10% 35%,color-mix(in srgb,var(--realm-mid) 40%,transparent),transparent 65%),linear-gradient(135deg,var(--realm-paper),rgba(24,24,24,0.89) 60%,var(--realm-paper))
}
:where(html[data-theme="dark"]) .remaining-region .portal-panel {
    background: rgba(24,24,24,0.9);
    border-color: rgba(75,62,68,0.65);
    box-shadow: 0 8px 25px #2020200a
}
:where(html[data-theme="dark"]) .remaining-region .portal-heading h2,:where(html[data-theme="dark"]) .remaining-region h1,:where(html[data-theme="dark"]) .remaining-region h2,:where(html[data-theme="dark"]) .remaining-region h3 {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .remaining-region .portal-heading h2:before {
    background: var(--realm-gold)
}
:where(html[data-theme="dark"]) .remaining-region p,:where(html[data-theme="dark"]) .remaining-region small,:where(html[data-theme="dark"]) .remaining-region dd,:where(html[data-theme="dark"]) .remaining-region dt,:where(html[data-theme="dark"]) .remaining-region .portal-heading>span {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .remaining-region .portal-title h1 {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .remaining-region .portal-title p {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .remaining-region .portal-breadcrumb {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .art-placeholder {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .art-placeholder>span {
    color: var(--realm-accent)
}
:where(html[data-theme="dark"]) .remaining-region .portal-cta {
    background: var(--realm-ink);
    color: #fff !important
}
:where(html[data-theme="dark"]) .remaining-region .portal-arrow {
    color: var(--realm-accent)
}
:where(html[data-theme="dark"]) .region-more {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .region-houses li {
    border-left: 2px solid var(--realm-gold);
    background: rgba(24,24,24,0.583)
}
:where(html[data-theme="dark"]) .remaining-region .portal-events>a>span:last-child {
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .region-gallery>a>span {
    background: color-mix(in srgb,var(--realm-paper) 92%,transparent);
    color: var(--realm-ink)
}
:where(html[data-theme="dark"]) .region-records a {
    border: 1px solid rgba(75,62,68,0.75);
    background: rgba(24,24,24,0.583)
}
:where(html[data-theme="dark"]) .region-brief {
    border: 1px solid var(--realm-gold)
}
:where(html[data-theme="dark"]) .region-index-card {
    background: linear-gradient(145deg,rgba(24,24,24,0.9),var(--realm-paper)) !important;
    color: var(--realm-ink);
    border-top: 3px solid var(--realm-gold) !important
}
:where(html[data-theme="dark"]) .remaining-region a:focus-visible {
    outline: 3px solid var(--realm-accent)
}
:where(html[data-theme="dark"]) .remaining-region .portal-city:hover,:where(html[data-theme="dark"]) .region-records a:hover,:where(html[data-theme="dark"]) .region-index-card:hover {
    box-shadow: 0 8px 18px #00000012
}
:where(html[data-theme="dark"]) .region-directory-image {
    border-bottom: 1px solid rgba(75,62,68,0.471)
}
:where(html[data-theme="dark"]) .region-index-card:focus-visible {
    outline: 3px solid var(--realm-accent)
}
:where(html[data-theme="dark"]) .faction-card {
    border: 1px solid rgba(77,64,45,0.75);
    background: linear-gradient(145deg,#702a25,#2b231d);
    color: #fff
}
:where(html[data-theme="dark"]) .faction-card:nth-child(2) {
    background: linear-gradient(145deg,#452433,#19151c)
}
:where(html[data-theme="dark"]) .faction-card:nth-child(3) {
    background: linear-gradient(145deg,#43322d,#201a18)
}
:where(html[data-theme="dark"]) .remaining-region .faction-card h3 {
    color: #fff1dd
}
:where(html[data-theme="dark"]) .remaining-region .faction-card p {
    color: #efe2d4
}
:where(html[data-theme="dark"]) .faction-card>span {
    color: #ecd4ad
}
:where(html[data-theme="dark"]) .faction-card:hover {
    box-shadow: 0 8px 20px #2b231d33
}
:where(html[data-theme="dark"]) .faction-card:focus-visible {
    outline: 3px solid #c9a96a
}

/* Manual dark adjustments: src/dark/remaining.css */
html[data-theme="dark"] [style*="--realm-ink"]{--realm-paper:#1d1a1e!important;--realm-mid:#4a4650!important}
html[data-theme="dark"] .remaining-region,html[data-theme="dark"] .remaining-region .portal-heading h2,html[data-theme="dark"] .remaining-region h1,html[data-theme="dark"] .remaining-region h2,html[data-theme="dark"] .remaining-region h3,html[data-theme="dark"] .remaining-region p,html[data-theme="dark"] .remaining-region small,html[data-theme="dark"] .remaining-region dd,html[data-theme="dark"] .remaining-region dt,html[data-theme="dark"] .remaining-region .portal-heading>span,html[data-theme="dark"] .remaining-region .portal-title h1,html[data-theme="dark"] .remaining-region .portal-title p,html[data-theme="dark"] .remaining-region .portal-breadcrumb,html[data-theme="dark"] .art-placeholder,html[data-theme="dark"] .region-more,html[data-theme="dark"] .remaining-region .portal-events>a>span:last-child,html[data-theme="dark"] .region-gallery>a>span,html[data-theme="dark"] .region-index-card{color:#eee8ea}
