/*
   summary.css

   Dynamic CSS styling for summary/index page of tournament series in OlimpBase
   Fully customizable via CSS Custom Properties (Variables)
*/

:root {
  /* Column widths customization section */
  --w-sum-table: 628px;
  --w-sum-no: 30px;
  --w-sum-host-group: 164px;
  --w-sum-host-city: 113px;
  --w-sum-host-city-gap: 16px;
  --w-sum-flag: 28px;
  --w-sum-year: 50px;
  --w-sum-winner-group: 214px;
  --w-sum-system: 50px;
  --w-sum-players: 45px;
  --w-sum-games: 45px;
  --w-sum-pgn: 30px;
  --w-sum-footer: 520px;
}

body {
  background-color: #F2F2F2;
}

.section-stats {
  height: 26px;
  background-color: #EEEECC;
}

.layout-table {
  width: var(--w-sum-table);
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.layout-table--borderless {
  border: 0;
}

.layout-table--framed {
  border: 1px solid #b9b9b9;
}

.info-cell {
  width: 98%;
  text-align: center;
  vertical-align: bottom;
  font: 11pt Georgia, Arial, sans-serif;
}

.help-cell {
  width: 2%;
}

.summary-header-row {
  height: 30px;
}

.summary-table td {
  border-bottom: 1px solid #b9b9b9;
}

.summary-header-row td {
  border-right: 1px solid #b9b9b9;
}

.summary-header-row td:last-child {
  border-right: 0;
}

.summary-note-row td {
  border-right: 0;
}

.summary-data-row > td:first-child,
.summary-data-row > td.host-city-flag,
.summary-data-row > td.year-col,
.summary-data-row > td.winner-flag,
.summary-data-row > td.system-col,
.summary-data-row > td.players-col,
.summary-data-row > td.games-col {
  border-right: 1px solid #b9b9b9;
}

.note-row {
  border-right: 0;
}

.col-no {
  width: var(--w-sum-no);
}

.col-host-group {
  width: var(--w-sum-host-group);
}

.host-city {
  text-align: left; 
  padding-left: 5px;
  width: var(--w-sum-host-city);
  border-right: 0;
}

.host-city-gap {
  text-align: right;
  width: var(--w-sum-host-city-gap);
  border-left: 0;
  border-right: 0;
}

.host-city-flag,
.winner-flag {
  width: var(--w-sum-flag);
  border-left: 0;
  padding-right: 1px;
}

.year-col {
  width: var(--w-sum-year);
}

.col-winner-group {
  width: var(--w-sum-winner-group);
}

.system-col {
  text-align: center;
  width: var(--w-sum-system);
}

.players-col {
  text-align: center;
  width: var(--w-sum-players);
}

.games-col {
  text-align: center;
  width: var(--w-sum-games);
}

.pgn-col {
  text-align: center;
  width: var(--w-sum-pgn);
}

.winner-name {
  text-align: left; 
  padding-left: 5px;
  border-right: 0;
}

.footer-table {
  width: var(--w-sum-footer);
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.footer-cell {
  width: 25%;
}

.plain-image {
  border: 0;
}

.url-note {
  font: 10px Courier New, monospace;
  color: darkgray;
}

/* Team-event summary variant (for example, Chess Olympiads). */
.summary-switch-table {
  height: 20px;
}

.summary-switch-cell {
  width: 98%;
  padding-left: 2mm;
  text-align: left;
  vertical-align: bottom;
  font: 8pt "Bitstream Vera Sans", Arial, sans-serif;
}

/* Match the column widths declared in olympiads/women_results.html. */
.team-summary-table {
  --w-sum-no: 20px;
  --w-sum-host-group: 164px;
  --w-sum-host-city: 115px;
  --w-sum-host-city-gap: 16px;
  --w-sum-flag: 26px;
  --w-sum-year: 30px;
  --w-sum-place: 33px;
  --w-sum-system: 55px;
  --w-sum-boards: 45px;
  --w-sum-teams: 45px;
  --w-sum-players: 45px;
  --w-sum-games: 45px;
  --w-sum-pgn: 30px;
  table-layout: auto;
}

.team-summary-table .host-city-gap,
.team-summary-table .host-city-flag {
  padding-left: 0;
  padding-right: 0;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
}

.team-summary-table .year-col,
.team-summary-table .place-col {
  width: var(--w-sum-year);
  padding-left: 0;
  padding-right: 0;
  white-space: nowrap;
}

.team-summary-table .place-col {
  width: var(--w-sum-place);
}

.team-summary-table .system-col {
  white-space: nowrap;
}

.team-summary-table .boards-col {
  width: var(--w-sum-boards);
}

.team-summary-table .teams-col {
  width: var(--w-sum-teams);
}

.team-summary-table .pgn-col {
  width: var(--w-sum-pgn);
  padding-left: 0;
  padding-right: 0;
  white-space: nowrap;
}

.team-summary-table .cancellation-note {
  text-align: left;
  padding-left: 5px;
}

.team-summary-table .summary-data-row > td.place-col,
.team-summary-table .summary-data-row > td.boards-col,
.team-summary-table .summary-data-row > td.teams-col {
  border-right: 1px solid #b9b9b9;
}
