/* outcome/one // intel. Black, white, one yellow, Arial, square corners. Dark only. */
:root {
  --page: #000000;
  --panel: #161616;
  --rule: #333333;
  --gray: #808080;
  --soft: #B4B2A9;
  --white: #FFFFFF;
  --yellow: #FBDF08;
  --green: #48E668;
  --red: #E24B4A;
  /* Low contrast by design; raise these two if Section 508 level contrast is needed. */
  --chip-dim-border: #2a2a2a;
  --chip-dim-text: #555555;
  --legend-text: #808080;
  --font: Arial, Helvetica, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, "Courier New", monospace;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--white);
  font: 15px/1.45 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: bold; }
p { margin: 0 0 12px; }
.mono { font-family: var(--mono); font-size: 0.93em; letter-spacing: 0.02em; }
.soft { color: var(--soft); }
.muted { color: var(--gray); }
.sep { color: var(--gray); padding: 0 6px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--rule);
}
.lockup { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); }
.lockup img { display: block; height: 30px; width: auto; }
.lockup .sep { font-size: 22px; padding: 0 10px; }
.lockup .product { font-size: 22px; }
.lockup:hover { color: var(--white); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--soft); }
.site-nav a:hover { color: var(--white); }
.site-nav a.active { color: var(--white); border-bottom-color: var(--yellow); }
.nav-count { color: var(--yellow); margin-left: 4px; }

.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px var(--gutter) 48px; flex: 1; }
.page.wide { max-width: 1320px; }
.site-footer {
  padding: 18px var(--gutter); border-top: 1px solid var(--rule); color: var(--gray); font-size: 12px;
}
.site-footer a { color: var(--gray); }

/* Headline: bold italic, first word yellow */
.headline { font-size: 34px; font-style: italic; line-height: 1.15; margin-bottom: 10px; }
.headline em, .headline .lead { color: var(--yellow); font-style: italic; }
.statline { color: var(--soft); margin-bottom: 24px; }
.section-title { font-size: 17px; margin: 36px 0 12px; }
.section-title .count { color: var(--gray); font-weight: normal; }
.section-note { color: var(--gray); font-size: 13px; margin: -6px 0 12px; }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: bold 14px var(--font); padding: 10px 18px; border: 1px solid var(--white); border-radius: 0;
  background: transparent; color: var(--white); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn-primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn-small { padding: 5px 10px; font-size: 12px; }
.btn-quiet { border-color: var(--gray); color: var(--soft); font-weight: normal; }
.btn[disabled], .btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--white); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--yellow); }
input[type=text], input[type=search], input[type=password], input[type=file], select {
  font: 15px var(--font); color: var(--white); background: var(--page); border: 1px solid var(--gray);
  border-radius: 0; padding: 9px 12px; min-width: 0;
}
input::placeholder { color: var(--gray); }
input:focus, select:focus { border-color: var(--white); outline: 2px solid var(--yellow); outline-offset: 1px; }
input[type=checkbox] { accent-color: var(--yellow); width: 16px; height: 16px; margin: 0; vertical-align: -3px; }
label { cursor: pointer; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar input[type=search], .searchbar input[type=text] { flex: 1 1 320px; font-size: 16px; padding: 11px 14px; }

/* Panels and tables */
.panel { background: var(--panel); padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); }
.table th {
  text-align: left; font-size: 12px; font-weight: normal; color: var(--gray); padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rows { background: var(--panel); }
.rows > .row { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.rows > .row:last-child { border-bottom: 0; }
.meta { color: var(--soft); font-size: 13px; }
.meta .sep { padding: 0 5px; }
.empty { background: var(--panel); padding: 28px 20px; color: var(--soft); }

/* Tags, badges, chips */
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.tag {
  display: inline-block; font-size: 11px; line-height: 1; padding: 4px 6px; border: 1px solid var(--gray);
  color: var(--white); white-space: nowrap;
}
.tag-dim { color: var(--gray); border-color: var(--rule); }
.badge {
  display: inline-block; font-size: 11px; font-weight: bold; line-height: 1; padding: 3px 6px;
  background: var(--yellow); color: #000; vertical-align: 2px; white-space: nowrap;
}
.status { font-size: 12px; color: var(--soft); }
.status.dormant, .status.removed { color: var(--gray); }
.strip { display: inline-flex; gap: 3px; flex-wrap: nowrap; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 22px;
  font-size: 11px; line-height: 1; letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid var(--chip-dim-border); color: var(--chip-dim-text); background: transparent;
}
.chip.lit { background: var(--green); border-color: var(--green); color: #000; font-weight: bold; }
a.chip:hover { border-color: var(--white); color: var(--white); }
a.chip.lit:hover { background: #fff; border-color: #fff; color: #000; }
.legend {
  margin: 32px 0 0; font-size: 11px; color: var(--legend-text); display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.legend b { font-weight: normal; color: var(--soft); margin-right: 3px; }

/* Heatmap scale */
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gray); }
.heat-bar { display: inline-block; width: 140px; height: 8px; }
.heat td.cell { padding: 0; }
.heat td.cell a, .heat td.cell span {
  display: block; padding: 9px 6px; text-align: center; text-decoration: none;
  font-variant-numeric: tabular-nums; font-size: 13px; border: 1px solid var(--page);
}
.heat td.cell a:hover { outline: 2px solid var(--white); outline-offset: -2px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--panel); padding: 16px 18px; }
.tile .value { font-size: 28px; font-weight: bold; font-variant-numeric: tabular-nums; }
.tile .label { font-size: 12px; color: var(--gray); }
a.tile { text-decoration: none; display: block; }
a.tile:hover .value { color: var(--yellow); }

/* Pagination */
.pager { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--soft); }
.pager a, .pager span.cur { padding: 6px 10px; border: 1px solid var(--rule); text-decoration: none; }
.pager span.cur { border-color: var(--yellow); color: var(--white); }

/* Compare tray (pinned at the bottom of results) */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--panel);
  border-top: 1px solid var(--yellow); padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.tray[hidden] { display: none; }
body.has-tray { padding-bottom: 64px; }

details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { color: var(--gray); }
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--white); color: #000;
  padding: 8px 14px; font-size: 13px; z-index: 30;
}

.notfound { padding: 60px 0; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .headline { font-size: 26px; }
  .lockup img { height: 22px; }
  .lockup .sep, .lockup .product { font-size: 17px; }
  .site-nav { gap: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding-top: 22px; }
}
