/* OlimpBase: wspolne style stron.
   Ladowac przed arkuszami ob-swiss.css / ob-roundrobin.css / statystyk.
   Ustawienia tabel turniejowych pozostaja w ich osobnych arkuszach. */

/* Podstawowa typografia */
body,
table {
  font: 11pt Georgia, Arial, serif;
  text-align: center;
}

table {
  empty-cells: show;
}

td,
table[data-board-medals="1"] > caption {
  font: 10pt Georgia, Arial, serif;
  text-align: center;
}

li,
div,
p {
  font: 12pt Georgia, Arial, serif;
}

li,
p {
  text-align: justify;
}

p {
  text-indent: 1cm;
}

h1, h2, h3, h4 {
  font-family: Georgia, Arial, serif;
  font-weight: normal;
  text-align: center;
}
h1 { font-size: 17pt; }
h2 { font-size: 16pt; }
h3 { font-size: 15pt; }
h4 { font-size: 14pt; }
h4.bole { font-weight: bold; text-align: left; }
h4.oli { color: #808000; }

/* Odnosniki */
a {
  color: #0000ff;
  text-decoration: none;
}
a.red { color: #ff0000; }
a.bl { color: #000000; }
a.co { font: 11pt Courier, monospace; }
a.le { text-align: left; }
a.uni { font: 10pt Georgia, Arial, serif; }
a:hover { font-weight: bold; }

/* Wyrownanie i wyglad komorek */
td.ce,
td.ce img {
  vertical-align: middle;
}
td.ce { text-align: center; }
td.ce img {
  display: block;
  margin: 0 auto;
}
td.le { text-align: left; }
td.let,
td.letu { text-align: left; padding-left: 2mm; }
td.lot { text-align: left; padding-left: 1mm; }
td.ri { text-align: right; }
td.rit { text-align: right; padding-right: 2mm; }
td.ritu { text-align: right; padding-right: 3mm; }
td.bo,
td.bog { font-weight: bold; }
td.bog,
td.gr { background-color: #eeeecc; }
td.it { text-align: left; font-style: italic; }
td.co { font: 11pt "Courier New", monospace; }
td.gi { font: bold 20pt Georgia, Arial, serif; }

/* Akapity i listy */
p.le { text-align: left; text-indent: 0; }
p.ce { text-align: center; text-indent: 0; }
p.ri { text-align: right; text-indent: 0; }
p.sm { font: 10pt Arial, sans-serif; text-indent: 0; }
p.ita {
  margin-left: 5%;
  margin-right: 5%;
  text-align: left;
  font: italic 12pt Arial, sans-serif;
}
div.longlist {
  font: 10pt Arial, sans-serif;
  margin-left: 5%;
  margin-right: 5%;
  text-align: center;
}
div.longlist a:hover { color: #ff0000; }

/* Nona Gaprindashvili International Trophy: independent column widths. */
.ob-gap-cup { border-collapse: collapse; width: auto; margin: 1.5em auto; table-layout: auto; float: none; }
.ob-gap-cup th, .ob-gap-cup td { border: 1px solid #aaa; padding: 3px 6px; height: 24px; text-align: center; }
.ob-gap-cup thead th { background: #f0f0d0; }
.ob-gap-cup .ob-gap-name { text-align: left; }
.ob-gap-cup img { vertical-align: middle; }
.ob-gap-cup .ob-gap-place { width: 50px; }
.ob-gap-cup .ob-gap-country { width: 250px; }
.ob-gap-cup .ob-gap-flag { width: 40px; }
.ob-gap-cup .ob-gap-other { width: 65px; }
.ob-gap-cup tr.ob-gap-gold td { background: #ffeb80; }
.ob-gap-cup tr.ob-gap-silver td { background: #d8d8d8; }
.ob-gap-cup tr.ob-gap-bronze td { background: #e8dac4; }

/* Trophy and category section separators */
hr.ob-prize-separator { width: 60%; margin: 2em auto; }
.ob-gap-cup .ob-gap-open { width: 65px; }
.ob-gap-cup .ob-gap-women { width: 65px; }

/* Category prizes: independent layout and column widths. */
.ob-category-prizes { border-collapse: collapse; width: auto; margin: 1.5em auto; float: none; }
.ob-category-prizes th, .ob-category-prizes td { border: 1px solid #aaa; padding: 3px 6px; height: 24px; text-align: center; }
.ob-category-prizes th { background: #f0f0d0; }
.ob-category-prizes tbody td { background: #ffeb80; }
.ob-category-prizes .ob-category-name { text-align: left; }
.ob-category-prizes img { vertical-align: middle; }
.ob-category-prizes .ob-category-cat { width: 50px; }
.ob-category-prizes .ob-category-range { width: 100px; }
.ob-category-prizes .ob-category-country { width: 250px; }
.ob-category-prizes .ob-category-flag { width: 40px; }
.ob-category-prizes .ob-category-other { width: 65px; }
.ob-category-star { color: #f00; }

/* Starting number shares the country cell, as in Swiss standings. */
.ob-category-prizes .ob-category-seed { width: 40px; }
.ob-category-prizes .ob-category-seed-number { float: right; color: #808080; padding-left: 12px; white-space: nowrap; }

/* Incomplete all-time results: shared settings for player/team cards and statistics.
   Text must remain a quoted CSS string. */
:root {
  --ob-incomplete-value-color: grey;
  --ob-incomplete-value-font-family: inherit;
  --ob-incomplete-value-font-size: inherit;
  --ob-incomplete-value-font-style: normal;
  --ob-incomplete-value-font-weight: normal;
  --ob-incomplete-message: "\2014  results are not complete!";
  --ob-incomplete-message-color: red;
  --ob-incomplete-message-font-family: Verdana, Arial, sans-serif;
  --ob-incomplete-message-font-size: 10pt;
  --ob-incomplete-message-font-style: normal;
  --ob-incomplete-message-font-weight: bold;
}
:is(td, th)[style*="#FFE2E2"]:not(.ob-incomplete-known),
:is(td, th)[style*="#ffe2e2"]:not(.ob-incomplete-known),
:is(td, th)[style*="#FEE2E2"]:not(.ob-incomplete-known),
:is(td, th)[style*="#fee2e2"]:not(.ob-incomplete-known),
.ob-incomplete-value {
  color: var(--ob-incomplete-value-color) !important;
}
.ob-incomplete-value a, .ob-incomplete-value span {
  color: inherit !important;
  font-family: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
}
.ob-incomplete-notice {
  font-size: 0 !important;
  margin-left: .4rem;
}
.ob-incomplete-notice::after {
  content: var(--ob-incomplete-message);
  color: var(--ob-incomplete-message-color);
  font-family: var(--ob-incomplete-message-font-family);
  font-size: var(--ob-incomplete-message-font-size);
  font-style: var(--ob-incomplete-message-font-style);
  font-weight: var(--ob-incomplete-message-font-weight);
}
div.ob-incomplete-notice { text-align: center; margin: .6rem 0; }
/* Complete sums retain the standard text colour despite missing editions. */
.ob-incomplete-known { color: #000 !important; }

/* Incomplete team totals use a separate background; preserve their bold weight. */
:is(td, th)[style*="#FBDEBC"],
:is(td, th)[style*="#fbdebc"] { color: var(--ob-incomplete-value-color) !important; }
