/* AnandTech Archive: a re-creation, in spirit, of AnandTech's 2010s–2024 look.
   Dark textured masthead with the logo, white nav bar with orange Rokkitt items, black topic strip,
   light grey page, teal (#2295ab) accents, Arimo body text, black "pipeline" sidebar box, black footer.
   Logo, header texture and fonts come from the ZIM via builder/theme.py (dist/theme/); without them
   this falls back to a text logo and similar system fonts. */

@font-face { font-family: Arimo; src: url(/theme/fonts/Arimo-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Arimo; src: url(/theme/fonts/Arimo-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Arimo; src: url(/theme/fonts/Arimo-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Arimo; src: url(/theme/fonts/Arimo-700italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: Rokkitt; src: url(/theme/fonts/Rokkitt-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Rokkitt; src: url(/theme/fonts/Rokkitt-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --page: #f6f6f6;
  --text: #444;
  --heading: #343434;
  --muted: #8b8b8b;
  --teal: #2295ab;
  --cyan: #59def7;
  --orange: #f25f1e;
  --rule: #dedede;
  --pill: #dedede;
  --masthead: #272727;
  --strip: #141414;
  --box: #414141;
  --body-font: Arimo, Arial, "Liberation Sans", Helvetica, sans-serif;
  --display-font: Rokkitt, "Roboto Slab", "Rockwell", Georgia, serif;
  --width: 1001px;
  /* Light only: archived article HTML hard-codes light colours (bgcolor, <font color>). */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.5 var(--body-font); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--width); margin: 0 auto; }

/* ---------- masthead ---------- */
.masthead { background: var(--masthead) url(/theme/header-bg.png) repeat; }
.masthead .wrap { display: flex; align-items: center; gap: 20px; padding: 10px 16px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 66px; width: auto; }
.logo .text { display: none; font: 700 40px/66px var(--display-font); color: #fff; letter-spacing: 0.02em; }
.logo.noimg img { display: none; }
.logo.noimg .text { display: inline; }
.logo .text b { color: var(--cyan); font-weight: 700; }
.masthead-right { margin-left: auto; display: grid; gap: 8px; justify-items: end; min-width: 0; }
.masthead form { display: flex; min-width: 0; }
.masthead input[type=search] {
  width: 300px; max-width: 100%; min-width: 0; height: 30px; padding: 0 10px;
  border: 1px solid #111; border-right: 0; border-radius: 0; background: #fff; color: #343434; font: 14px var(--body-font);
}
.masthead button {
  height: 30px; padding: 0 12px; border: 1px solid #111; background: var(--teal); color: #fff;
  font: 700 12px var(--body-font); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.masthead button:hover { background: #1b7f92; }
.masthead nav { display: flex; gap: 16px; font: 15px var(--display-font); text-transform: uppercase; }
.masthead nav a { color: #d1cccc; }
.masthead nav a:hover { color: #fff; text-decoration: none; }
.archive-badge { font: 12px var(--body-font); color: #9a9a9a; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- section nav (white bar, orange items) + topic strip ---------- */
.mainnav { background: linear-gradient(#b6b6b6, #fff 13px) #fff; }
.mainnav ul, .topics ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar, .topics ul::-webkit-scrollbar { display: none; }
.mainnav li { flex: none; }
.mainnav a {
  display: block; padding: 0 15px; line-height: 45px; color: var(--orange);
  font: 20px/45px var(--display-font); text-transform: uppercase; white-space: nowrap;
}
.mainnav a:hover, .mainnav a[aria-current] { background: #464445; color: #fff; text-decoration: none; }
.topics { background: var(--strip); }
.topics ul { padding: 0 8px; }
.topics li { flex: none; font: 11px/32px Arial, Helvetica, sans-serif; text-transform: uppercase; color: #d4d4d4; white-space: nowrap; }
.topics li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; background: #555; vertical-align: -1px; }
.topics a { color: #d4d4d4; padding: 0 10px; }
.topics a:hover { color: #fff; text-decoration: none; }
.topics .label { color: #8a8a8a; padding: 0 10px 0 6px; }

/* ---------- page body: main column + sidebar ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 21px; padding: 16px 16px 32px; }
.page.single { grid-template-columns: minmax(0, 1fr); }
.main { min-width: 0; }
.breadcrumb { font: 16px var(--display-font); color: #aaa; margin: 0 0 12px; }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 6px; }

h1.title, h1.section {
  font: 700 31px/1.05 var(--display-font); color: var(--text); margin: 0 0 8px;
}
.byline { font: 15px var(--display-font); color: var(--muted); margin: 0 0 10px; }
.byline a { color: var(--teal); font-weight: 700; }
.byline em { font-style: normal; }
.posted { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; font-size: 11px; line-height: 18px; }
.posted li:first-child { color: var(--muted); margin-right: 4px; }
.posted a { display: block; background: var(--pill); color: var(--teal); padding: 0 5px; }

.pagesel { display: block; width: 100%; margin: 6px 0 14px; padding: 5px 6px; font: 700 11px Arial, Helvetica, sans-serif;
  text-transform: uppercase; color: var(--teal); background: #fff; border: 1px solid #ccc; }
.pagelinks { display: flex; justify-content: space-between; gap: 16px; margin: 26px 0 8px; font: 15px var(--display-font); text-transform: uppercase; }
.pagelinks a { max-width: 48%; }
.pagelinks .next { margin-left: auto; text-align: right; }
.provenance { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 10px; }

/* ---------- article body (classes from AnandTech's own markup: articleContent) ---------- */
.content { color: var(--text); line-height: 21px; overflow-wrap: anywhere; }
.content p { margin: 13px 0; }
.content p strong, .content p strong a { color: var(--teal); font-weight: 700; }
.content h2 { font: 26px/1.15 var(--display-font); color: var(--teal); margin: 26px 0 10px; }
.content h3 { font: 700 16px var(--body-font); color: var(--heading); margin: 20px 0 8px; }
.content em, .content i { font-style: italic; }
.content ul, .content ol { background: #f9f9f9; border: 1px solid #eee; font-style: italic; line-height: 19px; margin: 10px 0; padding: 10px 10px 10px 40px; }
.content ul { list-style: square; }
.content blockquote { margin: 14px 0; padding: 4px 16px; border-left: 4px solid var(--teal); background: #fff; }
.content img, .content video { max-width: 100%; height: auto; }
.content center { display: block; text-align: center; }
.content object, .content embed, .content ruffle-object, .content ruffle-embed { max-width: 100%; }
.embed-gone, .gone { color: var(--muted); font-style: italic; }
/* Tables: as AnandTech styled them (2024 stylesheet). These override the old inline bgcolor attributes. */
.content table { margin: auto; background: none; border: none; border-collapse: separate; border-spacing: 0;
  max-width: 100%; display: block; width: max-content; overflow-x: auto; font-style: normal; }
.content table tr td, .content table tr th { padding: 7px; background: #eee; line-height: normal; border: none;
  border-bottom: 1px solid #fff; border-left: 1px solid #fff; color: #444; overflow-wrap: normal; word-break: normal; }
.content table tr td strong { color: #000 !important; }
.content table tr.tgrey td, .content table tr.tlblue td, .content table td.contentwhite {
  background: #000 !important; border-bottom: 1px solid #d6d6d6; text-align: center; color: #33d5d5;
  font: 1.05rem var(--display-font); padding: 8px 6px; }
.content table td.contentwhite, .content table td.contentwhite strong { color: #fff !important; }
.content table tr.tlblue td { background: var(--teal) !important; color: #fff; padding: 6px; }
.content table tr.tlblue td strong { color: #33d5d5 !important; }
.content table tr.tgrey td { background: #848484 !important; color: #fff; }
.content table tr.tgrey td strong { color: #fff !important; }
.content table .tlgrey, .content table .tlgrey td { background: #ddd !important; font-weight: bold; }

/* ---------- sidebar: the black "pipeline" box ---------- */
.sidebar { min-width: 0; }
.pipeline { background: #000; padding: 6px; margin-bottom: 20px; }
.pipeline h2 { margin: 0; padding: 4px 4px 8px; font: 700 20px var(--display-font); color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.pipeline h2 small { display: block; font: 12px var(--body-font); text-transform: none; color: #9e9e9e; letter-spacing: 0; }
.pipeline .lead { display: block; background: var(--box); padding: 10px 6px 6px; margin-bottom: 6px; font: 700 22px/1.05 var(--display-font); color: var(--cyan); }
.pipeline .lead small, .pipeline li small { display: block; font: 11px var(--body-font); color: #9e9e9e; margin-top: 3px; }
.pipeline ul { list-style: none; margin: 0; padding: 6px 7px 4px 4px; background: var(--box); border-left: 6px solid #828282; }
.pipeline li { border-bottom: 1px solid #4c4c4c; padding: 6px 0 6px 8px; font: 16px/1.05 var(--display-font); }
.pipeline li:last-child { border-bottom: 0; }
.pipeline li a { color: #c4c4c4; }
.pipeline li a:hover { color: var(--cyan); text-decoration: none; }
.pipeline li.here { background: #2a2a2a; }
.pipeline li.here a { color: var(--cyan); }
.sidebox { background: #fff; border: 1px solid #e4e4e4; padding: 10px 12px; margin-bottom: 20px; }
.sidebox h2 { margin: 0 0 6px; font: 700 18px var(--display-font); color: var(--heading); text-transform: uppercase; }
.sidebox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.sidebox li a { display: block; background: var(--pill); padding: 1px 6px; }

/* ---------- lists: home, year archives ---------- */
.list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e4e4e4; }
.list li { padding: 10px 14px; border-bottom: 1px solid #ececec; }
.list li:last-child { border-bottom: 0; }
.list a.t { font: 700 19px/1.15 var(--display-font); color: var(--heading); }
.list a.t:hover { color: var(--teal); text-decoration: none; }
.meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--teal); }
h2.band { margin: 24px 0 8px; padding: 6px 10px; background: #000; color: #fff; font: 700 18px var(--display-font); text-transform: uppercase; letter-spacing: 0.03em; }
h2.band:first-of-type { margin-top: 0; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.years a { display: block; background: var(--box); color: #fff; padding: 6px 8px; font: 700 18px var(--display-font); }
.years a small { display: block; font: 11px var(--body-font); color: #aaa; }
.years a:hover { background: var(--teal); text-decoration: none; }
.pipeline .years { background: none; border: 0; padding: 0; }
.pipeline .years li { border: 0; padding: 0; font: inherit; }
.pipeline .years a { color: #fff; }
.years a[aria-current] { background: var(--teal); }
.intro { background: #fff; border-left: 4px solid var(--teal); padding: 10px 14px; margin: 0 0 16px; }

/* ---------- search ---------- */
.search-controls { display: grid; gap: 8px; }
.search-controls input {
  width: 100%; padding: 9px 12px; font: 16px var(--body-font); border: 1px solid #bbb; border-radius: 0; background: #fff; color: #343434;
}
.search-controls input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.search-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.search-filters select { font: 13px var(--body-font); padding: 4px 6px; border: 1px solid #bbb; background: #fff; color: #343434; max-width: 100%; }
.search-note, .search-status { color: var(--muted); font-size: 12px; margin: 6px 0 0; min-height: 1.2em; }
ol.hits { list-style: none; padding: 0; margin: 10px 0 0; background: #fff; border: 1px solid #e4e4e4; }
ol.hits:empty { display: none; }
.hit { padding: 10px 14px; border-bottom: 1px solid #ececec; }
.hit-title { font: 700 19px/1.15 var(--display-font); color: var(--heading); }
.hit-title:hover { color: var(--teal); text-decoration: none; }
.hit-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.hit-title mark, .hit-pages mark { background: #bfe9f1; color: inherit; padding: 0 1px; }
.hit-pages { margin: 6px 0 0; padding-left: 18px; font-size: 13px; list-style: square; }
.hit-pn { color: var(--muted); font-size: 11px; }
button.more {
  margin: 14px 0; padding: 7px 16px; font: 700 12px var(--body-font); text-transform: uppercase; cursor: pointer;
  border: 0; background: var(--teal); color: #fff;
}

/* ---------- footer ---------- */
.footer { background: #000; color: #fff; }
.footer .wrap { padding: 22px 16px 28px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; }
.footer .motto { font: italic 16px/24px var(--body-font); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; font-size: 13px; }
.footer nav a { color: #fff; }
.footer p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; color: #9e9e9e; line-height: 1.5; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .masthead .wrap { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .logo img { height: 44px; }
  .logo .text { font-size: 28px; line-height: 44px; }
  .masthead-right { margin-left: 0; width: 100%; justify-items: stretch; }
  .masthead input[type=search] { width: 100%; flex: 1; }
  .masthead nav { display: none; }
  .mainnav a { padding: 0 12px; font-size: 17px; line-height: 40px; }
  .page { padding: 12px 12px 24px; }
  h1.title, h1.section { font-size: 26px; }
  .footer .wrap { grid-template-columns: 1fr; }
}
