/* ============================================================
   Encyclopaedia Britannica CD 97 — period desktop chrome
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  background: #000;
  -webkit-font-smoothing: none;
  user-select: none;
}
img { -webkit-user-drag: none; }

/* ---------- boot & splash ---------- */
#boot {
  position: fixed; inset: 0; background: #000; z-index: 9000;
  font-family: "Courier New", monospace; color: #c8c8c8; font-size: 14px;
  padding: 28px 36px; white-space: pre-wrap; line-height: 1.5;
}
#boot .amber { color: #ffb000; }
#boot .green { color: #3dff6b; }
#boot #bootSkip { position: fixed; right: 24px; bottom: 18px; color: #777; font-size: 11px; cursor: pointer; }
#boot #bootSkip:hover { color: #fff; }

#splash {
  position: fixed; inset: 0; z-index: 8900; display: none;
  background: linear-gradient(160deg, #061a3a 0%, #0b3d7a 45%, #082654 100%);
  align-items: center; justify-content: center;
}
#splash .card { text-align: center; color: #dbe7ff; }
#splash .globe { width: 120px; height: 120px; margin: 0 auto 18px; }
#splash h1 {
  font-family: Georgia, "Times New Roman", serif; font-weight: normal;
  font-size: 42px; letter-spacing: 2px; color: #fff;
  text-shadow: 0 2px 12px rgba(80, 140, 255, .55);
}
#splash h1 b { font-weight: bold; }
#splash .sub {
  font-family: Georgia, serif; font-size: 15px; letter-spacing: 6px;
  color: #9db8e8; text-transform: uppercase; margin-top: 4px;
}
#splash .year {
  font-family: Georgia, serif; font-size: 20px; color: #ffd45e; margin-top: 10px; letter-spacing: 3px;
}
#splashbar {
  width: 340px; height: 18px; border: 2px solid #6d87b8; margin: 34px auto 8px;
  background: #04122c; padding: 2px; text-align: left;
}
#splashbar .fill { height: 100%; width: 0%; background: repeating-linear-gradient(90deg, #2f6fd0 0 8px, #1a4fa8 8px 16px); transition: width .25s; }
#splashmsg { font-size: 11px; color: #8faddf; font-family: Tahoma, sans-serif; letter-spacing: 1px; }
#splash .disc-note { margin-top: 26px; font-size: 10px; color: #5f7fb8; font-family: Tahoma, sans-serif; }

/* ---------- desktop ---------- */
#desktop {
  position: fixed; inset: 0 0 40px 0; background: #008080; display: none;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.05), transparent 60%);
}
.dicon {
  position: absolute; width: 84px; text-align: center; cursor: pointer; padding: 4px 2px;
}
.dicon .glyph { width: 40px; height: 40px; margin: 0 auto 3px; }
.dicon .glyph svg { width: 40px; height: 40px; }
.dicon .lbl {
  display: inline-block; color: #fff; font-size: 11px; line-height: 1.15;
  padding: 1px 3px; text-shadow: 1px 1px 0 #000; max-width: 84px;
}
.dicon.sel .lbl { background: #000080; text-shadow: none; outline: 1px dotted #fff; }

/* ---------- taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 40px; z-index: 5000;
  background: #c0c0c0; border-top: 1px solid #dfdfdf;
  box-shadow: 0 -1px 0 #808080; display: none;
  padding: 3px 2px; align-items: center; gap: 3px;
}
#taskbar.on { display: flex; }
#startBtn {
  display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 6px;
  font-weight: bold; font-size: 12px; cursor: pointer;
}
#startBtn svg { width: 22px; height: 22px; }
#taskbtns { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.tbtn {
  height: 32px; min-width: 44px; max-width: 168px; flex: 0 1 168px;
  display: flex; align-items: center; gap: 5px; padding: 0 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer;
}
.tbtn svg { width: 16px; height: 16px; flex: none; }
.tbtn span { overflow: hidden; text-overflow: ellipsis; }
#tray {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px;
  border: 1px solid; border-color: #808080 #fff #fff #808080;
}
#tray svg { width: 14px; height: 14px; cursor: pointer; }
#clock { font-size: 11px; min-width: 52px; text-align: center; }

/* ---------- start menu ---------- */
#startmenu {
  position: fixed; left: 2px; bottom: 40px; width: 220px; z-index: 6000;
  background: #c0c0c0; padding: 2px; display: none;
}
#startmenu .brand {
  position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(#000080, #1084d0); color: #fff;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: Georgia, serif; font-size: 15px; padding: 8px 0;
  display: flex; align-items: center;
}
#startmenu .brand b { color: #ffd45e; }
#startmenu .items { margin-left: 28px; }
.smitem { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; cursor: pointer; font-size: 12px; }
.smitem svg { width: 22px; height: 22px; }
.smitem:hover { background: #000080; color: #fff; }
.smsep { border-top: 1px solid #808080; border-bottom: 1px solid #fff; margin: 2px 0; }

/* ---------- windows ---------- */
#wins { position: fixed; inset: 0 0 40px 0; pointer-events: none; z-index: 100; }
.win {
  position: absolute; pointer-events: auto; background: #c0c0c0;
  border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,.45);
  display: flex; flex-direction: column; min-width: 220px; min-height: 120px;
}
.titlebar {
  height: 24px; flex: none; display: flex; align-items: center; padding: 0 2px 0 4px;
  background: linear-gradient(90deg, #7b7b7b, #b5b5b5); color: #d8d8d8;
  font-weight: bold; font-size: 11px; cursor: default;
}
.win.focus .titlebar { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; }
.titlebar .ticon { width: 16px; height: 16px; margin-right: 4px; flex: none; }
.titlebar .ticon svg { width: 16px; height: 16px; }
.titlebar .ttext { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tbtns { display: flex; gap: 2px; }
.tbtn2 {
  width: 18px; height: 16px; background: #c0c0c0; color: #000;
  border: 1px solid; border-color: #fff #808080 #808080 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #0a0a0a;
  font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 9px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}
.tbtn2:active { border-color: #808080 #fff #fff #808080; }
.winbody { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #c0c0c0; }
.resizer {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; z-index: 5;
  background:
    linear-gradient(135deg, transparent 0 55%, #808080 55% 60%, #fff 60% 65%, transparent 65% 72%, #808080 72% 77%, #fff 77% 82%, transparent 82% 88%, #808080 88% 93%, #fff 93% 98%, transparent 98%);
}
.win.min { display: none; }
.win.max { border: none; }

/* bevel boxes */
.outset {
  border: 1px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #0a0a0a;
  background: #c0c0c0;
}
.inset {
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px 0 #0a0a0a, inset -1px -1px 0 #dfdfdf;
  background: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: #c0c0c0; border: 1px solid; border-color: #fff #808080 #808080 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #0a0a0a;
  min-width: 24px; min-height: 22px; padding: 2px 8px; cursor: pointer;
  font-family: inherit; font-size: 11px; color: #000; text-align: center;
}
.btn:active, .btn.pressed { border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #0a0a0a; }
.btn:active > *, .btn.pressed > * { transform: translate(1px, 1px); }
.btn:disabled, .btn.disabled {
  color: #808080; text-shadow: 1px 1px 0 #fff; cursor: default;
  border-color: #fff #808080 #808080 #fff; box-shadow: inset 1px 1px 0 #dfdfdf;
}
.btn:disabled svg, .btn.disabled svg { opacity: .4; filter: grayscale(1); }
.btn:focus { outline: 1px dotted #000; outline-offset: -4px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- menus ---------- */
.menubar { display: flex; background: #c0c0c0; padding: 1px 2px; flex: none; }
.mitem { padding: 3px 8px; cursor: default; }
.mitem:hover, .mitem.open { background: #000080; color: #fff; }
.menu {
  position: fixed; z-index: 7000; background: #c0c0c0; min-width: 180px; padding: 2px; display: none;
}
.menu .mi { padding: 4px 20px 4px 24px; position: relative; display: flex; justify-content: space-between; gap: 12px; cursor: default; }
.menu .mi:hover:not(.disabled) { background: #000080; color: #fff; }
.menu .mi.disabled { color: #808080; text-shadow: 1px 1px 0 #fff; }
.menu .mi .sc { color: inherit; opacity: .75; font-size: 10px; }
.menu .sep { border-top: 1px solid #808080; border-bottom: 1px solid #fff; margin: 2px 2px; }
.menu .chk { position: absolute; left: 7px; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: 2px; padding: 3px 4px; flex: none;
  border-top: 1px solid #fff; border-bottom: 1px solid #808080; flex-wrap: wrap;
}
.toolbar .tsep { width: 1px; height: 20px; background: #808080; border-right: 1px solid #fff; margin: 0 3px; }
.tlabel { padding: 0 4px; }

/* fields */
.field {
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px 0 #0a0a0a; background: #fff;
  padding: 2px 4px; font-family: inherit; font-size: 11px; height: 22px; outline: none;
}
select.field { padding: 1px 2px; }
textarea.field { height: auto; }

/* typedown */
.typedown {
  position: fixed; z-index: 7500; background: #fff; border: 1px solid #000;
  max-height: 220px; overflow-y: auto; display: none; min-width: 200px;
  box-shadow: 2px 2px 4px rgba(0,0,0,.4);
}
.typedown .td {
  padding: 3px 6px; cursor: pointer; display: flex; gap: 6px; align-items: baseline;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.typedown .td .k { color: #808080; font-size: 10px; }
.typedown .td:hover, .typedown .td.hot { background: #000080; color: #fff; }
.typedown .td:hover .k, .typedown .td.hot .k { color: #b0b0ff; }

/* ---------- status bar ---------- */
.statusbar { display: flex; gap: 2px; padding: 2px; flex: none; background: #c0c0c0; }
.scell {
  border: 1px solid; border-color: #808080 #fff #fff #808080;
  padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.scell.grow { flex: 1; }
.scell.fixed { flex: none; }

/* chunky progress bar */
.pbar {
  height: 16px; border: 1px solid; border-color: #808080 #fff #fff #808080;
  background: #fff; padding: 1px; display: flex; gap: 1px; overflow: hidden;
}
.pbar i { width: 10px; background: #000080; display: none; }
.pbar i.on { display: block; }

/* ---------- reader / article ---------- */
#reader, .reader {
  background: #ffffe1; /* the Britannica cream page */
  overflow-y: auto; overflow-x: hidden; flex: 1; padding: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.apage { max-width: 720px; margin: 0 auto; padding: 18px 26px 60px; }
.acrumb { font-family: Tahoma, sans-serif; font-size: 10px; color: #6b6b4e; margin-bottom: 6px; letter-spacing: .5px; }
.acrumb b { color: #3d3d2a; }
.apage h1.atitle {
  font-size: 30px; font-weight: normal; color: #1a1a00;
  border-bottom: 2px solid #7a7a52; padding-bottom: 6px; margin-bottom: 4px;
}
.asub { font-family: Tahoma, sans-serif; font-size: 11px; color: #6b6b4e; margin-bottom: 14px; }
.apage p { font-size: 14px; line-height: 1.55; margin: 0 0 10px; text-align: left; color: #141400; user-select: text; }
.apage p.lead { font-size: 15px; }
.apage p.lead::first-letter { font-size: 34px; float: left; line-height: .85; padding: 2px 6px 0 0; color: #4a3f16; font-weight: bold; }
.apage h3 {
  font-size: 17px; margin: 20px 0 8px; color: #3d3200; font-weight: bold;
  border-bottom: 1px solid #b9b98f; padding-bottom: 2px;
}
.xref { color: #0033a0; text-decoration: none; border-bottom: 1px dotted #0033a0; cursor: pointer; }
.xref:hover { color: #cc3300; border-bottom-color: #cc3300; }
.factbox {
  float: right; width: 210px; margin: 2px 0 12px 16px; background: #f5f0d8;
  border: 1px solid #a8a87a; padding: 0; font-family: Tahoma, sans-serif; font-size: 11px;
}
.factbox .fbhead {
  background: #7a7a52; color: #ffffe1; padding: 3px 8px; font-weight: bold; letter-spacing: 1px;
  font-size: 10px; text-transform: uppercase;
}
.factbox table { width: 100%; border-collapse: collapse; }
.factbox td { padding: 3px 8px; vertical-align: top; border-bottom: 1px solid #d9d4b0; }
.factbox td.k { font-weight: bold; width: 42%; color: #4a4a2a; }
.fig { margin: 12px 0; text-align: center; }
.fig.inline-r { float: right; width: 230px; margin: 4px 0 12px 16px; }
.fig img, .fig .svgbox { border: 4px solid #fff; box-shadow: 1px 1px 4px rgba(0,0,0,.35); max-width: 100%; background: #fff; }
.fig .svgbox svg { display: block; width: 100%; height: auto; }
.fig figcaption {
  font-family: Tahoma, sans-serif; font-size: 10.5px; color: #4a4a2a;
  padding: 5px 6px; text-align: left; line-height: 1.35; background: #f5f0d8; border: 1px solid #d9d4b0; border-top: none;
}
.fig .cap-credit { color: #8a8a66; }
.seealso {
  clear: both; margin-top: 22px; border-top: 1px solid #b9b98f; padding-top: 8px;
  font-family: Tahoma, sans-serif; font-size: 11px;
}
.seealso b { color: #4a4a2a; }
.seealso a { margin-right: 12px; white-space: nowrap; display: inline-block; padding: 2px 0; }
.afoot { margin-top: 14px; font-family: Tahoma, sans-serif; font-size: 10px; color: #8a8a66; clear: both; }

/* not found */
.notfound { text-align: center; padding-top: 60px; font-family: Tahoma, sans-serif; }
.notfound .big { font-size: 15px; color: #4a4a2a; margin: 14px 0 6px; }
.notfound .sugg { margin-top: 14px; }
.notfound .sugg a { display: inline-block; margin: 0 10px; }

/* home page */
.homehead { text-align: center; padding: 26px 0 6px; }
.homehead .mast { font-size: 34px; color: #1a1a00; font-family: Georgia, serif; }
.homehead .mast b { font-weight: bold; }
.homehead .tag { font-family: Tahoma, sans-serif; font-size: 10px; letter-spacing: 3px; color: #6b6b4e; text-transform: uppercase; margin-top: 3px; }
.homesearch { text-align: center; margin: 18px auto; }
.homesearch .field { width: 320px; max-width: 70%; font-size: 13px; height: 26px; }
.homegrid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 12px 0 20px; }
.homecard {
  width: 150px; background: #f5f0d8; border: 1px solid #a8a87a; padding: 10px;
  font-family: Tahoma, sans-serif; cursor: pointer; text-align: center;
}
.homecard:hover { background: #efe8c8; }
.homecard .ic { width: 34px; height: 34px; margin: 0 auto 6px; }
.homecard .ic svg { width: 34px; height: 34px; }
.homecard b { display: block; font-size: 11px; color: #3d3d1a; margin-bottom: 2px; }
.homecard span { font-size: 10px; color: #6b6b4e; line-height: 1.3; display: block; }
.aotd {
  max-width: 560px; margin: 10px auto; background: #f5f0d8; border: 1px solid #a8a87a;
  padding: 10px 14px; font-family: Tahoma, sans-serif; display: flex; gap: 14px; align-items: center;
}
.aotd img { width: 96px; height: 72px; object-fit: cover; border: 2px solid #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.3); }
.aotd .t1 { font-size: 10px; letter-spacing: 2px; color: #7a7a52; text-transform: uppercase; }
.aotd .t2 { font-family: Georgia, serif; font-size: 17px; margin: 2px 0; }
.aotd .t2 a { color: #0033a0; cursor: pointer; }
.aotd .t3 { font-size: 11px; color: #4a4a2a; line-height: 1.35; }
.homestats { text-align: center; font-family: Tahoma, sans-serif; font-size: 10px; color: #8a8a66; margin-top: 8px; }

/* ---------- side pane (toc / index / results) ---------- */
.split { flex: 1; display: flex; overflow: hidden; }
.sidepane { width: 240px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #808080; background: #c0c0c0; }
.panetabs { display: flex; flex: none; }
.panetab {
  flex: 1; text-align: center; padding: 4px 0; cursor: pointer; font-size: 10px;
  border: 1px solid; border-color: #fff #808080 #808080 #fff; background: #c0c0c0; margin: 2px 1px 0;
}
.panetab.on { background: #fff; border-color: #808080 #fff #fff #808080; }
.panebody { flex: 1; margin: 2px 2px 2px; background: #fff; overflow-y: auto; }
.panefoot { flex: none; padding: 3px 2px; }

/* tree */
.tree { padding: 4px 2px; font-size: 11px; }
.tnode { white-space: nowrap; }
.trow { display: flex; align-items: center; padding: 1px 2px; cursor: pointer; }
.trow:hover { background: #d8e4f8; }
.trow.sel { background: #000080; color: #fff; }
.tglyph { width: 12px; height: 12px; margin-right: 3px; flex: none; text-align: center; font-family: monospace; font-size: 10px; line-height: 11px; border: 1px solid #808080; background: #fff; color: #000; cursor: pointer; }
.tglyph.sp { border: none; background: transparent; }
.tkids { margin-left: 14px; border-left: 1px dotted #a0a0a0; padding-left: 4px; }
.tcat { font-weight: bold; }
.tico { width: 14px; height: 14px; margin-right: 3px; flex: none; }
.tico svg { width: 14px; height: 14px; }

/* results */
.res { padding: 4px; }
.ritem { padding: 5px 6px; cursor: pointer; border-bottom: 1px solid #e0e0d0; }
.ritem:hover { background: #d8e4f8; }
.ritem .rt { color: #0033a0; font-weight: bold; font-size: 11px; }
.ritem .rk { color: #808080; font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; }
.ritem .rs { color: #404020; font-size: 10.5px; margin-top: 1px; line-height: 1.3; }
.ritem .bars { display: inline-block; margin-left: 6px; vertical-align: middle; }
.ritem .bars i { display: inline-block; width: 4px; height: 9px; background: #d0d0d0; margin-right: 1px; vertical-align: bottom; }
.ritem .bars i.f { background: #2f6fd0; }
.reshead { padding: 5px 6px; font-size: 10px; color: #555; border-bottom: 1px solid #c0c0c0; background: #f0f0f0; }

/* index */
.idxbar { display: flex; flex-wrap: wrap; gap: 1px; padding: 4px; background: #f0f0f0; border-bottom: 1px solid #c0c0c0; position: sticky; top: 0; }
.idxbar span { padding: 1px 4px; cursor: pointer; font-size: 10px; }
.idxbar span:hover { background: #000080; color: #fff; }
.idxlist .it { padding: 2px 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.idxlist .it:hover { background: #d8e4f8; }
.idxlist .it .k { color: #808080; font-size: 10px; }
.idxlist .hdr { padding: 4px 8px 2px; font-weight: bold; color: #7a7a52; font-size: 10px; letter-spacing: 2px; }

/* ---------- dialogs ---------- */
#dlgroot { position: fixed; inset: 0; z-index: 8000; display: none; pointer-events: none; }
.dlgmodal { position: fixed; inset: 0; background: rgba(0,0,0,.25); pointer-events: auto; }
.dlg {
  position: absolute; background: #c0c0c0; border: 1px solid #000;
  box-shadow: 3px 3px 6px rgba(0,0,0,.5); display: flex; flex-direction: column;
  min-width: 260px; pointer-events: auto;
}
.dlg .dlgbody { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; background: #c0c0c0; }
.dlg .dlgicon { width: 34px; height: 34px; flex: none; }
.dlg .dlgicon svg { width: 34px; height: 34px; }
.dlg .dlgtext { font-size: 11px; line-height: 1.45; padding-top: 2px; user-select: text; }
.dlg .dlgbtns { display: flex; justify-content: center; gap: 8px; padding: 0 12px 12px; }
.dlg .dlgbtns .btn { min-width: 74px; }

/* about box specifics */
.aboutgrid { display: flex; gap: 14px; padding: 14px; background: #c0c0c0; }
.aboutgrid .disc { width: 90px; height: 90px; flex: none; }
.aboutname { font-family: Georgia, serif; font-size: 17px; }
.aboutname b { font-weight: bold; }
.aboutsub { font-size: 10px; color: #444; margin: 2px 0 8px; letter-spacing: 1px; }
.aboutlines { font-size: 10.5px; line-height: 1.5; color: #222; }
.aboutlines b { font-weight: bold; }

/* print preview */
.pvwrap { flex: 1; overflow: auto; background: #5a5a5a; padding: 16px; }
.pvpage {
  background: #fff; width: 560px; margin: 0 auto 16px; padding: 40px 46px;
  box-shadow: 3px 3px 8px rgba(0,0,0,.5); font-family: Georgia, serif;
}
.pvpage h1 { font-size: 24px; font-weight: normal; border-bottom: 2px solid #000; margin-bottom: 4px; }
.pvpage .pvsub { font-family: Tahoma, sans-serif; font-size: 9px; color: #555; margin-bottom: 14px; }
.pvpage p { font-size: 12.5px; line-height: 1.5; margin-bottom: 9px; }
.pvpage h3 { font-size: 15px; margin: 14px 0 6px; }
.pvpage .pvfoot { margin-top: 18px; border-top: 1px solid #999; padding-top: 6px; font-size: 9px; color: #555; font-family: Tahoma, sans-serif; }
.pvpage img { max-width: 100%; }

/* ---------- atlas ---------- */
.atlas-main { flex: 1; display: flex; overflow: hidden; }
.atlas-map { flex: 1; background: #123a5c; overflow: hidden; position: relative; }
.atlas-map svg { display: block; width: 100%; height: 100%; cursor: grab; }
.atlas-map svg.grabbing { cursor: grabbing; }
.atlas-side { width: 250px; flex: none; border-left: 1px solid #808080; display: flex; flex-direction: column; background: #c0c0c0; }
.atlas-info { flex: 1; overflow-y: auto; background: #ffffe1; margin: 2px; padding: 10px 12px; font-family: Georgia, serif; }
.atlas-info h2 { font-size: 20px; font-weight: normal; border-bottom: 2px solid #7a7a52; padding-bottom: 3px; }
.atlas-info .flagbar { height: 6px; margin: 6px 0 10px; background: linear-gradient(90deg, #000080, #1084d0); }
.atlas-info table { width: 100%; border-collapse: collapse; font-family: Tahoma, sans-serif; font-size: 11px; margin-bottom: 10px; }
.atlas-info td { padding: 2.5px 4px; border-bottom: 1px solid #d9d4b0; vertical-align: top; }
.atlas-info td.k { font-weight: bold; width: 40%; color: #4a4a2a; }
.atlas-info p { font-size: 12.5px; line-height: 1.5; margin-bottom: 8px; }
.atlas-info .hint { color: #6b6b4e; font-family: Tahoma, sans-serif; font-size: 10.5px; line-height: 1.5; }
.ctry-path { fill: #4f7a4a; stroke: #0d2c46; stroke-width: .4; cursor: pointer; transition: fill .12s; }
.ctry-path:hover { fill: #8fae5a; }
.ctry-path.sel { fill: #c94a3a; }
.ctry-lbl { font-family: Tahoma, sans-serif; font-size: 9px; fill: #fff; paint-order: stroke; stroke: #0d2c46; stroke-width: 2px; pointer-events: none; text-anchor: middle; }
.mapmsg { position: absolute; left: 8px; bottom: 8px; color: #cfe3ff; font-size: 10px; background: rgba(0,20,40,.55); padding: 2px 8px; pointer-events: none; }

/* ---------- timeline ---------- */
.tl-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #ffffe1; }
.tl-erabar { display: flex; flex: none; border-bottom: 2px solid #7a7a52; background: #efe8c8; }
.tl-era { flex: 1; text-align: center; padding: 6px 4px; cursor: pointer; font-family: Tahoma, sans-serif; font-size: 11px; border-right: 1px solid #b9b98f; }
.tl-era small { display: block; font-size: 9px; color: #7a7a52; }
.tl-era:hover { background: #e4dcba; }
.tl-era.on { background: #000080; color: #fff; }
.tl-era.on small { color: #b0b0ff; }
.tl-scroll { flex: 1; overflow-y: auto; padding: 10px 0 40px; }
.tl-ev { display: flex; gap: 12px; padding: 4px 24px 4px 16px; align-items: baseline; }
.tl-ev .yr {
  flex: none; width: 74px; text-align: right; font-family: Georgia, serif; font-weight: bold;
  font-size: 14px; color: #7a4a00;
}
.tl-ev .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #b5854a; margin-top: 3px; }
.tl-ev .tx { font-family: Georgia, serif; font-size: 13.5px; color: #141400; }
.tl-ev.linked { cursor: pointer; }
.tl-ev.linked:hover { background: #f0e8c8; }
.tl-ev.linked .tx { color: #0033a0; border-bottom: 1px dotted #0033a0; }
.tl-line { border-left: 2px solid #d9c9a0; margin-left: 92px; }
.tl-find { display: flex; gap: 6px; align-items: center; padding: 4px 6px; }

/* ---------- media gallery ---------- */
.gal-main { flex: 1; overflow-y: auto; background: #2b2b2b; padding: 10px; }
.gal-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-item { width: 132px; cursor: pointer; }
.gal-item .th {
  width: 132px; height: 96px; border: 3px solid #fff; box-shadow: 1px 1px 4px rgba(0,0,0,.6);
  background: #111; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.gal-item .th img { width: 100%; height: 100%; object-fit: cover; }
.gal-item .th svg { width: 100%; height: 100%; background: #fff; }
.gal-item .tl { color: #ddd; font-size: 10px; margin-top: 3px; text-align: center; line-height: 1.25; }
.gal-item:hover .tl { color: #ffd45e; }
.gal-empty { color: #aaa; padding: 40px; text-align: center; width: 100%; }
.viewer-img { max-width: 100%; max-height: 100%; border: 4px solid #fff; box-shadow: 2px 2px 8px rgba(0,0,0,.6); background: #fff; }
.viewer-stage { flex: 1; background: #1a1a1a; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; position: relative; }
.viewer-cap { background: #ffffe1; border-top: 1px solid #a8a87a; padding: 8px 12px; font-family: Georgia, serif; font-size: 12px; line-height: 1.4; }
.viewer-cap b { font-family: Tahoma, sans-serif; font-size: 11px; }
.viewer-cap .cr { color: #8a8a66; font-size: 10px; font-family: Tahoma, sans-serif; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.vnav.prev { left: 8px; } .vnav.next { right: 8px; }

/* ---------- scrollbars (win95) ---------- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #dfdfdf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%23c0c0c0'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-thumb { background: #c0c0c0; border: 1px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #0a0a0a; }
::-webkit-scrollbar-button { background: #c0c0c0; border: 1px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf; box-shadow: inset 1px 1px 0 #fff; width: 16px; height: 16px; display: block; }

/* ---------- shutdown screen ---------- */
#shutdown {
  position: fixed; inset: 0; z-index: 9500; background: #e8a33d; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
#shutdown .msg {
  font-family: "Courier New", monospace; font-size: 26px; font-weight: bold; color: #000;
  background: #e8a33d; padding: 10px 24px; border: 4px double #000; text-align: center;
}
#shutdown .hint { font-family: Tahoma, sans-serif; font-size: 11px; color: #5a3d00; }

/* misc */
.hidden { display: none !important; }
.center { text-align: center; }
.fav-star-on svg path { fill: #ffd45e; stroke: #a06000; }

/* print */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; font-family: Georgia, serif; }
  #print-root h1 { font-size: 22px; border-bottom: 2px solid #000; }
  #print-root p { font-size: 12px; line-height: 1.5; margin: 8px 0; }
  #print-root h3 { margin: 12px 0 4px; }
  #print-root .pf { margin-top: 16px; font-size: 9px; color: #444; border-top: 1px solid #999; padding-top: 4px; }
}
