﻿body {
	--board-top:var(--blockmark-height);
	--dates-height:var(--title-height);
  --board-title-height:40px;
}
	

/*### BLOCKMARK ###*/
@media screen	{
#blockmark {
	z-index:2;
}
}



/*### DATES ###*/
@media screen	{
#dates {
	--height:var(--dates-height);
	--padding:calc(var(--height) * var(--skewfactor) + 1ex);
	position:absolute;
	top:calc(var(--viewer-top-margin) + var(--title-height));
	left:var(--blockmark-width);
	right:0;
	height:var(--height);
	padding-left:var(--padding);
	box-sizing:border-box;
	display:flex;
	flex-direction:row;
	justify-content:flex-start;
	align-items:center;
	font-family:var(--titles-font-family);
	font-size:28px;
	z-index:1;
}
#subtitle:empty+#dates {
	--height:var(--blockmark-height);
	top:calc(var(--viewer-top-margin));
}
}



/*### BOARD ###*/
@media screen  {
#board {
	position:absolute;
	top:var(--board-top);
	left:0;
	bottom:0;
	right:0;
	overflow-y:auto;
	overflow-x:hidden;
	padding-bottom:var(--geovoile-height);
	background-image:var(--bgweft);
}
#board table {
  border-spacing:0px;
  border-collapse:separate;
}
#board table.bytime .bypoints,
#board table.bypoints .bytime {
  display:none;
}
#board thead.title {
	--height:var(--board-title-height);/*nécessaire pour le script lors de l'affichage sticky des titles masqués'*/
  position:sticky;
  top:0;
	z-index:10;
}
#board thead.title td {
  padding:5px 5px;
	height:var(--board-title-height);
	box-sizing:border-box;
  white-space:nowrap;
  font-weight:bold;
  text-align:center;
	vertical-align:middle;
}
#board thead.title big {
  display:block;
  font-family:var(--titles-font-family);
  font-size:22px;
  line-height:1;
  font-weight:normal;
}
#board thead.title small {
  display:none;
  font-size:16px;
  line-height:18px;
  font-weight:normal;
} 
#board thead.title.off {
	visibility:hidden;
}
#board thead.title.off>tr {
	display:none;
}
#board thead.title.off.visible {
	visibility:visible;
}
#board thead.title.off.visible>tr {
	display:table-row;
}
#board thead.columns {
  position:sticky;
  top:var(--board-title-height);
	z-index:20;
}
#board .columns th {
	border:1px solid;
	padding:3px 5px;
	vertical-align:middle;
	white-space:nowrap;
}
#board .columns th[colspan] {
  text-align:center !important;
}

#board .row {
	vertical-align:top;
	white-space:nowrap;
}
#board .row th,
#board .row td {
	padding:0 5px;
}
#board .row th {
  font-weight:bold !important;
  text-align:left;
}
#board .row td {
	border-bottom:1px solid;
  vertical-align:top;
  padding-top:5px;
}

#board .rank,
#board .status,
#board .heading,
#board .points,
#board .time,
#board .racetime,
#board .loc,
#board .dtf,
#board .date,
#board .lat,
#board .lng,
#board .heading,
#board .speed,
#board .dist,
#board .gaps,
#board .percent,
#board .advance,
#board .ortho,
#board .overg {
  text-align:right;
}

#board thead .boat {
  text-align:left;
  width:100%;
}

#board tbody .group {
}
#board tbody .group th {
  font-family:var(--titles-font-family);
  font-size:18px;
  line-height:1.5;
	font-weight:normal;
	border:1px solid transparent;
}

#board tbody .rank {
	text-align:right;
}
#board tbody .rank .value {
  font-size:22px !important;
	line-height:22px;
  font-weight:bold;
  text-align:right;
}
#board tbody .rank .status {
  display:block;
  font-size:11px !important;
	line-height:11px;
  font-weight:bold;
}

#board tbody .boat .identity {
	position:relative;
	width:100%;
	display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:23px 20px 18px;
	box-sizing:border-box;
	white-space:nowrap;
	box-sizing:border-box;
}
#board tbody .boat .identity.nophoto {
  grid-template-columns:1fr;
}
#board tbody .boat .identity .photos {
	grid-column:1;
	grid-row:1 / 3;
	position:relative;
	margin-right:7px;
	box-sizing:border-box;
}
#board tbody .boat .identity.nophoto .photos {
	display:none;
}
#board tbody .boat .identity .boatname {
	grid-column:2;
	grid-row:1;
	box-sizing:border-box;
	display:flex;
	align-items:flex-start;
	font-family:var(--boatname-font-family);
	font-size:var(--boatname-font-size);
	font-weight:var(--boatname-font-weight);
	text-transform:var(--boatname-text-transform);
	white-space:nowrap;
	line-height:1;
	padding-top:4px;
}
#board tbody .boat .identity .skippers {
	grid-column:2;
	grid-row:2;
	display:flex;
	align-items:flex-start;
	font-family:var(--skippername-font-family);
	font-size:var(--skippername-font-size);
	font-weight:var(--skippername-font-weight);
	text-transform:var(--skippername-text-transform);
	overflow:hidden;
}
#board tbody .boat .identity .nat {
	display:inline-flex;
	align-items:center;
}
#board tbody .boat .identity .nat:nth-child(1) {
	margin-right:4px;
}
#board tbody .boat .identity .nat:nth-child(n+2) {
	margin-left:4px;
}
#board tbody .boat .identity .nat::before {
  display: inline-block;
  content: '';
  width: 15px;
  height: 10px;
  margin-right: 7px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100%;
}
#board tbody .boat .identity .nat.no:before {
	display:none;
}


#board tbody .points {
  font-size:18px !important;
  font-weight:bold;
}
#board tbody .heading:after {
  content:'°';
}
#board tbody b {
  font-weight:bold;
  display:block;
}
#board tbody u {
  display:block;
}
#board tbody i {
  opacity:0.6;
  display:block;
}
#board tbody .date small {
  display:none;
}

#board table.reduced {
	display:none;
	box-sizing:border-box;
	width:calc(100% + 8px);
}
#board table.reduced th {
	border-bottom-width:0px;
	border-right-width:0px;
  text-align:right !important;
}
#board table.reduced th:first-of-type {
	border-left-width:0px;
}
#board table.reduced td:last-of-type {
	border-left-width:0px;
}
#board .columns .boat table.reduced {
	margin:5px -5px -3px -5px;
}
#board table.reduced td {
  text-align:right !important;
}
#board table.reduced td:last-of-type {
	padding-right:8px;
}
#board .RACING table.reduced td {
	width:20%;
}
#board.corrected .RACING table.reduced td {
	width:16.66%;
}
#board .RESULT table.reduced td {
	width:33.33%;
}

body.MONOCLASS #board.leaderboard thead.title,
body.MONOCLASS #board.generalboard thead.title {
	display:none;
}
body.MONOCLASS #board.leaderboard thead.columns,
body.MONOCLASS #board.generalboard thead.columns {
  top:0;
}
body.MONOCLASS #board tbody .group {
	display:none;
}

}



/*### LEADERBOARD ###*/
@media screen  {
#board.leaderboard table.RESULT thead th {
  line-height:40px;
}
}



/*### STATISTICS ###*/
@media screen  {
#board.statistics {
	display:flex;
	flex-direction:column;
}
#board.statistics table {
	width:100%;
  max-width:700px;
	margin:10px auto;
	
}
#board.statistics thead th {
  line-height:30px;
}
#board.statistics tbody td {
  text-align:right;
}
#board.statistics tbody td.boat {
	font-family:var(--boatname-font-family);
	font-size:var(--boatname-font-size);
	font-weight:var(--boatname-font-weight);
	text-transform:var(--boatname-text-transform);
  text-align:left;
}
}



/*### GENERAL ###*/
@media screen  {
#board.generalboard thead th {
  line-height:30px;
}
}