:root {
	--bg-color-line:#EEE;
    --warningminus-color:#faeca6;
    --highlightminusalpha-color:#ab8bfd77;
    /* --highlight-color:#6020FF; */
	--sectionBasicFlexMargin:calc(-70px + 14vw) 1vw 0 0;
	--sectionBasicMargin:calc(-75px + 13vw) 1vw 0 0;
	--glyph-size: 5vw;
	--fontVariationSettings: "wght" 100;
	--EWWrapHeight: 12em;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg-color-line:#444;
		--warningminus-color:#3e3e00;
		--highlightminusalpha-color:#40E0D088;
		/* --highlightminusminus-color:#ab8bfd77;
		--highlightminus-color:#311085;
		--highlight-color:#6020FF;
		--highlightplus-color:#ab8bfd;
		--highlightminusalpha-color:#e7ddff; */
		/* --highlight-color:#6020FF; */
	}
}

html
{
	font-family: "RFBullet", monospace;
	font-size: 1.06vw;

	scrollbar-color: var(--bg-color) var(--bgminus-color);
	scroll-behavior: smooth;
}

body
{
	margin:0;
	background-color: var(--bg-color);
	width: 100%;
	height: 100%;
}

a, a:link, a:visited
{
	color:var(--highlight-color);
	text-decoration: none;
}

a.blackLink, a.blackLink:link, a.blackLink:visited
{
	color:var(--bg-color)EEE;
	text-decoration: none;
}

.scrollOffset
{
	scroll-margin-top: 60px;
}

.scrollOffsetSection
{
	scroll-margin-top: 100px;
}

.showLess
{
	font-size: 0.8em;
	color: var(--highlight-color);
}

.dropzone
{
    /* position: fixed; top: 0; left: 0;  */
    z-index: 9998;               
    /* width: 100%; height: 100%;          */
    /* background-color: rgba(64,224,208,0.5); */
    transition: visibility 175ms, opacity 175ms;
	background-color: var(--bgminus-color);
}

.loadingBig{
	position: fixed;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 44vh 0;
	font-size: 4em;
	text-align: center;
	background-color: var(--highlightminusalpha-color);
	color: var(--bgnegative-color);
	z-index: 9999;
}

#resultsAnimation
{
	position: fixed;
	/* width: 100%; */
	height: 100vh;
	margin: 0 auto;
	z-index: 9999;
	display: none;
}

#resultsAnimation svg
{
	width: auto;
	height: auto;
}

#queueAnimation
{
	position: fixed;
	width: 100%;
	/* height: 100vh; */
	margin: 0 auto;
	z-index: 0;
}

#queueAnimation svg
{
	width: auto;
	height: auto;
}


@-webkit-keyframes fadeInFromNone {
    0% {
        height: 0;
		padding: 0;
        opacity: 0;
    }

    1% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 0;
    }

    100% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 1;
    }
}

@-moz-keyframes fadeInFromNone {
    0% {
        height: 0;
		padding: 0;
        opacity: 0;
    }

    1% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 0;
    }

    100% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 1;
    }
}

@-o-keyframes fadeInFromNone {
    0% {
        height: 0;
		padding: 0;
        opacity: 0;
    }

    1% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 0;
    }

    100% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 1;
    }
}

@keyframes fadeInFromNone {
    0% {
        height: 0;
		padding: 0;
        opacity: 0;
    }

    1% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 0;
    }

    100% {
        height: 100vh;
		padding: 44vh 0;
        opacity: 1;
    }
}


.copied
{
	display: block;
	height: 0;
	padding: 0;
	opacity: 0;
	width: 73%;
}
.copied.active
{
	display: block;

    -webkit-animation: fadeInFromNone 2s ease-out;
    -moz-animation: fadeInFromNone 2s ease-out;
    -o-animation: fadeInFromNone 2s ease-out;
    animation: fadeInFromNone 2s ease-out;
}


#menu
{
	display: flex;
  	flex-wrap: wrap;
	width: calc(27% - 6px);
	position: fixed;
	top: 7.6em;
	margin: 5px;
	z-index: 1222;
}

.menuHeader{
	width: 100%;
  	padding: 0.55em;
	font-weight: 700;
}

.menuItem
{
	font-size: 0.9em;
	border-radius: var(--border-radius);
	padding: 0.7em 1.5em;
	margin: 0.35em;
	background-color: var(--bg-color);
	text-align: center;
	border: var(--highlight-color) 0.17em solid;
}

.menuItem:hover
{
	color:var(--bgminus-color);;
	background-color: var(--highlight-color);
}

.menuItemFonts
{
	font-size: 1.1em;
	min-width: 25%;
	border-radius: var(--border-radius);
	padding: 0.7em 0.3em;
	margin: 0.8em;
	background-color: var(--highlight-color);
	text-align: center;
	color: var(--bg-color);
	position: fixed;
	bottom: 0px;
	width: 24%;
	z-index: 1222;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

.uploadHeadlineFlex
{
	color: var(--highlight-color);
	display: flex;
	justify-content: start;
	flex-wrap: wrap;
	flex-direction: column;
  	height: 70vh;
	padding: 0 5vw;
}

.queueHeadlineFlex
{
	color: var(--highlight-color);
	display: flex;
	justify-content: start;
	flex-wrap: wrap;
	flex-direction: column;
  	height: 100vh;
	padding: 0 5vw;
}

.uploadSubHeadline
{
	color: var(--highlight-color);
	padding: 12vh 0 5vh 0;
	text-align: center;
	font-size: 1.5em;
	line-height: 1.5em;
}

.uploadArea
{
	display: flex;
	flex: 0 0 35%;
	padding: 2vh 5vh;
	margin: 0vh 1.1vw 4vh 1.1vw;
	/* border:1px solid var(--highlight-color); */
    border-radius: var(--border-radius);
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

.uploadAreaIllu
{
	width: 40%;
	align-content: center;
	text-align: center;
}

.uploadAreaHeadline
{
	font-size: 1.5em;
	text-align: left;
	padding: 0 0 2vh 0;
}

.uploadAreaInfoWrapper
{
	align-content: center;
}

.uploadAreaInfo
{
    font-size: 0.7em;
	color:var(--bgnegative-color);
	text-align: left;
	padding-bottom: 0.1em;
}

.uploadAreaButton
{
	font-size: 1.5em;
	padding: 20px;
	margin: 3vh auto -1vh auto;
	color: var(--highlight-color);
	text-transform: uppercase;
	/* border: 1px solid var(--highlight-color); */
	/* background-color: var(--highlight-color); */
}

.uploadLoadingResults
{
	font-size: 3em;
	margin: 43vh 26vh 2vh 26vh;
	text-align: center;
}

.uploadLoadingResultsSubtitle
{
	font-size: 1em;
	margin: 0 26vh 0 26vh;
	text-align: center;
}

#uploadForm
{
	display: none;
	position: absolute;
	top: -100px;
}

#foundryID
{
	text-align: left;
	margin: 0.8vh 0;
	background-color: var(--highlightminusminus-color);
	border: var(--bgnegative-color) 1px solid;
	color: var(--bgnegative-color);
}

.uploadAreaInverse
{
	background-color: var(--highlightminusminus-color);
}

.backgroundTaskMessage
{
	font-size: 7em;
	margin: 60vh 26vh 2vh 25vh;
	text-align: center;
}

.backgroundTaskSubtitle
{
	font-size: 1.5em;
	margin: 0 26vh 0 26vh;
	text-align: center;
}

.errorsDiv
{
	font-size: 0.8em;
	width: 100%;
	text-align: center;
	position: absolute;
	bottom: 12vh;
}

.acceptsDiv
{
	position: absolute;
	bottom: 2vh;
	width: 100%;
	text-align: center;
	font-size: 0.8em;
	color: var(--bgnegative-color)
}

.thisApp
{
	text-transform: uppercase;
}

.desktopView
{
	display:block;
}

.mobileView
{
	display: none;
}

.sumSectionBasic
{
	background-color: var(--bgminus-color);;
	border-radius: var(--border-radius);
	margin: 0 0% 0 4%;
	width: 100%;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}
.sumHeaderBasic
{
	background-color: var(--highlight-color);
	color:var(--bgminus-color);;
	font-weight: 600;
	border-radius: var(--border-radius);
	padding: 0.25em 1em;
}
.sumBodyBasic
{
	padding:0.5em 1em;
}

.sumNoBasic
{
	font-size: 1.3em;
	margin: 0.5em 0;
}

.sumNo{
	font-size: 4.5em;
	margin: 0.5em 0;
}

.sumDivBasic
{
	text-transform: uppercase;
}

.sumDiv{
	width:20%;
	padding: 20px;
	text-transform: uppercase;
	text-align: center;
}

#fontList
{
	width: 24%;
	max-height: 37.5%;
	position: fixed;
	bottom: 2%;
	left: 0.17em;
	margin: 1em;
	padding: 0.5em 1em 2em 1em;
	background-color: var(--bgminus-color);;
	z-index: 900;
	overflow: hidden;
	border-radius: var(--border-radius);
	overflow-y: scroll;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

#fontList ul
{
	list-style-type: none;
	margin: 0;
	padding: 0;
	color: var(--bgnegative-color);
}

.fontListLi
{
	margin: 0.3em 0;
	display: flex;
}

.fontListSpan
{
	margin-left: 0.3em;
	padding: 0.6em;
	width: 80%;
}

.activeFontSpan
{
	background-color: var(--highlight-color);
	border-radius: var(--border-radius);
	color:var(--bgminus-color);
	border: var(--bgminus-color) 0.17em solid;
}

#container
{
	margin-top: 6.5vh;
	width: 72%;
	float:right;
}

#controls
{
	margin-top: 60px;
	padding: 30px;
	width: 20%;
	height: 100%;

	display: inline;
	position: fixed;
	border-left: solid var(--highlight-color) 3px;
}

#header
{
	height: 3.4vw;
	width: 100%;
	position: fixed;
	background-color: var(--highlight-color);
	z-index: 9999;

	display: flex;
}

.headerTable
{
	flex: 1 0 45%;
	justify-content: space-between;
	padding: 0.5em 0.2em;

	color:var(--bg-color);
}

.headerInfoText
{
	text-align: right;
	padding-right: 20px;
	font-size: 0.9em;
	margin: 0 0 0.7em 0;
	align-self: flex-end;
}

.headerDeleteButton
{
	background-color: var(--error-color);
	border: var(--error-color) 0.17em solid;
	color: var(--bgminus-color);
	border-radius: var(--border-radius);
	padding: 0.3em 0.4em 0.2em 0.4em;
	font-size: 1em;
	text-align: center;
}

/* "KEPT UNTIL ..." under the delete button: analyses without an account (retention.py) */
.headerRetention
{
	display: block;
	margin-top: 0.5em;
	font-size: 0.8em;
}

.headerRetention a { text-decoration: underline; }

.headerLogIn
{
	color: var(--bg-color);
	font-size: 1.5em;
	text-align: right;
	padding-right: 1em;
}

/* .bugLink a, a:link, a:visited
{
	color:var(--bg-color);
	text-decoration: none;
} */

.mainButtonsBasic
{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	top: 4.4em;
	position: relative;
	z-index: 9991;
}
.mainButtonBasic
{
	width: calc(25% - 1.2em);
	height: calc(50vh - 4.96em);
	flex: 23%;
	margin: 0.4em 1.2em 0.8em 0;
	padding: 1.1em;
	border-radius: var(--border-radius);
	color: var(--bgminus-color);
	background-color: var(--highlight-color);
    border: var(--highlight-color) 0px solid;
	font-weight: 700;
	text-align: center;
	align-content: end; 
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.mainButtonBasic:hover
{
    border-radius: var(--border-radius-plus);
    border: var(--bg-color) 0.7em solid;
	cursor: pointer;
}
.mainButtonBasicThumb
{
	height: 90%;
  	align-content: center;
	padding-bottom: 10px;
}

h1
{
	font-size: 1.5em;
	font-weight: 400;
	margin: 0.3em 0 0 0.6em;
    line-height: 1;

	color:var(--bg-color);
}

h2
{
	white-space: nowrap;
	padding: 0.2em 0 0 0;
}

h3
{
	font-size: 1.5em;
}


h4
{
	font-size: 1.33em;
}



.analysisNameBasic
{
	position: fixed;
	background-color: var(--bg-color);
	width: 72%;
	/* padding-right: 20px; */
	z-index: 9990;
	top: 3.2em;
}


span.renegadeHeader
{
	font-size: 0.7em;
	margin-left: 1em;
}

/* Upload page header: download link for the free Glyphs plugin, with a
   brick icon (semi-transparent fill, solid outline, in the link colour) */
a.pluginDownloadLink
{
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.headerPluginLinks
{
	display: inline-flex;
	gap: 1.6em;
}
.pluginDownloadIcon
{
	width: 1.7em;
	height: 1.275em;
	flex: none;
	overflow: visible;
}
.pluginDownloadIcon rect
{
	fill: currentColor;
	fill-opacity: 0.3;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}
a.pluginDownloadLink:hover .pluginDownloadIcon rect { fill-opacity: 0.6; }

.sectionWorkshop
{
	display: block;
	margin: calc(-75px + 10vw) 1vw 0 0;
	
	background-color: var(--bgminus-color);;
	border-radius: 0 0 var(--border-radius) var(--border-radius);

	padding: 1vh 0 2vh 1vw
}

.sectionBasic
{
	display: block;
	margin: var(--sectionBasicMargin);
	
	background-color: var(--bgminus-color);;
	border-radius: 0 0 var(--border-radius) var(--border-radius);

	padding: 1vh 0 2vh 1vw
}

.sectionBasicFlex
{
	display: flex;
	margin: var(--sectionBasicFlexMargin);
	
	background-color: var(--bgminus-color);;
	border-radius: 0 0 var(--border-radius) var(--border-radius);

	padding: 1vh 0 2vh 1vw;
}

.sectionFamilyConnection
{
	border-radius:none;
}

.sectionFamily2Row
{
	margin-top: 0vw;
	padding: 2vw 1vw 1vw 1vw;
}

.sectionFamily
{
	display: block;
	margin: 0px 5px 20px 0px;
	padding: 10px;
	
	background-color: var(--bgminus-color);;
	border-radius: 0 0 20px 20px;
}

.section
{
	display: flex;
	margin: 0 0.2em 1em 0;
	padding: 0.5em;
	
	background-color: var(--bgminus-color);;
	border-radius: 0 0 20px 20px;
}

.sectionTitle
{
	padding: 0.33em;
	margin: 1em 0.33em 0 0;

	color: var(--bg-color);
	background-color: var(--highlight-color);
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;

}
.sectionTitleStats
{
	text-align: right;
	margin: 0px -0.31em 0 auto;
	padding: 0px;
}

.sectionTitleStatsBasic
{
	position:relative;
	top:-25px;
	right: -30px;
	height: 0px;
	text-align: right;
	color: var(--bgnegative-color);;
	z-index: 9990;
}
.sectionTitleStatsRound
{
	border-radius: var(--border-radius);
}
.sectionTitleWarnings
{
	background-color: var(--warning-color);
	padding: 0.31em;
    color: var(--bgnegative-color);
}

.sectionTitleErrors
{
	background-color: var(--error-color);
	padding: 0.31em;
    color: var(--bgnegative-color);
}

.sectionTitle p
{
	margin: 0px;
}

.sectionSubheaderSmall
{
	display: block;
	text-align: center;
	width: 100%;
	margin: 1em 1em 0.5em 0;	

	font-size: 1em;
	font-weight: 700;
	color:var(--highlight-color);
}

.sectionSubheader
{
	text-align: center;
	margin: 1em auto;	
	padding: 0 2em;

	font-size: 3em;
	font-weight: 700;
	color:var(--highlight-color);
}

.fontTableNotification
{
	font-size: 0.7em;
	border-radius: var(--border-radius);
	text-decoration: none;
	position: relative;
	top: -0.5em;
	right: -0.5em;
}

.fontTabs
{
	margin-right: 5px;
	width: calc(100% - 5px);
	flex-direction: row;
	align-content: stretch;
}

.hMenu
{
	display: flex;
	flex-wrap: wrap;
	width: calc(70% + 0.5em);
	background-color: var(--bg-color);
	position: fixed;
	top: 7.8em;
	z-index: 9999;
	padding-right: 1.1em;
}
.hMenuButton
{
	display: flex;
	flex-direction: column;
	font-size: 0.7vw;
	border-radius: var(--border-radius);
	padding: 0.7vw 1vw;
	margin: 0 0 0 0.5em;
	background-color: var(--bg-color);
	text-align: center;
	border: var(--highlight-color) 0.2em solid;
	flex: 1;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

.hMenuButtonDots
{
	border-radius: var(--border-radius);
	padding: 0.2vw 0.59vw 0 0.59vw;
	background-color: var(--bg-color);
	border: var(--highlight-color) 0.14em solid;
	align-content: center;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

.hMenuButtonHighlight, .hMenuButton:hover, .hMenuButtonDots:hover, .hMenuButtonDots:hover rect
{
	background-color: var(--highlight-color);
	color:var(--bg-color);
	cursor:pointer;
	fill: var(--bg-color);
}

.menuNotificationsBasic
{
	position: relative;
	top: -1.6em;
	height: 0px;
	color: var(--bg-color);
}

.fontPreviewBasicWrapper
{
	margin: 5vw 1vw 5vw 1vw;
}

.fontPreviewBasic{
	font-size: 6vw;
}

.fontPreviewBasicAnimationBegin
{
	width: 0;
	overflow: hidden;
}

@keyframes typing {
	from { width: 0% }
	to { width: 100% }
}

.fontPreviewBasicAnimation
{
	animation: typing steps(60, end) 2s forwards;
	overflow: hidden;
}

.fontPreviewFamilyBasic{
	font-size: 4vw;
}

.fontPreviewBasicNotes{
    font-size: 1em;
    padding: 0 0 0 5px;
}


.fontTab
{
	height: 100%;
	background-color: var(--bgminus-color);
	border-radius: 0 0 var(--border-radius) var(--border-radius);
	margin: 0 0px 20px 0;
}

.fontTables
{
	min-width: 10%;
	padding: 0.5em 1.5em 0 0;
	/* text-transform: uppercase; */

	font-size: 0.8em;
}

.fontTablesList
{
	margin: 0;
	padding: 0.7em 0 0 0;
	font-size: 1.2em;
	list-style-type: none;
	cursor: pointer;
}

.fontTablesList li
{
	margin: 0 0 0.7em 0.7em;
}

.fontTablesFlex
{
	display: flex;
	width: 100%;
	padding: 0.5em 0 0 0;
	flex-wrap: wrap;
	align-items: start;
	margin-bottom: 3em;
}

.fontTablesFlex table
{
	width: 100%;
}

.fontTablesColumn
{
	width: 58%;
	display: flex;
	padding: 0 0 0 1em;
	flex-wrap: wrap;
}

.fontTablesColumn:nth-of-type(even)
{
	width: 38%;
}

.fontTablesDiv, .familyFontTablesDiv
{
	font-size: 1em;
	padding: 0.5em 0;

	border-bottom: var(--bg-color-line) 1px solid;
}

.fontTablesDiv p
{
	margin: 0;
}

.fontTablesDivBasic
{
	font-size: 1em;
	width: 40%;
	padding: 0.5em 0;

	border-bottom: var(--bg-color-line) 1px solid;
}

.fontTablesDivBasic p{
	padding: 0.25em 0 0.25em 0;
	margin: 0;
}

.fontTablesDivBasic:nth-child(2n+4)
{
	width: 60%;
	flex-grow: 10;
	color:var(--bgnegative-color);
}

.fontTablesDivWorkshop
{
	display: flex;
	flex-wrap: wrap;
}

.fontTablesDivWorkshop:nth-child(n+2)
{
	padding: 3em 0 0 0;
}

.fontTablesDivMetric
{
	width: 60%;
}
.fontTablesDivMetric:nth-child(even)
{
	width: 40%;
}

.fontTablesDivHeader
{
	font-weight: 700;
	font-size: 0.8em;
	padding: 0 0 1em 0;
	color:var(--highlight-color);
	text-align: left;
}

.fontTableUl
{
	list-style: none;
	padding: 0;
	margin: 0;
}

.fontTableUl li
{
	padding: 0.25em 0;
	border-bottom: var(--bg-color-line) 1px solid;
}

.fontTableUl li:last-child
{
	padding: 0.25em 0;
	border: 0;
}

.fontTablesSubtable
{
	margin-bottom: 3em;
}

.fontTablesSubtable td
{
	padding: 0.75em 0;
	border-bottom: var(--bg-color-line) 1px solid;
}

.metricsTableHeader
{
	min-width: 4vw;
}

.featureTableHeader
{
	min-width: 12vw;
}

.fontTablesTableNameWrapper
{
	width: 100%;
	display: flex;
	margin-bottom: 1em;
}

.fontTablesTableNote
{
	font-size: 0.8em;
	color: var(--bgplus-color);
	width: 60%;
	text-align: right;
	padding-top: 1.5em;
}

.hmtxMetricFlex
{
	display: flex;
	width: 75%;
	flex-wrap: wrap;
}


.gvarGlyphBlock
{
	display: flex;
	font-size: 0.8em;
	flex-wrap: wrap;
	margin-right: 2em;
}
.gvarGlyphControls
{
	display: flex;
	padding: 0.5em 0;
}

.gvarGlyphSVGContainer
{
	width: 70%;
	justify-content: baseline;
}

.gvarVariationRadio
{
	margin-right: 1em;
}

.familyFontTablesTableWrapper
{
	overflow: auto;
}

.familyFontTablesTable
{
	padding: 0.5em 0 0 0;
	white-space: nowrap;
	margin: 0;
	border: none;
	text-wrap: wrap;
	text-align: left;
}

.familyFontTablesTable tr th
{
	white-space: nowrap;
	min-width: 20%;
	padding: 0 0.5em;
}

.familyFontTablesTable tr td
{
	white-space: nowrap;
	min-width: 20%;
    text-wrap: wrap;
	border-left: var(--bg-color) 1px solid;
	padding: 0 0.5em;
}


.familyFontTablesTable thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	background-color:  var(--bgminus-color);
}

.familyFontTablesTable thead th {

	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--bgminus-color);
}


.familyFontTablesFirstColumn
{
	width: 12%;
	position:sticky;
	left: 0;
	background-color:  var(--bgminus-color);
}

.familyFontTablesHeaderFont
{
	min-width: 20%;
	padding: 0 0.5em;
}

.familyFontTablesDivHeader
{
	font-size: 0.8em;
	padding: 0 0 10px 0;
	color:var(--highlight-color);
	position: sticky;
}

.familyFontTablesGeneralNotes
{
	font-size: 0.8em;
}


/* CHARSET */
.flexWrap
{
	flex-wrap: wrap;
}

.charsetContainer
{
	flex: 0 1 33.333%;  /* fixed columns: a card never grows over the row (listIssue cards subtract their margin) */
	text-align: center;
}

.charsetContainer h4
{
	margin-bottom: 5px;
}

.charsetFulfilment
{
	cursor: pointer;
}

.charsetFulfilment:hover
{
	color: var(--highlight-color);
}

.chartCanvas
{
	margin: 30px auto;
}

.charsetPercent
{
	font-size: 2em;
	font-weight: 700;
	margin: 10px 0;
}

.missingDivHeader
{
	font-size: 1.2em;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--bgminus-color);;
	background-color: var(--highlight-color);
	text-transform: uppercase;
	text-align: center;
	padding: 5px;
}

.missingWrapper
{	
	position: absolute;
	width: 40%;

	overflow:auto;
	z-index: 9999;

	display: none;
	font-size: 1em;
	color: var(--bgplus-color);
	background-color: var(--bg-color);

	text-transform: uppercase;
	text-align: left;
	font-size: 1em;
	border-radius: var(--border-radius);
}

.missingContent
{
	padding: 30px;
}

.missingUnicode
{
	color: var(--bgnegative-color);
}

.copyTextFlex
{
	display: flex;
}

.copyText
{
	color: var(--highlight-color);
	margin: 20px 20px 0 0;
	cursor: pointer;
	display: block;
	text-align: right;
	border: 2px var(--highlight-color) solid;
	border-radius: 0.4em;
	padding: 0.4em 0.6em;
}

span.copyText:hover
{
	color: var(--highlight-color);
}

.glyphsetUl
{
	column-count: 3;
	column-gap: 0;
}

.glyphsetLi
{
	display: inline-flex;
	font-size: 0.8em;
	border-bottom: 1px solid var(--bg-color-line);
	flex-wrap: wrap;
}

.glyphsetError
{
	width: 100%;
	margin-bottom: 0.5em;
}

.glyphsetName
{
	width: 10vw;
	margin-right: 1vw;
	word-wrap: break-word;
}

.glyphsetId
{
	width: 2vw;
	margin-right: 1vw;
	text-align: right;
}

.glyphsetUni
{
	width: 4vw;
	margin-right: 1vw;
	text-align: right;
}

.glyphsetNote
{
	padding: 0 0.5em;
}

.hidden
{
	display: none;
}

.hiddenUnicodes
{
	position: absolute;
	top: -1222px;
	left: -1222px;
	overflow: hidden;

}

.languageContainer
{
	flex: 0 1 50%;  /* fixed columns, as .charsetContainer */
	text-align: left;
	height: 100px;

	display: flex;
	flex-shrink: 1;
}

.languageLine
{
	width: auto;   /* as wide as the bar's canvas, whose empty right edge is the gap before the button */
}


.languageLine p
{
	margin: 0;
}

.languageText
{
	margin: 0 1.2em;
	padding: 1em 0;
	float:left;
	width: 9vw;
}

.languagePercent
{
	font-size: 1.3em;
	font-weight: 700;
	margin: 0;
}

.languageMissing
{
	font-size: 0.8em;
	margin-left: 1.2em;	/* gap between the bar's right end and the button */
	max-width: 4.5vw;
	padding: 1.6em 0;
	position: relative;
	top: -5px;
	margin-right: 0;
}

.languageMissingNumber{
	font-size: 0.8em;
}

.languageCanvas
{
	margin: 0.8em 0 0 0;
	float:left;
}

.languageCount
{
	font-size: 4vw;
	text-align: center;
	margin-bottom: 5vh;
}

.languageList
{
	column-count: 6;
}

/* glyphs */
#glyphs
{
	/* background-color: var(--bg-color); */
	justify-content: start;
	flex-wrap: wrap;
	padding: 10px;
}

#glyphsFamily
{
	max-height: 81vh;
	overflow-y: scroll;
}

.familyGlyphsContainer
{
	display: flex;
	flex-wrap: wrap;
}

.glyphContainer
{
	width: calc(var(--glyph-size)* 1.25);
	min-height: calc(var(--glyph-size)* 1.25);

	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	margin: 0 7px 14px 7px;
	padding: 5px;
}

.familyGlyphContainer
{
	/* width: 4vw;
	min-height: 6vw; */
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	margin: 0 7px 14px 7px;
	padding: 5px;
}

.glyphsSizeSlider
{
	width: 85%;
}

.glyphSVG
{
	width: calc(var(--glyph-size) * 1.25);
    height: calc(var(--glyph-size) * 1.25);

	transform: scaleY(-1);
}

.glyphSVG path
{
	fill:var(--bgnegative-color)
}

.glyphNameText
{
	width: 100%;
	font-size: 0.8em;
	text-align: center;
	padding-bottom: 0.5em;
	word-wrap: break-word;
}

.familyGlyphNameText
{
	width: 100%;
	font-size: 0.8em;
	padding: 0 0 0.5em 0.5em;
	word-wrap: break-word;
}

.familyGlyphNameInfo
{
	align-content: center;
	font-size: 0.8em;
	width: 20%;
}

.glyphNotificationHeader
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	height: 0px;
	overflow: visible;
;}

.glyphNotificationWrapper
{
	margin: auto 0.3em;
}

.glyphNotification, .fontNotification
{
	min-width: 1.7vw;
	height: 1.3vw;
	border-radius: var(--border-radius);
	
	padding: 0.5em 0.2em 0.2em 0.1em;

	font-size: 0.8em;
	color:var(--bgminus-color);
	text-align: center;
}

.glyphNotificationSmaller
{
	min-width: 1vw;
	height: 0.7vw;
	padding: 0.2em 0.1em 0.5em 0.1em;
}

.glyphNotificationErrorActive
{
	background-color: var(--error-color);
	border: var(--error-color) 0.17em solid;
	color:var(--bgminus-color);
}

.glyphNotificationWarningActive
{
	border: var(--warning-color) 0.17em solid;
	background-color: var(--warning-color);
	color:var(--bg-color);
}

.glyphNotificationErrorInactive
{
	color:var(--error-color);
	background-color: var(--bgminus-color);;
	border: var(--error-color) 0.17em solid;
}

.glyphNotificationWarningInactive
{
	background-color: var(--bgminus-color);;
	color: var(--warning-color);
	border: var(--warning-color) 0.17em solid;
}

.sectionFilters
{
	display: flex;
	flex-wrap: wrap;
	padding: 0.4em 0 2em 0;
	width: 100%;
	justify-content: center;
}

.sectionFilters.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.sectionFilterDiv
{
	color: var(--bgplus-color);
	background-color: var(--bgminus-color);;
	border-radius: var(--border-radius);
	padding: 0.3em 0.6em 0.4em 0.6em;
	margin: 0.3em 0.6em 0.3em 0;
	font-size: 0.8em;
	height: 1.1em;
}

.sectionFilterSelected
{
	background-color: var(--highlight-color);
	color: var(--bgminus-color);;
}

.sectionFilterWarningSelected
{
	background-color: var(--warning-color);
	color: var(--bgminus-color);;
}

.sectionFilterErrorSelected
{
	background-color: var(--error-color);
	color: var(--bgminus-color);;
}

.glyphsSizeSlider {
	appearance: none;
	-webkit-appearance: none;
  	height: 0.3em;
  	outline: none;
  	vertical-align: middle;
	margin: 1.2em 0.2em 1.2em 0.2em;
    background-color: var(--bgnegative-color);
}


.glyphsSizeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.5em;
	height: 1.5em;
	border-radius: 60%;
	cursor: pointer;
	background-color: var(--highlight-color);		
}


.glyphsSizeSlider::-moz-range-thumb {
	width: 1.5em;
	height: 1.5em;
	border-radius: 60%;
	cursor: pointer;
	background-color: var(--highlight-color);	
	border: none;
}

.glyphsSizeSlide::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    color: var(--highlight-color);
  }

  .glyphsSizeSlider::-moz-range-track {  
    background-color: var(--bgnegative-color);
  }

.glyphDetail
{
	position: fixed;
	top: 0px;
	left: 0px;
	width: 40em;
	min-height: 20em;
	max-height: 40em;
	display: none;

	overflow:auto;
	z-index: 19998;
	padding: 0 0 30px 0;

	font-size: 1em;
	color: var(--bgplus-color);
	background-color: var(--bg-color);

	border-radius: var(--border-radius);
	text-transform: uppercase;
	text-align: left;
	filter: drop-shadow(0rem 0rem 0.6rem #20008811);
}

.glyphDetail svg
{
	transform: scaleY(-1);
	width: 40%;
	padding: 0 20px;
}

.glyphDetailText
{
	padding-right: 30px;
	width: 60%;
}

.glyphDetail p
{
	padding: 3px 0;
	margin: 0;
}

.glyphDetail path
{
	fill:var(--bgnegative-color)
}

.glyphDetailFlex
{
	display: flex;
	/* max-height: 50vh; */
	overflow-y: auto;
}

.glyphDetailHeader
{
	width: 100%;
	text-align: center;
	margin-bottom: 20px;
}

.glyphDetailName
{
	font-size: 1.5em;
	font-weight: 700;
	color: var(--bgminus-color);;
	background-color: var(--highlight-color);
	
}

.glyphDetailInfoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3em 1.2em; /* row gap / column gap */
	margin-bottom: 1em;
}

.glyphDetailInfoGrid p {
    margin: 0;
}

.glyphDetailEWWrap
{
	max-height: var(--EWWrapHeight);
	overflow-y: auto;
}

#metrics
{
	flex-direction: column;
}

.vMetricsValues
{
	display: flex;
	width: 100%;
}
.vMetricsValuesColumn
{
	width: 33%
}

.vMetrics
{
	display: flex;
	width: 100%;
	align-items: center;
}

.vMetricButton
{
	display: inline;
}

.vMetricBigButton
{
	width: 50%;
}

.vMetricBigButton button
{
	font-size: 7em;
}

.vMetricMediumButton
{
	width: 30%;
}

.vMetricMediumButton button
{
	font-size: 4em;
}

.vMetricSmallButton
{
	width: 20%;
}

.vMetricSmallButton button
{
	font-size: 1em;
}

/* Vertical metrics strategies (Engineer page, signed in: results/font/vertical_preview.html)
   Two columns: the "calculator" (controls, values, folded details) | Rag, button, text.
   Headers use .fontTablesDivHeader; every hint (.vmHint) is 0.8em. */
.vmPreview
{
	width: 100%;
	margin-bottom: 3em;
}
.vmHint
{
	font-size: 0.8em;
	line-height: 1.45;
	color: var(--bgplus-color);
}
p.fontTablesDivHeader.vmHeader,
span.fontTablesDivHeader.vmHeader
{
	display: block;
	margin: 0;
	padding: 0 0 0.75em 0;
}
.vmControl span.fontTablesDivHeader.vmHeader
{
	padding-bottom: 1.25em;
}
.vmCol.vmCalc   /* beats .vmCol's min-width: 0 */
{
	box-sizing: border-box;
	position: relative;
	min-width: 27em;
	padding: 1.5em 1.5em 1.25em;
	border: 1.5px solid var(--highlight-color);
	border-radius: 1em;
}
.vmControls
{
	display: flex;
	flex-direction: column;
	gap: 1.25em;
	padding-bottom: 1.5em;
	margin-bottom: 1.5em;
	border-bottom: 1px solid var(--bg-color-line);
}
.vmControl
{
	display: flex;
	flex-direction: column;
}
.vmControl select,
.vmControl input
{
	font: inherit;
	padding: 0.35em 0.5em;
	border: 1px solid var(--bgplus-color);
	border-radius: 0.4em;
	background-color: var(--bgminus-color);
	color: var(--bgnegative-color);
}
.vmControl select
{
	width: 100%;
}
.vmLineHeight
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}
.vmLineHeight input
{
	width: 5em;
}
.vmLineHeight span,
.vmLineHeight output
{
	white-space: nowrap;
}
.vmLineHeight output
{
	font-variant-numeric: tabular-nums;
}
.vmControl select:focus-visible,
.vmControl input:focus-visible
{
	outline: 2px solid var(--highlight-color);
	outline-offset: 1px;
}
.vmNote
{
	margin: 1em 0 0;
}
.vmNote:empty
{
	display: none;
}
.vmError
{
	margin: 0 0 1.5em;
	color: var(--error-color);
}
.vmCols
{
	display: grid;
	grid-template-columns: fit-content(27em) minmax(0, 1fr);   /* 27em; wider only if the table needs it */
	gap: 2.5em 2em;
	align-items: start;
}
.vmCol
{
	min-width: 0;
}
/* rows of the example column: Rag, then (inside [data-vm-sample]) button and text */
.vmExampleCol .vmRow + .vmRow,
[data-vm-sample] .vmRow:first-child
{
	margin-top: 1.25em;
	padding-top: 2em;
	border-top: 1px solid var(--bg-color-line);
}
.vmTable
{
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.vmTable th,
.vmTable td
{
	padding: 0.4em 0.6em;
	text-align: right;
	border-bottom: 1px solid var(--bg-color-line);
	white-space: nowrap;
}
.vmTable th[scope="row"]
{
	text-align: left;
	font-weight: normal;
	padding-left: 0;
}
.vmTable thead th.fontTablesDivHeader
{
	padding: 0 0.6em 0.75em;
	border-bottom: none;
	text-align: right;
}
.vmTable thead th.fontTablesDivHeader:first-child
{
	padding-left: 0;
	text-align: left;
}
.vmTable td:last-child
{
	padding-right: 0;
}
/* "The font as it is" has nothing to compare: no vs. font column, so FONT ends at the right edge */
.vmTable.vmNoCompare th:last-child,
.vmTable.vmNoCompare td:last-child
{
	display: none;
}
.vmTable.vmNoCompare td:nth-child(2),
.vmTable.vmNoCompare thead th:nth-child(2)
{
	padding-right: 0;
}
/* "Editable", top right of the calculator, level with STRATEGY */
.vmEditToggle
{
	position: absolute;
	top: 1.875em;      /* the calculator's 1.5em padding, in this 0.8em text */
	right: 1.875em;
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.8em;
	color: var(--highlight-color);
	cursor: pointer;
}
.vmEditToggle input,
.vmTable input[type="checkbox"]
{
	margin: 0;
	accent-color: var(--highlight-color);
}
.vmTable.vmEditing td
{
	padding-top: 0.2em;
	padding-bottom: 0.2em;
}
.vmTable input[type="number"]
{
	width: 5em;
	padding: 0.15em 0.35em;
	border: 1px solid var(--highlight-color);
	border-radius: 0.4em;
	background-color: var(--bgminus-color);
	color: var(--bgnegative-color);
	font: inherit;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.vmTable input:focus-visible
{
	outline: 2px solid var(--highlight-color);
	outline-offset: 1px;
}
.vmTable tr.vmUsed th[scope="row"]
{
	font-weight: bold;
}
.vmDiff
{
	color: var(--bgplus-color);
}
.vmDiff.vmChanged
{
	color: var(--highlight-color);
}
/* a custom formula test would report this value (vertical_metrics.js) */
/* an issue of a formula test: the results page's E / W message, kept on one line in the cell */
.vmTable p.msg.vmIssueMsg
{
	margin: 0;
	text-align: right;
	padding: 0;
	text-indent: 0;
	font-size: 1em;
	white-space: nowrap;
}
.vmTable p.msg.vmIssueMsg::before { font-size: 0.7em; margin-right: 0.5em; }
.vmTable p.msg.error.vmIssueMsg { color: var(--error-text-color); }
.vmTable p.msg.warning.vmIssueMsg { color: var(--warning-text-color); }
.vmSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vmSummary,
.vmVars
{
	display: grid;
	grid-template-columns: auto auto;
	gap: 0.4em 1.5em;
	margin: 1.5em 0 0;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}
.vmSummary dt,
.vmVars dt
{
	color: var(--bgplus-color);
}
.vmSummary dd,
.vmVars dd
{
	margin: 0;
	text-align: right;
}
/* "About the strategy and the font values": the toggle at the foot of the
   calculator, and the panel it opens in the examples' cell, over them */
.vmFoot
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-top: 1.25em;
}
.vmCopyGlyphs
{
	padding: 0.4em 0.9em;
	border: 1.5px solid var(--highlight-color);
	border-radius: 0.5em;
	background: none;
	font: inherit;
	font-size: 0.8em;
	color: var(--highlight-color);
	text-transform: uppercase;
	cursor: pointer;
}
.vmMoreToggle
{
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin-left: auto;
	padding: 0.5em 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.8em;
	color: var(--highlight-color);
	text-align: left;
	cursor: pointer;
}
.vmArrow,
.vmMoreClose svg
{
	flex: none;
	width: 1.2em;
	height: 1.2em;
	transition: transform 0.15s ease-out;
}
.vmMoreToggle[aria-expanded="true"] .vmArrow
{
	transform: rotate(180deg);
}
.vmMoreToggle:hover .vmArrow
{
	transform: translateX(2px);
}
.vmMoreToggle[aria-expanded="true"]:hover .vmArrow
{
	transform: rotate(180deg) translateX(2px);
}
.vmMore:focus
{
	outline: none;   /* focused on opening; its border already marks it */
}
.vmMoreToggle:focus-visible,
.vmCopyGlyphs:focus-visible,
.vmMoreClose:focus-visible
{
	outline: 2px solid var(--highlight-color);
	outline-offset: 2px;
}
.vmCalc { grid-column: 1; grid-row: 1; }
.vmExampleCol { grid-column: 2; grid-row: 1; }
.vmMore
{
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
	z-index: 2;
	padding: 1.5em 1.5em 1.25em;
	border: 1.5px solid var(--highlight-color);
	border-radius: 1em;
	background-color: var(--bgminus-color);   /* the card's own colour, so it covers the examples */
}
.vmMore[hidden]
{
	display: none;
}
/* the examples under it: hidden too, so nothing shows at its rounded corners */
.vmMore:not([hidden]) ~ .vmExampleCol
{
	visibility: hidden;
}
.vmMoreHead
{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1em;
}
.vmMoreClose
{
	display: flex;
	margin: -0.35em -0.35em 0 0;
	padding: 0.35em;
	border: 0;
	border-radius: 0.4em;
	background: none;
	color: var(--highlight-color);
	cursor: pointer;
}
.vmMore .vmNote
{
	max-width: 70ch;
	margin: 0 0 2em;
}
.vmMoreCols
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
	gap: 2em 4em;
	max-width: 48em;
}
.vmMoreCols .vmSummary,
.vmMoreCols .vmVars
{
	margin-top: 0;
}
.vmRag
{
	display: block;
	max-width: 100%;
	height: auto;
	overflow: visible;
}
.vmRagText
{
	fill: var(--bgnegative-color);
	font-variation-settings: var(--fontVariationSettings);
}
.vmMark
{
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
}
/* all grey, told apart by the dash: typo dashed, hhea dotted, baseline solid */
.vmTypo { stroke: var(--bgplus-color); stroke-dasharray: 6 4; }
.vmHhea { stroke: var(--bgplus-color); stroke-dasharray: 1.5 3; stroke-width: 1.5px; }
.vmBase { stroke: var(--bgplus-color); }
.vmLabel
{
	fill: var(--bgplus-color);
	stroke: var(--bg-color);       /* a halo, so a line passing through doesn't hide it */
	stroke-linejoin: round;
	paint-order: stroke;
	font-family: inherit;
	font-variant-numeric: tabular-nums;
}
.vmLegend
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.5em;
	margin: 0.75em 0 0;
}
.vmKey::before
{
	content: "";
	display: inline-block;
	width: 1.6em;
	margin-right: 0.4em;
	vertical-align: middle;
	border-top: 1px solid;
}
.vmKeyTypo::before { border-top: 1px dashed var(--bgplus-color); }
.vmKeyHhea::before { border-top: 1.5px dotted var(--bgplus-color); }
.vmKeyBase::before { border-top: 1px solid var(--bgplus-color); }
.vmSampleButtons
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 1.5em;
}
.vmSampleButtons button
{
	line-height: normal;
	max-width: 100%;
}
.vmSampleButtons .vmButtonS { font-size: 1em; }
.vmSampleButtons .vmButtonM { font-size: 1.6em; }
.vmSampleButtons .vmButtonL { font-size: 2.6em; }
.vmSampleText
{
	max-width: 32em;
	margin: 0;
	font-size: 1.5em;
	line-height: normal;
	overflow-wrap: anywhere;
}
.vmSampleHint
{
	margin: 1.5em 0 0;
}
@media (max-width: 1100px)
{
	.vmCols
	{
		grid-template-columns: minmax(0, 1fr);
	}
	.vmExampleCol,
	.vmMore
	{
		grid-column: 1;
		grid-row: 2;
	}
	.vmCalc
	{
		max-width: 28em;
	}
}
@media (max-width: 640px)
{
	.vmCol.vmCalc
	{
		min-width: 0;
		padding: 1.25em 1em 1em;
	}
	.vmTable
	{
		table-layout: fixed;
		font-size: 0.85em;
	}
	.vmTable th,
	.vmTable td
	{
		padding: 0.3em 0.2em;
		white-space: normal;
	}
	.vmTable thead th.fontTablesDivHeader:first-child
	{
		width: 42%;
	}
	/* keep the Rag at a size its labels can be read at; it scrolls sideways */
	.vmRagScroll
	{
		overflow-x: auto;
		padding-bottom: 0.25em;
	}
	.vmRag
	{
		max-width: none;
	}
	.vmSampleButtons .vmButtonM { font-size: 1.4em; }
	.vmSampleButtons .vmButtonL { font-size: 2em; }
	.vmSampleText
	{
		font-size: 0.95em;
	}
}

.testString
{
	padding: 10px 0;
}

.textAreaSize
{
	margin-left: 1.5em;
}

.textAreaSize label
{
	margin-right: 1em;
}

/* drawn by hand: the native slider is white in dark Firefox and nearly invisible in dark Safari */
.textAreaSize input
{
	width: 8em;
	vertical-align: middle;
	-webkit-appearance: none;
	appearance: none;
	height: 0.3em;
	border-radius: 0.15em;
	background: var(--bgplus-color);
	cursor: pointer;
}
.textAreaSize input:focus { outline: none; }
.textAreaSize input:focus-visible { outline: 2px solid var(--highlight-color); outline-offset: 4px; }
.textAreaSize input::-webkit-slider-thumb
{
	-webkit-appearance: none;
	appearance: none;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	border: none;
	background: var(--highlight-color);
}
.textAreaSize input::-moz-range-thumb
{
	width: 1em;
	height: 1em;
	border-radius: 50%;
	border: none;
	background: var(--highlight-color);
}
.textAreaSize input::-moz-range-track { background: transparent; }

.textAreaSize output
{
	display: inline-block;
	min-width: 2em;
	text-align: right;
}

.textBox select
{
	background-color: var(--bg-color);
	color: var(--bgnegative-color);
}

.textArea
{
	width: 66vw;
	min-height: 59vh;
	padding: 0.5vw 1.1vw;
	font-size: 3em;

	background-color: var(--bg-color);
	border: var(--highlight-color) 1px;

	word-wrap: break-word;
	word-break: break-all;
	color: var(--bgnegative-color);
}

.hMetricsFlex
{
	display: flex;
	width: 100%;
	padding: 10px 0 0 0;
	flex-wrap: wrap;
}

.metricsContainer, .familyHMetricsContainer, .familyKerningHeaderContainer, .familyKerningContainer
{
	display: flex;
	width: 100%;
	flex-wrap: wrap;	
}


.hMetricsTableDiv, .overviewTableDiv
{
	font-size: 1em;
	width: 10%;
	padding: 10px 0;

	border-bottom: var(--bg-color-line) 1px solid;
}

.hMetricsTableDiv:nth-child(n+6)
{
	color:var(--bgnegative-color);
}

.hMetricsFamilyTableDiv
{
	font-size: 0.8em;
	width: 28%;
	padding: 10px 0;

	border-bottom: var(--bg-color-line) 1px solid;
	display: flex;
}


.hMetricsTableDivHeader
{
	width: 20%;
	word-wrap: break-word;
}

.hMetricsFamilyTableDivHeader
{
	margin-top:10px;
	width: 28%;
	word-wrap: break-word;
	font-size: 0.8em;
	color: var(--highlight-color);
}


.hMetricsFamilyTableDivName, .hMetricsFamilyTableDivHeaderName
{
	width: 16%;
}


.hMetricsTableDivNote
{
	width: 50%;
}

.hMetricsTableDiv p
{
	margin: 0;
}

.metricsForGlyph
{
	color: var(--bgnegative-color);
	border-left: 0.5px solid var(--bgplus-color);
	border-right: 0.5px solid var(--bgplus-color);
	width: 2.8vw;
	text-align: center;
}

.metricsForGlyph:nth-child(2n)
{
	color: var(--bgplus-color);
}

/* .hMetricsTableDiv:nth-of-type(3n-1)
{
	width: 20%;
	flex-grow: 10;
	text-align: center;
} 

.hMetricsTableDiv:nth-of-type(3n+1)
{
	background-color: #181818;
}
.hMetricsTableDiv:nth-of-type(3n+2)
{
	background-color: #181818;
}
.hMetricsTableDiv:nth-of-type(3n+3)
{
	background-color: #181818;
}*/
.filterWithInput 
{
	padding: 3px 10px 8px 10px;
}

.filterInput
{
	width: 50px;
	border: var(--bgplus-color) 1px solid;
  	background-color: transparent;
  	outline: none;
	color: var(--bgplus-color);
}

.filterInput:focus
{
	border: var(--bgminus-color) 1px solid;
	color: var(--bgminus-color);
}

.sectionFilterDiv:focus
{
	border: var(--bgminus-color) 1px solid;
	color: var(--bgminus-color);
}

.filterInputWide
{
	width: 100px;
}

#kerning
{
	flex-direction: column;
}

.kerningTableDiv
{
	font-size: 1em;
	width: 20%;
	padding: 10px 0;

	border-bottom: var(--bg-color-line) 1px solid;
}

.kerningTableDiv:nth-of-type(2n)
{
	width: 13%;
	text-align: center;
}

.kerningValueDiv
{
	display: none;
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	padding: 20px;
	margin-top:50px;
	font-size: 3em;
	filter: drop-shadow(0rem 0rem 0.6rem #20008822);
}

.kerningValueDivVisible
{
	display: block;
	position:fixed;
	top: 120px;
	right: 50px;
}

.kerningChar
{
	color:var(--highlight-color);
}

.kerningClassesWrapper
{
	width: 100%;
}

.searchKerningClassInputWrapper
{
	/* width: 100%;
	text-align: center; */
	display: flex;
	margin-bottom: 20px;
	align-items: center;
}

.searchKerningClassInput
{
	margin-left: 20px;
}
.searchKerningInputText
{
	width: 35%;
	text-align: right;
}

.searchKerningClassResults
{
	/* display: flex; */
	margin-left: 20px;
	width:30%;
}

.kerningClassText
{
	font-size: 1.5em;
	color:var(--highlight-color);
	/* margin: 0 10px; */
}



.kerningFamilyTableDivPair
{
	width: 35%;
}

.kerningFamilyTableDivValue
{
	width: 65%;
}

#otfeatures
{
	flex-direction: column;
}

.featuresMenu{
	padding: 10px 0;
	display: flex;
}

.featuresHeader
{
	width: 100%;
}

.featuresText
{
	display: flex;
	width: 100%;
}

/* Sidebar next to the OT text area: a header, then two columns of
   checkbox + tag rows with the same 1px row line as the result tables. */
.featuresList
{
	width: 17%;
	flex-shrink: 0;
	align-self: flex-start;
	margin-left: 1.5em;
}

.featuresListHeader
{
	margin: 0;
	padding: 0 0 0.75em 0;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--highlight-color);
}

.featuresListGrid
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1em;
}

.featuresList .featureRow
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6em;
	padding: 0.35em 0.25em 0.35em 0;
	border-bottom: 1px solid var(--bg-color-line);
	cursor: pointer;
}

.featuresList .featureRow input
{
	margin: 0;
	flex-shrink: 0;
}

.featuresList .featureRow span
{
	line-height: 1;
}

/* The feature whose text was picked in the dropdown: tells the user which box to check. */
.featuresList .featureRow.OTFeatureSuggested
{
	outline: 2px solid var(--highlight-color);
	outline-offset: -1px;
	border-radius: 0.3em;
	position: relative;
	left: -0.5rem;
	padding-left: 0.5rem;
}

.OTFeaturesTextArea
{
	width: 80%;
}



.overviewTableDiv p
{
	margin: 0;
}

.overviewTableDiv:nth-of-type(4n-2)
{
	width: 20%;
	flex-grow: 10;
	text-align: left;
}

.overviewTableDiv:nth-of-type(4n-1), .overviewTableDiv:nth-of-type(4n)
{
	width: 35%;
	flex-grow: 10;
	text-align: left;
}

.error
{
	
	font-size: 0.8em;
	color: var(--error-color);
}

.errorColor
{
	color: var(--error-color);
}

.warning
{
	
	font-size: 0.8em;
	color: var(--warning-color);
}

.warningColor
{
	
	color: var(--warning-color);
}

.info
{
	
	font-size: 0.8em;
}

.logHeader
{
	width: 72%;
	position: fixed;
	z-index: 9999;
	background-color: var(--bg-color);
	top: 3.2em;
}

.logheader h2
{
	margin-bottom: 0;
}

.logContent
{
	padding: 9vh 0
}

.logContent pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* ABOUT THE AUTHOR SECTION */
.about-section {
  padding: 4rem 1rem;
  color: var(--bgnegative-color);
  transition:1s;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.author-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: space-around;
  margin: 0 20rem;
}

.author-image img {
  width: 15vw;
  height: 30vh;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  object-fit: cover;
}

.author-bio h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.author-bio ul,
.project-info ul
{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-info li:before 
{
	content: '\2014 \0020';
}

.author-bio li,
.project-info li
{
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.project-info 
{
  margin-bottom: 2rem;
}

.project-info p
{
  margin-bottom: 0.5rem;
}

.project-info h3 
{
  margin-bottom: 1rem;
}

.project-wrapper
{
	padding: 3rem 10rem;
	display: flex;
	gap: 4rem;
	justify-content: space-around;
}


.black
{
	color: var(--bgnegative-color);
}

.white
{
	color: var(--bgnegative-color);
}

.blackBackground
{
	background-color: var(--bg-color);
	color: var(--bgnegative-color);
}

.pink	
{
	color: var(--error-color);
	text-decoration-color: var(--error-color);
}

.highlight
{
	color: var(--highlight-color);
}

.exception
{
	color: var(--highlight-color);
}

.yellow	
{
	color: var(--warning-color);
	text-decoration-color: var(--warning-color);
}

.grey
{
	color: var(--bgplus-color);
}

.bgcolor
{
	color: var(--bg-color);
}

.uppercase
{
	text-transform: uppercase;
}

.pointer
{
	cursor: pointer;
}

.underline
{
	text-decoration: underline;
}

.left
{
	text-align: left;
}

.right
{
	text-align: right;
}

.center
{
	text-align: center;
}

.width10
{
	width: 10%;
}

.width15
{
	width: 15%;
}

.width25
{
	width: 25%;
}
.width30
{
	width: 30%;
}
.width35
{
	width: 35%;
}
.width40
{
	width: 40%;
}
.width50
{
	width: 50%;
}
.width60
{
	width: 60%;
}
.width75
{
	width: 75%;
}
.width100
{
	width: 100%;
}

.bottomLine
{
	border-bottom: var(--bg-color-line) 1px solid;
}

.hoverUnderline:hover
{
	text-decoration: underline;
}

.noBorder
{
	border: 0;	
}


/* ============================================================
   Design tokens — matches the nav bar in the UI screenshot
   ============================================================ */
:root {
  --gx-border:       2.5px solid var(--highlightminus-color); /* subtle inner border          */
  --gx-height-row:   5vw;;      /* single-row height — same as nav buttons */
}

#gxPanelContainer
{
	margin: 0.5em 0;
	width: 100%;
}

/* ============================================================
   Panel — full width, solid violet, same height as nav bar
   ============================================================ */
#gxAxisPanel {
  /* background: var(--highlight-color); */
  border-radius: var(--border-radius);
  /* border: 2.5px solid var(--highlight-color); */
  /* height is controlled by min-height below */
  min-height: var(--vf-height-row);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0;
  /* padding: 0 12px; */
  /* no box-shadow — matches flat button style in image */
}

/* ============================================================
   Icon — same visual size / style as the dots-grid button
   in the nav bar (leftmost button in the image)
   ============================================================ */
.gxAxisPanelIcon {
  /* matches a nav button: fixed width, full panel height, centered */

  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5vw;
  min-width:  2.5vw;
  height:  2.5vw;
  border-radius: var(--border-radius);
  background: var(--highlight-color);
  margin-right: 0.3em;
  flex-shrink: 0;

  cursor:pointer;
}

.gxAxisPanelIcon svg {
  width: 20px;
  height: 20px;
  color: white;
  display: block;
}

/* ============================================================
   Controls wrapper
   ============================================================ */
.gxAxisPanelControls {
  display: flex;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  /* vertically pad so axes stack naturally when > 3 */
  padding: 10px 0;

  background: var(--highlight-color);
  border-radius: var(--border-radius);
  padding: 1vw;
}

/* ============================================================
   Single axis control
   ============================================================ */
.gxAxisControl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 12vw;
  max-width: 20vw;
  flex: 1;
}

.gxAxisControlHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.gxAxisControlLabel {
  color: var(--bgminus-color);
  font-size: 0.65vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.gxAxisControlValue {
  color: var(--bgminus-color);
  font-size: 0.65vw;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* ============================================================
   Slider track + fill
   ============================================================ */
.gxAxisControlSliderContainer {
  position: relative;
  height: 5px;
  background: var(--vf-track-bg, color-mix(in srgb, var(--bgminus-color) 35%, transparent));  /* --vf-track-bg is never set */
  border-radius: 3px;
  overflow: visible;
}

.gxAxisControlSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: transparent;
  outline: none;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
}

/* Thumb — Webkit */
.gxAxisControlSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1vw;
  height: 1vw;
  border-radius: 50%;
  background: var(--bg-color);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform 0.12s ease;
  position: relative;
  z-index: 2;
}
.gxAxisControlSlider::-webkit-slider-thumb:hover  { transform: scale(1.15); }
.gxAxisControlSlider::-webkit-slider-thumb:active { transform: scale(1.25); }

/* Thumb — Firefox */
.gxAxisControlSlider::-moz-range-thumb {
  width: 1vw;
  height: 1vw;
  border-radius: 50%;
  background: var(--bg-color);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  border: none;
  transition: transform 0.12s ease;
}
.gxAxisControlSlider::-moz-range-thumb:hover  { transform: scale(1.15); }
.gxAxisControlSlider::-moz-range-thumb:active { transform: scale(1.25); }


/* Min / max labels */
.gxAxisControlRange {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

.gxAxisControlRangeLabel {
  color: var(--bgplus-color);
  font-size: 0.5vw;
  letter-spacing: 0.2px;
}


.gvarNodesVisibilityMenu
{
	position: fixed;
	bottom: 1em;
	right: 1em;
	background: var(--bg-color);
	border-radius: var(--border-radius);
	padding: 0.75em;
	z-index: 1000;
	font-size: 0.8em;
}

.gvarNodesVisibilityMenuItem{
	margin-left: 0.75em;
}

.gxAxisPanelControls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-width: 20vw;
}

.gxAxisSliders {
  display: flex;
  flex-direction: row;   /* or column if you prefer stacked layout */
  flex-wrap: wrap;
  flex: 1;
  gap: 8px;
  align-items: center;
}

.gxInstanceSelector {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 140px;
  padding-left: 0.5em;
  border-left: 1px solid var(--border-color, #ddd);
  align-self: stretch;
  justify-content: end;
}

.gxInstanceSelect {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  background: var(--highlightminusminus-color);
  border-radius: var(--border-radius);
  font-size: 0.8em;
  border: 0;
}

.gxStyleGlyphGrid
{
	display: flex;
	flex-wrap: wrap;
}

.gxAxisPanelDisabled .gxAxisControlSlider {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}

.glyphPreview {
    display: none;
    position: relative;

    width: 100%;

    overflow: hidden;

    font-size: calc(var(--glyph-size) * 0.81);
    min-height: calc(var(--glyph-size) * 1.285);  /* 1.25 * 1.028 */

    line-height: 1;

    user-select: none;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    transform-origin: center center;
    container-type: size;

	padding-bottom: 0.05em;

	font-variation-settings: var(--fontVariationSettings);
}

.glyphPreview span {
    position: absolute;

    top: 57%;
    left: 50%;

    transform: translate(-50%, -50%);

    white-space: nowrap;

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    max-height: 100%;
}

.gxCheckingSwitch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0 1em;
	align-self: flex-end;
}

.gxCheckingSwitchWrap
{
	width: 16%;
	align-self: flex-end;
}

.gxCheckingSwitchLabel {
    font-size: 0.75em;
    user-select: none;
    cursor: pointer;
}

.gxCheckingSwitchToggle {
    position: relative;
    display: inline-block;
    width: 4em;
    height: 1.5em;
    cursor: pointer;
}

.gxCheckingSwitchToggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gxCheckingSwitchSlider {
    position: absolute;
    inset: 0;
    border-radius: 2em;
    background: var(--bgplus-color);
    transition: background 0.2s;
}

.gxCheckingSwitchSlider::before {
    content: '';
    position: absolute;
    width: 1.25em;
    height: 1.25em;
    left: 0.125em;
    top: 0.125em;
    border-radius: 50%;
    background: var(--bgminus-color);
    transition: transform 0.2s;
}

.GXFontsChange
{
	font-variation-settings: var(--fontVariationSettings);
}

#glyphCheckingSwitch:checked + .gxCheckingSwitchSlider {
    background: var(--highlight-color);
}

#glyphCheckingSwitch:checked + .gxCheckingSwitchSlider::before {
    transform: translateX(2.5em);
}

@media screen and (min-width: 2000px) {
	html
	{
		font-size: 0.75vw;
	}

	#header {
	  height: 2.5vw;
	}

	/* .headerInfoText
	{
		padding: 0.7em 1em 0 0;
	} */

	.headerLogIn
	{
		flex: 1 0 3%;	
	}

	.uploadAreaHeadline
	{
		font-size: 2em;
	}

	.uploadAreaInfo
	{
		font-size: 1em;
	}

	#foundryID
	{
		height: 1.2vw;
  		width: 10vw;
	}

	/* .uploadArea
	{
		padding: 7vh 5vh 5vh 5vh;
	} 

	.uploadHeadlineFlex
	{
		height: 50vh;
	}*/

	.uploadSubHeadline
	{
		padding: 12vh 0 8vh 0;
	}

	.sectionTitleStatsBasic
	{
		top:-2.2em;
		right: -1.5em;
	}

	#container
	{
		margin-top: 5.1vh;
	}

	#menu
	{
		top: 7.8em;
	}

	.sectionBasic
	{
		margin:calc(-70px + 9vw) 1vw 0 0;
	}
	.glyphNotification
	{
		height: 1.2vw;
	}
	.charsetContainer
	{
		flex: 0 1 25%;
	}
	.languageContainer
	{
		flex: 0 1 33%;
	}
	.languageText
	{
		width: 6vw;
	}
}

@media (prefers-color-scheme: dark) {
	.uploadArea
	{
		border: 2px solid var(--highlight-color);
	}
	.sectionTitleErrors
	{
		color: var(--bg-color);
	}
	.sectionTitleWarnings
	{
		color: var(--bg-color);
	}
}

@media (max-width:500px)  
{ 
	html
	{
		font-size: 1.7em;
	}
	.desktopView
	{
		display: none;
	}	
	.mobileView
	{
		display: block;
		min-height: 100vh;
	}

	#header {
		height: 9.5vw;
	}

	.headerTable
	{
		padding: 0.3em;
	}

	.mobileIllu
	{
		position: relative;
		top: 12vh;
		text-align: center;
	}

	h1
	{
		margin: 0;
		font-size: 0.7em;
	}

	.uploadSubHeadline
	{
		padding: 17vh 12vw 5vh 12vw;
		font-size: 1.3em;
		line-height: 1.2em;
	}
	.smallTextMobile
	{
		padding: 0em 3em;
		font-size: 0.5em;
		color: var(--bgnegative-color);
		text-align: center;
	}
}

.featureRow{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:12px;
	flex-wrap:wrap;
}

.featureChips{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	margin-left: 5em;
}

.featureChipMissing{
	display:inline-block;
	padding:3px 10px;
	border:1px solid var(--error-color);
	border-radius:999px;
	color:var(--error-color);
	font-size:13px;
	font-weight:600;
	text-transform:uppercase;
	line-height:1.4;
}

.featureDetail{
	margin-bottom:12px;
}

.featureDetailName{
	font-weight:700;
	font-size:15px;
	margin-bottom:4px;
	text-transform:uppercase;
}

.featureUnicodeList{
	font-size:14px;
	line-height:1.5;
}

.featureNoUnicode{
	opacity:.7;
	font-style:italic;
}


/* ==========================================================================
   RESULTS PAGES: one system for section titles, tables and messages
   (templates/results/**). Added in the consistency pass; later rules here
   intentionally override the older per-table rules above.

   Roles
   - Section title  .sectionSubheader      one per section, font and family tabs alike
   - Control label  .sectionSubheaderSmall FILTERS, GLYPH SIZE (controls only)
   - Group label    .fontTablesDivHeader   NAMING, WIN METRICS, AXES ... and column headers
   - Data table     .resultsTable          header row without a line, 1px line under every row
   - Message        .msg.error / .msg.warning   [E|W] badge + optional location + sentence
   ========================================================================== */

:root {
	--error-text-color: #c4122f;   /* 6:1 on white; --error-color stays the fill colour */
	--warning-text-color: #7a5c00; /* 6:1 on white; --warning-color stays the fill colour */
	--muted-text-color: #5f5f5f;
	--badge-text-color: #111;
}

@media (prefers-color-scheme: dark) {
	:root {
		--error-text-color: #ff00ff;
		--warning-text-color: #ffff00;
		--muted-text-color: #a8a8a8;
		--badge-text-color: #111;
	}
}

/* --- Section titles: more space above than below ------------------------ */
.sectionSubheader { margin: 1.5em auto 0.75em; }
/* Basic results: TEST YOUR SIDEBEARINGS / KERNING / OT FEATURES sit close to the text box */
.sectionSubheader.tight { margin: 0.35em auto 0.3em; line-height: 1.1; }
.errorColor { color: var(--error-text-color); }
.warningColor { color: var(--warning-text-color); }

/* ERRORS / WARNINGS section titles: solid fill in the original colour, black text */
.sectionSubheader.errorColor,
.sectionSubheader.warningColor {
	display: table;                 /* shrink to the text and stay centred */
	padding: 0.15em 0.5em;
	border-radius: var(--border-radius);
	color: var(--badge-text-color);
}
.sectionSubheader.errorColor { background-color: var(--error-color); }
.sectionSubheader.warningColor { background-color: var(--warning-color); }

.sectionCount { font-size: 0.5em; vertical-align: middle; }

/* --- Column headers and group labels: one style ------------------------- */
.resultsTable th,
.fontTablesDivHeader,
.hMetricsFamilyTableDivHeader,
.familyFontTablesDivHeader,
.msgGroupLabel {
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--highlight-color);
	text-align: left;
}

/* header cells of the div-based grids get no row line, like table headers */
.fontTablesDiv.fontTablesDivHeader,
.fontTablesDivBasic.fontTablesDivHeader,
.kerningTableDiv.fontTablesDivHeader,
.hMetricsFamilyTableDivHeader {
	border-bottom: none;
	padding: 0 0 0.75em 0;
}

.msgGroupLabel { margin: 1em 0 0.25em 0; }

/* --- Data tables -------------------------------------------------------- */
.resultsTable { width: 100%; border-collapse: collapse; margin-bottom: 2em; }

.resultsTable th {
	padding: 0 1em 0.75em 0;
	vertical-align: bottom;
	border-bottom: none;
}

.resultsTable td,
.resultsTable tbody th {
	padding: 0.5em 1em 0.5em 0;
	border-bottom: 1px solid var(--bg-color-line);
	vertical-align: top;
	text-align: left;
}

/* row headers (first column of the family tables) read as data, not as headers */
.resultsTable tbody th {
	font-size: 1em;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--bgnegative-color);
}

/* div-based grids use the same row rhythm */
.kerningTableDiv,
.overviewTableDiv,
.hMetricsFamilyTableDiv { padding: 0.5em 0; }

.tableEmpty { color: var(--muted-text-color); }
.overviewTable .overviewItem { width: 22%; }

/* --- Messages ------------------------------------------------------------ */
/* <p class="msg error"><span class="msgWhere">219, 710</span><span class="msgText">Sentence.</span></p>
   The class "error"/"warning" stays on the <p>: results.js counts them for the filters. */
.msg,
.glyphDetail p.msg {          /* the popup's ".glyphDetail p" padding would clip the badge */
	display: block;
	margin: 0.25em 0;
	padding: 0 0 0 2.2em;
	text-indent: -2.2em;          /* hanging indent: wrapped lines align after the badge */
	font-size: 0.8em;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: normal;
	color: var(--bgnegative-color);
	text-align: left;
}

.msg::before {
	display: inline-block;
	width: 1.6em;
	margin-right: 0.6em;
	padding: 0.15em 0;
	text-indent: 0;
	text-align: center;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--border-radius);
	color: var(--badge-text-color);
}

/* RFBullet is registered with 400 and 700 only, so 600 would render as Bold.
   The bundled SemiBold gets its own family name, so the rules that already
   ask for 600 elsewhere (e.g. .sumHeaderBasic) keep rendering as before. */
@font-face {
	src: url('../fonts/RFBullet-SemiBold.woff');
	font-family: 'RFBullet SemiBold';
	font-weight: 600;
	font-style: normal;
}

.msg::before { font-family: 'RFBullet SemiBold', 'RFBullet', monospace; }

.msg.error::before { content: "E"; background-color: var(--error-color); }
.msg.warning::before { content: "W"; background-color: var(--warning-color); }

.msgWhere {
	margin-right: 0.6em;
	color: var(--muted-text-color);
}

/* --- Status values (kerning existence / polarity) ------------------------ */
.statusTag {
	display: inline-block;
	padding: 0.15em 0.5em;
	font-size: 0.8em;
	font-weight: 700;
	border-radius: var(--border-radius);
}

.statusTag.error { background-color: var(--error-color); color: var(--badge-text-color); }
.statusTag.warning { background-color: var(--warning-color); color: var(--badge-text-color); }
.statusTag.ok { color: var(--highlight-color); box-shadow: inset 0 0 0 1px var(--highlight-color); }

/* --- Overview: jump rows and "fixed" checkboxes (static/js/overview_fixes.js) --- */
.overviewTable .overviewCheck { width: 4.5em; text-align: center; padding-right: 0.5em; }
/* WIKI: the FA wiki code of the message's test (wiki.py) */
.overviewTable .overviewWiki { width: 6em; white-space: nowrap; font-family: monospace; }

/* Font and family overview: STYLE column and one subtitle row per result section */
.overviewTableFamily .overviewStyle { width: 16%; }
.overviewTableFamily .overviewItem { width: 18%; }

/* Grey text on a light grey band, centred over the whole table, so a section
   row doesn't read as another column subtitle (those are left-aligned in the
   highlight colour). The band itself separates the sections. */
.resultsTable .overviewGroupRow th {
	padding: 0.45em 0;
	background-color: var(--bg-color);
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--muted-text-color);
	text-align: center;
}
/* each section folds (overview_fixes.js): the whole band is the toggle */
.overviewGroupToggle { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.overviewGroupToggle:focus-visible { outline: 2px solid var(--highlight-color); outline-offset: -2px; }
.overviewGroupToggle::before { content: "\25BE"; display: inline-block; margin-right: 0.5em; transition: transform 0.15s; }
.overviewGroupToggle[aria-expanded="false"]::before { transform: rotate(-90deg); }
.overviewTable tbody.isCollapsed .overviewRow { display: none; }

/* Column headers stay at the top of the tab in long lists, just under the
   fixed header / tab menu. --overview-sticky-top is the bottom of those, set
   by static/js/overview_fixes.js (the menu wraps, so its height varies). The
   background hides the rows scrolling underneath. */
.overviewTable thead th {
	position: sticky;
	top: var(--overview-sticky-top, 0px);
	z-index: 2;
	background-color: var(--bgminus-color);
}
.overviewGroupCount { margin-left: 0.4em; color: var(--muted-text-color); font-weight: 400; }
.overviewTable th.overviewCheck { text-align: center; }

.fixedCheck {
	width: 1.1em;
	height: 1.1em;
	margin: 0.1em 0 0 0;
	cursor: pointer;
	accent-color: var(--highlight-color);
}

.overviewRow { cursor: pointer; }
.overviewRow:hover td { background-color: var(--bg-color); }

.overviewJump {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: var(--highlight-color);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.overviewJump:focus-visible,
.fixedCheck:focus-visible {
	outline: 2px solid var(--highlight-color);
	outline-offset: 2px;
}

/* fixed rows stay readable but step back */
.overviewRow.isFixed .msg,
.overviewRow.isFixed .overviewJump { color: var(--muted-text-color); }
.overviewRow.isFixed .msgText { text-decoration: line-through; }
.overviewRow.isFixed .msg::before { background-color: var(--bg-color); color: var(--muted-text-color); }

/* the same message, back in its tab, after being marked fixed */
.msg.isFixed .msgText { text-decoration: line-through; color: var(--muted-text-color); }

.fixedProgress {
	flex-basis: 100%;               /* own row under the section title (parent is a wrapping flex row) */
	width: 100%;
	margin: -0.25em auto 1em;
	font-size: 0.8em;
	text-align: center;
	color: var(--muted-text-color);
}

.fixedProgress:empty { display: none; }

/* where a jump from the overview lands */
.msgFlash {
	outline: 2px solid transparent;   /* end state of the animation */
	outline-offset: 3px;
	border-radius: 2px;
	animation: msgFlash 2.4s ease-out forwards;
}

/* outline and background fade out together */
@keyframes msgFlash {
	0%, 60% { background-color: var(--highlightminusalpha-color); outline-color: var(--highlight-color); }
	100% { background-color: transparent; outline-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	/* no fade: show the highlight, then the class is removed after 2.4s */
	.msgFlash { animation: none; outline-color: var(--highlight-color); background-color: var(--highlightminusalpha-color); }
}

/* upload page header: "CREATE ACCOUNT" as an outlined pill (same shape as the account pages' nav button) */
a.headerAccountCta,
a.headerAccountCta:link,
a.headerAccountCta:visited {
	padding: 0.15em 0.6em;
	border-radius: var(--border-radius);
	box-shadow: inset 0 0 0 1px var(--bg-color);
}
a.headerAccountCta:hover { background-color: var(--highlightplus-color); }

/* --- Glyph detail: message <-> marker hover (results.js) ------------------ */
.detailSVG path[data-msg] { transition: opacity 0.12s ease; }
.detailSVG.msgFocus path[data-msg]:not(.isMsgActive) { opacity: 0.12; }
.detailSVG path[data-msg].isMsgActive { opacity: 1; }
.glyphDetailText [data-msg] { cursor: default; transition: opacity 0.12s ease; }
.glyphDetail.msgFocus .glyphDetailText [data-msg]:not(.isMsgActive) { opacity: 0.4; }
.glyphDetailText [data-msg].isMsgActive {
	background-color: var(--highlightminusalpha-color);
	border-radius: 2px;
}

/* --- Add a message to the project board (static/js/results_board.js) -------
   Three small buttons that show next to the error or warning under the pointer.
   Only there for signed-in people who can change the project's board. */
.boardAdd {
	position: fixed;
	z-index: 20000;
	display: flex;
	gap: 2px;
	padding: 2px;
	border-radius: var(--border-radius);
	background-color: var(--bgnegative-color);
	filter: drop-shadow(0 0.2rem 0.5rem #20008833);
}
.boardAdd[hidden], .boardToast[hidden] { display: none; }
.boardAdd button {
	padding: 0.35em 0.7em;
	border: 0;
	border-radius: calc(var(--border-radius) - 2px);
	background-color: transparent;
	color: var(--bgminus-color);
	font: inherit;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}
.boardAdd button:hover,
.boardAdd button:focus-visible { background-color: var(--highlight-color); color: #fff; outline: 0; }
@media (prefers-color-scheme: dark) { .boardAdd button:hover, .boardAdd button:focus-visible { color: #000; } }
.boardAdd button:disabled { opacity: 0.5; cursor: progress; }
.boardToast {
	position: fixed;
	z-index: 20001;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);
	max-width: min(36rem, calc(100vw - 2rem));
	padding: 0.7em 1.1em;
	border-radius: var(--border-radius);
	background-color: var(--bgnegative-color);
	color: var(--bgminus-color);
	font-size: 0.8rem;
	line-height: 1.4;
	filter: drop-shadow(0 0.3rem 0.8rem #20008833);
}
.boardToast a { color: inherit; font-weight: 600; text-decoration: underline; }
.boardToast.bad { background-color: var(--error-color); color: var(--badge-text-color, #111); }


/* --- A charset or language list that asks for a warning or error (custom
   tests, views.charsetIssue) and isn't covered: the card is highlighted in the
   colour of the issue and shows the message with the same W / E badge. --- */
.charsetContainer.listIssue,
.languageContainer.listIssue {
	padding: 1em 1em 0.6em;
	border-radius: var(--border-radius-plus);
	color: var(--badge-text-color);
}
.languageContainer.listIssue { height: auto; min-height: 100px; }
.listIssue--warning { background-color: var(--warning-color); }
.listIssue--error { background-color: var(--error-color); }
.listIssue .msg,
.listIssue .charsetFulfilment,
.listIssue .charsetFulfilment:hover { color: var(--badge-text-color); }
.listIssue .charsetFulfilment:hover { text-decoration: underline; }
/* the badge has the colour of the card: an outline keeps it visible */
.listIssue .msg::before { box-shadow: 0 0 0 1.5px var(--badge-text-color); }
.listIssueMsg { max-width: 30em; margin: 0.6em auto 0 !important; }
.languageContainer .listIssueMsg { margin: 0.4em 0 0 !important; }

/* Charset / Languages tabs: custom lists first, then a thin line before the standard ones */
.charsetContainer.listIssue, .languageContainer.listIssue { margin: 0.5em; }
.listGroupLabel { flex: 1 1 100%; }
.listDivider { flex: 1 1 100%; margin: 1.5em 0 1em; border-top: 1px solid var(--bg-color-line); }
.listDivider .sectionSubheaderSmall { display: inline-block; margin-top: 0.75em; }

/* Languages: the highlighted card keeps the regular card's layout (same chart size and
   button position); the background reaches 0.5em into the left margin and stops 1em
   short of the next card, and the message wraps under the results */
.languageContainer.listIssue {
	flex: 0 1 calc(50% - 1em); box-sizing: border-box;
	margin: 0 1.5em 0 -0.5em; padding: 0 0.5em 0.6em;
	flex-wrap: wrap;
}
/* the first row ends under the bar: the canvas has a ~11px top margin and draws the bar in its top ~64px */
/* every card, also the full-width ones of languages missing OT features (height: auto), else the 200px canvas sets the card height */
.languageContainer .languageLine:has(.languageCanvas) { height: 78px; overflow-y: clip; }
.languageContainer.listIssue .languageText,
.languageContainer.listIssue .charsetFulfilment { padding-bottom: 0; }
.languageContainer.listIssue .featureRow,
.languageContainer.listIssue .listIssueMsg { flex: 1 1 100%; order: 1; }
.languageContainer.listIssue .listIssueMsg { max-width: none; margin: 0 1.2em !important; text-indent: -1.5em; }

/* Charset: a highlighted card keeps a regular card's width (a third of the row) even alone on its row */
.charsetContainer.listIssue { flex: 0 1 calc(33.333% - 1em); box-sizing: border-box; }
@media screen and (min-width: 2000px) {
	.charsetContainer.listIssue { flex-basis: calc(25% - 1em); }
	.languageContainer.listIssue { flex-basis: calc(33% - 1em); }
}

/* Charset: the message under the chart, every line centred (the badge leads the first line) */
.charsetContainer .listIssueMsg { max-width: 100%; margin: 0.8em auto 0 !important; padding: 0 0.5em; text-indent: 0; text-align: center; box-sizing: border-box; }


/* --- failed.html --- */
        .failedPage { box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: calc(3.4vw + 9vh) 16px 4vh; text-align: center; }
        /* the Designers check hand, mirrored on the x-axis: thumb down */
        .failedHand { width: max(200px, 20em); max-width: 80vw; height: auto; transform: scaleY(-1); }
        .failedTitle { margin: 4vh 0 0; color: var(--highlight-color); font-size: max(20px, 1.5em); line-height: 1.5; font-weight: 700; white-space: nowrap; }
        .failedReason { max-width: 40rem; margin: 1.2em 0 0; color: var(--bgnegative-color); font-size: max(14px, 1em); line-height: 1.55; overflow-wrap: anywhere; }
        .buildReport { max-width: 40rem; margin: 1.4em 0 0; color: var(--bgnegative-color); font-size: max(13px, 0.9em); line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
        .buildReport p { margin: 0 0 0.6em; text-align: center; }
        .buildReport summary { cursor: pointer; text-align: center; color: var(--highlight-color); }
        .buildReport ul { margin: 0.8em 0 0; padding-left: 1.2em; }
        .failedActions { margin-top: auto; padding-top: 6vh; font-size: max(14px, 1em); }
        .failedActions a { color: var(--highlight-color); }

/* --- results/font/_languageCard.html: the missing-glyphs icon --- */
.languageContainer .cls-1 { fill: var(--highlight-color); }

/* results/font/tab_glyphs.html, tab_info_engineer.html, results_workshop.html: parts loaded later */
.glyphGridLoading, .pagePartLoading { min-height: 4em; }
/* results/font/gvar_glyphs.html: glyph outlines are drawn y-up; the variation paths show per axis (results.js) */
.glyph-svg { transform: scaleY(-1); }
.variation-path { display: none; }
/* results/font/_languageCard.html: a language with missing OT features takes the whole row, and its
   feature row fills the space after the bar (chips in one line, then the FEA button) */
.languageContainer:has(.featureRow),
.languageContainer.listIssue:has(.featureRow) { flex: 1 1 100%; height: auto; min-height: 100px; }
.languageContainer:not(.listIssue) .featureRow { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; }
.languageContainer .featureRow .featureChips { margin-left: 2em; }
