/* Meteor tracker. Geometry and colours follow the 1.x player site: 1120px stone frame, 266px menu
   column, 774px content column, Times 12px body. skin.css adds the artwork when tracker/local/lodestone/
   exists; without it these flat colours stand in. */

:root {
  --ink: #333;
  --brown: #4c3926;
  --link: #804b26;
  --link-hi: #cc9c3d;
  --note: #990f0f;
  --paper: #f5f4ec;
  --paper-2: #ebeae2;
  --th: #5d5241;
  --menu-text: #ccc2ad;
  --menu-hi: #bffaff;
  --works: #4f7a28;
  --partial: #c08a1e;
  --broken: #b30000;
  --untested: #b9b3a5;
  --na: #807b73;
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink);
  font: 12px/1.5 "Times New Roman", Times, serif;
  background: #b4b4b4;
}
a { color: var(--link); text-decoration: underline; outline: none; }
a:hover { color: var(--link-hi); text-decoration: none; }
code { font: 11px/1.4 Menlo, Consolas, monospace; background: rgba(76,57,38,.08); padding: 0 3px; }
.floatEnd { clear: both; height: 0; font-size: 0; }
.dim { color: #807b73; }
.small { font-size: 10px; }
.nowrap { white-space: nowrap; }
.ok { color: var(--works); font-weight: bold; font-size: 11px; }
.bad { color: var(--broken); font-weight: bold; font-size: 11px; }
.hide { display: none !important; }

/* corporate strip */
#corporate-header { height: 38px; background: #000; }
#corporate-header .in { width: 1120px; margin: 0 auto; padding: 0 0 0 88px; display: flex; justify-content: space-between;
  line-height: 24px; color: #fff; font: bold 13px/24px Arial, Helvetica, sans-serif; letter-spacing: .02em; }
#corporate-header .in span:last-child { font: 10px/24px Verdana, sans-serif; color: #8c8c8c; padding-right: 88px; }

/* frame */
#bg { text-align: center; }
#bg2 {
  width: 1120px; margin: 0 auto; text-align: left;
  background: linear-gradient(90deg, #8d8d8d 0, #5d5d5d 60px, #000 80px, #000 1040px, #5d5d5d 1060px, #8d8d8d 1120px);
}
#wrap { position: relative; }

/* header */
#wrap-header-image {
  height: 202px; position: relative;
  background: radial-gradient(ellipse at 38% 30%, #ffcf6a 0, #e36b1f 30%, #7a1a10 65%, #1a0606 100%);
}
#wrap-header-logo {
  position: absolute; left: 110px; top: 44px; display: block; text-decoration: none;
  font: 52px/1 "Trajan Pro", Optima, "Palatino Linotype", Georgia, serif; letter-spacing: .1em; text-transform: uppercase;
  color: #fff7dc; text-shadow: 0 2px 2px #000, 0 0 14px rgba(0,0,0,.8), 0 0 28px rgba(255,190,90,.35);
}
#wrap-header-logo small { display: block; margin: 8px 0 0 4px; font: italic 17px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .32em; text-transform: none; color: #f1e081; }
#wrap-header-logo:hover { color: #fff; }
#header-tag { position: absolute; right: 104px; bottom: 26px; color: #fff2b2; font: italic 12px Georgia, serif;
  text-shadow: 0 1px 2px #000, 0 0 6px #000; }
#wrap-header-news { height: 24px; background: linear-gradient(#6d6440, #2c2a1c 40%, #6f6844 55%, #1a1912); }

/* body: menu column + content column */
#wrap-body {
  background: linear-gradient(90deg, transparent 0, transparent 80px, #5a4a34 80px, #3f3324 266px,
                              #f0f0e4 266px, #f0f0e4 1040px, transparent 1040px);
  padding-bottom: 20px;
}
#menu { float: left; width: 266px; padding-bottom: 20px; }
#menu-plate { height: 68px; position: relative; }
#menu-plate a {
  position: absolute; left: 101px; top: 4px; width: 160px; height: 28px; display: block;
  text-align: center; font: bold 15px/28px "Times New Roman", serif; color: #f5f0d8; text-decoration: none;
  text-shadow: 0 1px 2px #000;
}
#mainmenu { width: 218px; margin-left: 48px; }
.menu-lv1 { margin: 0 0 6px; }
.menu-lv1-head {
  height: 28px; padding: 0 0 0 26px;
  font: bold 13px/28px "Times New Roman", serif; color: #f1e081; text-shadow: 0 1px 2px #000;
  background: linear-gradient(#5b4b2f, #2f2617); border: 1px solid #8a7444; border-radius: 3px 14px 14px 3px;
}
.menu-lv1-body { padding: 2px 0 2px 18px; background: rgba(0,0,0,.25); }
.menu-lv1-footer { height: 8px; }
.menu-btLv2 {
  width: 200px; display: block; padding: 6px 0; text-decoration: none; font-weight: bolder; color: var(--menu-text);
}
.menu-btLv2-inner { display: block; padding: 0 12px 0 25px; position: relative; }
.menu-btLv2-inner::before { content: ""; position: absolute; left: 13px; top: 6px; width: 5px; height: 5px;
  background: #a99766; border-radius: 50%; }
.menu-btLv2:hover, .menu-btLv2.on { color: var(--menu-hi); text-decoration: none; background-color: rgba(120,200,210,.12); }
.menu-btLv2.on { color: #fff; }

/* content column */
#contents { float: left; width: 774px; }
#topicpath { width: 774px; }
#topicpath-body { background: #2b2a24; border-bottom: 1px solid #5d5a4c; }
#topicpath-patharea { padding: 2px 0 1px 14px; }
#topicpath-footer { height: 10px; }
.topicpath-past, .topicpath-current { float: left; margin: 0 0 0 7px; padding: 0 0 0 16px; font-size: 10px; position: relative; }
.topicpath-past::before, .topicpath-current::before { content: "▸"; position: absolute; left: 2px; top: 0; color: #a39d8e; }
.topicpath-current::before { color: #f1e081; }
.topicpath-past a { color: #807b73; font-size: 10px; text-decoration: none; }
.topicpath-past a:hover { text-decoration: underline; color: #807b73; }
.topicpath-current div { color: #fff; font-weight: bold; font-size: 10px; }

#azone { width: 774px; padding: 0 0 20px; }
#azone > p, #azone > div > p, #azone > .notes { margin-left: 34px; margin-right: 34px; }

/* page title: the green title bar */
.page-title {
  margin: 0 0 14px; height: 60px; padding: 17px 0 0 22px;
  font: bolder 15px/1.2 "Times New Roman", serif; color: #fff; text-shadow: 0 1px 2px #000;
  background: linear-gradient(#273f1c, #3d5a2b 45%, #233619); border-top: 3px solid #b8a35c; border-bottom: 3px solid #b8a35c;
}

/* section: the brown topic bar, then the body */
.panel { width: 762px; margin: 0 auto 20px; }
.panel .ph {
  margin: 0 0 14px; padding: 19px 42px 17px; min-height: 57px;
  font: bolder 12px/1.45 "Times New Roman", serif; color: #fff;
  background: linear-gradient(#5a5038, #3d3626); border: 2px solid #8f8360; border-radius: 4px;
}
.panel .ph span { font-weight: normal; font-size: 11px; color: #d9c898; margin-left: 8px; }
.panel .pb { padding: 0 28px; }
.panel .pb > :first-child { margin-top: 0; }
.panel .pb > :last-child { margin-bottom: 0; }
.panel .pb h2, .panel .pb h3, .panel .pb h4 {
  margin: 14px 0 8px; padding-left: 18px; font-size: 12px; font-weight: bolder; color: var(--brown); position: relative;
}
.panel .pb h2::before, .panel .pb h3::before, .panel .pb h4::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 11px; height: 11px;
  background: #8a3a1a; transform: rotate(45deg) scale(.8); border: 1px solid #4c3926;
}
.panel .pb ul { padding-left: 18px; }

.notes { padding: 8px 12px; margin-bottom: 14px; background: #e6e5dd; border: 1px solid #c6bfb4; color: var(--brown); }
.notes p { margin: 0; }

/* tables: contents-table2 */
table.grid { width: 100%; border-collapse: separate; border-spacing: 1px; background: #dedbd5; border: 1px double #a5a294;
  font-size: 11.5px; }
table.grid th { padding: 3px 4px 2px; text-align: left; color: #fff; background: var(--th); font-weight: bold; white-space: nowrap; }
table.grid td { padding: 3px 4px 2px; background: #f5f5f0; vertical-align: top; }
table.grid tbody tr:nth-child(even) td { background: var(--paper-2); }
table.grid tbody tr:hover td { background: #fff7cc; }
table.grid tr:target td { background: #ffe9a8 !important; }
td.rid { white-space: nowrap; font-weight: bold; }
td.rid a { color: var(--brown); text-decoration: none; }
td.stc, td.num { white-space: nowrap; }
td.num { text-align: right; }
td.barcell { width: 38%; vertical-align: middle; }
table.info { width: 100%; border-collapse: separate; border-spacing: 1px; background: #cfccbb; }
table.info th { width: 130px; padding: 3px 6px; text-align: left; color: var(--brown); background: #c6bfb4; }
table.info td { padding: 3px 6px; background: #e6e5dd; }
table.info tr:nth-child(even) td { background: #ebeae2; }

/* status */
.st { display: inline-block; padding: 0 5px; font: bold 10px/15px Verdana, sans-serif; color: #fff; border-radius: 2px; }
.st-works { background: var(--works); }
.st-partial { background: var(--partial); }
.st-broken { background: var(--broken); }
.st-untested { background: var(--untested); color: #3a3428; }
.st-na { background: var(--na); }
.bar { display: flex; height: 10px; margin: 4px 0; background: #ddd8c8; border: 1px solid #a5a294; overflow: hidden; }
.bar .seg { display: block; height: 100%; }
.legend { margin: 0 0 12px; font-size: 11px; color: var(--brown); }
.legend span { margin-right: 14px; white-space: nowrap; }
.legend .dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; border: 1px solid #4c3926; }
#azone > .bar, #azone > .legend, #azone > .hero, #azone > .filters, #azone > .toc { margin-left: 34px; margin-right: 34px; }

.bs { display: inline-block; padding: 0 6px; margin: 1px 2px 1px 0; border-radius: 8px; font: 10px/15px Verdana, sans-serif;
  color: #fff; background: #807b73; white-space: nowrap; text-decoration: none; }
a.bs:hover { color: #fff; filter: brightness(1.15); }
.bs-wip { background: #a87a10; }
.bs-planned { background: #8a8270; }
.bs-ready { background: #3d7a2a; }
.bs-in-review { background: #2c5d8a; }
.bs-merged { background: #5e3d7a; }
.bs-integration { background: #990f0f; }
.bs-superseded { background: #6b665e; }
.bs-triage { background: #b84a00; }

/* home */
.hero { display: flex; gap: 6px; margin-bottom: 4px; }
.hero .big { flex: 1; padding: 9px 6px 7px; text-align: center; font: bold 24px/1 "Times New Roman", serif; color: var(--brown);
  background: #e6e5dd; border: 1px solid #c6bfb4; }
.hero .big small { display: block; margin-top: 5px; font: 10px Verdana, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
ul.topics { list-style: none; margin: 0; padding: 0 !important; }
ul.topics li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0 6px 18px; border-bottom: 1px dotted #c3c0b2; position: relative; }
ul.topics li::before { content: "◆"; position: absolute; left: 2px; color: #8a3a1a; font-size: 9px; top: 8px; }
ul.topics .date { flex: 0 0 74px; color: var(--note); font-size: 11px; }
ul.topics a { flex: 1; font-weight: bold; }
ul.topics .who { color: #807b73; font-size: 11px; }

/* matrix page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; padding: 5px 10px;
  background: #e6e5dd; border: 1px solid #c6bfb4; color: var(--brown); }
.filters input[type=search] { margin-left: auto; width: 190px; padding: 2px 5px; border: 1px solid #a5a294; font: 12px "Times New Roman", serif; }
.toc { margin-bottom: 16px; }
.toc a { display: inline-block; margin: 0 3px 4px 0; padding: 1px 8px; color: var(--link); background: #e6e5dd; border: 1px solid #c6bfb4; text-decoration: none; }
.toc a:hover { color: var(--link-hi); }
table.matrix td:nth-child(2) { font-weight: bold; color: var(--brown); }

/* stack tree */
.trunk { font-weight: bold; color: var(--note); }
ul.tree { list-style: none; margin: 0 0 0 10px; padding: 0 0 0 14px !important; border-left: 1px dotted #a8977a; }
ul.tree li { position: relative; padding: 2px 0; }
ul.tree li::before { content: ""; position: absolute; left: -14px; top: 11px; width: 10px; border-top: 1px dotted #a8977a; }
ul.tree li > a { font-weight: bold; }
ul.tree .meta { font-size: 11px; color: #605b4d; }

/* work log */
.entry { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px dotted #c3c0b2; }
.entry:last-child { border-bottom: 0; margin-bottom: 0; }
.entry header { display: flex; gap: 10px; align-items: baseline; }
.entry .date { color: var(--note); font-size: 11px; white-space: nowrap; }
.entry h3 { margin: 0 !important; padding: 0 !important; flex: 1; font-size: 12px; }
.entry h3::before { display: none; }
.entry .who { font-size: 11px; }
.entry p, .entry ul { margin: 6px 0; }
.fields { display: flex; flex-wrap: wrap; gap: 6px; }
.field { padding: 0 6px; font-size: 11px; background: #e6e5dd; border: 1px solid #c6bfb4; }
.field b { color: var(--link); margin-right: 3px; }
#azone > .entry { width: 706px; margin-left: auto; margin-right: auto; }

/* PR draft */
.prtabs { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
button.copy {
  width: 200px; height: 28px; cursor: pointer; font: bold 12px "Times New Roman", serif; color: #fff;
  background: linear-gradient(#5a4a2c, #2d2517); border: 1px solid #8f8360; border-radius: 4px; text-shadow: 0 1px 1px #000;
}
button.copy:hover { background: linear-gradient(#8a6a2c, #4a3a1c); }
button.copy.done { background: linear-gradient(#4d7a2e, #2f5019); }
.pr-rendered { padding: 10px 14px; background: #fcfcf8; border: 1px solid #c6bfb4; }
.pr-rendered ul { padding-left: 18px; margin: 4px 0; }
.pr-rendered li.task { list-style: none; margin-left: -16px; }
.pr textarea { width: 100%; margin-top: 10px; padding: 8px; font: 11px/1.5 Menlo, Consolas, monospace; color: var(--brown);
  background: #fcfcf8; border: 1px solid #c6bfb4; resize: vertical; }
.prose pre { padding: 8px; background: #fcfcf8; border: 1px solid #c6bfb4; overflow: auto; }
.prose pre code { background: none; }

/* footer */
#wrap-footer { height: 230px; clear: both; }
#wrap-footer-bg { height: 100%; position: relative;
  background: linear-gradient(transparent 0, transparent 40px, #000 40px); }
#copyright { position: absolute; right: 90px; top: 70px; width: 750px; text-align: right; font-size: 10px; color: #fff; }
#copyright code { background: rgba(255,255,255,.1); color: #ddd; }
