/* Pocket Pilots Wiki: a 2000s wiki, kept easy to read. */
html { background: #d9e3ee repeating-linear-gradient(45deg, #d9e3ee 0 6px, #d3deea 6px 12px); }
/* (Inter, the wiki's own (fonts/, OFL), not the computer's Verdana: the same everywhere, Android and Linux too, which
   have none; and no system font looked up at all, which the Steam app on Linux crashed on, PP-797. The Latin file, and a
   small one with the arrows and Cyrillic the pages use. A size up from Verdana's, as Inter reads smaller.) */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-extra.woff2) format("woff2"); unicode-range: U+2192, U+0400-04FF; }
@font-face { font-family: Inter; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/inter-extra-italic.woff2) format("woff2"); unicode-range: U+2192, U+0400-04FF; }
body { margin: 0; padding: 18px 10px 30px; font: 16px/1.6 Inter, sans-serif; color: #1c1c1c; }
#page { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid #8aa1bb; box-shadow: 0 2px 10px rgba(30,50,80,0.25); }
#top { position: relative; background: linear-gradient(#3f78b8, #1f4f8a 55%, #17416f); border-bottom: 3px solid #f2a516; padding: 10px 56px 10px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { text-decoration: none; }
.logo { display: inline-flex; align-items: center; } .logo1 { height: 46px; width: auto; display: block; filter: drop-shadow(1px 2px 0 rgba(13,45,82,0.6)); }
.logo2 { font: bold 13px Inter, sans-serif; color: #17416f; background: linear-gradient(#ffe08a, #f2a516); border: 1px solid #b97b00; border-radius: 3px; padding: 1px 6px; margin-left: 10px; align-self: flex-end; margin-bottom: 4px; }
.motto { color: #cfe1f5; font-size: 12px; font-style: italic; }
/* (The close button, top right: back to the game (VIXY, PP-748; it was a Back to the game button, Grogu, PP-747). In the game's frame its bar has one: none here.) */
.ingame .close, .ingame #closehint { display: none !important; }
.close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: bold 26px/1 Inter, sans-serif; color: #17416f; background: linear-gradient(#ffe08a, #f2a516); border: 1px solid #b97b00; text-decoration: none; box-shadow: 0 1px 0 rgba(13,45,82,0.5); }
a.close:link, a.close:visited, a.close:hover { color: #17416f; text-decoration: none; }
#closehint { display: none; background: #fff6d6; border-bottom: 1px solid #e3c46b; color: #5a4300; font-size: 13px; padding: 6px 14px; }
@media (display-mode: standalone), (display-mode: fullscreen) { #top { padding-top: max(10px, env(safe-area-inset-top)); } .close { top: max(12px, calc(env(safe-area-inset-top) + 2px)); } }
#cols { display: flex; align-items: flex-start; }
#side { width: 190px; flex: none; padding: 14px 0 14px 12px; }
#main { flex: 1; min-width: 0; padding: 12px 26px 30px; }
.box { border: 1px solid #a9bcd2; margin-bottom: 12px; background: #f4f8fc; }
.boxh { background: linear-gradient(#eaf1f8, #c9d8e8); border-bottom: 1px solid #a9bcd2; font-weight: bold; font-size: 12px; color: #17416f; padding: 3px 8px; }
.nav { list-style: none; margin: 0; padding: 5px 0; font-size: 14px; }
.nav li a { display: block; padding: 3px 10px; }
.nav li.on a { background: #ffe9b3; font-weight: bold; color: #17416f; text-decoration: none; }
.search { display: flex; gap: 4px; padding: 7px; }
.search input { flex: 1; min-width: 0; font: 13px Inter, sans-serif; padding: 3px 4px; border: 1px solid #7f9db9; }
.search button { font: bold 12px Inter, sans-serif; color: #17416f; border: 1px solid #7f9db9; border-radius: 3px; background: linear-gradient(#fff, #d6e2ef); padding: 2px 9px; cursor: pointer; }
.search.big { padding: 0 0 12px; } .search.big input { font-size: 16px; padding: 5px 7px; }
a { color: #0645ad; } a:visited { color: #5a3696; } a:hover { color: #d35400; }
.crumbs { font-size: 12px; color: #666; margin: 2px 0 8px; } .crumbs a { color: #3366aa; }
h1 { font: bold 25px/1.3 Inter, sans-serif; color: #17416f; border-bottom: 2px solid #f2a516; padding-bottom: 4px; margin: 0 0 12px; }
h2 { font: bold 16px Inter, sans-serif; color: #17416f; background: linear-gradient(#f3f7fb, #e2ebf5); border: 1px solid #c4d3e3; border-left: 5px solid #3f78b8; padding: 4px 9px; margin: 24px 0 10px; }
h2 small { font-weight: normal; color: #666; font-size: 12px; margin-left: 6px; }
p { margin: 0 0 12px; } p.lead { font-size: 16px; color: #333; } p.dim { color: #555; font-size: 14px; }
ul { margin: 0 0 14px; padding-left: 24px; } li { margin: 3px 0; }
table { border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.scroll { overflow-x: auto; margin-bottom: 16px; } .scroll table { margin: 0; }
table.grid th, table.kv th { background: linear-gradient(#f3f7fb, #d9e5f1); color: #17416f; text-align: left; }
table.grid th, table.grid td, table.kv th, table.kv td { border: 1px solid #b7c7d9; padding: 5px 9px; vertical-align: top; }
table.grid tr.odd td { background: #f5f8fb; } table.grid td.first { font-weight: bold; }
table.kv { width: 100%; } table.kv th { width: 34%; }
table.bars { width: 100%; max-width: 520px; } table.bars th { text-align: left; width: 70px; font-weight: bold; color: #17416f; padding: 3px 0; }
table.bars td { width: 100%; } table.bars td.v { width: auto; text-align: right; white-space: nowrap; padding-left: 10px; font-weight: bold; }
.bar { height: 13px; background: #e4ebf3; border: 1px solid #a9bcd2; } .bar div { height: 100%; background: linear-gradient(#ffd166, #f2a516 60%, #d98b00); }
table.tags td { padding: 4px 10px 4px 0; vertical-align: top; } table.tags td.pin { width: 40px; text-align: center; background: #2a3442; padding: 4px; }
.tag { display: inline-block; font: bold 11px Inter, sans-serif; border: 1px solid; padding: 1px 6px; background: #fff; white-space: nowrap; }
.tip { background: #ffffe1; border: 1px solid #e3c770; border-left: 5px solid #f2a516; padding: 8px 12px; margin: 0 0 14px; }
.big { margin: 4px 0 14px; } .big b { font-size: 28px; color: #17416f; } .big span { color: #555; }
.pic { margin: 0 0 14px; text-align: center; } .pic img { max-width: 100%; height: auto; border: 1px solid #a9bcd2; background: #eef3f8; image-rendering: pixelated; }
.pic.shot img, .pic.hero img { image-rendering: auto; } .pic.shot img { max-height: 640px; width: auto; } .pic .cap { font-size: 12px; color: #555; margin-top: 4px; }
.pic.plane img { width: 600px; } .pic.key img { background: #10151c; width: 560px; }
ul.links { list-style: none; padding: 0; } ul.links li { border-bottom: 1px dotted #b7c7d9; padding: 6px 0; overflow: hidden; }
ul.links .blurb, table.topics .blurb { display: block; font-size: 13px; color: #555; }
ul.links li.pl { min-height: 44px; } ul.links .thumb { float: left; margin-right: 10px; } ul.links .thumb img { width: 96px; height: 44px; object-fit: contain; image-rendering: pixelated; background: #eef3f8; border: 1px solid #c4d3e3; }
ul.links li a { font-weight: bold; }
.see { margin-top: 26px; }
.welcome { background: #f4f8fc; border: 1px solid #a9bcd2; padding: 10px 14px; margin: 4px 0 14px; }
table.topics { width: 100%; } table.topics td { width: 50%; border: 1px solid #c4d3e3; padding: 9px 12px; vertical-align: top; background: #fafcfe; }
table.topics td a { font-weight: bold; font-size: 16px; }
#foot { border-top: 1px solid #c4d3e3; background: #f0f4f8; color: #666; font-size: 12px; padding: 10px 20px 14px; text-align: center; }
.badges { margin-top: 8px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.badge { display: inline-block; width: 88px; height: 31px; box-sizing: border-box; border: 1px solid #555; font: 9px/1.1 Inter, sans-serif; color: #fff; padding: 4px 3px; text-align: center; letter-spacing: 1px; }
.badge b { display: block; font-size: 11px; letter-spacing: 0; }
.b1 { background: linear-gradient(#4f88c8, #17416f); text-decoration: none; } a.b1:hover { background: linear-gradient(#5f98d8, #1f4f8a); }
a.b1, a.b1:link, a.b1:visited, a.b1:hover, a.b1:active, a.b1:focus { color: #fff; }
.badges { align-items: center; } .nb img { display: block; width: 52px; height: auto; } .nb:hover img { filter: brightness(1.15); }
#tabs, #shade { display: none; }
.ico { width: 1em; height: 1em; vertical-align: -0.125em; display: inline-block; }
/* (A short screen, a phone on its side or the Duo folded: the header slim, the page's room for the page.) */
@media (max-height: 520px) { #top { padding-top: 4px; padding-bottom: 4px; } .logo1 { height: 26px !important; } .logo2 { font-size: 12px; } }
@media (max-width: 760px) {
  body { padding: 0; font-size: 17px; }
  #page { border: 0; box-shadow: none; }
  /* (Stacked, each full width: left at flex-start, the page's column grew to its widest table, past the screen, and
     took the rows under it with it; Killjet, Discord, Nov 25. The table scrolls sideways in its own box instead.) */
  #cols { flex-direction: column-reverse; align-items: stretch; }
  table.grid { font-size: 14px; }
  table.grid th, table.grid td { padding: 4px 7px; white-space: nowrap; }
  /* (Its first column, the plane or the thing, kept in view while the rest scrolls under it.) */
  table.grid th:first-child, table.grid td.first { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 #b7c7d9; }
  table.grid td.first { background: #fff; } table.grid tr.odd td.first { background: #f5f8fb; }
  #side { width: auto; padding: 0 12px 12px; }
  #main { padding: 10px 14px 20px; }
  table.kv th { width: 40%; }
  table.topics td { display: block; width: auto; }
  .logo1 { height: 36px; }
  /* (The bar along the foot, its sheet: TABS_W.) */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  #side { display: none; }
  .secs #side { display: block; position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); max-height: 70vh; overflow: auto; background: #fff; border-top: 2px solid #f2a516; box-shadow: 0 -4px 18px rgba(13,45,82,0.35); padding: 10px 12px 12px; -webkit-overflow-scrolling: touch; }
  .secs #shade { display: block; position: fixed; z-index: 19; inset: 0; background: rgba(13,45,82,0.35); }
  #tabs { display: flex; position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: linear-gradient(#2a64a6, #17416f); border-top: 2px solid #f2a516; }
  #tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; color: #dbe8f6; font: bold 12px/1 Inter, sans-serif; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  #tabs a .ico { width: 22px; height: 22px; }
  #tabs a.on, .secs #tabs a.secs { color: #ffd166; }
  #tabs a:active { background: rgba(255,255,255,0.12); }
  /* (In the game's frame, the game keeps it clear of the home indicator and the notch (wikiframe.ts): none again here, or
     the bar stood twice as tall on an iPhone, which tells the frame the insets too.) */
  .ingame body { padding-bottom: 58px; }
  .ingame #tabs { padding: 0; }
  .ingame.secs #side { bottom: 56px; }
}
