@font-face { font-family: 'Maghribi'; font-display: swap; src: url('fonts/maghribi.otf'); }
:root {
  --indigo: #2b1610;
  --indigo-2: #4a2418;
  --indigo-soft: #eadcc0;
  --sand: #f5eedf;
  --sand-2: #e9dcc2;
  --ink: #24170f;
  --muted: #7a6650;
  --saffron: #c8a24a;
  --gold-l: #e6cf8b;
  --sadu-r: #8e1d1d;
  --madder: #8e1d1d;
  --line: #d8c69f;
  --f-kufi: 'Maghribi', 'Aref Ruqaa', 'Amiri', serif;
  --f-mag: 'Maghribi', 'Aref Ruqaa', 'Amiri', serif;
  --f-text: 'Amiri', 'Times New Roman', serif;
  --f-ui: 'Readex Pro', system-ui, sans-serif;
  --top: 56px;
  --bar: 84px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--sand); color: var(--ink); font-family: var(--f-ui); font-size: 15px; overflow: hidden; }
a { color: var(--indigo-2); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

.top { background: var(--indigo); color: #fff; display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; padding: 0 20px; position: relative; z-index: 1000; }
.top .tabs { height: 46px; }
.brand { flex: 0 0 100%; color: #fff; text-decoration: none; font-family: var(--f-mag); font-weight: 400; font-size: 24px; line-height: 1.7; padding: 8px 0 2px; border-bottom: 1px solid rgba(255,255,255,.12); }
.colophon { text-align: center; font-family: var(--f-mag) !important; font-weight: 400; font-size: 22px !important; border: 1px solid var(--line); padding: 14px; background: #fff; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { color: #e2d3b0; text-decoration: none; display: flex; align-items: center; padding: 0 14px; border-bottom: 3px solid transparent; font-size: 15px; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-bottom-color: var(--saffron); }
.search { margin-inline-start: auto; position: relative; width: min(320px, 34vw); }
.search input { width: 100%; padding: 8px 14px; border-radius: 20px; border: 0; background: var(--indigo-2); color: #fff; font: inherit; }
.search input::placeholder { color: #bfa98a; }
.q-res { position: absolute; top: 44px; inset-inline: 0; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 8px 30px rgba(43,22,16,.25); max-height: 60vh; overflow: auto; display: none; }
.q-res.open { display: block; }
.q-res a { display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #eee; }
.q-res a:hover, .q-res a.act { background: var(--sand); }
.q-res small { color: var(--muted); margin-inline-start: 6px; }

main { height: calc(100% - var(--hdr, 104px)); position: relative; overflow: hidden; }
.view { display: none; height: 100%; position: relative; }
.view.on { display: block; }

#map { position: absolute; inset: 0 340px var(--bar) 0; background: #c9d4cf; }
#map::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 640; mix-blend-mode: multiply; opacity: .5;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(90,62,30,.28) 100%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sea-label { position: absolute; font-family: var(--f-mag); color: #4d6878; opacity: .8; white-space: nowrap; letter-spacing: .12em; pointer-events: none; }
.pl-label .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #4a3622; margin-inline-end: 4px; vertical-align: middle; }
.pl-label .dot.big { width: 9px; height: 9px; background: #a3342a; border-color: #4a3622; }
.pl-label .q { color: var(--madder); font-family: var(--f-ui); font-size: 11px; font-weight: 700; margin-inline-start: 1px; }
.pl-label .q.ap { color: #8a6d1e; }
.pl-label.region { font-family: var(--f-mag); color: #7a5a35; opacity: .72; font-weight: 400; letter-spacing: .06em; text-shadow: 0 0 4px #ecdcb8, 0 0 2px #ecdcb8; transform: translate(-50%, -50%); display: inline-block; }
.pl-label.k-river { color: #3e6178; font-style: italic; font-weight: 400; }
.pl-label.k-mountain { color: #5b4630; font-weight: 400; }
.pl-label.east { font-weight: 700; }
.mtn { pointer-events: auto; }
#map.z-far .pl-label.mid, #map.z-far .pl-label.minor, #map.z-far .pl-label.east:not(.k-region) { display: none; }
#map.z-far .mtn svg { transform: scale(.7); }
#map[data-focus~="quda"] .pl-label.east:not(.g-quda), #map[data-focus~="madhhij"] .pl-label.east:not(.g-madhhij), #map[data-focus~="kahlan"] .pl-label.east:not(.g-kahlan) { opacity: .35; }
#map[data-focus~="quda"] .pl-label.g-quda, #map[data-focus~="madhhij"] .pl-label.g-madhhij, #map[data-focus~="kahlan"] .pl-label.g-kahlan { font-size: 18px; }
.flow.live { animation: flow 1.1s linear infinite; }
.flow.seas { animation: flow 2.2s linear infinite alternate; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.arrow.small { transform-origin: center; }
.rose { position: absolute; width: 92px; height: 92px; left: 14px; bottom: calc(var(--bar) + 26px); z-index: 650; opacity: .85; pointer-events: none; }
.tour-btn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 700; margin-left: -170px; background: var(--indigo); color: #fff; border: 0; border-radius: 20px; padding: 8px 18px; font-size: 14px; box-shadow: 0 4px 14px rgba(43,22,16,.3); }
.tour-btn:hover { background: var(--indigo-2); }
.tour { position: absolute; left: 120px; bottom: calc(var(--bar) + 16px); width: min(420px, calc(100% - 480px)); z-index: 700; background: #fbf6ea; border: 1px solid #b9a27a; border-radius: 4px; box-shadow: 0 0 0 4px #fbf6ea, 0 0 0 5px #b9a27a, 0 10px 30px rgba(60,40,20,.3); padding: 16px 18px 12px; display: none; }
.tour.open { display: block; }
.tour h3 { font-family: var(--f-mag); font-weight: 700; font-size: 24px; color: #5b3a1e; margin: 0 0 6px; }
.tour p { font-family: var(--f-text); font-size: 17px; line-height: 1.85; margin: 0 0 10px; }
.tour-n { font-size: 12px; color: var(--muted); }
.tour-nav { display: flex; gap: 8px; align-items: center; }
.tour-next { background: #5b3a1e; color: #fff; border: 0; border-radius: 18px; padding: 6px 16px; }
.tour-nav #tour-x { margin-inline-start: auto; }
.legend.east .lg.static { cursor: default; font-size: 13px; }
.views { display: flex; gap: 6px; margin-top: 12px; }
.pp-sub { font-size: 13px; color: #6e675b; font-family: var(--f-ui); }
.pp-loc { font-family: var(--f-ui); font-size: 12px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cert { padding: 1px 8px; border-radius: 10px; }
.c-ok { background: #e1eedc; color: #2f5a2a; } .c-ap { background: #f6ecd0; color: #7a5a12; } .c-un { background: #f6dcd8; color: #8a2b22; }
.leaflet-container { font-family: var(--f-ui); }
.side { position: absolute; top: 0; right: 0; bottom: var(--bar); width: 340px; background: var(--sand); border-left: 1px solid var(--line); overflow: auto; z-index: 500; }
.side-body { padding: 16px 18px 24px; }
.side-handle { display: none; }
.k { font-family: var(--f-kufi); font-weight: 500; font-size: 17px; color: var(--indigo); margin: 14px 0 8px; }
.k:first-child { margin-top: 0; }
.legend { display: flex; flex-direction: column; gap: 2px; }
.lg { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 4px; cursor: pointer; user-select: none; font-size: 14px; }
.lg.sub { padding-inline-start: 22px; font-size: 13px; }
.lg:hover { background: var(--sand-2); }
.lg.off { opacity: .38; }
.lg i { width: 13px; height: 13px; border-radius: 50%; flex: none; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lg em { font-style: normal; color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.opt { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; color: var(--muted); }
.era-events { display: flex; flex-direction: column; gap: 8px; }
.ev { border-inline-start: 3px solid var(--line); padding: 4px 10px 6px; background: #fff; border-radius: 0 6px 6px 0; cursor: pointer; }
.ev:hover { background: #fffaf0; }
.ev.now { border-inline-start-color: var(--saffron); }
.ev b { font-family: var(--f-text); font-size: 17px; display: block; line-height: 1.4; }
.ev span { font-size: 12px; color: var(--muted); }
.ev p { font-family: var(--f-text); font-size: 15px; margin: 4px 0 0; line-height: 1.6; display: none; }
.ev.open p { display: block; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; }
.empty-era { font-size: 13px; color: var(--muted); }

.timebar { position: absolute; inset: auto 0 0 0; height: var(--bar); background: var(--indigo); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 20px; z-index: 600; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--saffron); color: var(--indigo); font-size: 18px; flex: none; }
.play.on { background: #fff; }
.yearbox { width: 132px; flex: none; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.yearbox b { font-family: var(--f-kufi); font-size: 40px; line-height: 1; font-weight: 700; color: var(--saffron); font-variant-numeric: tabular-nums; }
.yearbox span { font-family: var(--f-kufi); font-size: 18px; }
.yearbox small { grid-column: 1 / -1; color: #cdb88f; font-size: 12px; }
.ruler-wrap { position: relative; flex: 1; height: 60px; }
.ruler { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruler-wrap input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ruler text { fill: #cdb88f; font-family: var(--f-ui); font-size: 10px; }
.ruler .dyn text { fill: #f1e4c4; font-size: 10px; }

.pl-label { font-family: var(--f-text); font-size: 15px; color: #3a2a18; white-space: nowrap; text-shadow: 0 0 3px #ecdcb8, 0 0 3px #ecdcb8, 0 0 2px #ecdcb8; font-weight: 700; display: inline-block; transform: translate(-50%, -50%); }
.pl-label.has-dot { transform: translate(calc(-100% + 6px), -50%); }
.pl-label.minor { font-weight: 400; font-size: 13px; color: #4a4438; }
#map.z-lo .pl-label.minor:not(.k-river):not(.k-mountain) { display: none; }
#map.z-lo .pl-label.minor { font-size: 12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-start; align-items: center; direction: ltr; }
.cluster i { width: 16px; height: 16px; border-radius: 50% !important; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); display: block; }
.cluster i.approx { opacity: .78; }
.cluster i.trail { opacity: .32; box-shadow: none; width: 11px; height: 11px; }
.cluster i.pulse { animation: pulse 1.2s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,162,74,.9); } 100% { box-shadow: 0 0 0 14px rgba(200,162,74,0); } }
.leaflet-tooltip.tip { font-family: var(--f-text); font-size: 15px; direction: rtl; text-align: right; max-width: 280px; white-space: normal; line-height: 1.5; }
.leaflet-popup-content { font-family: var(--f-text); font-size: 15px; direction: rtl; text-align: right; line-height: 1.7; margin: 12px 14px; }
.leaflet-popup-content h4 { font-family: var(--f-kufi); font-weight: 500; font-size: 17px; margin: 0 0 4px; color: var(--indigo); }
.leaflet-popup-content .pp-p { margin: 4px 0; }
.leaflet-popup-content .chip { font-family: var(--f-ui); }

.tree-tools { position: absolute; top: 0; inset-inline: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: linear-gradient(var(--sand) 70%, rgba(241,236,225,0)); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--indigo-2); border-radius: 18px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 14px; color: var(--indigo-2); }
.seg button.on { background: var(--indigo-2); color: #fff; }
.ghost { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 5px 12px; color: var(--ink); font-size: 13px; }
.tree { position: absolute; inset: 0; }
.tree svg { width: 100%; height: 100%; display: block; cursor: grab; }
.tree svg:active { cursor: grabbing; }
.tree .link { fill: none; stroke: #bfb49c; stroke-width: 1.3px; }
.tree .link.v { stroke-dasharray: 3 3; }
.tree .node text { font-family: var(--f-text); font-size: 15px; fill: var(--ink); cursor: pointer; paint-order: stroke; stroke: var(--sand); stroke-width: 4px; }
.tree .node.v text { fill: var(--muted); font-style: italic; }
.tree .node.sel text { fill: var(--madder); font-weight: 700; }
.tree .node circle { stroke: #fff; stroke-width: 2px; cursor: pointer; }
.tree .node.v circle { stroke: var(--muted); stroke-dasharray: 2 2; fill: var(--sand) !important; }
.tree .node .cnt { font-family: var(--f-ui); font-size: 10px; fill: var(--muted); stroke-width: 0; }
.chain { position: absolute; inset: 56px 0 0; overflow: auto; display: none; padding: 20px 16px 60px; }
.chain ol { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; counter-reset: c; }
.chain li { position: relative; padding: 10px 56px 10px 12px; border-inline-start: 2px solid var(--line); margin-inline-start: 20px; counter-increment: c; }
.chain li::before { content: counter(c); position: absolute; right: -15px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.chain li a { font-family: var(--f-text); font-size: 19px; text-decoration: none; color: var(--ink); }
.chain li a:hover { color: var(--madder); }
.chain li small { display: block; color: var(--muted); font-size: 13px; font-family: var(--f-text); }
.chain h3 { font-family: var(--f-kufi); font-weight: 500; color: var(--indigo); text-align: center; margin: 0 0 6px; }
.chain .fine { text-align: center; max-width: 560px; margin: 0 auto 18px; }

#v-book.on { display: flex; }
.toc { width: 300px; flex: none; overflow: auto; border-left: 1px solid var(--line); padding: 14px 0 40px; background: var(--sand); }
.toc input { margin: 0 14px 10px; width: calc(100% - 28px); padding: 7px 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font: inherit; }
.toc h3 { font-family: var(--f-kufi); font-weight: 500; font-size: 15px; color: var(--indigo); margin: 14px 16px 4px; }
.toc a { display: block; padding: 3px 16px 3px 12px; text-decoration: none; color: var(--ink); font-family: var(--f-text); font-size: 16px; line-height: 1.5; border-inline-start: 3px solid transparent; }
.toc a:hover { background: var(--sand-2); }
.toc a.on { border-inline-start-color: var(--madder); background: #fff; }
.reader { flex: 1; overflow: auto; padding: 36px 48px 80px; background: #fbf6ea; }
.reader.wide { height: 100%; }
.reader > * { max-width: 760px; margin-inline: auto; }
.reader h1 { font-family: var(--f-kufi); font-weight: 700; font-size: 32px; color: var(--indigo); margin: 4px auto 8px; line-height: 1.4; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px auto 22px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 12px; font-size: 13px; background: var(--sand-2); color: var(--ink); text-decoration: none; }
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.chip.act { background: var(--indigo); color: #fff; }
.chip.act:hover { background: var(--indigo-2); }
.body p { font-family: var(--f-text); font-size: 20px; line-height: 2; margin: 0 auto 16px; text-align: justify; }
.body a.xl { color: inherit; text-decoration: none; border-bottom: 1px solid #b9a988; }
.body a.xl:hover { color: var(--madder); border-bottom-color: var(--madder); }
sup.fn { color: var(--madder); font-family: var(--f-ui); font-size: 11px; cursor: pointer; padding: 0 1px; font-weight: 500; }
sup.fn:hover { text-decoration: underline; }
.fn-list { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 14px; }
.fn-list h2, .rel h2 { font-family: var(--f-kufi); font-weight: 500; font-size: 18px; color: var(--indigo); margin: 0 0 10px; }
.fn-list ol { margin: 0; padding-inline-start: 0; list-style: none; }
.fn-list li { font-family: var(--f-text); font-size: 15px; line-height: 1.7; margin-bottom: 4px; color: #4a4438; }
.fn-list li b { color: var(--madder); font-family: var(--f-ui); font-size: 12px; margin-inline-end: 6px; }
.fn-list li.hl { background: #fff3cf; }
.rel { margin-top: 26px; display: grid; gap: 18px; }
.rel .links { display: flex; flex-wrap: wrap; gap: 6px; }
.note { background: #fff; border-inline-start: 3px solid var(--saffron); padding: 10px 14px; font-family: var(--f-text); font-size: 16px; line-height: 1.8; margin: 0 auto 20px; }
.note b { font-family: var(--f-ui); font-size: 12px; color: var(--muted); display: block; font-weight: 500; }
.src-grp { margin-bottom: 26px; }
.src-grp h2 { font-family: var(--f-kufi); font-weight: 500; font-size: 20px; color: var(--indigo); margin: 0 0 4px; }
.src-grp .bar { height: 6px; background: var(--saffron); border-radius: 3px; margin: 4px 0 10px; }
.src-grp details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.src-t, .fn-list li { overflow-wrap: anywhere; }
.src-grp li { font-family: var(--f-text); font-size: 15px; line-height: 1.7; }

.card { position: fixed; z-index: 1200; top: calc(var(--hdr, 104px) + 14px); left: 14px; width: 380px; max-height: calc(100% - var(--hdr, 104px) - 28px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(43,22,16,.25); padding: 18px 20px; display: none; }
.card.open { display: block; }
.card h3 { font-family: var(--f-kufi); font-weight: 700; font-size: 22px; color: var(--indigo); margin: 0 0 6px; line-height: 1.4; padding-inline-end: 26px; }
.card .x { position: absolute; top: 10px; left: 12px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.card p { font-family: var(--f-text); font-size: 17px; line-height: 1.8; margin: 8px 0; }
.card .row { font-size: 13px; color: var(--muted); margin: 6px 0; }
.card .row a { margin-inline-end: 6px; }
.card .more { display: inline-block; margin-top: 10px; background: var(--indigo); color: #fff; padding: 6px 16px; border-radius: 18px; text-decoration: none; font-size: 14px; }
.fn-pop { position: fixed; z-index: 1300; max-width: 360px; background: var(--ink); color: #f3eee2; font-family: var(--f-text); font-size: 15px; line-height: 1.7; padding: 8px 12px; border-radius: 6px; display: none; pointer-events: none; }
.fn-pop.open { display: block; }

@media (max-width: 860px) {
  :root { --bar: 76px; }
  .top { column-gap: 10px; padding: 0 10px; }
  .brand { font-size: 19px; line-height: 1.6; padding-top: 6px; }
      .tabs { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .tabs a { padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .search { width: auto; flex: 1; }
  main { height: calc(100% - var(--hdr, 96px)); }
  #map { inset: 0 0 var(--bar) 0; }
  .side { top: auto; height: 46%; width: 100%; border-left: 0; border-top: 1px solid var(--line); transform: translateY(calc(100% - 38px)); transition: transform .25s; bottom: var(--bar); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
  .side.open { transform: none; }
  .side-handle { display: block; width: 100%; height: 34px; border: 0; background: transparent; position: sticky; top: 0; z-index: 2; }
  .side-handle::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: #b9ae96; margin: 0 auto; }
  .side-body { padding-top: 0; }
  .timebar { gap: 10px; padding: 0 10px; }
  .yearbox { width: 84px; }
  .yearbox b { font-size: 30px; }
  .play { width: 40px; height: 40px; }
  #v-book.on { display: block; overflow: auto; }
  .toc { width: 100%; border-left: 0; max-height: none; display: none; }
  #v-book.list .toc { display: block; }
  #v-book.list .reader { display: none; }
  .reader { padding: 22px 18px 60px; height: 100%; }
  .reader h1 { font-size: 26px; }
  .body p { font-size: 19px; text-align: right; }
  .card { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 60%; }
  .tree-tools .fine { display: none; }
  .tour { left: 8px; right: 8px; width: auto; bottom: calc(var(--bar) + 44px); max-height: 46%; overflow: auto; }
  .tour-btn { margin-left: 0; top: 8px; font-size: 13px; white-space: nowrap; padding: 6px 14px; }
  #map.z-lo .pl-label.mid { display: none; }
  .rose { display: none; }
  .ruler .dyn text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cluster i.pulse { animation: none; } .side { transition: none; } }

.pl-label:not(.minor):not(.mid) { font-family: var(--f-mag); font-weight: 400; font-size: 17px; }
.yearbox b, .yearbox span { font-family: 'Reem Kufi', 'Amiri', serif; }

:root { --sadu: repeating-linear-gradient(90deg, transparent 0 0);
  --sadu-band: linear-gradient(135deg, var(--sadu-r) 25%, transparent 25%) -6px 0 / 12px 12px,
               linear-gradient(225deg, var(--sadu-r) 25%, transparent 25%) -6px 0 / 12px 12px,
               linear-gradient(315deg, #1a0d08 25%, transparent 25%) 0 0 / 12px 12px,
               linear-gradient(45deg, #1a0d08 25%, transparent 25%) 0 0 / 12px 12px,
               #efe2c4; }
.top { background:
    radial-gradient(circle at 12px 12px, rgba(230,207,139,.10) 1.5px, transparent 2px) 0 0 / 24px 24px,
    radial-gradient(circle at 0 0, rgba(230,207,139,.06) 1px, transparent 1.5px) 0 0 / 12px 12px,
    linear-gradient(180deg, #341b13, #2b1610); padding-bottom: 12px; }
.top::after { content: ''; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--sadu-band); border-top: 1px solid var(--saffron); }
.brand { color: var(--gold-l); border-bottom-color: rgba(200,162,74,.35); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.tabs a.on { color: var(--gold-l); border-bottom-color: var(--saffron); }
.tabs a:hover { color: var(--gold-l); }
.search input { background: rgba(255,255,255,.07); border: 1px solid rgba(200,162,74,.45); color: #f5eedf; }
.timebar { background: linear-gradient(0deg, #2b1610, #3a1e15); border-top: 1px solid var(--saffron); }
.timebar::before { content: ''; position: absolute; inset: -11px 0 auto 0; height: 10px; background: var(--sadu-band); }
.play { background: linear-gradient(180deg, #e6cf8b, #b8923a); color: #2b1610; box-shadow: 0 0 0 2px rgba(230,207,139,.35); }
.yearbox b { color: var(--gold-l); }
.side { background: var(--sand); border-left: 1px solid var(--saffron); box-shadow: inset 3px 0 0 #efe2c4; }
.k { color: #6a3b16; border-bottom: 1px solid rgba(200,162,74,.5); padding-bottom: 4px; }
.k::before { content: '◆'; color: var(--saffron); font-size: 10px; margin-inline-end: 6px; vertical-align: middle; }
.ev { background: #fffaf0; border-inline-start-color: var(--saffron); }
.tour-btn { background: linear-gradient(180deg, #4a2418, #2b1610); color: var(--gold-l); border: 1px solid var(--saffron); }
.tour { background: #fbf4e4; border-color: var(--saffron); box-shadow: 0 0 0 4px #fbf4e4, 0 0 0 5px var(--saffron), 0 12px 34px rgba(43,22,16,.35); }
.tour h3 { color: #6a3b16; }
.tour-next { background: linear-gradient(180deg, #4a2418, #2b1610); color: var(--gold-l); }
.reader h1 { color: #4a2418; }
.reader h1::after { content: ''; display: block; width: 120px; height: 8px; margin-top: 8px; background: var(--sadu-band); border-radius: 1px; }
.chip.act { background: linear-gradient(180deg, #4a2418, #2b1610); color: var(--gold-l); }
.toc { background: var(--sand); border-left-color: var(--saffron); }
.toc h3 { color: #6a3b16; }
.toc a.on { border-inline-start-color: var(--saffron); background: #fffaf0; }
.card { border: 1px solid var(--saffron); box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(200,162,74,.6), 0 14px 40px rgba(43,22,16,.3); }
.card h3 { color: #4a2418; }
.card .more { background: linear-gradient(180deg, #4a2418, #2b1610); color: var(--gold-l); }
.seg { border-color: #6a3b16; } .seg button { color: #6a3b16; } .seg button.on { background: #4a2418; color: var(--gold-l); }
.src-grp .bar { background: linear-gradient(90deg, #b8923a, #e6cf8b); }
.colophon { border: 1px solid var(--saffron) !important; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(200,162,74,.5); color: #4a2418; }
.chain li::before { background: linear-gradient(180deg, #4a2418, #2b1610); color: var(--gold-l); box-shadow: 0 0 0 1px var(--saffron); }
#map { background: #bcc6bf; }
