@charset "UTF-8";

/**
Structural rules: page layout, fixed positioning, column widths, flex
containers, responsive breakpoints. No colors, no fonts, no shadows, no
transitions — those live in style-v1c.css. Loaded after style-v1c.css so that
:root variables are already available.

Hierarchy mirrors style-v1c.css: universals, fixed regions (header / TOC /
debug panel), generic content containers, sidenotes, responsive breakpoints.
*/

/*-- -- |-- Universals ******/
html {
	font-size: 16px;
	height: 100%;
	scroll-padding-top: 4rem;
}

*, ::before, ::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: hidden;
}

.essay-card-container, body h0, fieldset, form, table, figure, #Footnotes > p, #FootnotesExtra > p, h0, h1, h2, h3, h4, h5, h6, block, blockquote, :not(#header-left) > p, ol, ul, dl, pre, body > div.paragraph {
	position: relative;
	margin-left: 0px;
	margin-right: 0px;
	width: var(--bodycol-width, 50%);
	left: var(--left-col-width, 25%);
	right: var(--right-col-width, 25%);
}

/*-- -- |-- Fixed: Header ******/
#header-left, #header-mid, #header-right {
	position: fixed;
	top: 0;
	z-index: 40;
	height: 2em !important;
}

#header-left {
	left: 0;
	display: inline-block;
	width: 25%;
	overflow-y: unset;
	z-index: 100;
}
#header-left > div {
	padding: 1rem;
	margin-left: 2px;
}

#header-mid {
	display: inline-flex;
	width: 50%;
	left: 25%;
	right: 25%;
}

#header-right {
	right: 0;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	width: 25%;
}

.header-column, .header-row {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
}
.header-column > a, .header-row > a {
	flex: 1 1 auto;
}
.header-column > a > .header-block, .header-column > .header-block, .header-row > a > .header-block, .header-row > .header-block {
	position: relative;
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
}

.header-column {
	height: 100%;
}
.header-column > a {
	height: 50%;
	width: 100%;
}
.header-column > a > .header-block-fill {
	height: 100%;
}

.header-row {
	width: 100%;
	flex-direction: row;
}
.header-row > a {
	height: 100%;
	width: 50%;
}
.header-row > a > .header-block-fill {
	width: 100%;
}

/*-- -- |-- Fixed: Table of Contents ******/
/* structure: <div id="tocdiv"><div id="toccont">Contents</div><div id="toc"></div></div> */
#tocdivStickySpace {
	position: relative;
	display: none;
	height: 15vh;
	top: 15vh;
}

#tocdiv {
	position: fixed;
	display: flex;
	flex-direction: column;
	justify-content: start;
	height: calc(100vh - 2em);
	width: 14%;
	top: 2em !important;
	left: 0%;
	z-index: 50;
	float: left;
	margin-left: 0%;
	padding: 0px;
	padding-top: 1em;
	overflow: hidden;
	overflow-y: scroll;
}

#toccont {
	position: sticky;
	display: none;
	z-index: 20;
	justify-content: center;
	flex-direction: column;
	height: 5rem;
	width: 100%;
	align-items: center;
	white-space: nowrap;
}

#toc {
	display: flex;
	flex-direction: column;
	width: 100% !important;
	margin-left: 0% !important;
	margin-right: 0% !important;
	overflow-y: scroll;
	padding-left: 1em;
}
#toc > div {
	display: flex;
	flex-direction: column;
	flex-basis: 1.5em !important;
	flex-shrink: 1 !important;
	align-items: center;
	overflow-x: clip;
	overflow-y: clip;
	padding-top: 3px;
	padding-bottom: 3px;
}
#toc > div a::before {
	content: "";
	position: absolute;
	display: inline;
	width: 2000px;
	bottom: -3px;
	height: auto;
	top: -3px;
	left: -0.25rem;
}
#toc .toclinkdiv {
	width: 100%;
	height: 100%;
	padding-left: 4px;
	padding-right: 4%;
	align-items: center;
	display: flex;
	flex: 1 1 auto;
}
#toc > div.h0 {
	display: flex;
	justify-content: center;
	flex: none;
	height: 1.5rem;
	white-space: nowrap;
}
#toc > div.h0 > div {
	justify-content: center;
}
#toc > .h1 { flex: 0.05 0 auto; }
#toc > .h2 { flex: 0.03 0 auto; }
#toc > .h3 { flex: 0.02 0 auto; }
#toc > .h4 { flex: 0.01 0 auto; }
#toc > .h1 > .toclinkdiv { padding-left: 3%; }
#toc > .h2 > .toclinkdiv { padding-left: 3%; }
#toc > .h3 > .toclinkdiv { padding-left: 3%; }
#toc > .h4 > .toclinkdiv { padding-left: 3%; }
#toc > div.h2 { margin-left: 4%; padding: 0; padding-bottom: 1px; }
#toc > div.h3 { margin-left: 8%; padding: 0; padding-bottom: 1px; }
#toc > div.h4 { margin-left: 12%; padding: 0; }
#toc > div.h5, #toc > div.h6 { display: none; }

/*-- -- |-- Fixed: Debug Panel ******/
#debugPanel {
	position: fixed;
	display: inline-block;
	z-index: 200;
	bottom: 0;
	right: 0;
}
#debugPanel > div {
	padding: 0.1em 0.5em 0.1em 0.5em;
	border-top-left-radius: 1em;
	text-align: right;
}
#debugPanel > div > * {
	padding-left: 0.3em;
	padding-right: 0.6em;
}

/*-- -- |-- Generic content containers ******/
figure, figcaption, blockquote, blockquotesource, p, ol, ul, dl, body > div.paragraph, a {
	z-index: 20;
}

figure, figcaption {
	position: relative;
}

p, ol, ul, dl, body > div.paragraph {
	position: relative;
	margin-top: 1em;
}
p:not(.paragraph), ol:not(.paragraph), ul:not(.paragraph), dl:not(.paragraph), body > div.paragraph:not(.paragraph) {
	margin-top: 0em;
	margin-bottom: 1rem;
}
p ol, p ul, p dl, ol ol, ol ul, ol dl, ul ol, ul ul, ul dl, dl ol, dl ul, dl dl, body > div.paragraph ol, body > div.paragraph ul, body > div.paragraph dl {
	left: 0%;
	margin: 0;
	width: 100%;
	max-width: 100%;
}

:not(#header-left, #tocdiv) > p {
	margin-top: 1.2rem;
	margin-bottom: 1.2rem;
	padding-right: 0;
	z-index: auto;
}

dt:not(:first-child), li:not(:first-child) {
	margin-top: 0.25rem;
}

.paragraph {
	margin-top: 1em;
	margin-bottom: 0em;
}

/*-- -- |-- Sidenotes ******/
.sidenote, .sidenote2 {
	position: absolute;
	display: inline-block;
	right: -25vw;
	width: 17vw;
	padding: 0.8em;
}

.sn-counter {
	position: relative;
	display: inline-block;
	line-height: 1em;
	bottom: 0.5em;
}
.sn-counter::before {
	position: relative;
	padding-left: 0px;
	display: inline-block;
	line-height: 1em;
}

/*-- -- |-- Section headers ******/
h0, h1, h2, h3, h4, h5, h6 {
	display: block;
	text-align: left;
	padding-left: 0%;
	margin-top: 2rem;
	margin-bottom: 1.2rem;
	position: relative;
	z-index: 20;
}

body h0 {
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 0.3em;
}

h0 {
	z-index: 12;
	top: 4rem;
	padding-bottom: 0.5rem;
	text-align: center;
	justify-content: center;
	align-items: center;
}

h1 {
	margin-top: 4rem;
	margin-bottom: 2rem;
	padding-bottom: 0.2em;
}

h2, h3 {
	text-align: center;
	margin-top: 2em;
	margin-bottom: 1em;
	padding: 0.2em 0em 0.2em 0em;
}

h4 {
	margin-top: 2.5rem;
}

/*-- -- |-- Miscellaneous ******/
fieldset, form, table, figure {
	z-index: 20;
}

/*-- -- |-- Hovertips / dropdowns positioning ******/
.hovertip {
	position: relative;
	display: inline-flex;
}
.hovertip .hovertiptext {
	position: absolute;
	display: inline-block;
	z-index: 1;
	visibility: hidden;
	width: 240px;
	top: -100%;
	left: 50%;
	text-align: center;
	padding: 5px 5px 5px 5px;
}
.hovertip:hover .hovertiptext {
	visibility: visible;
}

.contextual {
	position: relative;
}
.contextual > .context {
	position: absolute;
	top: var(--main-line-height);
	left: 0%;
	width: -moz-max-content;
	width: max-content;
	padding: 3px;
}

.links-dropdown-content {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 100%;
	width: calc(100% + 2px);
	transform: translateY(-100%);
}
.links-dropdown-content > * {
	padding: 5px 5px 5px 5px;
}
div:hover > .links-dropdown-content, .links-dropdown-content:hover, .links-dropdown:hover > .links-dropdown-content {
	transform: translateY(0%);
	z-index: 100;
}

.links-dropdown-label {
	position: relative;
	z-index: 40;
	width: 100%;
	height: 100%;
	text-align: center;
}

div:hover > .wide-on-hover {
	width: 250%;
}

/*-- -- |-- Footnote blocks ******/
#Footnotes > p:not(:first-child), #FootnotesExtra > p:not(:first-child) {
	padding-top: 1%;
}

/* show/hide for the "Extra Notes" button workflow: elements with ids ending
   in "Extra_ref" are hidden by default, and the button's onclick adds the
   .showExtra class to reveal them. */
button.showExtra, *[id$=Extra_ref]:not(button) {
	display: none;
}
*[id$=Extra_ref]:not(button).showExtra {
	display: inline;
}

/*-- -- |-- Responsive ******/
@media only screen and (max-width: 1800px) {
	#tocdiv {
		width: 18%;
	}
	.sidenote2 {
		left: 100%;
		width: 25vw;
		padding-left: 2vw;
		padding-right: 2vw;
	}
}
@media only screen and (max-width: 1000px) {
	#tocdiv {
		display: none;
	}
}
@media screen and (max-width: 800px) {
	.header-column > a .header-block:not(.links-dropdown), .header-column > a > .header-block:not(.links-dropdown), .header-row > a .header-block:not(.links-dropdown), .header-row > a > .header-block:not(.links-dropdown) {
		font-size: 0.75em;
	}
}
@media screen and (max-width: 700px) {
	.header-column > a .header-block:not(.links-dropdown), .header-column > a > .header-block:not(.links-dropdown), .header-row > a .header-block:not(.links-dropdown), .header-row > a > .header-block:not(.links-dropdown) {
		font-size: 0.7em;
	}
}
@media screen and (max-width: 600px) {
	.header-column > a .header-block:not(.links-dropdown), .header-column > a > .header-block:not(.links-dropdown), .header-row > a .header-block:not(.links-dropdown), .header-row > a > .header-block:not(.links-dropdown) {
		font-size: 0.6em;
	}
}
