:root {
  --bg: #11100e;
  --bg-soft: #191713;
  --panel: #201c16;
  --gold: #c5a66b;
  --gold-light: #e0c58d;
  --text: #eee9df;
  --muted: #a49b8d;
  --line: rgba(197, 166, 107, .25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 6vw; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); font: 600 30px var(--serif); }
.brand-name { font: 600 20px/1.05 var(--serif); letter-spacing: .04em; }
.brand-name span { display: block; color: var(--gold); font-size: 15px; letter-spacing: .19em; text-transform: uppercase; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a { color: #d4cec3; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px; background: var(--gold-light); }
.hero { min-height: 760px; height: min(900px, 100svh); position: relative; display: flex; align-items: center; padding: 130px 10vw 100px; overflow: hidden; background: radial-gradient(ellipse at 70% 42%, rgba(105,76,40,.24), transparent 45%), linear-gradient(110deg, #11100e 10%, #1c1914 58%, #100f0d); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(115deg, transparent 0 90px, rgba(197,166,107,.08) 91px, transparent 92px 180px); mask-image: linear-gradient(90deg, transparent, #000 65%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,16,14,.98), rgba(17,16,14,.72) 52%, rgba(17,16,14,.2)); }
.hero-content { position: relative; max-width: 760px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .25em; line-height: 1.6; text-transform: uppercase; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 500; }
.hero h1 { margin: 20px 0 5px; font-size: clamp(64px, 10vw, 132px); line-height: .78; letter-spacing: -.035em; }
h1 em, h2 em { color: var(--gold-light); font-weight: 400; }
.ornament { display: block; margin: 32px 0 16px; color: var(--gold); font-size: 20px; }
.hero-copy { color: #c2baad; font-size: 14px; line-height: 2; }
.text-link { display: inline-flex; gap: 22px; align-items: center; margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; transition: gap .2s ease, color .2s ease; }
.text-link:hover { gap: 30px; color: #fff0cc; }
.hero-bottom { position: absolute; bottom: 30px; left: 10vw; right: 10vw; display: flex; justify-content: space-between; color: #8f877a; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-mark { color: var(--gold); font-size: 18px; }
.section-wrap { width: min(1120px, 84vw); margin-inline: auto; }
.intro { padding-block: 125px 135px; text-align: center; }
h2 { margin: 15px 0 22px; font-size: clamp(42px, 6vw, 70px); line-height: .98; }
.section-lead { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 2; }
.feature-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 470px; background: var(--bg-soft); }
.feature-image { min-height: 420px; background: radial-gradient(ellipse at center, rgba(197,166,107,.15), transparent 58%), linear-gradient(135deg, #272117, #14120f); border-block: 1px solid var(--line); }
.feature-copy { align-self: center; max-width: 520px; padding: 70px 9vw 70px 7vw; }
.feature-copy h2 { font-size: clamp(42px, 5vw, 64px); }
.feature-copy p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 2; }
.quote-section { padding: 115px 8vw; text-align: center; background: #171510; border-block: 1px solid var(--line); }
.quote-inner { max-width: 850px; margin: auto; }
blockquote { margin: 30px auto 18px; color: #e9dfce; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.2; }
.quote-source { color: var(--gold); font-size: 11px; letter-spacing: .1em; }
.outline-button { margin-top: 24px; padding: 12px 20px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; transition: background .2s ease; }
.outline-button:hover { background: rgba(197,166,107,.1); }
.quote-note { color: #716b60; font-size: 10px; }
.reference-section { padding-block: 125px; text-align: center; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 55px; text-align: left; }
.info-tile { position: relative; min-height: 225px; padding: 25px 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(197,166,107,.06), transparent 65%); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.info-tile:hover { transform: translateY(-5px); border-color: rgba(197,166,107,.65); background-color: rgba(197,166,107,.05); }
.tile-number { color: var(--gold); font-size: 10px; letter-spacing: .15em; }
.info-tile h3 { margin: 35px 0 8px; font-size: 27px; }
.info-tile p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.tile-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--gold); }
.news-section { padding-block: 110px; background: var(--bg-soft); border-block: 1px solid var(--line); text-align: center; }
.empty-news { max-width: 650px; margin: 45px auto 0; padding: 30px; border: 1px dashed var(--line); color: #8d8578; font: 20px var(--serif); }
.author-section { padding-block: 110px; text-align: center; }
.site-footer { padding: 38px 8vw; border-top: 1px solid var(--line); text-align: center; color: #81796d; font-size: 10px; letter-spacing: .08em; }
.footer-brand { color: var(--gold-light); font: 24px var(--serif); }
.site-footer p { margin: 7px 0 18px; }
.desktop-only { display: initial; }
@media (max-width: 900px) {
  .site-header { padding-inline: 5vw; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 10px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 70px; padding: 12px 6vw; background: rgba(17,16,14,.94); }
  .brand-mark { width: 36px; height: 36px; font-size: 25px; }
  .brand-name { font-size: 17px; }
  .brand-name span { font-size: 12px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 69px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 6vw 18px; background: #15130f; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 11px; }
  .hero { min-height: 690px; height: 92svh; padding: 120px 8vw 90px; }
  .hero h1 { font-size: clamp(62px, 16vw, 92px); }
  .hero-copy { font-size: 12px; }
  .desktop-only { display: none; }
  .hero-bottom { left: 8vw; right: 8vw; bottom: 22px; }
  .intro { padding-block: 85px 95px; }
  .section-wrap { width: 86vw; }
  .feature-section { grid-template-columns: 1fr; }
  .feature-image { min-height: 230px; }
  .feature-copy { padding: 55px 8vw 65px; }
  .quote-section, .reference-section, .news-section, .author-section { padding-block: 85px; }
  .tile-grid { gap: 9px; margin-top: 35px; }
  .info-tile { min-height: 195px; padding: 18px 15px; }
  .info-tile h3 { margin-top: 28px; font-size: 23px; }
  .info-tile p { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Внутренние страницы */
.page-shell { min-height: 100vh; }
.page-header { position: relative; background: rgba(17,16,14,.98); }
.page-main { min-height: 65vh; }
.page-heading { padding: 90px 8vw 70px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(105,76,40,.2), transparent 65%), #171510; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 15px 0 18px; font-size: clamp(48px, 7vw, 82px); line-height: 1; color: var(--gold-light); }
.page-lead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 2; }
.page-content { width: min(1120px, 84vw); margin: 0 auto; padding: 70px 0 110px; }
.content-section { margin: 0 0 65px; }
.content-section h2 { font-size: clamp(34px, 4vw, 48px); }
.content-section > p, .placeholder-copy { color: var(--muted); line-height: 2; }
.placeholder-grid, .link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.placeholder-card, .placeholder-panel { position: relative; padding: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(197,166,107,.06), transparent 70%); }
.placeholder-card h3, .link-card h2 { margin: 12px 0; color: var(--gold-light); font: 500 32px/1.1 var(--serif); }
.placeholder-card p, .placeholder-panel p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.placeholder-small { font-size: 11px !important; }
.status-note { display: inline-block; margin-top: 8px; padding: 5px 10px; border: 1px solid var(--line); color: var(--gold); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.link-card { display: block; transition: border-color .2s ease, transform .2s ease; }
.link-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.link-card h2 { font-size: 30px; }
.link-card .tile-arrow { position: absolute; right: 24px; bottom: 22px; }
.article-list { border-top: 1px solid var(--line); }
.article-list a { position: relative; display: block; padding: 25px 55px 25px 10px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.article-list a:hover { padding-left: 20px; background: rgba(197,166,107,.04); }
.article-list h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); color: var(--text); }
.article-list .tile-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
.placeholder-panel { text-align: center; padding: 55px 30px; }
.placeholder-panel h2 { color: var(--gold-light); }
.map-placeholder { min-height: 360px; display: grid; align-content: center; justify-items: center; background: radial-gradient(ellipse at center, rgba(197,166,107,.12), transparent 65%), #171510; }
.placeholder-symbol { color: var(--gold); font-size: 32px; }
.page-content .text-link { margin-top: 18px; }
@media (max-width: 680px) {
  .page-header { position: relative; }
  .page-heading { padding: 65px 7vw 50px; }
  .page-content { width: 86vw; padding: 48px 0 75px; }
  .placeholder-grid, .link-grid { grid-template-columns: 1fr; }
  .placeholder-card, .placeholder-panel { padding: 23px; }
  .content-section { margin-bottom: 48px; }
}


/* ===== Новая визуальная система: холодная тёмная палитра ===== */
:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-soft: #171b1e;
  --panel: #20262a;
  --panel-raised: #272e33;
  --slate: #30383d;
  --asphalt: #242a2e;
  --teal: #3e7e7e;
  --teal-bright: #65a4a2;
  --rust: #aa340a;
  --rust-bright: #d05227;
  --text: #e2e6e8;
  --muted: #a7b0b5;
  --line: rgba(190, 204, 209, .16);
  --line-strong: rgba(190, 204, 209, .3);
  --serif: "Reforma", "Arial Narrow", "PT Sans", sans-serif;
  --sans: "PT Sans", Arial, sans-serif;
  --glow-teal: 0 0 0 1px rgba(62,126,126,.48), 0 0 22px rgba(62,126,126,.22);
  --glow-rust: 0 0 0 1px rgba(170,52,10,.5), 0 0 22px rgba(170,52,10,.2);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); }
h1,h2,h3,h4,blockquote,.brand-name,.footer-brand { font-family: var(--serif); font-weight: 500; letter-spacing: .015em; }
.site-header { min-height: 94px; padding: 16px clamp(22px,6vw,92px); background: rgba(12,15,17,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.page-header { position: relative; background: #121619; }
.brand { gap: 15px; }
.brand-mark { width: 48px; height: 48px; border: 1px solid var(--teal); color: var(--teal-bright); font: 500 29px/1 var(--serif); transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-name { color: var(--text); font-size: 22px; letter-spacing: .04em; }
.brand-name span { color: var(--teal-bright); font: 600 12px/1.2 var(--sans); letter-spacing: .25em; }
.main-nav { gap: clamp(15px,2.5vw,36px); }
.main-nav a { color: #c1c9cd; font: 600 13px var(--sans); letter-spacing: .08em; transition: color .2s ease, transform .2s ease, text-shadow .2s ease; }
.main-nav a:hover,.main-nav a.active { color: #fff; text-shadow: 0 0 14px rgba(62,126,126,.75); transform: translateY(-1px); }
.menu-toggle span { background: var(--teal-bright); }
.hero { min-height: min(820px,100svh); height: 820px; padding: 150px 9vw 110px; background: #0c1012 url('/assets/images/backgrounds/hero-banner.jpg') center 44%/cover no-repeat; }
.hero::before { content:""; position:absolute; inset:0; opacity:.16; background: repeating-linear-gradient(135deg, transparent 0 74px, rgba(190,204,209,.12) 75px, transparent 76px 150px); mask-image:linear-gradient(90deg,transparent,#000 80%); }
.hero-shade { background: linear-gradient(90deg,rgba(8,11,13,.78),rgba(8,11,13,.42) 52%,rgba(8,11,13,.12)), linear-gradient(0deg,rgba(8,11,13,.42),transparent 35%); }
.hero-content { max-width: 720px; }
.eyebrow { color: var(--teal-bright); font: 700 11px/1.6 var(--sans); letter-spacing: .19em; }
.hero h1 { font: 500 clamp(58px,8vw,108px)/.94 var(--serif); letter-spacing: .015em; text-shadow: 0 3px 28px rgba(0,0,0,.45); }
h1 em,h2 em { color: var(--teal-bright); font-style: normal; }
.ornament { width: 78px; height: 1px; margin: 28px 0 20px; background: linear-gradient(90deg,var(--teal),transparent); font-size: 0; }
.hero-copy { color: #d0d7da; font-size: 16px; line-height: 1.8; }
.text-link { border-bottom-color: var(--teal); color: #8fc2c0; font: 700 12px var(--sans); letter-spacing: .09em; transition: transform .2s ease, box-shadow .2s ease, color .2s ease; }
.text-link:hover { gap: 24px; color: #fff; box-shadow: 0 4px 0 -3px var(--teal-bright), 0 8px 18px -12px var(--teal-bright); }
.hero-bottom { color: #c1c9cd; }
.scroll-mark { color: var(--teal-bright); }
.section-wrap { width: min(1160px,86vw); }
.intro { padding-block: 110px 120px; }
.intro h2,.content-section h2 { font-size: clamp(38px,5vw,62px); }
.section-lead { color: var(--muted); font-size: 16px; }
.quote-section,.news-section { background: #151a1d; border-color: var(--line); }
blockquote { color: var(--text); }
.quote-source { color: var(--teal-bright); }
.outline-button { border: 1px solid var(--teal); color: #9ac9c7; background: rgba(62,126,126,.06); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.outline-button:hover { transform: scale(1.035); box-shadow: var(--glow-teal); background: rgba(62,126,126,.14); }
.tile-grid { gap: 16px; }
.info-tile,.placeholder-card,.placeholder-panel { border: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.035),transparent 65%),var(--panel); }
.info-tile { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.info-tile:hover,.link-card:hover,.placeholder-card a:hover { transform: scale(1.025); border-color: var(--teal); box-shadow: var(--glow-teal); }
.info-tile h3,.placeholder-card h3,.link-card h2 { color: var(--text); }
.info-tile p,.placeholder-card p,.placeholder-panel p { color: var(--muted); }
.tile-number,.tile-arrow { color: var(--teal-bright); }
.feature-section { background: var(--bg-soft); }
.feature-image { background: #121719 url('/assets/images/books/books-photo.jpg') center/cover no-repeat; border-color: var(--line); }
.feature-copy p:not(.eyebrow) { color: var(--muted); }
.site-footer { background: #0c0f11; border-top-color: var(--line); color: #929da2; }
.footer-brand { color: var(--text); }
.page-heading { padding: 86px 8vw 68px; background: radial-gradient(ellipse at 50% 0%,rgba(62,126,126,.13),transparent 66%),#151a1d; border-bottom: 1px solid var(--line); }
.page-heading h1 { color: var(--text); font: 500 clamp(48px,7vw,78px)/1.05 var(--serif); }
.page-lead { color: var(--muted); font-size: 16px; }
.page-content { width: min(1160px,86vw); }
.content-section h2 { color: var(--text); }
.placeholder-grid,.link-grid { gap: 18px; }
.placeholder-card,.placeholder-panel { padding: 30px; }
.placeholder-card h3,.link-card h2 { font: 500 32px/1.12 var(--serif); }
.status-note { border-color: rgba(170,52,10,.55); color: #e17a56; background: rgba(170,52,10,.08); }
.link-card { transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.article-list { border-color: var(--line); }
.article-list a { border-color: var(--line); transition: padding .2s ease,background .2s ease,border-color .2s ease; }
.article-list a:hover { padding-left: 20px; background: rgba(62,126,126,.08); border-color: var(--teal); }
.article-list h2 { color: var(--text); }
.map-placeholder { background: radial-gradient(ellipse at center,rgba(62,126,126,.12),transparent 65%),#171d20; }
.placeholder-symbol { color: var(--teal-bright); }
.page-content .text-link { margin-top: 18px; }
.site-footer a:hover { color: var(--teal-bright); }
a,button { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }
@keyframes rise-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.hero-content,.page-heading,.page-content,.intro,.quote-inner { animation: rise-in .65s ease both; }
@media (hover:hover) and (pointer:fine) {
  .main-nav a:hover,.text-link:hover,.outline-button:hover,.link-card:hover,.info-tile:hover { transform: scale(1.035); }
  .main-nav a:hover,.text-link:hover { text-shadow: 0 0 14px rgba(62,126,126,.55); }
}
@media (max-width:680px) {
  .site-header { min-height:72px; padding:12px 6vw; }
  .brand-mark { width:38px;height:38px;font-size:23px; }
  .brand-name { font-size:18px; }
  .brand-name span { font-size:10px; }
  .main-nav { background:#121719; border-color:var(--line); }
  .hero { min-height:680px;height:90svh;padding:120px 8vw 90px;background-position:55% center; }
  .hero-shade { background:linear-gradient(90deg,rgba(8,11,13,.72),rgba(8,11,13,.22)),linear-gradient(0deg,rgba(8,11,13,.5),transparent 60%); }
  .hero h1 { font-size:clamp(54px,14vw,84px); }
  .hero-copy { font-size:14px; }
  .page-heading { padding:64px 7vw 48px; }
  .page-content { width:86vw; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}

.section-return-wrap { padding-top: 0; padding-bottom: 55px; }
.section-return { display:inline-flex; align-items:center; gap:10px; padding:11px 16px; border:1px solid var(--line-strong); color:var(--teal-bright); font:700 12px var(--sans); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.section-return:hover { transform:scale(1.035); border-color:var(--teal); box-shadow:var(--glow-teal); }
.books-photo { display:block; width:100%; max-height:650px; object-fit:cover; border:1px solid var(--line); }
.books-photo-caption { margin-top:12px; color:var(--muted); font-size:12px; }
@media(max-width:680px) { .section-return-wrap { padding-bottom:36px; } }

/* Supplied site banner and Cartada crest */
.brand-crest { display:block; width:52px; height:52px; object-fit:contain; flex:0 0 auto; filter:drop-shadow(0 0 10px rgba(62,126,126,.14)); }
.brand-mark { display:none; }
.hero { background-image:url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png'); background-position:center; background-size:cover; }
.hero::before { display:none; }
.hero-shade { background:linear-gradient(90deg,rgba(8,11,13,.08),rgba(8,11,13,.02)),linear-gradient(0deg,rgba(8,11,13,.18),transparent 30%); }
.hero-content { position:static; max-width:none; opacity:1; pointer-events:none; }
.hero h1,.hero-copy,.hero .eyebrow,.hero .ornament { display:none; }
.hero .text-link { position:absolute; left:50%; bottom:14%; transform:translateX(-50%); padding:14px 22px; background:rgba(12,16,18,.78); border:1px solid var(--teal); color:#d9eeee; backdrop-filter:blur(8px); pointer-events:auto; }
.hero .text-link:hover { transform:translateX(-50%) scale(1.04); box-shadow:var(--glow-teal); }
@media(max-width:680px) {
 .brand-crest { width:40px;height:40px; }
 .hero { min-height:560px;height:78svh;background-position:center; }
 .hero .text-link { bottom:12%; }
}

/* Yanone Kaffeesatz is distributed under the SIL Open Font License 1.1 */
:root { --serif: "Yanone Kaffeesatz", "Arial Narrow", sans-serif; }
h1,h2,h3,h4,blockquote,.brand-name,.footer-brand,.page-heading h1,.placeholder-card h3,.link-card h2,.article-list h2 {
  font-family:"Yanone Kaffeesatz","Arial Narrow",sans-serif;
  font-weight:500;
  letter-spacing:.025em;
}
.hero h1 { font-family:"Yanone Kaffeesatz","Arial Narrow",sans-serif; }

/* ===== Исправление логотипа и шапки сайта ===== */
.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  max-width:min(360px,42vw);
  flex:0 1 auto;
}
.brand-crest {
  display:block;
  width:clamp(34px,3.2vw,46px) !important;
  height:clamp(34px,3.2vw,46px) !important;
  max-width:46px !important;
  max-height:46px !important;
  min-width:0;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
  filter:brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,.16)) !important;
}
.brand-name {
  display:block;
  min-width:0;
  font-family:"Yanone Kaffeesatz","Arial Narrow",sans-serif;
  font-size:clamp(19px,2vw,25px);
  line-height:1;
  white-space:nowrap;
  color:#f2f4f5;
}
.brand-name span {
  display:block;
  margin-top:4px;
  color:#a9b3b8;
  font-family:"PT Sans",Arial,sans-serif;
  font-size:11px;
  letter-spacing:.22em;
}
.site-header {
  position:relative;
  inset:auto;
  min-height:82px;
  width:100%;
  padding:12px clamp(16px,5vw,72px);
  gap:clamp(12px,2vw,28px);
  background:rgba(13,16,18,.97);
  border-bottom:1px solid rgba(190,204,209,.28);
  backdrop-filter:blur(12px);
}
.site-header.page-header { position:relative; }
.main-nav { flex:0 1 auto; flex-wrap:wrap; justify-content:flex-end; }
.main-nav a { white-space:nowrap; }
.top-level-page .page-heading {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:clamp(220px,27vw,330px);
  padding:48px 8vw;
  overflow:hidden;
  border-top:1px solid rgba(190,204,209,.24);
  border-bottom:1px solid rgba(190,204,209,.24);
  background-color:#111619;
  background-image:
    linear-gradient(90deg,rgba(8,12,14,.38),rgba(8,12,14,.18) 50%,rgba(8,12,14,.38)),
    url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png');
  background-position:center;
  background-size:cover;
}
.top-level-page .page-heading h1,
.top-level-page .page-heading .eyebrow,
.top-level-page .page-heading .page-lead {
  position:relative;
  z-index:1;
  color:#f0f2f3;
  text-shadow:0 2px 14px rgba(0,0,0,.85);
}
.top-level-page .page-heading .eyebrow { color:#a8d0ce; }
.top-level-page .page-heading .page-lead { color:#e0e5e7; }
body:not(.page-shell) .site-header { position:absolute; top:0; left:0; right:0; background:rgba(9,12,14,.78); }
body:not(.page-shell) .hero {
  min-height:clamp(260px,33vw,390px);
  height:clamp(260px,33vw,390px);
  padding:0;
  display:block;
  background-image:url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png');
  background-position:center;
  background-size:cover;
  border-block:1px solid rgba(190,204,209,.24);
}
body:not(.page-shell) .hero-shade { background:linear-gradient(90deg,rgba(8,12,14,.1),transparent 55%,rgba(8,12,14,.12)); }
body:not(.page-shell) .hero-content { display:none; }
body:not(.page-shell) .hero-bottom { bottom:14px; left:5vw; right:5vw; color:rgba(235,240,242,.75); }
@media(max-width:900px) {
  .site-header { padding-inline:4vw; }
  .brand { max-width:36vw; }
  .brand-crest { width:38px !important;height:38px !important; }
  .brand-name { font-size:20px; }
  .main-nav { gap:12px; }
  .main-nav a { font-size:10px; }
}
@media(max-width:680px) {
  .site-header,.site-header.page-header {
    min-height:68px;
    padding:9px 5vw;
    gap:8px;
  }
  .brand { max-width:calc(100% - 54px); gap:9px; }
  .brand-crest { width:34px !important;height:34px !important; }
  .brand-name { font-size:18px; }
  .brand-name span { font-size:9px; }
  .menu-toggle { flex:0 0 auto; }
  .main-nav { top:67px; }
  .top-level-page .page-heading { min-height:210px; padding:35px 7vw; background-position:center; }
  body:not(.page-shell) .hero { min-height:210px;height:56vw;max-height:290px; }
}

/* ===== Финальная настройка баннеров и заголовков ===== */
.top-level-page .page-heading {
  background-image:
    linear-gradient(90deg,rgba(8,12,14,.42),rgba(8,12,14,.18) 50%,rgba(8,12,14,.42)),
    url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png') !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
}
.top-level-page .page-heading h1 { text-transform:uppercase; }
.top-level-page .page-heading { border-block:1px solid rgba(190,204,209,.28); }
body:not(.page-shell) .hero {
  background-image:
    linear-gradient(90deg,rgba(8,12,14,.12),rgba(8,12,14,.04)),
    url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png') !important;
  background-position:center center !important;
  background-size:cover !important;
}
body:not(.page-shell) .hero-content {
  display:flex !important;
  position:absolute !important;
  inset:auto 7vw 28px 7vw !important;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  max-width:760px !important;
  opacity:1 !important;
  pointer-events:auto !important;
  padding:18px 22px;
  background:rgba(8,12,14,.68);
  border-left:2px solid var(--teal-bright);
  backdrop-filter:blur(5px);
}
body:not(.page-shell) .hero .eyebrow {
  display:block !important;
  margin:0;
  color:#e3eeee;
  font-size:clamp(12px,1.35vw,17px);
  letter-spacing:.08em;
  line-height:1.45;
}
body:not(.page-shell) .hero .hero-author {
  display:block;
  margin:0;
  color:#b8c8cb;
  font-size:13px;
}
body:not(.page-shell) .hero h1,
body:not(.page-shell) .hero-copy,
body:not(.page-shell) .hero .ornament { display:none !important; }
body:not(.page-shell) .hero .text-link {
  position:static;
  transform:none;
  margin-top:8px;
  padding:0;
  border:0;
  background:transparent;
  backdrop-filter:none;
}
body:not(.page-shell) .hero .text-link:hover { transform:translateX(3px); }
.section-return { color:var(--teal-bright); }
.site-footer p { max-width:760px; margin:8px auto; line-height:1.6; }
@media(max-width:680px) {
 body:not(.page-shell) .hero-content { inset:auto 5vw 18px 5vw !important; padding:12px 14px; }
 body:not(.page-shell) .hero .eyebrow { font-size:12px; }
 body:not(.page-shell) .hero .hero-author { font-size:11px; }
}

/* Homepage banner copy: left-aligned editorial heading and lead */
body:not(.page-shell) .hero-content { text-align:left; align-items:flex-start; }
body:not(.page-shell) .site-header{position:fixed!important}
body:not(.page-shell) .hero .eyebrow { font-size:clamp(14px,1.6vw,19px); font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
body:not(.page-shell) .hero .hero-author { max-width:650px; color:#e0e7e9; font-size:clamp(14px,1.35vw,17px); line-height:1.65; }
.article-return-wrap { display:flex; flex-wrap:wrap; gap:14px; }


/* Homepage banner spacing and shared footer signature */
body:not(.page-shell) .hero-content {
  inset:auto 7vw 88px 7vw !important;
}
body:not(.page-shell) .hero-bottom {
  bottom:16px;
  left:7vw;
  right:7vw;
  z-index:2;
}
.footer-signature {
  margin:0;
  color:var(--muted);
  font:500 13px "PT Sans",Arial,sans-serif;
  letter-spacing:.035em;
  line-height:1.7;
  text-align:center;
}
.books-return-wrap {
  display:flex;
  justify-content:flex-start;
}
@media(max-width:680px) {
  body:not(.page-shell) .hero-content { inset:auto 5vw 78px 5vw !important; }
  body:not(.page-shell) .hero-bottom { bottom:12px; left:5vw; right:5vw; font-size:11px; }
  .footer-signature { padding-inline:5vw; font-size:11px; }
}


/* ===== Homepage banner: separate the headline from the bottom navigation cue ===== */
body:not(.page-shell) .hero-content {
  inset:auto auto 112px 7vw !important;
  width:min(760px,78vw);
  max-width:760px !important;
  box-sizing:border-box;
}
body:not(.page-shell) .hero-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  bottom:14px;
  left:7vw;
  right:7vw;
}
body:not(.page-shell) .scroll-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:1px solid rgba(220,235,235,.55);
  border-radius:50%;
  color:#edf5f5;
  text-decoration:none;
  font-size:19px;
  transition:background .2s ease,transform .2s ease,border-color .2s ease;
}
body:not(.page-shell) .scroll-mark:hover {
  background:rgba(62,126,126,.32);
  border-color:var(--teal-bright);
  transform:translateY(3px);
}

/* ===== Three-line centered footer with left-aligned copy ===== */
.site-footer {
  display:flex;
  justify-content:center;
  padding:34px 5vw;
}
.footer-inner {
  width:min(100%,560px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.footer-heading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
}
.footer-crest {
  width:44px;
  height:44px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.footer-heading h2 {
  margin:0;
  color:var(--text);
  font-size:clamp(23px,3vw,30px);
  line-height:1;
  font-weight:500;
}
.footer-copy {
  width:100%;
  padding-left:58px;
  text-align:left;
}
.footer-copy p {
  margin:5px 0;
  color:var(--muted);
  font:13px/1.65 "PT Sans",Arial,sans-serif;
}
@media(max-width:680px) {
  body:not(.page-shell) .hero-content { inset:auto 5vw 94px 5vw !important; width:auto; }
  body:not(.page-shell) .hero-bottom { left:5vw; right:5vw; bottom:12px; }
  .site-footer { padding:28px 6vw; }
  .footer-inner { width:min(100%,420px); }
  .footer-heading { gap:10px; }
  .footer-crest { width:36px;height:36px; }
  .footer-heading h2 { font-size:24px; }
  .footer-copy { padding-left:46px; }
  .footer-copy p { font-size:11px; }
}

/* ===== Explicit banner treatment for every lore subsection ===== */
body.lore-page .page-heading {
  position:relative;
  isolation:isolate;
  min-height:clamp(220px,27vw,330px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 8vw;
  overflow:hidden;
  border-block:1px solid rgba(190,204,209,.28);
  background:
    linear-gradient(90deg,rgba(8,12,14,.48),rgba(8,12,14,.2) 50%,rgba(8,12,14,.48)),
    url('/assets/images/backgrounds/%D0%A8%D0%B0%D0%BF%D0%BA%D0%B0.png') center/cover no-repeat;
}
body.lore-page .page-heading h1 {
  text-transform:uppercase !important;
  color:#f0f2f3;
  text-shadow:0 2px 14px rgba(0,0,0,.85);
}
body.lore-page .page-heading .eyebrow { color:#a8d0ce; text-shadow:0 2px 12px #000; }
body.lore-page .page-heading .page-lead { color:#e0e5e7; text-shadow:0 2px 12px #000; }

/* ===== Online dictionary controls ===== */
.guide-dictionary {
  border:1px solid var(--line);
  background:linear-gradient(145deg,rgba(62,126,126,.07),rgba(18,23,26,.92) 45%);
}
.guide-toolbar { padding:clamp(18px,3vw,30px); border-bottom:1px solid var(--line); }
.guide-search-label,.guide-filters label {
  display:block;
  margin-bottom:9px;
  color:var(--text);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.guide-search-wrap {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:0 16px;
  border:1px solid var(--line-strong);
  background:#101517;
  color:var(--teal-bright);
  font-size:25px;
}
.guide-search-wrap input {
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:15px "PT Sans",Arial,sans-serif;
}
.guide-search-wrap input::placeholder { color:var(--muted); }
.guide-filters {
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr);
  gap:10px 18px;
  margin-top:20px;
}
.guide-filters label { margin:0; align-self:end; }
.guide-filters select {
  width:100%;
  min-height:42px;
  padding:8px 12px;
  border:1px solid var(--line);
  background:#151b1e;
  color:var(--text);
  font:13px "PT Sans",Arial,sans-serif;
}
.guide-results { min-height:210px; padding:22px; }
.guide-empty { max-width:560px; margin:22px auto; text-align:center; }
.guide-empty-mark { color:var(--teal-bright); font-size:38px; }
.guide-empty h2 { margin:8px 0; color:var(--text); }
.guide-empty p { color:var(--muted); font-size:13px; line-height:1.7; }
.guide-entry {
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.guide-entry h3 { margin:0 0 8px; color:var(--text); }
.guide-entry p { margin:0; color:var(--muted); line-height:1.65; }
.guide-entry-meta { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:8px; color:var(--teal-bright); font-size:11px; }
.guide-downloads { margin-top:34px; }
@media(max-width:600px) { .guide-filters { grid-template-columns:1fr; } }

/* ===== Historical map selector ===== */
.map-switcher {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.map-period-button {
  padding:11px 18px;
  border:1px solid var(--line-strong);
  background:#151b1e;
  color:var(--muted);
  font:700 12px "PT Sans",Arial,sans-serif;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.map-period-button.active,.map-period-button[aria-pressed="true"] {
  border-color:var(--teal);
  background:rgba(62,126,126,.16);
  color:#e4f2f1;
}
.map-display .map-placeholder { min-height:360px; }

.guide-filter-group { display:flex; flex-direction:column; gap:9px; min-width:0; }
html { scroll-behavior:smooth; }


/* ===== Map images and visible period controls ===== */
.map-viewer { width:100%; }
.map-switcher { display:flex; justify-content:center; gap:12px; margin:0 0 22px; }
.map-period-button { min-width:150px; padding:12px 22px; border-radius:2px; }
.map-display { width:100%; border:1px solid var(--line-strong); background:#0b0f11; }
.map-image-frame { margin:0; padding:14px; }
.period-map-image { display:block; width:100%; height:auto; max-height:78vh; object-fit:contain; margin:0 auto; }
.map-image-frame figcaption { padding:12px 4px 2px; color:var(--muted); text-align:center; font-size:12px; letter-spacing:.08em; }
@media(max-width:600px) {
  .map-switcher { display:grid; grid-template-columns:1fr 1fr; }
  .map-period-button { min-width:0; padding:11px 8px; }
  .map-image-frame { padding:6px; }
}

/* Keep dictionary controls visibly grouped while the entries are being prepared. */
.guide-dictionary { display:block; width:100%; }
.guide-toolbar { display:block; }
.guide-search-wrap { width:100%; }
.guide-filters { display:grid; }
.guide-filter-group { display:flex; flex-direction:column; gap:9px; }
.guide-empty { display:block; padding:55px 28px; text-align:center; }
.guide-empty h2 { color:var(--text); }
.guide-empty p { max-width:680px; margin:0 auto; color:var(--muted); line-height:1.8; }

/* Footer alignment and intentional copyright wrap */
.footer-copy{padding-left:0!important;text-align:center!important;width:100%}.footer-copy p{text-align:center}

/* Full-viewport interactive map */
.map-fullscreen-section{width:100%;margin:0;padding:20px 0 0}
.map-fullscreen-section .map-switcher{justify-content:center;margin:0 auto 18px;padding:0 16px}
.map-viewport{position:relative;width:100vw;margin-left:calc(50% - 50vw);overflow:hidden;background:#0a0e10;border-block:1px solid var(--line-strong);cursor:grab;touch-action:none;user-select:none}
.map-viewport.is-dragging{cursor:grabbing}
.period-map-image{display:block;width:100%;max-width:none;height:auto;max-height:none;margin:0;object-fit:contain;transform-origin:center center;transition:transform .12s ease-out;pointer-events:none}
.map-viewport.is-dragging .period-map-image{transition:none}
.map-zoom-controls{position:absolute;z-index:4;top:50%;right:18px;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 10px;border:1px solid rgba(190,204,209,.28);background:rgba(12,17,19,.9);backdrop-filter:blur(8px);color:var(--text)}
.map-zoom-controls label,.map-zoom-controls output{font:700 11px "PT Sans",Arial,sans-serif}
.map-zoom-controls input[type=range]{writing-mode:vertical-lr;direction:rtl;width:24px;height:180px;accent-color:var(--teal-bright);cursor:ns-resize}
.map-zoom-controls button{padding:6px 8px;border:1px solid var(--line-strong);background:transparent;color:var(--text);font-size:10px;cursor:pointer}
.map-pan-hint{position:absolute;left:18px;bottom:12px;margin:0;padding:5px 9px;background:rgba(12,17,19,.78);color:#c5d0d3;font-size:11px;pointer-events:none}
.map-image-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:80%;padding:14px 18px;background:rgba(12,17,19,.94);color:#ffb7a0;text-align:center}
.map-caption{margin:12px auto 0;color:var(--muted);text-align:center;font-size:12px;letter-spacing:.08em}
@media(max-width:680px){.map-zoom-controls{right:8px;gap:7px;padding:9px 7px}.map-zoom-controls input[type=range]{height:130px}.map-pan-hint{left:8px;bottom:8px;max-width:55%;font-size:9px}}

/* Expandable book selector */
.book-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;transition:grid-template-columns .35s ease}
.book-choice{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);background:linear-gradient(155deg,rgba(62,126,126,.1),rgba(21,27,30,.96));color:var(--text);text-align:left;cursor:pointer;transition:border-color .3s ease,background .3s ease,transform .3s ease,box-shadow .3s ease}
.book-choice:hover{border-color:var(--teal-bright);transform:translateY(-4px)}
.book-cover-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:2/3;overflow:hidden;border:1px solid rgba(190,204,209,.24);background:radial-gradient(ellipse at 50% 38%,rgba(101,164,162,.24),transparent 52%),linear-gradient(145deg,#303b40,#101517 70%);color:rgba(225,238,239,.8);font:300 clamp(54px,8vw,100px)/1 "Yanone Kaffeesatz",sans-serif}
.book-cover-placeholder span{text-shadow:0 5px 24px rgba(0,0,0,.6)}
.book-choice-title{display:block;font:500 25px/1.05 "Yanone Kaffeesatz",sans-serif}
.book-details{min-width:0;align-self:stretch;padding:clamp(22px,3vw,38px);border:1px solid var(--line-strong);background:linear-gradient(145deg,rgba(62,126,126,.1),rgba(18,23,26,.98) 55%);animation:book-panel-in .42s cubic-bezier(.2,.75,.25,1) both}
.book-details h3{margin:8px 0 18px;color:var(--text);font:500 clamp(34px,4vw,54px)/1 "Yanone Kaffeesatz",sans-serif}
.book-synopsis{max-width:650px;color:var(--muted);line-height:1.9}
.book-detail-status{margin-top:24px;color:var(--teal-bright);font-size:12px}
.book-detail-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.book-detail-links span{padding:9px 12px;border:1px solid var(--line);color:var(--muted);font-size:12px}
.book-selector.is-expanded{grid-template-columns:minmax(190px,.72fr) minmax(0,1.8fr);gap:12px 22px}.book-selector.is-expanded .book-details{grid-column:2}
.book-selector.is-expanded .book-choice{grid-column:1;padding:10px;flex-direction:row;align-items:center}
.book-selector.is-expanded .book-choice .book-cover-placeholder{width:76px;min-width:76px;aspect-ratio:2/3}
.book-selector.is-expanded .book-choice-title{font-size:20px}
.book-selector.is-expanded .book-choice.is-active{min-height:100%;flex-direction:column;align-items:stretch;padding:14px;border-color:var(--teal-bright);background:linear-gradient(155deg,rgba(62,126,126,.22),rgba(21,27,30,.98));box-shadow:0 0 0 1px rgba(101,164,162,.12),0 14px 38px rgba(0,0,0,.2);transform:scale(1.015)}
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{width:100%;min-width:0;aspect-ratio:3/4}
.book-selector.is-expanded .book-choice.is-active .book-choice-title{font-size:26px}
@keyframes book-panel-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:680px){.book-selector{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.book-choice{padding:8px;gap:8px}.book-choice-title{font-size:18px}.book-selector.is-expanded{grid-template-columns:minmax(105px,.8fr) minmax(0,1.5fr);gap:8px}.book-selector.is-expanded .book-choice{padding:7px;gap:7px;flex-direction:column;align-items:stretch}.book-selector.is-expanded .book-choice .book-cover-placeholder{width:100%;min-width:0;aspect-ratio:2/3}.book-selector.is-expanded .book-choice-title{font-size:15px}.book-details{padding:16px 13px}.book-details h3{font-size:30px}.book-synopsis{font-size:12px;line-height:1.7}.book-detail-links{flex-direction:column}.book-detail-links span{font-size:10px}}


/* ===== Закреплённая шапка и текущий раздел ===== */
.site-header,.site-header.page-header{
  position:fixed!important;top:0!important;left:0;right:0;z-index:1000;
  min-height:82px;background:rgba(12,16,18,.96);backdrop-filter:blur(14px);
  box-shadow:0 5px 22px rgba(0,0,0,.16);
}
.page-shell .page-main{padding-top:82px}
.header-section-title{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  color:#dce8e8;font:600 14px/1 "PT Sans",Arial,sans-serif;
  letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;
  opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;
  pointer-events:none;
}
.site-header.is-scrolled .header-section-title{opacity:1;visibility:visible}
@media(max-width:680px){
  .site-header,.site-header.page-header{min-height:68px}
  .page-shell .page-main{padding-top:68px}
  .header-section-title{left:auto;right:62px;transform:translateY(-50%);font-size:10px;letter-spacing:.12em}
}

/* ===== Карта: дисклеймер, третья эпоха и удобное управление ===== */
.map-disclaimer{
  width:min(1050px,88vw);margin:0 auto 20px;padding:0 8px;
  color:var(--muted);font:13px/1.7 "PT Sans",Arial,sans-serif;text-align:center;
}
.map-zoom-controls{left:18px;right:auto}
.map-coming-soon{
  position:absolute;inset:0;z-index:3;display:grid;place-items:center;
  padding:30px;background:radial-gradient(ellipse at center,rgba(62,126,126,.15),transparent 65%),#0d1316;
  color:#dce8e8;text-align:center;font:500 clamp(22px,3vw,36px)/1.35 "Yanone Kaffeesatz",sans-serif;
}
.map-coming-soon[hidden]{display:none}
.map-viewport{touch-action:none}
.period-map-image[hidden]{display:none!important}
@media(max-width:680px){
  .map-zoom-controls{left:7px;right:auto}
  .map-disclaimer{font-size:11px;line-height:1.55;margin-bottom:16px}
  .map-zoom-controls input[type=range]{height:120px}
}

/* ===== Три независимых каталога книг ===== */
.book-selector{grid-template-columns:repeat(3,minmax(0,1fr))}
.book-choice{padding:12px}
.book-choice-title{display:none}
.book-selector[data-book-selector="spinoffs"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.book-selector[data-book-selector="spinoffs"] .book-choice{max-width:100%}
.book-selector.is-expanded .book-choice{min-height:100px}
.book-selector.is-expanded .book-choice .book-cover-placeholder{width:68px;min-width:68px;aspect-ratio:2/3}
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{width:100%;min-width:0;aspect-ratio:3/4}
.book-detail-links a,.book-detail-links span{
  display:inline-flex;align-items:center;padding:9px 12px;border:1px solid var(--line);
  color:var(--muted);font-size:12px
}
.book-for-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:20px}
.book-for-label{width:100%;color:var(--muted);font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.book-for-link,.book-cycle-link{
  display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--line);
  background:rgba(62,126,126,.06);color:var(--text);font:12px "PT Sans",Arial,sans-serif;
  cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease
}
.book-for-link:hover,.book-cycle-link:hover{border-color:var(--teal-bright);box-shadow:var(--glow-teal)}
.book-mini-cover{display:grid;place-items:center;width:24px;height:34px;border:1px solid var(--line-strong);background:linear-gradient(145deg,#303b40,#101517);font:16px "Yanone Kaffeesatz",sans-serif}
.book-cycle-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}
.book-cycle-item{min-width:0}
.book-cycle-label{display:block;margin-bottom:8px;color:var(--muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.book-cycle-link{max-width:100%;text-align:left}
.book-cycle-link .book-mini-cover{width:34px;height:48px;flex:0 0 auto}
.book-cycle-link span:last-child{min-width:0}
@media(max-width:680px){
 .book-selector{gap:8px}
 .book-choice{padding:7px}
 .book-selector.is-expanded{grid-template-columns:minmax(90px,.75fr) minmax(0,1.6fr);gap:8px}
 .book-selector.is-expanded .book-choice{padding:6px;gap:6px;flex-direction:column;align-items:stretch}
 .book-selector.is-expanded .book-choice .book-cover-placeholder{width:100%;min-width:0;aspect-ratio:2/3}
 .book-details{padding:15px 12px}
 .book-cycle-nav{grid-template-columns:1fr}
 .book-cycle-link{font-size:10px}
}


/* Current page title in the fixed header */
.header-section-title{font-size:13px!important;font-weight:600;letter-spacing:.08em}
@media(max-width:680px){.header-section-title{font-size:10px!important}}

/* Seamless horizontal map loop with bounded vertical movement */
.map-viewport{overflow:hidden;position:relative}
.map-image-track{
 position:absolute;top:0;left:0;display:flex;align-items:flex-start;
 transform-origin:top left;will-change:transform;pointer-events:none;
}
.map-image-track img{display:block;flex:0 0 auto;max-width:none;height:auto;object-fit:fill}
.map-image-track[hidden]{display:none!important}
.period-map-image{width:100%;height:auto;max-width:none;object-fit:fill}
.map-viewport .period-map-image{visibility:hidden}
.map-viewport .map-image-track .period-map-image{visibility:visible}

/* Let native touch interaction on the zoom slider work independently of map gestures */
.map-viewport{touch-action:auto}
.map-zoom-controls input[type=range]{touch-action:none}

.book-cover-placeholder img{display:block;width:100%;height:100%;object-fit:cover}
.book-mini-cover{overflow:hidden}
.book-mini-cover img{display:block;width:100%;height:100%;object-fit:cover}


/* ===== Каталог книг: исправленная сетка и пропорции обложек ===== */
.book-selector .book-choice{
  box-sizing:border-box;
  min-width:0;
}
.book-selector:not(.is-expanded) .book-choice{
  padding:0;
  overflow:hidden;
}
.book-selector:not(.is-expanded) .book-cover-placeholder{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2/3;
  overflow:hidden;
  border:0;
}
.book-selector:not(.is-expanded) .book-cover-placeholder img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center;
}
.book-selector.is-expanded{
  grid-template-columns:minmax(120px,.72fr) minmax(0,1.8fr);
  align-items:stretch;
  gap:12px 22px;
}
.book-selector.is-expanded .book-choice{
  grid-column:1;
  min-height:0;
  padding:8px;
  flex-direction:row;
  align-items:center;
  transform:none;
  box-shadow:none;
}
.book-selector.is-expanded .book-choice .book-cover-placeholder{
  display:block;
  width:64px;
  min-width:64px;
  height:auto;
  aspect-ratio:2/3;
  flex:0 0 64px;
}
.book-selector.is-expanded .book-choice.is-active{
  border-color:var(--teal-bright);
  background:rgba(62,126,126,.15);
}
.book-selector.is-expanded .book-details{
  grid-column:2;
  min-width:0;
  align-self:stretch;
}
.book-detail-heading{display:flex;align-items:flex-start;gap:18px;margin-bottom:20px}
.book-detail-cover{display:block;width:76px;height:114px;flex:0 0 76px;object-fit:contain;object-position:top center;border:1px solid var(--line-strong);background:rgba(0,0,0,.16)}
.book-detail-title{min-width:0}
.book-detail-title .eyebrow{margin:0 0 5px}
.book-detail-title h3{margin:0 0 12px}
.book-metadata{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0}
.book-metadata div{display:flex;flex-wrap:wrap;gap:5px}
.book-metadata dt{color:var(--muted);font-size:11px}
.book-metadata dd{margin:0;color:var(--text);font-size:12px}
.book-synopsis{max-width:none;margin:0 0 14px;white-space:normal;line-height:1.75}
.book-excerpt{margin:20px 0;padding:14px 18px;border-left:2px solid var(--teal);background:rgba(62,126,126,.07);color:var(--muted);font-size:13px;line-height:1.8}
.book-store-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.book-store-group{min-width:0}
.book-store-group h4{margin:0 0 10px;color:var(--muted);font:500 13px/1.2 "PT Sans",Arial,sans-serif}
.book-store-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.book-store-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:42px;min-height:38px;padding:5px 8px;border:1px solid var(--line);background:rgba(62,126,126,.06);color:var(--text);transition:border-color .2s ease,background .2s ease}
.book-store-link:hover{border-color:var(--teal-bright);background:rgba(62,126,126,.16)}
.book-store-mark{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:24px;color:#e6eeee;font:700 14px/1 "PT Sans",Arial,sans-serif}
.book-store-ozon{font-size:10px;letter-spacing:-.08em;color:#69a9ff}
.book-store-wildberries{font-size:12px;color:#d79aff}
.book-store-name{font-size:10px;color:var(--muted)}
.book-detail-status{margin:18px 0 0;color:var(--teal-bright);font-size:12px}
@media(max-width:680px){
 .book-selector:not(.is-expanded){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .book-selector:not(.is-expanded) .book-choice{padding:0}
 .book-selector.is-expanded{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
 }
 .book-selector.is-expanded .book-choice,
 .book-selector.is-expanded .book-choice.is-active{
  grid-row:1!important;
  grid-column:auto!important;
  min-height:0;
  padding:5px;
  flex-direction:column;
  align-items:stretch;
 }
 .book-selector.is-expanded .book-choice .book-cover-placeholder{
  width:100%;
  min-width:0;
  flex:initial;
  aspect-ratio:2/3;
 }
 .book-selector.is-expanded .book-details{
  grid-column:1/-1;
  grid-row:2!important;
  padding:16px 14px;
 }
 .book-detail-heading{gap:12px;margin-bottom:16px}
 .book-detail-cover{width:58px;height:87px;flex-basis:58px}
 .book-detail-title h3{font-size:27px;margin-bottom:8px}
 .book-metadata{gap:5px 12px}
 .book-metadata dt,.book-metadata dd{font-size:10px}
 .book-synopsis{font-size:13px;line-height:1.7}
 .book-excerpt{font-size:12px;padding:11px 12px}
 .book-store-groups{grid-template-columns:1fr;gap:14px;margin-top:18px;padding-top:14px}
 .book-store-link{min-width:40px;min-height:36px}
 .book-store-name{font-size:9px}
}


/* Explicit hidden-state handling for expandable book panels */
.book-details[hidden]{display:none!important}
.book-details:not([hidden]){display:block}


/* Desktop book selection: move the selected full cover to the upper-left,
   shrinking it smoothly while keeping the complete portrait visible. */
@media(min-width:681px){
 .book-selector.is-expanded .book-choice.is-active{
  display:flex;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start;
  justify-self:start;
  align-self:start;
  width:76px;
  min-width:76px;
  min-height:0!important;
  padding:6px!important;
  overflow:visible;
  transform:none!important;
  transition:width .45s cubic-bezier(.2,.75,.25,1),padding .45s ease,background .3s ease,border-color .3s ease;
 }
 .book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{
  display:block;
  width:60px!important;
  min-width:60px!important;
  height:auto!important;
  aspect-ratio:2/3!important;
  flex:0 0 auto!important;
  overflow:hidden;
  transition:width .45s cubic-bezier(.2,.75,.25,1),min-width .45s cubic-bezier(.2,.75,.25,1);
 }
 .book-selector.is-expanded .book-choice.is-active .book-cover-placeholder img{
  display:block;
  width:100%;
  height:auto!important;
  aspect-ratio:2/3;
  object-fit:contain!important;
 }
 .book-selector.is-expanded .book-details .book-detail-cover{display:none}
}

/* On mobile, preserve the cover's native 2:3 ratio in every state. */
@media(max-width:680px){
 .book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{
  display:block;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:2/3!important;
  flex:initial!important;
  overflow:visible;
 }
 .book-selector.is-expanded .book-choice.is-active .book-cover-placeholder img{
  display:block;
  width:100%;
  height:auto!important;
  aspect-ratio:2/3;
  object-fit:contain!important;
  object-position:center top;
 }
}


/* ===== Каталог книг: единая раскладка на компьютерах и телефонах ===== */
.book-selector{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px;
  align-items:start;
  transition:none;
}
.book-selector .book-choice,
.book-selector.is-expanded .book-choice,
.book-selector.is-expanded .book-choice.is-active{
  display:block!important;
  grid-column:auto!important;
  grid-row:1!important;
  justify-self:stretch!important;
  align-self:start!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  transition:none!important;
}
.book-selector .book-choice:hover,
.book-selector.is-expanded .book-choice:hover{transform:none!important}
.book-selector .book-cover-placeholder,
.book-selector.is-expanded .book-choice .book-cover-placeholder,
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:2/3!important;
  margin:0!important;
  flex:none!important;
  overflow:hidden!important;
  border:0!important;
  transition:none!important;
}
.book-selector .book-cover-placeholder img,
.book-selector.is-expanded .book-choice .book-cover-placeholder img,
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder img{
  display:block;
  width:100%!important;
  height:100%!important;
  aspect-ratio:2/3;
  object-fit:contain!important;
  object-position:center;
}
.book-selector.is-expanded .book-choice.is-active{
  outline:2px solid var(--teal-bright);
  outline-offset:3px;
}
.book-selector.is-expanded .book-details{
  grid-column:1/-1!important;
  grid-row:2!important;
  min-width:0;
  animation:book-panel-in .95s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes book-panel-in{
  from{opacity:0;transform:translateY(26px)}
  to{opacity:1;transform:translateY(0)}
}
.book-cycle-item-next{grid-column:2}
@media(max-width:680px){
  .book-selector{gap:8px}
  .book-selector.is-expanded{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .book-selector .book-choice,
  .book-selector.is-expanded .book-choice,
  .book-selector.is-expanded .book-choice.is-active{padding:0!important}
  .book-selector.is-expanded .book-details{grid-column:1/-1!important;grid-row:2!important}
  .book-cycle-item-next{grid-column:1}
}


/* Mobile: keep the current page label centered on the viewport, not offset from the right edge. */
@media(max-width:680px){
  .header-section-title{
    left:50%!important;
    right:auto!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:max-content;
    max-width:calc(100vw - 120px);
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }
}


/* ===== Обложки каталога: точное соотношение исходных изображений ===== */
/* Все файлы обложек имеют размер 400 × 565 px (соотношение 80:113). */
.book-selector .book-cover-placeholder,
.book-selector.is-expanded .book-choice .book-cover-placeholder,
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder{
  aspect-ratio:80/113!important;
}
.book-selector .book-cover-placeholder img,
.book-selector.is-expanded .book-choice .book-cover-placeholder img,
.book-selector.is-expanded .book-choice.is-active .book-cover-placeholder img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:80/113!important;
  object-fit:fill!important;
  object-position:center!important;
}

/* На компьютерах карточки обложек на 20% уже ячеек сетки. */
@media(min-width:681px){
  .book-selector .book-choice,
  .book-selector.is-expanded .book-choice,
  .book-selector.is-expanded .book-choice.is-active{
    width:80%!important;
    justify-self:center!important;
  }
}

/* На телефонах карточки занимают всю ширину своей колонки. */
@media(max-width:680px){
  .book-selector .book-choice,
  .book-selector.is-expanded .book-choice,
  .book-selector.is-expanded .book-choice.is-active{
    width:100%!important;
  }
}

/* Логотипы магазинов вместо буквенных заглушек. */
.book-store-logo{
  display:block;
  width:25px;
  height:25px;
  flex:0 0 25px;
  object-fit:contain;
  object-position:center;
}
.book-store-link{gap:7px}


/* ===== Путеводитель: прогресс чтения, категории и карточки ===== */
.guide-toolbar{display:grid;gap:28px}
.guide-progress{padding:0 0 22px;border-bottom:1px solid var(--line)}
.guide-progress-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.guide-control-eyebrow{margin:0 0 5px;color:var(--teal-bright);font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.guide-progress-heading h2{margin:0;color:var(--text);font:500 clamp(25px,3vw,34px)/1.05 "Yanone Kaffeesatz",sans-serif}
#guide-progress-current{color:var(--teal-bright);font-size:13px;text-align:right}
.guide-progress-slider{--guide-progress:0%;display:block;width:100%;height:7px;margin:0;padding:0;appearance:none;border-radius:10px;outline:0;background:linear-gradient(to right,var(--teal-bright) 0 var(--guide-progress),#303a3e var(--guide-progress) 100%);cursor:pointer}
.guide-progress-slider::-webkit-slider-thumb{width:19px;height:19px;appearance:none;border:3px solid #dcebea;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(62,126,126,.22)}
.guide-progress-slider::-moz-range-thumb{width:13px;height:13px;border:3px solid #dcebea;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(62,126,126,.22)}
.guide-progress-points{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;margin-top:10px}
.guide-progress-point{display:flex;min-width:0;align-items:center;flex-direction:column;text-align:center;color:var(--muted)}
.guide-progress-point i{width:7px;height:7px;margin:0 0 7px;border:1px solid #647276;border-radius:50%;background:#20292d}
.guide-progress-point small{font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.guide-progress-point.is-past i,.guide-progress-point.is-current i{border-color:var(--teal-bright);background:var(--teal-bright)}
.guide-progress-point.is-current small{color:#d9e9e8}
.guide-search-label{margin:0 0 9px}
.guide-tag-filter{display:flex;align-items:flex-start;gap:22px}
.guide-filter-heading{display:flex;min-width:72px;flex-direction:column;align-items:center;gap:5px;color:var(--text);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.guide-filter-heading-icon{display:block;width:22px;height:22px;color:var(--teal-bright)}
.guide-inline-icon{display:block;width:15px;height:15px;flex:0 0 15px}
.guide-tag-options{display:flex;flex:1;flex-wrap:wrap;gap:8px}
.guide-tag-all,.guide-tag-option{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:7px;padding:6px 10px;border:1px solid var(--line);background:#151b1e;color:var(--muted);font:12px "PT Sans",Arial,sans-serif;cursor:pointer}
.guide-tag-all.is-active,.guide-tag-option:has(input:checked){border-color:var(--teal-bright);background:rgba(62,126,126,.17);color:#e0eeee}
.guide-tag-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.guide-tag-option-icon{color:var(--teal-bright)}
.guide-results{padding:22px}
.guide-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.guide-card{min-width:0;border:1px solid var(--line);background:linear-gradient(145deg,rgba(32,42,46,.82),rgba(15,20,22,.98));}
.guide-card[hidden]{display:none!important}
.guide-card-main{display:flex;gap:16px;padding:18px}
.guide-card-portrait{position:relative;display:grid;width:94px;height:116px;flex:0 0 94px;place-items:center;overflow:hidden;border:1px solid var(--line-strong);background:linear-gradient(145deg,#283438,#111719);color:var(--teal-bright);font:500 40px "Yanone Kaffeesatz",sans-serif}
.guide-card-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.guide-card-portrait img[hidden]{display:none}
.guide-card-portrait.is-fallback img{display:none}
.guide-card-portrait span{position:relative}
.guide-card-content{min-width:0;flex:1}
.guide-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.guide-card-title-row h3{margin:0 0 9px;color:var(--text);font:500 25px/1.05 "Yanone Kaffeesatz",sans-serif}
.guide-object-id{color:var(--muted);font-size:9px;white-space:nowrap}
.guide-entry-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}
.guide-entry-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid rgba(98,135,135,.32);background:rgba(62,126,126,.08);color:#b8d1d0;font-size:9px;line-height:1.2}
.guide-entry-tag .guide-inline-icon{width:12px;height:12px;flex-basis:12px}
.guide-card-description{margin:0;color:var(--muted);font-size:12px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.guide-no-description{font-style:italic;opacity:.7}
.guide-card-versions{display:flex;flex-wrap:wrap;gap:5px;padding:10px 14px;border-top:1px solid var(--line);background:rgba(0,0,0,.12)}
.guide-version-tab{display:inline-flex;align-items:center;gap:5px;min-height:29px;padding:5px 8px;border:1px solid var(--line);background:#151b1e;color:var(--muted);font:10px "PT Sans",Arial,sans-serif;cursor:pointer}
.guide-version-tab.is-active{border-color:var(--teal-bright);background:rgba(62,126,126,.18);color:#e4f0ef}
.guide-version-tab.is-locked{border-style:dashed;color:#788387}
.guide-lock-symbol{font-size:12px}
.guide-lock-note{margin:0;padding:9px 14px;border-top:1px solid rgba(170,52,10,.35);background:rgba(170,52,10,.08);color:#d9b6a8;font-size:11px;line-height:1.5}
.guide-lock-note[hidden]{display:none}
.guide-no-matches,.guide-loading,.guide-empty{grid-column:1/-1;color:var(--muted);text-align:center}
.guide-loading{padding:48px 10px}
.guide-loading-mark,.guide-empty-mark{color:var(--teal-bright);font-size:34px}
.guide-loading p{margin:8px 0}
@media(max-width:900px){.guide-card-grid{grid-template-columns:1fr}}
@media(max-width:600px){
 .guide-toolbar{gap:22px}
 .guide-progress-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:20px}
 #guide-progress-current{text-align:left}
 .guide-progress-point small{font-size:7px}
 .guide-tag-filter{gap:12px;flex-direction:column}
 .guide-filter-heading{flex-direction:row;min-width:0}
 .guide-tag-options{gap:6px}
 .guide-tag-all,.guide-tag-option{min-height:31px;padding:5px 8px;font-size:10px}
 .guide-results{padding:12px}
 .guide-card-main{gap:12px;padding:13px}
 .guide-card-portrait{width:72px;height:94px;flex-basis:72px}
 .guide-card-title-row h3{font-size:22px}
 .guide-card-description{font-size:11px}
 .guide-card-versions{padding:9px;gap:5px}
 .guide-version-tab{font-size:9px;padding:5px 6px}
}

/* ===== Guide refinements: burgundy palette, aligned progress, image viewer ===== */
.guide-dictionary{--guide-accent:#87384d;--guide-accent-light:#c2768a;--guide-accent-soft:rgba(135,56,77,.16);border-color:rgba(194,118,138,.25);background:linear-gradient(145deg,rgba(135,56,77,.09),rgba(18,20,24,.96) 48%)}
.guide-control-eyebrow,.guide-progress-heading output,.guide-filter-heading-icon,.guide-tag-option-icon,.guide-empty-mark,.guide-loading-mark{color:var(--guide-accent-light)}
.guide-progress-heading{display:block;margin-bottom:12px}.guide-progress-heading h2{display:block}
#guide-progress-current{display:inline;color:var(--guide-accent-light);font:500 .82em "PT Sans",Arial,sans-serif;letter-spacing:0}
.guide-progress-explanation{max-width:850px;margin:12px 0 22px;color:var(--muted);font-size:13px;line-height:1.7}
.guide-progress-control{position:relative;padding-top:5px}
.guide-progress-slider{width:calc(100% - 19px);margin:0 9.5px;background:linear-gradient(to right,var(--guide-accent-light) 0 var(--guide-progress),#303a3e var(--guide-progress) 100%)}
.guide-progress-slider::-webkit-slider-thumb{border-color:#f0dfe3;background:var(--guide-accent);box-shadow:0 0 0 4px rgba(135,56,77,.24)}
.guide-progress-slider::-moz-range-thumb{border-color:#f0dfe3;background:var(--guide-accent);box-shadow:0 0 0 4px rgba(135,56,77,.24)}
.guide-progress-points{position:relative;display:block;height:78px;margin:0}
.guide-progress-point{position:absolute;top:0;display:flex;width:12.5%;transform:translateX(-50%);align-items:center;flex-direction:column}
.guide-progress-point i{width:8px;height:8px;margin:0 0 5px;border-color:#7d626a;background:#302329}
.guide-progress-point img{display:block;width:25px;height:36px;margin:0 0 4px;border:1px solid rgba(194,118,138,.45);object-fit:cover;box-shadow:0 2px 7px rgba(0,0,0,.35)}
.guide-progress-point small{font-size:9px;line-height:1.2}
.guide-progress-point.is-past i,.guide-progress-point.is-current i{border-color:var(--guide-accent-light);background:var(--guide-accent-light)}
.guide-progress-point.is-current small{color:#f0dce2}.guide-progress-point.is-disabled{opacity:.38}.guide-progress-point.is-disabled i{border-style:dashed}
.guide-tag-all.is-active,.guide-tag-option:has(input:checked){border-color:var(--guide-accent-light);background:var(--guide-accent-soft);color:#f0dce2}
.guide-tag-all:hover,.guide-tag-option:hover{border-color:var(--guide-accent-light)}
.guide-search-wrap{color:var(--guide-accent-light)}
.guide-card{border-color:rgba(194,118,138,.2);background:linear-gradient(145deg,rgba(65,34,43,.42),rgba(15,18,21,.98))}
.guide-card-portrait{background:linear-gradient(145deg,#422b34,#171316);color:var(--guide-accent-light)}
.guide-card-portrait:not(.is-fallback)>span{display:none}
.guide-portrait-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.guide-portrait-open img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.guide-card-portrait.is-fallback .guide-portrait-open{display:none}
.guide-entry-tag{border-color:rgba(194,118,138,.3);background:rgba(135,56,77,.1);color:#e0bdc7}
.guide-version-tab.is-active{border-color:var(--guide-accent-light);background:var(--guide-accent-soft);color:#f0dce2}
.guide-lock-note{border-color:rgba(194,118,138,.35);background:rgba(135,56,77,.1);color:#e0bdc7}
.guide-search-match{padding:0 .04em;background:rgba(194,118,138,.34);color:#fff0f3;border-radius:2px}
.guide-image-viewer{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;padding:5vh 5vw;background:rgba(5,6,8,.94);backdrop-filter:blur(8px);cursor:zoom-out}
.guide-image-viewer.is-open{display:flex}
.guide-image-viewer>img{display:block;max-width:90vw;max-height:90vh;width:auto;height:auto;object-fit:contain;box-shadow:0 15px 70px rgba(0,0,0,.55);cursor:default}
.guide-image-viewer-close{position:absolute;top:18px;right:24px;width:44px;height:44px;border:1px solid rgba(255,255,255,.35);background:rgba(20,20,24,.7);color:#fff;font:32px/1 "PT Sans",sans-serif;cursor:pointer}
.guide-progress-point:nth-child(1){left:calc(9.5px + (100% - 19px) * 0/7)}
.guide-progress-point:nth-child(2){left:calc(9.5px + (100% - 19px) * 1/7)}
.guide-progress-point:nth-child(3){left:calc(9.5px + (100% - 19px) * 2/7)}
.guide-progress-point:nth-child(4){left:calc(9.5px + (100% - 19px) * 3/7)}
.guide-progress-point:nth-child(5){left:calc(9.5px + (100% - 19px) * 4/7)}
.guide-progress-point:nth-child(6){left:calc(9.5px + (100% - 19px) * 5/7)}
.guide-progress-point:nth-child(7){left:calc(9.5px + (100% - 19px) * 6/7)}
.guide-progress-point:nth-child(8){left:calc(9.5px + (100% - 19px) * 7/7)}
@media(max-width:600px){.guide-progress-explanation{font-size:11px}.guide-progress-points{height:70px}.guide-progress-point{width:12.5%}.guide-progress-point img{width:19px;height:28px}.guide-progress-point small{font-size:7px}}

/* Follow-up guide refinements */
.guide-progress-point i{display:none!important}
.guide-progress-point{cursor:pointer}
.guide-progress-point img,.guide-progress-point small{cursor:pointer}
.guide-progress-point.is-disabled{cursor:not-allowed}
.guide-lock-symbol{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:22px;height:22px;color:#e5a9b8}
.guide-lock-symbol svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.guide-version-tab.is-locked{color:#d4a9b4;border-color:rgba(212,169,180,.45);gap:7px}
@media(min-width:601px){.guide-lock-symbol{width:26px;height:26px}.guide-lock-symbol svg{width:23px;height:23px}}


/* Final guide progress layout: shared thumb/cover coordinates and animated fill element */
.guide-progress-slider {
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.guide-progress-slider::-webkit-slider-runnable-track {
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.guide-progress-slider::-moz-range-track {
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}
.guide-progress-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -4px;
  appearance: none;
  border: 3px solid #f0dfe3;
  border-radius: 50%;
  background: #87384d;
  box-shadow: 0 0 0 4px rgba(135,56,77,.28);
}
.guide-progress-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #f0dfe3;
  border-radius: 50%;
  background: #87384d;
  box-shadow: 0 0 0 4px rgba(135,56,77,.28);
}
.guide-progress-control { position: relative; padding-top: 0; }
.guide-progress-fill {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 11px;
  right: 11px;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #303a3e;
  pointer-events: none;
}
.guide-progress-fill::before {
  content: "";
  display: block;
  width: var(--guide-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#b64e6d 0%,#f3a2b8 48%,#b64e6d 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: guide-fill-shimmer 2.2s linear infinite;
}
@keyframes guide-fill-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.guide-progress-points {
  position: relative;
  display: block;
  width: calc(100% - 22px);
  height: 116px;
  margin: 0 0 0 11px;
}
.guide-progress-point {
  position: absolute;
  top: 0;
  display: flex;
  width: 0;
  min-width: 0;
  transform: translateX(-50%);
  align-items: center;
  flex-direction: column;
  overflow: visible;
}
.guide-progress-point:nth-child(1) { left: 0%; }
.guide-progress-point:nth-child(2) { left: 14.2857142857%; }
.guide-progress-point:nth-child(3) { left: 28.5714285714%; }
.guide-progress-point:nth-child(4) { left: 42.8571428571%; }
.guide-progress-point:nth-child(5) { left: 57.1428571429%; }
.guide-progress-point:nth-child(6) { left: 71.4285714286%; }
.guide-progress-point:nth-child(7) { left: 85.7142857143%; }
.guide-progress-point:nth-child(8) { left: 100%; }
.guide-progress-point img {
  display: block;
  width: 54px;
  height: 77px;
  margin: 0 0 5px;
  border: 1px solid rgba(194,118,138,.55);
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
}
.guide-progress-point small {
  display: block;
  width: 96px;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}
.guide-progress-point .guide-progress-final-check {
  position: absolute;
  z-index: 3;
  top: 66px;
  left: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #d5f1dc;
  border-radius: 50%;
  background: #238b48;
  color: #fff;
  font: 700 15px/1 "PT Sans", Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.guide-progress-point.is-disabled { cursor: not-allowed; }
@media(max-width:600px) {
  .guide-progress-points { height: 84px; }
  .guide-progress-point img { width: 28px; height: 40px; }
  .guide-progress-point small { width: 48px; font-size: 7px; }
  .guide-progress-point .guide-progress-final-check {
    top: 31.5px;
    left: 5.5px;
    width: 17px;
    height: 17px;
    font-size: 11px;
  }
  .guide-progress-fill { top: 4px; }
}


/* Custom site cursors */
html, body {
  cursor: image-set(url("/assets/images/cursor/default.png") 2x) 0 0, auto;
}

/* Custom pointer for every interactive control, including in-page actions */
a[href],
area[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="range"],
select:not(:disabled),
summary,
label,
[role="button"],
[role="tab"],
[role="slider"],
.guide-progress-slider,
.guide-progress-point:not(.is-disabled),
.guide-tag-option,
.guide-tag-all,
.guide-portrait-open,
.guide-version-tab,
.guide-image-viewer,
.guide-image-viewer > img,
.guide-image-viewer-close {
  cursor: image-set(url("/assets/images/cursor/pointer.png") 2x) 0 0, pointer;
}


/* ===== Unified burgundy theme for the complete Lore section ===== */
body.lore-page {
  --bg:#100d10;
  --bg-soft:#191217;
  --panel:#21171d;
  --panel-raised:#2b1c24;
  --slate:#382630;
  --asphalt:#261a21;
  --teal:#87384d;
  --teal-bright:#c2768a;
  --rust:#87384d;
  --rust-bright:#c2768a;
  --text:#eee6e9;
  --muted:#b4a5ab;
  --line:rgba(194,118,138,.19);
  --line-strong:rgba(194,118,138,.36);
  --glow-teal:0 0 0 1px rgba(135,56,77,.5),0 0 22px rgba(135,56,77,.2);
  --glow-rust:0 0 0 1px rgba(135,56,77,.5),0 0 22px rgba(135,56,77,.2);
  --guide-accent:#87384d;
  --guide-accent-light:#c2768a;
  --guide-accent-soft:rgba(135,56,77,.16);
  background:var(--bg);
  color:var(--text);
}
body.lore-page .site-header,
body.lore-page .page-header {
  background:rgba(16,11,15,.94);
  border-color:var(--line);
}
body.lore-page .brand-name span,
body.lore-page .menu-toggle span { color:var(--teal-bright); background:var(--teal-bright); }
body.lore-page .main-nav a:hover,
body.lore-page .main-nav a.active {
  color:#f4dce3;
  text-shadow:0 0 14px rgba(194,118,138,.55);
}
body.lore-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(135,56,77,.23),transparent 68%),linear-gradient(135deg,#1c1218,#151015 72%);
  border-color:var(--line);
}
body.lore-page .page-heading h1,
body.lore-page .content-section h2,
body.lore-page .placeholder-panel h2 { color:#f0e5e9; }
body.lore-page .page-heading .eyebrow { color:#d28da0; text-shadow:0 2px 12px #000; }
body.lore-page .page-heading .page-lead { color:#d5c6cc; text-shadow:0 2px 12px #000; }
body.lore-page .page-content { color:var(--text); }
body.lore-page .placeholder-card,
body.lore-page .placeholder-panel,
body.lore-page .info-tile {
  border-color:var(--line);
  background:linear-gradient(145deg,rgba(135,56,77,.11),rgba(24,17,22,.97) 70%);
}
body.lore-page .placeholder-card h3,
body.lore-page .link-card h2,
body.lore-page .info-tile h3 { color:#eee3e7; }
body.lore-page .placeholder-card p,
body.lore-page .placeholder-panel p,
body.lore-page .info-tile p { color:var(--muted); }
body.lore-page .tile-number,
body.lore-page .tile-arrow,
body.lore-page .placeholder-symbol { color:var(--teal-bright); }
body.lore-page .link-card:hover,
body.lore-page .info-tile:hover,
body.lore-page .placeholder-card a:hover {
  border-color:var(--teal-bright);
  box-shadow:var(--glow-teal);
}
body.lore-page .article-list a:hover { background:rgba(135,56,77,.11); border-color:var(--teal); }
body.lore-page .section-return {
  border-color:var(--line-strong);
  color:#d28da0;
}
body.lore-page .section-return:hover {
  border-color:var(--teal-bright);
  box-shadow:var(--glow-teal);
}
body.lore-page .site-footer {
  background:#0d090c;
  border-color:var(--line);
  color:#a99aa1;
}
body.lore-page .footer-brand,
body.lore-page .site-footer a:hover { color:#d28da0; }
body.lore-page a:focus-visible,
body.lore-page button:focus-visible,
body.lore-page input:focus-visible,
body.lore-page select:focus-visible {
  outline-color:var(--teal-bright);
}
body.lore-page .map-switcher,
body.lore-page .map-zoom-controls {
  border-color:var(--line);
  background:rgba(19,12,17,.92);
}
body.lore-page .map-period-button {
  border-color:var(--line);
  background:#21151c;
  color:#d8c8ce;
}
body.lore-page .map-period-button.active,
body.lore-page .map-period-button[aria-pressed="true"] {
  border-color:var(--teal-bright);
  background:rgba(135,56,77,.28);
  color:#f4e4e9;
}
body.lore-page .map-zoom-controls,
body.lore-page .map-zoom-controls label,
body.lore-page .map-zoom-controls output { color:#e3d5da; }
body.lore-page .map-zoom-controls button {
  border-color:var(--line-strong);
  background:#2a1a22;
  color:#e9d9df;
}
body.lore-page .map-pan-hint { background:rgba(19,12,17,.82); color:#e0cbd2; }
body.lore-page .map-coming-soon { background:rgba(19,12,17,.94); color:#f0dce2; }
body.lore-page .guide-dictionary {
  --guide-accent:#87384d;
  --guide-accent-light:#c2768a;
  --guide-accent-soft:rgba(135,56,77,.16);
  border-color:rgba(194,118,138,.25);
}
body.lore-page .guide-search-wrap input,
body.lore-page .guide-filters select,
body.lore-page .guide-tag-all,
body.lore-page .guide-tag-option,
body.lore-page .guide-version-tab { background:#1b1218; }
body.lore-page .guide-card { background:linear-gradient(145deg,rgba(65,34,43,.42),rgba(15,12,16,.98)); }
body.lore-page .guide-progress-fill { background:#38232c; }
body.lore-page .guide-image-viewer { background:rgba(8,5,8,.95); }

.language-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.language-card {
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  padding:clamp(22px,3vw,32px);
  overflow:hidden;
  border:1px solid rgba(194,118,138,.22);
  background:linear-gradient(145deg,rgba(135,56,77,.13),rgba(26,17,23,.98) 68%);
  box-shadow:0 12px 32px rgba(0,0,0,.12);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.language-card::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#c2768a,rgba(135,56,77,.18));
}
.language-card:hover {
  transform:translateY(-3px);
  border-color:rgba(194,118,138,.52);
  box-shadow:0 12px 32px rgba(0,0,0,.22),0 0 22px rgba(135,56,77,.1);
}
.language-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.language-number {
  color:#c2768a;
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
}
.language-origin {
  padding:4px 9px;
  border:1px solid rgba(194,118,138,.25);
  color:#d3a2b0;
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.language-card h2 {
  margin:0 0 13px;
  color:#f0e5e9;
  font:500 clamp(27px,3vw,36px)/1.05 "Yanone Kaffeesatz",sans-serif;
}
.language-card p {
  margin:0;
  color:#bcaeb4;
  font-size:14px;
  line-height:1.8;
}
.language-speakers {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:baseline;
  margin-top:auto !important;
  padding-top:20px;
  color:#d6c4cb !important;
  font-size:12px !important;
}
.language-speakers strong {
  color:#d28da0;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
@media(max-width:700px) {
  .language-list { grid-template-columns:1fr; gap:13px; }
  .language-card { padding:22px; }
  .language-card p { font-size:13px; }
}


/* ===== Calm emerald theme for every Lore page ===== */
body.lore-page {
  --bg:#0d1411;
  --bg-soft:#131d18;
  --panel:#19251e;
  --panel-raised:#202f26;
  --slate:#2b3c32;
  --asphalt:#1c2921;
  --teal:#397a5c;
  --teal-bright:#83c9a5;
  --rust:#397a5c;
  --rust-bright:#83c9a5;
  --text:#e5ece7;
  --muted:#aab9af;
  --line:rgba(131,201,165,.17);
  --line-strong:rgba(131,201,165,.32);
  --glow-teal:0 0 0 1px rgba(75,151,111,.35),0 0 20px rgba(75,151,111,.12);
  --glow-rust:0 0 0 1px rgba(75,151,111,.35),0 0 20px rgba(75,151,111,.12);
  --guide-accent:#397a5c;
  --guide-accent-light:#83c9a5;
  --guide-accent-soft:rgba(75,151,111,.15);
  background:var(--bg);
  color:var(--text);
}
body.lore-page .site-header,
body.lore-page .page-header {
  background:rgba(11,19,14,.95);
  border-color:var(--line);
}
body.lore-page .brand-name span { color:var(--teal-bright); background:transparent; }
body.lore-page .menu-toggle span { background:var(--teal-bright); }
body.lore-page .main-nav a:hover,
body.lore-page .main-nav a.active {
  color:#d8f1e2;
  text-shadow:0 0 12px rgba(131,201,165,.35);
}
body.lore-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(57,122,92,.18),transparent 68%),linear-gradient(135deg,#17231b,#111914 72%);
  border-color:var(--line);
}
body.lore-page .page-heading h1,
body.lore-page .content-section h2,
body.lore-page .placeholder-panel h2 { color:#e5eee8; }
body.lore-page .page-heading .eyebrow { color:#91c9a9; text-shadow:0 2px 12px #000; }
body.lore-page .page-heading .page-lead { color:#c0cec4; text-shadow:0 2px 12px #000; }
body.lore-page .page-content { color:var(--text); }
body.lore-page .placeholder-card,
body.lore-page .placeholder-panel,
body.lore-page .info-tile {
  border-color:var(--line);
  background:linear-gradient(145deg,rgba(57,122,92,.09),rgba(19,29,23,.98) 70%);
}
body.lore-page .placeholder-card h3,
body.lore-page .link-card h2,
body.lore-page .info-tile h3 { color:#e5ece7; }
body.lore-page .placeholder-card p,
body.lore-page .placeholder-panel p,
body.lore-page .info-tile p { color:var(--muted); }
body.lore-page .tile-number,
body.lore-page .tile-arrow,
body.lore-page .placeholder-symbol { color:var(--teal-bright); }
body.lore-page .link-card:hover,
body.lore-page .info-tile:hover,
body.lore-page .placeholder-card a:hover {
  border-color:var(--teal-bright);
  box-shadow:var(--glow-teal);
}
body.lore-page .article-list a:hover { background:rgba(57,122,92,.09); border-color:var(--teal); }
body.lore-page .section-return { border-color:var(--line-strong); color:#91c9a9; }
body.lore-page .section-return:hover { border-color:var(--teal-bright); box-shadow:var(--glow-teal); }
body.lore-page .site-footer { background:#0a100c; border-color:var(--line); color:#9eafa4; }
body.lore-page .footer-brand,
body.lore-page .site-footer a:hover { color:#91c9a9; }
body.lore-page a:focus-visible,
body.lore-page button:focus-visible,
body.lore-page input:focus-visible,
body.lore-page select:focus-visible { outline-color:var(--teal-bright); }
body.lore-page .map-switcher,
body.lore-page .map-zoom-controls { border-color:var(--line); background:rgba(14,23,17,.94); }
body.lore-page .map-period-button { border-color:var(--line); background:#19251d; color:#cfddd3; }
body.lore-page .map-period-button.active,
body.lore-page .map-period-button[aria-pressed="true"] { border-color:var(--teal-bright); background:rgba(57,122,92,.23); color:#e5f1e9; }
body.lore-page .map-zoom-controls,
body.lore-page .map-zoom-controls label,
body.lore-page .map-zoom-controls output { color:#dce8df; }
body.lore-page .map-zoom-controls button { border-color:var(--line-strong); background:#223329; color:#e5eee8; }
body.lore-page .map-pan-hint { background:rgba(14,23,17,.88); color:#d4e3d8; }
body.lore-page .map-coming-soon { background:rgba(14,23,17,.95); color:#e5eee8; }
body.lore-page .guide-dictionary {
  --guide-accent:#397a5c;
  --guide-accent-light:#83c9a5;
  --guide-accent-soft:rgba(57,122,92,.15);
  border-color:rgba(131,201,165,.22);
}
body.lore-page .guide-search-wrap input,
body.lore-page .guide-filters select,
body.lore-page .guide-tag-all,
body.lore-page .guide-tag-option,
body.lore-page .guide-version-tab { background:#152119; }
body.lore-page .guide-card { border-color:rgba(131,201,165,.18); background:linear-gradient(145deg,rgba(39,76,55,.32),rgba(13,20,16,.98)); }
body.lore-page .guide-card-portrait { background:linear-gradient(145deg,#294634,#131c16); color:#83c9a5; }
body.lore-page .guide-progress-slider::-webkit-slider-thumb,
body.lore-page .guide-progress-slider::-moz-range-thumb { background:#397a5c; border-color:#d9eee1; box-shadow:0 0 0 4px rgba(75,151,111,.2); }
body.lore-page .guide-progress-fill { background:#29382e; }
body.lore-page .guide-progress-fill::before { background:linear-gradient(90deg,#397a5c 0%,#9bd8b5 48%,#397a5c 100%); }
body.lore-page .guide-progress-point img { border-color:rgba(131,201,165,.45); }
body.lore-page .guide-entry-tag { border-color:rgba(131,201,165,.26); background:rgba(57,122,92,.1); color:#c4e4d0; }
body.lore-page .guide-version-tab.is-active,
body.lore-page .guide-tag-all.is-active,
body.lore-page .guide-tag-option:has(input:checked) { border-color:var(--guide-accent-light); background:var(--guide-accent-soft); color:#e5f1e9; }
body.lore-page .guide-lock-note { border-color:rgba(131,201,165,.25); background:rgba(57,122,92,.09); color:#c4e4d0; }
body.lore-page .guide-search-match { background:rgba(131,201,165,.28); color:#f0fff5; }
body.lore-page .guide-image-viewer { background:rgba(5,11,7,.95); }
body.lore-page .guide-image-viewer-close { border-color:rgba(220,240,226,.35); }

/* Language cards use the same quiet emerald accents. */
body.lore-page .language-card {
  border-color:rgba(131,201,165,.2);
  background:linear-gradient(145deg,rgba(57,122,92,.11),rgba(19,29,23,.98) 68%);
}
body.lore-page .language-card::before { background:linear-gradient(180deg,#83c9a5,rgba(57,122,92,.16)); }
body.lore-page .language-card:hover { border-color:rgba(131,201,165,.48); box-shadow:0 12px 32px rgba(0,0,0,.22),0 0 20px rgba(57,122,92,.1); }
body.lore-page .language-number { color:#83c9a5; }
body.lore-page .language-origin { border-color:rgba(131,201,165,.24); color:#b4d9c1; }
body.lore-page .language-card h2 { color:#e5eee8; }
body.lore-page .language-card p { color:#b7c5bb; }
body.lore-page .language-speakers { color:#cbd9cf !important; }
body.lore-page .language-speakers strong { color:#91c9a9; }


/* ===== Country palettes for the main sections ===== */
body.author-page {
  --section-accent:#a83d43;
  --section-bright:#e17a7e;
  --section-soft:rgba(168,61,67,.14);
  --section-line:rgba(225,122,126,.22);
  --section-glow:0 0 0 1px rgba(168,61,67,.38),0 0 22px rgba(168,61,67,.14);
  --teal:#a83d43; --teal-bright:#e17a7e;
  --glow-teal:0 0 0 1px rgba(168,61,67,.38),0 0 22px rgba(168,61,67,.14);
}
body.news-page {
  --section-accent:#a98527;
  --section-bright:#e5c45c;
  --section-soft:rgba(169,133,39,.14);
  --section-line:rgba(229,196,92,.23);
  --section-glow:0 0 0 1px rgba(169,133,39,.38),0 0 22px rgba(169,133,39,.14);
  --teal:#a98527; --teal-bright:#e5c45c;
  --glow-teal:0 0 0 1px rgba(169,133,39,.38),0 0 22px rgba(169,133,39,.14);
}
body.books-page {
  --section-accent:#416f9d;
  --section-bright:#83b5e7;
  --section-soft:rgba(65,111,157,.15);
  --section-line:rgba(131,181,231,.22);
  --section-glow:0 0 0 1px rgba(65,111,157,.38),0 0 22px rgba(65,111,157,.14);
  --teal:#416f9d; --teal-bright:#83b5e7;
  --glow-teal:0 0 0 1px rgba(65,111,157,.38),0 0 22px rgba(65,111,157,.14);
}
body.author-page .site-header,
body.news-page .site-header,
body.books-page .site-header {
  border-bottom-color:var(--section-line);
}
body.author-page .brand-crest,
body.news-page .brand-crest,
body.books-page .brand-crest {
  filter:drop-shadow(0 0 7px var(--section-soft)) !important;
}
body.author-page .brand-name span { color:#e17a7e; }
body.news-page .brand-name span { color:#e5c45c; }
body.books-page .brand-name span { color:#83b5e7; }
body.author-page .menu-toggle span,
body.news-page .menu-toggle span,
body.books-page .menu-toggle span { background:var(--section-bright); }
body.author-page .main-nav a:hover,
body.author-page .main-nav a.active,
body.news-page .main-nav a:hover,
body.news-page .main-nav a.active,
body.books-page .main-nav a:hover,
body.books-page .main-nav a.active {
  color:#fff;
  text-shadow:0 0 13px var(--section-bright);
}
body.author-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(168,61,67,.2),transparent 68%),linear-gradient(135deg,#211416,#151113 72%);
  border-color:var(--section-line);
}
body.news-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(169,133,39,.19),transparent 68%),linear-gradient(135deg,#211d12,#15140f 72%);
  border-color:var(--section-line);
}
body.books-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(65,111,157,.2),transparent 68%),linear-gradient(135deg,#141b24,#11161c 72%);
  border-color:var(--section-line);
}
body.author-page .page-heading .eyebrow,
body.author-page .tile-number,
body.author-page .tile-arrow,
body.author-page .placeholder-symbol,
body.author-page .section-return,
body.news-page .page-heading .eyebrow,
body.news-page .tile-number,
body.news-page .tile-arrow,
body.news-page .placeholder-symbol,
body.news-page .section-return,
body.books-page .page-heading .eyebrow,
body.books-page .tile-number,
body.books-page .tile-arrow,
body.books-page .placeholder-symbol,
body.books-page .section-return { color:var(--section-bright); }
body.author-page .text-link,
body.author-page .outline-button,
body.author-page .section-return,
body.news-page .text-link,
body.news-page .outline-button,
body.news-page .section-return,
body.books-page .text-link,
body.books-page .outline-button,
body.books-page .section-return {
  border-color:var(--section-accent);
  color:var(--section-bright);
}
body.author-page .placeholder-card,
body.author-page .placeholder-panel,
body.author-page .info-tile,
body.news-page .placeholder-card,
body.news-page .placeholder-panel,
body.news-page .info-tile,
body.books-page .placeholder-card,
body.books-page .placeholder-panel,
body.books-page .info-tile {
  border-color:var(--section-line);
  background:linear-gradient(145deg,var(--section-soft),rgba(23,27,30,.98) 70%);
}
body.author-page .link-card:hover,
body.author-page .info-tile:hover,
body.author-page .placeholder-card a:hover,
body.news-page .link-card:hover,
body.news-page .info-tile:hover,
body.news-page .placeholder-card a:hover,
body.books-page .link-card:hover,
body.books-page .info-tile:hover,
body.books-page .placeholder-card a:hover {
  border-color:var(--section-bright);
  box-shadow:var(--section-glow);
}
body.author-page .article-list a:hover,
body.news-page .article-list a:hover,
body.books-page .article-list a:hover { background:var(--section-soft); border-color:var(--section-accent); }
body.author-page a:focus-visible,
body.author-page button:focus-visible,
body.news-page a:focus-visible,
body.news-page button:focus-visible,
body.books-page a:focus-visible,
body.books-page button:focus-visible { outline-color:var(--section-bright); }


/* White header crests for Marma gonia and Rodda-Kira; footer crests stay untouched. */
body.author-page .site-header .brand-crest,
body.lore-page .site-header .brand-crest {
  filter:brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,.14)) !important;
}


/* ===== Final country background tones and translucent action buttons ===== */
/* Kartarad homepage */
body:not(.page-shell) {
  --bg:#0d1414;
  --bg-soft:#121d1d;
  background:#0d1414;
}
body:not(.page-shell) .quote-section { background:#101a1a; }
body:not(.page-shell) .outline-button#new-quote {
  border-color:rgba(101,164,162,.58);
  background:rgba(62,126,126,.22);
  color:#a5d4d1;
}
body:not(.page-shell) .outline-button#new-quote:hover {
  background:rgba(62,126,126,.34);
  box-shadow:0 0 0 1px rgba(101,164,162,.24),0 0 20px rgba(62,126,126,.2);
}

/* Rupida books */
body.books-page {
  --bg:#0d0d14;
  --bg-soft:#141421;
  background:#0d0d14;
}
body.books-page .page-header { background:#10101a; }
body.books-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(65,111,157,.2),transparent 68%),linear-gradient(135deg,#171b29,#10101a 72%);
}
body.books-page .book-store-link,
body.books-page .book-for-link,
body.books-page .book-cycle-link {
  border-color:rgba(131,181,231,.34);
  background:rgba(65,111,157,.2);
  color:#dcecff;
}
body.books-page .book-store-link:hover,
body.books-page .book-for-link:hover,
body.books-page .book-cycle-link:hover {
  border-color:#83b5e7;
  background:rgba(65,111,157,.34);
  box-shadow:0 0 0 1px rgba(65,111,157,.28),0 0 18px rgba(65,111,157,.18);
}

/* Ansprand news */
body.news-page {
  --bg:#14130d;
  --bg-soft:#1c1a11;
  background:#14130d;
}
body.news-page .page-header { background:#19170f; }
body.news-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(169,133,39,.19),transparent 68%),linear-gradient(135deg,#211d12,#17150e 72%);
}

/* Marmagonia author */
body.author-page {
  --bg:#140d0d;
  --bg-soft:#1d1314;
  background:#140d0d;
}
body.author-page .page-header { background:#1a1112; }
body.author-page .page-heading {
  background:radial-gradient(ellipse at 50% 0%,rgba(168,61,67,.2),transparent 68%),linear-gradient(135deg,#211416,#171011 72%);
}
