/* Global colour mode. This file intentionally changes only colour, surface,
   border, shadow and decorative treatments; layout and interaction stay with
   the existing component styles. */
:root{
  color-scheme:light;
}

.site-header nav{align-items:center}
.theme-toggle{
  position:relative;
  display:grid;
  min-width:68px;
  height:28px;
  margin:0 0 0 2px;
  padding:0 9px;
  grid-template-columns:12px auto;
  gap:7px;
  place-items:center;
  appearance:none;
  border:1px solid rgba(54,64,68,.2);
  border-radius:999px;
  background:rgba(255,255,255,.34);
  color:#5f5b54;
  cursor:pointer;
  transition:color .22s ease,border-color .22s ease,background-color .22s ease,box-shadow .22s ease;
}
.theme-toggle:hover,.theme-toggle:focus-visible{
  border-color:rgba(116,111,101,.72);
  background:rgba(255,255,255,.72);
  box-shadow:0 0 0 3px rgba(116,111,101,.08);
  outline:none;
}
.theme-toggle__icon{
  position:relative;
  display:block;
  width:12px;
  height:12px;
  border:1.5px solid currentColor;
  border-radius:50%;
}
.theme-toggle__icon::after{
  content:"";
  position:absolute;
  top:-3px;
  right:-3px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#f3f5f5;
  transition:opacity .2s ease,transform .2s ease,background-color .2s ease;
}
.theme-toggle__label{
  font:500 9px/1 var(--font-meta,"IBM Plex Mono",monospace);
  letter-spacing:.08em;
  text-transform:uppercase;
}

html[data-theme="night"]{
  color-scheme:dark;
  --ink:#f1eee7;
  --muted:#b2aca2;
  --night:#111315;
  --line:rgba(207,178,121,.2);
  --gold:#b8965c;
  --gold-soft:#c2a46d;
  --ledger-ink:#f1eee7;
  --ledger-gold:#b8965c;
  --ledger-cream:#f1eee7;
  --archive-gold:#b8965c;
  --archive-gold-bright:#d0b77f;
  --archive-panel:rgba(25,28,29,.9);
}
html[data-theme="night"],
html[data-theme="night"] body,
html[data-theme="night"] body.home-mode{
  background:#111315;
  color:#f1eee7;
}
html[data-theme="night"] ::selection{background:rgba(184,150,92,.42);color:#fff}
html[data-theme="night"] .stars{
  opacity:.18;
  background-image:radial-gradient(circle at 20% 10%,rgba(218,192,143,.6) 0 1px,transparent 1.8px),radial-gradient(circle at 80% 75%,rgba(185,155,99,.48) 0 1px,transparent 1.8px);
}

/* Header and global navigation */
html[data-theme="night"] .site-header,
html[data-theme="night"] body.home-mode .site-header,
html[data-theme="night"] body:not(.home-mode) .site-header{
  color:#f4f1ea;
  border-bottom-color:rgba(201,171,113,.18);
  background:linear-gradient(180deg,rgba(17,19,21,.98),rgba(19,22,23,.93) 62%,rgba(19,22,23,.72));
  box-shadow:0 12px 34px rgba(3,4,4,.28);
}
html[data-theme="night"] body.home-mode .site-header::after,
html[data-theme="night"] body:not(.home-mode) .site-header::after{
  background:linear-gradient(180deg,rgba(18,20,22,.86),transparent);
}
html[data-theme="night"] .brand,
html[data-theme="night"] .site-header nav a{color:#f3f0e9;text-shadow:none}
html[data-theme="night"] .site-header nav a:hover{color:#d0b77f}
html[data-theme="night"] .theme-toggle{
  border-color:rgba(205,177,121,.36);
  background:rgba(184,150,92,.08);
  color:#d0b77f;
}
html[data-theme="night"] .theme-toggle:hover,
html[data-theme="night"] .theme-toggle:focus-visible{
  border-color:rgba(216,188,133,.76);
  background:rgba(184,150,92,.16);
  box-shadow:0 0 0 3px rgba(184,150,92,.1);
}
html[data-theme="night"] .theme-toggle__icon{border-color:currentColor;box-shadow:0 0 7px rgba(208,183,127,.34)}
html[data-theme="night"] .theme-toggle__icon::after{opacity:0;transform:scale(.4);background:#171a1b}

/* Homepage hero, loader and rail */
html[data-theme="night"] .home-experience--ledger,
html[data-theme="night"] .home-backdrop,
html[data-theme="night"] .home-experience--ledger .ledger-floor{
  background:#111315;
}
html[data-theme="night"] .home-experience--ledger .ledger-hero{background:transparent!important}
html[data-theme="night"] .home-backdrop{
  background:radial-gradient(ellipse 78% 76% at 50% 44%,#25292a 0,#1b1e20 45%,#141719 74%,#0f1112 100%);
}
html[data-theme="night"] .home-gem-canvas canvas{filter:saturate(.92) contrast(1.07) brightness(.8)}
html[data-theme="night"] .home-hero-vignette{
  background:radial-gradient(ellipse 72% 72% at 50% 46%,transparent 34%,rgba(10,12,13,.12) 56%,rgba(7,8,9,.52) 84%,rgba(5,6,7,.78) 100%);
}
html[data-theme="night"] .ledger-hero__copy--archive,
html[data-theme="night"] .ledger-hero__copy--archive h1,
html[data-theme="night"] .ledger-hero__copy--archive .hero-credit{color:#f4f1ea;text-shadow:0 2px 20px rgba(0,0,0,.58)}
html[data-theme="night"] .archive-loader{background:#111315}
html[data-theme="night"] .archive-loader__crest{background-color:#111315;filter:sepia(.24) saturate(.72) contrast(1.08) brightness(.76) blur(16px)}
html[data-theme="night"] .archive-loader.is-ready .archive-loader__crest{filter:sepia(.24) saturate(.72) contrast(1.08) brightness(.76) blur(0)}
html[data-theme="night"] .archive-loader__track{background:rgba(230,216,189,.16)}
html[data-theme="night"] .archive-loader__track i{background:#b8965c}
html[data-theme="night"] body.home-mode.smoke-floor-active #lightswind-smoke-root{
  mix-blend-mode:screen;
  opacity:calc(var(--smoke-opacity) * .58);
}
html[data-theme="night"] #lightswind-smoke-root canvas{
  opacity:.64;
  mix-blend-mode:screen;
  filter:hue-rotate(12deg) saturate(.86) brightness(1.22);
}
html[data-theme="night"] #lightswind-smoke-root::after{
  background:radial-gradient(circle 156px at var(--smoke-x) var(--smoke-y),rgba(255,249,218,.76) 0 9%,rgba(247,202,112,.58) 27%,rgba(234,130,48,.42) 50%,rgba(177,78,36,.2) 70%,transparent 100%);
  filter:blur(11px) saturate(.92);
  mix-blend-mode:screen;
  opacity:.78;
}
html[data-theme="night"] .home-rail{
  background:rgba(18,21,22,.82);
  border-left-color:rgba(204,175,118,.2);
  box-shadow:-12px 0 34px rgba(0,0,0,.24);
}
html[data-theme="night"] .home-rail>a,
html[data-theme="night"] .home-rail__mark{color:#aaa59b}
html[data-theme="night"] .home-rail>a::before{background:#171a1b;border-color:#b8965c}
html[data-theme="night"] .home-rail>a::after{border-color:rgba(184,150,92,.38)}
html[data-theme="night"] .home-rail>a.is-active{color:#f2eee6}
html[data-theme="night"] .home-rail>a.is-active::before{background:#b8965c;box-shadow:0 0 0 4px rgba(184,150,92,.12),0 0 17px rgba(184,150,92,.22)}

/* Homepage archive and floors */
html[data-theme="night"] .recent-archive{background:transparent;border-color:transparent;box-shadow:none}
html[data-theme="night"] .recent-archive::before{
  background:radial-gradient(ellipse 76% 72% at 50% 50%,rgba(39,43,44,.78) 0,rgba(30,33,34,.48) 48%,rgba(19,22,23,.15) 72%,transparent 88%);
}
html[data-theme="night"] .recent-archive__track{border-color:rgba(204,175,118,.2)}
html[data-theme="night"] .recent-file{
  border-color:rgba(204,175,118,.18);
  background:linear-gradient(180deg,rgba(37,40,41,.78),rgba(23,26,27,.5));
}
html[data-theme="night"] .recent-file>span,
html[data-theme="night"] .recent-file>p,
html[data-theme="night"] .eyebrow{color:#c1a36d!important}
html[data-theme="night"] .recent-file h2 a,
html[data-theme="night"] .recent-file small{color:#eeeae2}
html[data-theme="night"] .recent-file:hover{
  background:linear-gradient(180deg,rgba(48,51,51,.94),rgba(30,33,34,.82));
  box-shadow:0 18px 38px rgba(0,0,0,.28);
}
html[data-theme="night"] .recent-file:hover h2 a{color:#fff;text-decoration-color:#b8965c}
html[data-theme="night"] .ledger-floor:not(.ledger-hero),
html[data-theme="night"] .home-experience--ledger .ledger-floor:not(.ledger-hero){background:transparent!important}
html[data-theme="night"] .ledger-floor:not(.ledger-hero)::before{
  background:radial-gradient(ellipse 74% 64% at 66% 45%,rgba(55,58,58,.46) 0,rgba(39,42,43,.27) 40%,rgba(24,27,28,.12) 65%,transparent 87%);
}
html[data-theme="night"] .ledger-floor:not(.ledger-hero)::after{
  background:linear-gradient(180deg,transparent,rgba(35,38,39,.12) 24%,rgba(30,33,34,.16) 72%,transparent);
}
html[data-theme="night"] .floor-watermark,
html[data-theme="night"] .ledger-floor--people .floor-watermark{color:rgba(239,234,224,.1)}
html[data-theme="night"] .floor-watermark span,
html[data-theme="night"] .ledger-floor--people .floor-watermark span{color:rgba(208,183,127,.2)}
html[data-theme="night"] .ledger-floor__copy,
html[data-theme="night"] .ledger-floor--people .ledger-floor__copy,
html[data-theme="night"] .ledger-floor--people .ledger-floor__copy .eyebrow,
html[data-theme="night"] .ledger-floor__copy h2{color:#f3f0e9;text-shadow:0 8px 30px rgba(0,0,0,.42)}
html[data-theme="night"] .ledger-button,
html[data-theme="night"] .ledger-floor--people .ledger-button{color:#d0b77f;border-color:rgba(184,150,92,.62)}
html[data-theme="night"] .ledger-button:hover{color:#fff;background:rgba(184,150,92,.1);border-color:#c5a66e}

html[data-theme="night"] .world-atlas,
html[data-theme="night"] .ledger-floor--world .world-atlas{
  border-color:rgba(204,175,118,.2);
  background:rgba(20,23,24,.36);
  box-shadow:0 24px 70px rgba(0,0,0,.18);
}
html[data-theme="night"] .ledger-floor--world .world-atlas__tile:not(.has-cover),
html[data-theme="night"] .ledger-floor--world .world-atlas__tile:not(.has-cover).is-default,
html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:not(.has-cover):hover,
html[data-theme="night"] .ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:not(.has-cover):focus-within{
  border-color:rgba(204,175,118,.17);
  background-color:#202426!important;
  background-image:linear-gradient(155deg,rgba(42,45,45,.88),rgba(24,27,28,.76))!important;
}
html[data-theme="night"] .ledger-floor--world .world-atlas__tile::before{background:linear-gradient(180deg,rgba(35,38,39,.15),rgba(10,12,13,.34))}
html[data-theme="night"] .ledger-floor--world .world-atlas__tile::after{background:linear-gradient(180deg,rgba(14,16,17,.04),rgba(10,12,13,.14) 56%,rgba(7,8,9,.58))}
html[data-theme="night"] .world-atlas span,
html[data-theme="night"] .chronicle-ledger span{color:#c1a36d}
html[data-theme="night"] .world-atlas h3 a,
html[data-theme="night"] .world-atlas p,
html[data-theme="night"] .world-atlas small{color:#f1eee7}

html[data-theme="night"] .ledger-floor--people .people-ledger article,
html[data-theme="night"] .scene--palace .profile-card{
  color:#f1eee7;
  background:linear-gradient(155deg,rgba(39,42,43,.94),rgba(24,27,28,.9));
  border-color:rgba(204,175,118,.2);
  box-shadow:7px 9px 0 rgba(117,86,51,.12),0 18px 40px rgba(0,0,0,.22);
}
html[data-theme="night"] .ledger-floor--people .character-portrait,
html[data-theme="night"] .scene--palace .portrait{
  background:linear-gradient(155deg,#333233,#262b2c 70%,#171a1b);
  border-color:rgba(190,156,94,.34);
  box-shadow:inset 0 0 0 7px rgba(216,190,143,.08),0 10px 26px rgba(0,0,0,.3);
}
html[data-theme="night"] .ledger-floor--people .character-card__role,
html[data-theme="night"] .scene--palace .character-card__role{color:#dec17f!important}
html[data-theme="night"] .ledger-floor--people .people-ledger .card-rule,
html[data-theme="night"] .scene--palace .profile-card .card-rule{border-color:rgba(184,150,92,.55)}
html[data-theme="night"] .ledger-floor--people .people-ledger article:hover,
html[data-theme="night"] .ledger-floor--people .people-ledger article:focus-within{
  background:linear-gradient(155deg,#333737,#202425);
  border-color:rgba(197,166,110,.46);
  box-shadow:8px 11px 0 rgba(117,86,51,.14),0 24px 46px rgba(0,0,0,.3);
}
html[data-theme="night"] .chronicle-rail__viewport,
html[data-theme="night"] .chronicle-ledger>div,
html[data-theme="night"] .chronicle-rail__viewport article,
html[data-theme="night"] .chronicle-ledger article,
html[data-theme="night"] .chronicle-rail__viewport article::before{border-color:rgba(204,175,118,.2)}
html[data-theme="night"] .chronicle-rail__viewport h3 a,
html[data-theme="night"] .chronicle-ledger h3 a{color:#f1eee7}
html[data-theme="night"] .ledger-floor--timeline .chronicle-rail__viewport>article::before{
  border-color:#1a1d1e;
  background:#b8965c;
  box-shadow:0 0 0 5px rgba(184,150,92,.12),0 0 16px rgba(184,150,92,.2);
  transition:transform .45s cubic-bezier(.2,.78,.24,1),background-color .45s ease,box-shadow .45s ease;
}
html[data-theme="night"] .ledger-floor--timeline .chronicle-rail__viewport>article:hover::before{
  background:#d5b774;
  box-shadow:0 0 0 7px rgba(205,171,105,.16),0 0 24px rgba(218,184,116,.42);
}

/* Directories and shared archive surfaces */
html[data-theme="night"] body:not(.home-mode) .scene,
html[data-theme="night"] body:not(.home-mode) .scene--ocean,
html[data-theme="night"] body:not(.home-mode) .scene--palace,
html[data-theme="night"] body:not(.home-mode) .scene--forest{
  background:#111315!important;
  background-image:none!important;
  color:#f1eee7;
}
html[data-theme="night"] body:not(.home-mode) .scene::after{background:#111315}
html[data-theme="night"] .page-head,
html[data-theme="night"] .page-head--light,
html[data-theme="night"] .scene--palace .page-head--light{color:#f2eee6;text-shadow:none}
html[data-theme="night"] .page-head>p:last-child,
html[data-theme="night"] .page-head--light>p:last-child,
html[data-theme="night"] .scene--palace .page-head--light>p:last-child{color:#aaa59c}
html[data-theme="night"] .timeline--panel,
html[data-theme="night"] .archive-paper,
html[data-theme="night"] .detail-page,
html[data-theme="night"] .scene--palace .detail-page--palace{
  color:#f1eee7;
  background:rgba(25,28,29,.9);
  border-color:rgba(204,175,118,.2);
  box-shadow:18px 24px 60px rgba(0,0,0,.3);
}
html[data-theme="night"] .timeline-date,
html[data-theme="night"] .timeline-entry p,
html[data-theme="night"] .world-list p,
html[data-theme="night"] .detail-page>p:not(.back):not(.eyebrow),
html[data-theme="night"] .scene--palace .detail-page--palace>p:not(.back):not(.eyebrow),
html[data-theme="night"] .scene--palace .detail-page--palace blockquote,
html[data-theme="night"] .story-header>p:last-child,
html[data-theme="night"] .story-body,
html[data-theme="night"] .note-placeholder{color:#b7b1a8}
html[data-theme="night"] .timeline-entry h2 a,
html[data-theme="night"] .world-list h2 a,
html[data-theme="night"] .detail-page h1,
html[data-theme="night"] .story-header h1,
html[data-theme="night"] .scene--palace .detail-page--palace h1{color:#f3f0e9}
html[data-theme="night"] body:not(.home-mode) .scene--palace .profile-card h2 a{color:#f3f0e9!important}
html[data-theme="night"] .timeline-entry>a,
html[data-theme="night"] .back a,
html[data-theme="night"] .world-list__arrow,
html[data-theme="night"] .scene--palace .detail-page--palace .back a{color:#c1a36d!important}
html[data-theme="night"] .timeline-dot{background:#b8965c;border-color:#191c1d;box-shadow:0 0 0 5px rgba(184,150,92,.12),0 0 18px rgba(184,150,92,.22)}
html[data-theme="night"] .timeline-item:not(:last-child)::after,
html[data-theme="night"] .world-list,
html[data-theme="night"] .world-list article,
html[data-theme="night"] .related-section{border-color:rgba(204,175,118,.2)}
html[data-theme="night"] .world-list article:hover,
html[data-theme="night"] .timeline-item:hover .timeline-entry{background:linear-gradient(90deg,rgba(184,150,92,.09),transparent 78%)}
html[data-theme="night"] .archive-grid article{background:rgba(35,38,39,.72);border-color:rgba(204,175,118,.18)}
html[data-theme="night"] .archive-grid p,
html[data-theme="night"] .tag-links a{color:#b7b1a8}
html[data-theme="night"] .tag-links a{border-color:rgba(204,175,118,.22);background:rgba(184,150,92,.04)}
html[data-theme="night"] .detail-page blockquote{color:#ddd7cc;border-color:#b8965c}
html[data-theme="night"] body:not(.home-mode) .world-list>article:hover h2 a,
html[data-theme="night"] body:not(.home-mode) .world-list>article:focus-within h2 a,
html[data-theme="night"] body:not(.home-mode) .timeline-item:hover h2 a,
html[data-theme="night"] body:not(.home-mode) .timeline-item:focus-within h2 a,
html[data-theme="night"] body:not(.home-mode) .profile-card:hover h2 a,
html[data-theme="night"] body:not(.home-mode) .profile-card:focus-within h2 a,
html[data-theme="night"] body:not(.home-mode) .archive-grid>article:hover h3 a,
html[data-theme="night"] body:not(.home-mode) .archive-grid>article:focus-within h3 a{color:#fff7e8!important;text-decoration-color:#d8b978!important}
html[data-theme="night"] body:not(.home-mode) .world-list>article>span,
html[data-theme="night"] body:not(.home-mode) .timeline-date,
html[data-theme="night"] body:not(.home-mode) .timeline-entry>span,
html[data-theme="night"] body:not(.home-mode) .profile-card>span,
html[data-theme="night"] body:not(.home-mode) .archive-grid>article>span,
html[data-theme="night"] body:not(.home-mode) .eyebrow{color:#d9bb78!important}
html[data-theme="night"] body:not(.home-mode) .archive-grid>article:hover,
html[data-theme="night"] body:not(.home-mode) .archive-grid>article:focus-within{
  border-color:rgba(216,185,120,.48)!important;
  background:linear-gradient(145deg,rgba(55,51,43,.9),rgba(31,33,33,.94))!important;
  box-shadow:0 18px 34px rgba(0,0,0,.3)!important;
}
html[data-theme="night"] body:not(.home-mode) .profile-card:hover,
html[data-theme="night"] body:not(.home-mode) .profile-card:focus-within{
  border-color:rgba(216,185,120,.4)!important;
  background:linear-gradient(155deg,rgba(50,52,51,.96),rgba(27,30,31,.94))!important;
  box-shadow:8px 13px 0 rgba(108,78,45,.12),0 22px 40px rgba(0,0,0,.3)!important;
}
html[data-theme="night"] body:not(.home-mode) .tag-links>a:hover,
html[data-theme="night"] body:not(.home-mode) .tag-links>a:focus-visible{
  color:#fff2d4!important;
  border-color:rgba(224,193,128,.62)!important;
  background:rgba(184,150,92,.16)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
html[data-theme="night"] body:not(.home-mode) .back a:hover,
html[data-theme="night"] body:not(.home-mode) .back a:focus-visible{
  color:#fff0cf!important;
  border-color:rgba(224,193,128,.44)!important;
  background:rgba(184,150,92,.1)!important;
}

/* World, Character and Timeline detail pages */
html[data-theme="night"] .character-detail-layout::before{background:rgba(24,27,28,.92)}
html[data-theme="night"] .character-detail-layout,
html[data-theme="night"] .world-detail-layout,
html[data-theme="night"] .timeline-subpage-layout.detail-page{
  border-color:rgba(204,175,118,.2);
  box-shadow:18px 24px 60px rgba(0,0,0,.32);
}
html[data-theme="night"] .character-detail-cover__panel{color:#eeeae2}
html[data-theme="night"] .character-detail-cover__panel strong{color:#f3f0e9}
html[data-theme="night"] .character-detail-cover__panel span,
html[data-theme="night"] .character-relationship-group h2{color:#aaa49a}
html[data-theme="night"] .character-detail-cover__rule{border-color:rgba(184,150,92,.46)}
html[data-theme="night"] .character-detail-cover__image{
  background-image:linear-gradient(155deg,#353335,#262a2b 72%,#171a1b);
  border-color:rgba(204,175,118,.3);
  box-shadow:inset 0 0 0 2px rgba(217,190,140,.12),0 12px 30px rgba(0,0,0,.34);
}
html[data-theme="night"] .character-detail-cover__image.has-cover{
  background-image:linear-gradient(180deg,rgba(24,27,28,.02),rgba(17,19,20,.12)),var(--entry-cover)!important;
  background-size:cover!important;
  background-position:center top!important;
}
html[data-theme="night"] .character-relationship-card{
  border-color:rgba(204,175,118,.18);
  background:rgba(43,46,46,.58);
  color:#e8e3da;
}
html[data-theme="night"] .character-relationship-card:hover,
html[data-theme="night"] .character-relationship-card:focus-visible{background:rgba(62,63,61,.84);border-color:rgba(204,175,118,.38)}
html[data-theme="night"] .character-detail-reading-fade{background:linear-gradient(180deg,rgba(24,27,28,0),rgba(24,27,28,.76) 52%,rgba(24,27,28,.99))}
html[data-theme="night"] .character-detail-reading:focus-visible{outline-color:rgba(204,175,118,.28)}
html[data-theme="night"] .character-detail-body{color:#ece8df}
html[data-theme="night"] .character-detail-body blockquote,
html[data-theme="night"] .world-detail-summary{color:#ddd7cc;border-color:#b8965c}
html[data-theme="night"] .character-detail-body .cms-richtext,
html[data-theme="night"] .character-detail-body .cms-richtext p,
html[data-theme="night"] .world-detail-body .cms-richtext>p{color:#bbb5ac}

html[data-theme="night"] .world-detail-layout{color:#ece8df;background:rgba(24,27,28,.93)}
html[data-theme="night"] .world-detail-hero,
html[data-theme="night"] .world-detail-hero__image{background:#202426}
html[data-theme="night"] .world-detail-hero::after{
  background:linear-gradient(90deg,rgba(20,23,24,.94),rgba(20,23,24,.77) 42%,rgba(20,23,24,.4) 74%,rgba(20,23,24,.58)),linear-gradient(0deg,rgba(17,19,20,.76),transparent 58%);
}
html[data-theme="night"] .world-detail-hero__copy .eyebrow{color:#c1a36d!important}
html[data-theme="night"] .world-detail-hero__copy h1{color:#f3f0e9;text-shadow:0 2px 20px rgba(0,0,0,.7)}
html[data-theme="night"] .character-detail-back,
html[data-theme="night"] .world-detail-back,
html[data-theme="night"] .timeline-subpage-back{
  background:rgba(22,25,26,.95);
  border-bottom-color:rgba(204,175,118,.18);
}
html[data-theme="night"] .cms-richtext img,
html[data-theme="night"] .story-body img,
html[data-theme="night"] .entry-gallery img{border-color:rgba(204,175,118,.3);box-shadow:0 18px 50px rgba(0,0,0,.32)}
html[data-theme="night"] .cms-richtext .content-image-block img{border-color:rgba(204,175,118,.48)}
html[data-theme="night"] .content-image-block figcaption,
html[data-theme="night"] .story-image .story-image__caption{background:linear-gradient(0deg,rgba(9,10,10,.94),rgba(12,13,13,.53) 55%,transparent);color:#e3d8c3}

html[data-theme="night"] footer{
  color:#aaa49a;
  border-top-color:rgba(204,175,118,.18);
  background-color:#111315;
}

/* World cards keep their existing wide accordion and compact hover behaviour.
   Only the paper and type colours change in night mode. */
@media(max-width:1399px){
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile.is-default,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:hover,
  html[data-theme="night"] .ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:focus-within{
    background:#202426!important;
    border-color:rgba(204,175,118,.2)!important;
  }
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile>span,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile h3 a,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile p,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile small{color:#f1eee7!important}
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile:not(.has-cover):hover,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile:not(.has-cover):focus-within{background:#292d2e!important;border-color:rgba(204,175,118,.36)!important}
}

@media(min-width:1400px){
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile.is-default,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile.is-default:not(:hover),
  html[data-theme="night"] .ledger-floor--world .world-atlas:not(:hover):not(:has(.world-atlas__tile:focus-within)) .world-atlas__tile.is-default,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:hover,
  html[data-theme="night"] .ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile:focus-within{
    background-color:#202426!important;
    border-color:rgba(204,175,118,.2)!important;
  }
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile.is-default:not(:hover),
  html[data-theme="night"] .ledger-floor--world .world-atlas:has(.world-atlas__tile:focus-within) .world-atlas__tile.is-default:not(:focus-within){background:#202426!important}
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile>span,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile h3 a,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile p,
  html[data-theme="night"] .ledger-floor--world .world-atlas__tile small,
  html[data-theme="night"] .ledger-floor--world .world-atlas:not(:hover):not(:has(.world-atlas__tile:focus-within)) .world-atlas__tile:not(.has-cover).is-default h3 a,
  html[data-theme="night"] .ledger-floor--world .world-atlas:not(:hover):not(:has(.world-atlas__tile:focus-within)) .world-atlas__tile:not(.has-cover).is-default p,
  html[data-theme="night"] .ledger-floor--world .world-atlas:not(:hover):not(:has(.world-atlas__tile:focus-within)) .world-atlas__tile:not(.has-cover).is-default small,
  html[data-theme="night"] .ledger-floor--world .world-atlas:not(:hover):not(:has(.world-atlas__tile:focus-within)) .world-atlas__tile:not(.has-cover).is-default>span,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:not(.has-cover):hover h3 a,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:not(.has-cover):hover p,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:not(.has-cover):hover small,
  html[data-theme="night"] .ledger-floor--world .world-atlas:hover .world-atlas__tile:not(.has-cover):hover>span{color:#f1eee7!important}
}

@media(max-width:620px){
  .theme-toggle{min-width:58px;height:26px;margin-left:0;padding:0 7px;gap:5px}
  .theme-toggle__icon{width:11px;height:11px}
  .theme-toggle__label{font-size:8px}
}
@media(max-width:420px){
  .site-header nav{gap:5px}
  .site-header nav a{font-size:9px;letter-spacing:.035em}
  .theme-toggle{min-width:39px;height:24px;padding:0 4px;grid-template-columns:1fr;gap:0}
  .theme-toggle__icon{display:none}
  .theme-toggle__label{font-size:7.5px;letter-spacing:.055em}
}
