/* Kindred Link. Dense, plain layout in the spirit of the 2011 global link sites: light grey-blue page,
   navy left column, white panels with a dark title bar, tables and simple lines, one text size for
   content, large rectangular tiles. Gold (from the Kindred Gold logo) is the only accent. */
:root {
  --navy: #14223f;
  --navy-2: #1d3157;
  --navy-3: #2a4373;
  --page: #dfe5ec;
  --panel: #ffffff;
  --line: #bcc8d6;
  --line-soft: #e1e6ed;
  --ink: #1b2536;
  --ink-soft: #55627a;
  --gold: #c99a1e;
  --red: #b3283a;
  --blue: #2a63b0;
  --green: #2f8a57;
  --purple: #6a4c9c;
  --teal: #1f8389;
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.4 var(--font); color: var(--ink); background: var(--page); overflow-x: hidden; }
a { color: var(--blue); }
button, input { font: inherit; }
img.mi { width: 32px; height: 32px; vertical-align: middle; flex: none; }
img.mf { width: 80px; height: 80px; display: block; }
.mx { display: inline-block; width: 32px; height: 32px; vertical-align: middle; flex: none; }

/* top bar */
.topbar { background: #fff; border-bottom: 3px solid var(--navy); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 6px 12px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-logo { display: block; width: 160px; height: auto; }
.brand-name { font-size: 22px; font-weight: 700; border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.who { margin-left: auto; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; border: 0; background: var(--navy); color: #fff; padding: 7px 14px; font-weight: 600; cursor: pointer; }

/* shell */
.shell { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
.side { background: var(--navy); color: #dfe6f3; padding-bottom: 20px; }
.main { padding: 12px; min-width: 0; outline: none; display: grid; gap: 12px; align-content: start; }
.side h2 { margin: 0; padding: 8px 12px; font-size: 14px; font-weight: 700; color: #fff; background: var(--navy-2); }
.side-b { padding: 10px 12px 14px; }
.side-me { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.side-me .av { width: 40px; height: 40px; flex: none; }
.side-me b { display: block; color: #fff; }
.side-me .side-other { display: block; margin-top: 2px; font-size: 12px; color: #cfdcf3; }
.side-me .side-other a { color: #fff; }
.go { display: flex; gap: 6px; }
.go input { min-width: 0; flex: 1; padding: 5px 7px; border: 1px solid #3b5384; background: #0e1930; color: #fff; }
.go a, .btn { background: var(--gold); color: #1a1405; font-weight: 700; padding: 5px 12px; text-decoration: none; border: 0; cursor: pointer; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: #dfe6f3; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid transparent; }
.nav a:hover, .nav a:focus-visible { background: var(--navy-2); color: #fff; outline: none; }
.nav a[aria-current="page"] { background: var(--navy-3); border-left-color: var(--gold); color: #fff; font-weight: 600; }
.nav svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.side-news { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.side-news li { padding: 6px 0; border-bottom: 1px dotted rgba(255, 255, 255, .18); }
.side-news li:last-child { border-bottom: 0; }
.side-news time { color: #9fb0cc; margin-right: 6px; }
.side-news a { color: #e8eef9; text-decoration: none; }
.side-news a:hover { text-decoration: underline; }
.new { color: #ffd76a; font-weight: 700; font-size: 12px; }
.main .new { color: var(--red); }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.panel > h2 { margin: 0; padding: 6px 10px; font-size: 14px; font-weight: 700; color: #fff; background: var(--navy); display: flex; justify-content: space-between; gap: 8px; }
.panel > h2 a, .panel > h2 span { color: #cfdcf3; font-weight: 400; }
.pb { padding: 10px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cols-21 { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: start; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 5px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: #eef2f6; font-weight: 600; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 400; color: var(--ink-soft); width: 34%; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.r { width: 36px; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
tr.me td { background: #fbf4dd; }
.kv2 th { width: 22%; }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #eef2f6; }
.tabs button { border: 0; border-right: 1px solid var(--line); background: none; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.tabs button[aria-pressed="true"] { background: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }

/* world map: css/worldmap.css; below, the two charts under it */
.pies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pie-box { padding: 10px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.pie-box + .pie-box { border-left: 1px solid var(--line-soft); }
.pie { width: 72px; height: 72px; border-radius: 50%; flex: none; border: 1px solid var(--line); }
.legend { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }

/* featured species (most caught) */
.feat { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); }
.feat table { width: auto; }
.feat th, .feat td { border: 0; padding: 1px 10px 1px 0; }

/* tiles */
.tiles { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1fr; gap: 8px; }
.tile { min-height: 84px; padding: 10px 12px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; font-size: 18px; font-weight: 700; }
.tile svg { width: 26px; height: 26px; fill: rgba(255, 255, 255, .9); }
.tile:hover, .tile:focus-visible { filter: brightness(1.1); outline: none; }
.tile.red { background: var(--red); } .tile.violet { background: var(--purple); } .tile.teal { background: var(--teal); }
.tile.blue { background: var(--blue); } .tile.green { background: var(--green); }

/* my page */
.card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.card .av { width: 120px; height: 120px; border-right: 1px solid var(--line-soft); }
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.team div { padding: 6px 4px 8px; text-align: center; border-right: 1px solid var(--line-soft); min-width: 0; overflow: hidden; }
.team div:last-child { border-right: 0; }
.team img.mf { margin: 0 auto; }
.team b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .mf-none { width: 80px; height: 80px; margin: 0 auto; }
.gm { color: var(--blue); } .gf { color: #c0457a; }
.sh { color: var(--gold); font-weight: 700; }
.acts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.acts li { padding: 6px 8px; border-right: 1px solid var(--line-soft); color: var(--ink-soft); min-width: 0; }
.acts li:last-child { border-right: 0; }
.acts li.done { color: var(--ink); background: #eef2f6; }
.acts li.now { background: var(--navy-3); color: #fff; font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(8, 30px); gap: 4px; }
.badge { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-soft); }
.badge svg { width: 22px; height: 22px; }
.badge.on { border-color: var(--gold); }
.badge:not(.on) svg { opacity: .15; filter: grayscale(1); }
.icons { display: flex; flex-wrap: wrap; gap: 2px; }

/* pokedex and boxes */
.dexgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dexcell { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); min-width: 0; white-space: nowrap; overflow: hidden; }
.dexcell.s1 img, .dexcell.s0 .mx { opacity: .45; filter: grayscale(1); }
.dexcell.s0, .dexcell.s1 { color: var(--ink-soft); }
.dexcell.s2 { font-weight: 600; }
.dexcell i { font-style: normal; color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 10px; }
.box { border: 1px solid var(--line); }
.box h3 { margin: 0; padding: 3px 8px; font-size: 13px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.box-grid { display: grid; grid-template-columns: repeat(6, 34px); padding: 4px; justify-content: center; }
.box-grid span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-soft); margin: -1px 0 0 -1px; }
ol.steps { margin: 0; padding: 10px 10px 10px 30px; }
p.t { margin: 0; padding: 10px; }

/* footer */
.foot { background: var(--navy); color: #b9c6dc; margin-top: 12px; font-size: 13px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.foot nav a { border: 1px solid #5d76a4; color: #e3eaf6; padding: 4px 10px; text-decoration: none; }
.foot nav a:hover { border-color: var(--gold); }
.foot p { margin: 2px 0; }

/* responsive */
@media (max-width: 1000px) {
  .cols-21 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .side.open { display: block; }
  .menu-btn { display: block; }
  .who { display: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team div:nth-child(3) { border-right: 0; }
  .team div:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .acts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .acts li { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 520px) {
  .topbar-in { gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 112px; }
  .brand-name { font-size: 16px; padding-left: 8px; }
  .main { padding: 8px; gap: 8px; }
  .pies { grid-template-columns: minmax(0, 1fr); }
  .pie-box + .pie-box { border-left: 0; border-top: 1px solid var(--line-soft); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:first-child { grid-column: 1 / -1; }
  .tile { min-height: 66px; font-size: 16px; }
  .card { grid-template-columns: 72px minmax(0, 1fr); }
  .card .av { width: 72px; height: 72px; border-bottom: 1px solid var(--line-soft); }
  th, td { padding: 5px 6px; }
  tbody th { white-space: normal; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(8, 26px); gap: 2px; }
  .badge { width: 26px; height: 26px; }
  .dexgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-s { display: none; }
}

/* accounts: forms are tables like the rest, one message line */
.who a { color: var(--navy); font-weight: 600; }
.frm input[type="text"], .frm input[type="password"] { width: 100%; max-width: 260px; padding: 5px 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
#goPage2 { padding: 0 10px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#goPage2 input { width: 150px; margin-left: 6px; padding: 5px 7px; border: 1px solid var(--line); }
.btn.plain { background: #e6ebf1; color: var(--ink); font-weight: 600; }
.err { color: var(--red); }

/* posts (Information, Events): text written in the admin panel, rendered by the server */
.post + .post { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.post-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.post-meta { margin: 2px 0 8px; color: var(--ink-soft); font-size: 13px; }
.rich { overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p, .rich ul, .rich ol { margin: 0 0 10px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich li { margin: 2px 0; }
.rich h3 { margin: 16px 0 6px; font-size: 16px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.rich h4 { margin: 14px 0 4px; font-size: 15px; color: var(--navy); }
.rich h5 { margin: 12px 0 4px; font-size: 14px; color: var(--ink-soft); }
.rich img { max-width: 100%; height: auto; display: block; margin: 8px 0; border: 1px solid var(--line); }

/* admin panel */
.adm select, .adm textarea, .adm input[type="number"], .adm input[type="datetime-local"] { font: inherit; padding: 5px 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.adm input.wide { max-width: 520px; }
.adm input.num { width: 70px; }
.adm textarea { display: block; width: 100%; min-height: 220px; resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.45; }
.adm select { max-width: 100%; }
.adm tbody th { width: 150px; vertical-align: top; padding-top: 9px; }
.adm label { margin-right: 10px; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tools .btn { padding: 3px 9px; font-weight: 600; }
.hint { color: var(--ink-soft); font-size: 13px; }
p.hint { margin: 6px 0 0; }
.btn.danger { color: var(--red); }
tr.banned td { background: #fbeeee; }
.find { padding: 8px 10px; border-bottom: 1px solid var(--line); background: #eef2f6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.find input[type="search"] { flex: 1; min-width: 180px; max-width: 360px; padding: 5px 7px; border: 1px solid var(--line); font: inherit; }
.ban { border-color: var(--red); }
.ban > h2 { background: var(--red); }
.ban-body { padding: 14px 12px; }
.ban-body h3 { margin: 0 0 6px; font-size: 18px; color: var(--red); }
.ban-body p { margin: 0 0 8px; }
.ban-body ul { margin: 0 0 8px; padding-left: 22px; }
.acts-row .btn { margin-bottom: 4px; }
@media (max-width: 520px) {
  .adm tbody th { width: auto; }
  .adm table, .adm tbody, .adm tr, .adm th, .adm td { display: block; width: 100%; }
  .adm th { border-bottom: 0; padding-bottom: 0; }
}
.note { margin: 0; padding: 7px 10px; background: #fbf4dd; border: 1px solid var(--gold); }

/* two-step login */
.key { font-family: Consolas, "Courier New", monospace; font-size: 15px; letter-spacing: 1px; overflow-wrap: anywhere; }
.codes { font-family: Consolas, "Courier New", monospace; font-size: 15px; columns: 2; max-width: 320px; }
.frm .note { margin: 8px 10px; }
.two-step { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; }
.two-step ol { flex: 1 1 320px; }
.qr { width: 196px; height: 196px; margin: 10px; border: 1px solid var(--line); flex: none; }

/* avatars: the battle sprite of a trainer class (80 x 80 pixels). Sprites are drawn as they are: at their own size
   (or exactly half of it in the small places), with no rendering rule of our own (no pixelated, no forced smoothing). */
.avt { display: grid; place-items: center; overflow: hidden; background: #eef2f6; }
.avt img { width: 80px; height: 80px; display: block; }
.side-me .avt { background: #0e1930; }
.side-me .avt img { width: 40px; height: 40px; }
.avs { display: inline-grid; width: 40px; height: 40px; vertical-align: middle; background: none; }
.avs img { width: 40px; height: 40px; }
.avo { display: inline-grid; place-items: center; min-width: 32px; height: 32px; vertical-align: middle; flex: none; }
.avo img { width: auto; height: 32px; display: block; }
.side-me .avo { min-width: 40px; height: 40px; padding: 0 4px; background: #0e1930; }
.who-me { display: inline-flex; align-items: center; gap: 4px; }
.av-now .avo { align-self: flex-end; }
.av-now { display: flex; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.av-now .avt { width: 80px; height: 80px; flex: none; border: 1px solid var(--line); }
.av-now .btn { margin-top: 6px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 10px; max-height: 372px; overflow-y: auto; }
.av-pick { display: grid; justify-items: center; gap: 2px; padding: 4px 2px 6px; border: 1px solid var(--line-soft); background: #fff; color: var(--ink); font-size: 12px; line-height: 1.2; cursor: pointer; min-width: 0; }
.av-pick img { width: 80px; height: 80px; }
.av-pick span { overflow-wrap: anywhere; text-align: center; }
.av-pick:hover, .av-pick:focus-visible { border-color: var(--navy-3); outline: none; }
.av-pick[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); background: #fbf4dd; font-weight: 700; }
.av-h { margin: 0; padding: 5px 10px; font-size: 14px; background: #eef2f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.av-locked { cursor: default; background: #f3f5f8; color: var(--ink-soft); }
.av-locked img { filter: grayscale(1); opacity: .45; }
.av-locked small { font-size: 11px; text-align: center; color: var(--ink); }
.av-locked:hover { border-color: var(--line-soft); }
.av-secret i { width: 80px; height: 80px; display: grid; place-items: center; font: 700 40px var(--font); color: #b9c3d1; }
.doc-sub { margin: 0; padding: 4px 10px; font-size: 14px; background: var(--navy-3); color: #fff; display: flex; justify-content: space-between; gap: 8px; scroll-margin-top: 8px; }
.doc-sub span { font-weight: 400; color: #cfdcf3; }

/* documentation pages (Wild Pokémon, Trainers): js/docs.js */
.doc-body { display: grid; gap: 12px; min-width: 0; }
.doc-zone { scroll-margin-top: 8px; }
.tabs a { border-right: 1px solid var(--line); padding: 6px 12px; color: var(--ink); text-decoration: none; }
.tabs a:hover, .tabs a:focus-visible { background: #fff; outline: none; }
.tabs a[aria-current="true"] { background: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.crumbs i { font-style: normal; color: var(--ink-soft); }
.crumbs b { color: var(--navy); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pager a { background: var(--panel); border: 1px solid var(--line); padding: 5px 10px; text-decoration: none; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pager a[rel="next"] { text-align: right; }
.pager a:hover, .pager a:focus-visible { border-color: var(--navy-3); outline: none; }
.pager small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.doc-list td:first-child { font-weight: 600; }
.doc-list td { overflow-wrap: anywhere; }
p.t.hint { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.doc-m { min-width: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 0 -1px -1px 0; }
.doc-m h3, .tr-b h3 { margin: 0; font-size: 14px; }
.doc-m h3 { padding: 5px 10px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.doc-m th, .doc-m td { padding: 2px 8px; }
.doc-m thead th { background: none; color: var(--ink-soft); font-weight: 400; font-size: 13px; }
.doc-m td:first-child { white-space: nowrap; }
.slots { border-top: 1px solid var(--line-soft); font-size: 13px; }
.slots summary { padding: 4px 10px; cursor: pointer; color: var(--blue); }
.doc-scroll { overflow-x: auto; }
.doc-scroll td { padding-top: 2px; padding-bottom: 2px; }
/* TMs and HMs: the game's icons (hack/tools/link_tm_icons.py), drawn pixel for pixel; the description wraps on
   several lines so the table keeps the width of the panel, and is hidden on phones (.hide-s) */
.tm-list small { display: block; color: var(--ink-soft); font-size: 12px; }
.tm-list tbody td { border-top: 1px solid var(--line); vertical-align: middle; }
.tm-list .tm-i { width: 32px; padding-right: 0; }
.tm-disc { display: block; width: 32px; height: 32px; background: url("../img/tm/discs.png") no-repeat; image-rendering: pixelated; }
.tm-ico { display: block; width: 32px; height: 16px; background: url("../img/tm/types.png") no-repeat;
  background-size: 2100% 100%; image-rendering: pixelated; }
.tm-list .tm-desc { min-width: 11em; max-width: 24em; font-size: 13px; line-height: 1.35; white-space: normal; }
.tm-list .tm-where { min-width: 9em; }
.tm-src + .tm-src { margin-top: 4px; }
.tm-list abbr { text-decoration: none; cursor: help; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-s { display: none; }
@media (max-width: 760px) {
  .tm-list .tm-desc, .tm-list th.tm-desc { display: none; }
}
@media (max-width: 520px) {
  .tm-list b.tm-s { display: block; }
  .tm-list .tm-ty > .tm-s { display: block; margin-top: 3px; }
  .tm-list .tm-where { min-width: 7em; }
  .tm-list .tm-i { padding-left: 4px; }
}
.find select { font: inherit; padding: 4px 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 100%; }
.tr { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.tr:last-child { border-bottom: 0; }
.tr-s { width: 80px; height: 80px; }
.tr-b p.hint { margin: 0; }
.tag { font-size: 12px; font-weight: 600; color: #fff; background: var(--navy-3); padding: 1px 6px; vertical-align: 1px; }
.tr-team { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 12px; }
.tr-team li { min-width: 0; }
.tr-team small { display: block; margin: -2px 0 2px 36px; color: var(--ink-soft); font-size: 12px; line-height: 1.3; }
.lv { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.it { font-size: 12px; border: 1px solid var(--line); padding: 0 5px; white-space: nowrap; }
@media (max-width: 520px) {
  .tr { gap: 8px; padding: 8px; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .av-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* the footer stays at the bottom of the window on short pages */
html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; }
.shell { width: 100%; flex: 1 0 auto; }
.foot { flex: none; }
.warn { color: #9a5b00; font-weight: 600; }

/* numbers and level ranges of the documentation tables stay on one line ("2-3" was breaking after the hyphen) */
.doc-m td.n, .doc-m th.n, .doc-scroll td.n, .doc-scroll th.n, td.n, th.n { white-space: nowrap; }

/* encounter tables: every row on one line (icon, name, levels, chance); a table wider than its panel scrolls
   sideways instead of breaking a name under its icon */
.doc-m { overflow-x: auto; }
.doc-m td, .doc-m th { white-space: nowrap; }
.doc-m td img { vertical-align: middle; }
/* wide enough columns for a whole row ("Swarm, surfing", icon, name, levels, chance) without sideways scrolling */
.doc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 370px), 1fr)); }

/* GTS page and species picker: css/gts.css */

/* menu entry to Kindred Showdown (another origin, opened in a new tab): the gold of the site on the navy of the
   menu (contrast 6.1:1); on the hover and focus background the lighter gold of the NEW marks of this column
   (10.6:1); a gold outline for the keyboard focus */
.hide-v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* read aloud, not shown */
.nav a.nav-out { color: var(--gold); font-weight: 700; }
.nav a.nav-out svg { fill: currentColor; }
.nav a.nav-out .nav-ext { margin-left: auto; width: 12px; height: 12px; opacity: .85; }
.nav a.nav-out:hover, .nav a.nav-out:focus-visible { color: #ffd76a; background: var(--navy-2); }
.nav a.nav-out:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
