html {
    font-family: Ubuntu, sans-serif;
    background:rgb(10, 13, 33);
    color: white;
    font-size: 16.5px;
    line-height: 135%;
    color-scheme: dark;

    background-image: linear-gradient(rgb(30, 37, 91), rgb(10, 13, 33));
    background-attachment: fixed;
}
html, body {
    margin: 0;
    padding: 0;
}
th {
    color: #aaa;
    font-weight: normal;
}
img {
    vertical-align: middle;
}
/* Map thumbnail: the image is a background and the map name is the element's
   own (transparent) text, so the name is findable with Ctrl+F. All thumbnails are
   88x50. */
.mapImg {
    display: inline-block;
    width: 88px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}
.mapImg-chainofascension { background-image: url(/images/missionthumbnails/chainofascension.png); }
.mapImg-cradleofdeath { background-image: url(/images/missionthumbnails/cradleofdeath.png); }
.mapImg-deadofnight { background-image: url(/images/missionthumbnails/deadofnight.png); }
.mapImg-lockload { background-image: url(/images/missionthumbnails/lockload.png); }
.mapImg-malwarfare { background-image: url(/images/missionthumbnails/malwarfare.png); }
.mapImg-minerevacuation { background-image: url(/images/missionthumbnails/minerevacuation.png); }
.mapImg-mistopportunities { background-image: url(/images/missionthumbnails/mistopportunities.png); }
.mapImg-oblivionexpress { background-image: url(/images/missionthumbnails/oblivionexpress.png); }
.mapImg-partparcel { background-image: url(/images/missionthumbnails/partparcel.png); }
.mapImg-riftstokorhal { background-image: url(/images/missionthumbnails/riftstokorhal.png); }
.mapImg-scytheofamon { background-image: url(/images/missionthumbnails/scytheofamon.png); }
.mapImg-templeofthepast { background-image: url(/images/missionthumbnails/templeofthepast.png); }
.mapImg-thevermillionproblem { background-image: url(/images/missionthumbnails/thevermillionproblem.png); }
.mapImg-voidlaunch { background-image: url(/images/missionthumbnails/voidlaunch.png); }
.mapImg-voidthrashing { background-image: url(/images/missionthumbnails/voidthrashing.png); }
.unbold {
    font-weight: normal;
    color: #aaa;
}
#comSum, #misSum {
    visibility: hidden;
}
summary, button, label, input[type=checkbox], input[type=radio] {
    cursor: pointer;
}
summary {
    color: yellow;
}

:where(table ul) {
    padding: 0 0 0 1.2em;
}
::marker {
    color: #888;
}

.construction {
    border: 15px solid transparent;
    padding: 5px 10px;
    background: #d9ca28;
    /* opera doesn't support single-arg linear-gradient */
    background-image: linear-gradient(#d9ca28, #d9ca28), repeating-linear-gradient(
        -45deg,
        #d9ca28,
        #d9ca28 10px,
        #292824 10px,
        #292824 20px
    );
    background-origin: border-box;
    background-clip: padding-box, border-box;

    padding: 10px 15px;
    font-weight: bold;
    color: black;

    font-size: 1.5em;
    margin: 0 auto 20px;
    max-width: 1000px;
}
.construction a {
    color: #ae5700;
}

.miniIcon {
    height: 25px;
    width: 25px;
    margin-right: 6px;
    vertical-align: middle;
}
#tooltip {
    background-color: #cfca9b;
    color: black;
    font-size: 0.8em;
    display: none;
    z-index: 1;
    padding: 4px 6px;
    border-radius: 5px;
    position: absolute;
    max-width: 380px;
}

#topmenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.3em;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 700px){
    #container{
        min-height:15px;
    }
    #content table{
        font-size:0.75em;
    }
    #content img{
        max-width:100%;
    }
    #content iframe{
        max-width:100%;
        height:auto;
    }
    .tableContainer{
        overflow:scroll;
    }
    p {
     font-size: 1.25rem;
   }
}
.grecaptcha-badge {
    visibility: hidden;
}
#captchaTOS{
    font-size:0.6em;
}
#header img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width:75%;
    max-width: 950px;
}
#menu{
    text-align:center;
    max-width:1150px;
    margin:auto;
    padding: 0 8px;
}
#menu a{
    text-decoration: none;
    color: white;
}
#topmenu a,
#topmenu button {
    display: block;
    background: rgba(10, 13, 33, 0.5);
    border: 1px solid rgb(51, 61, 127);
    color: white;
    fill: white;
    font: inherit;
    padding: 10px 16px 0 16px;
    margin: 0 0 -1px -1px;
    height: 36px;
    box-sizing: content-box;
}
#topmenu svg {
    width: 24px;
    height: 24px;
}
#topmenu button svg {
    width: 20px;
    height: 20px;
    vertical-align: 5px;
}
.search-shortcut {
    display: inline-block;
    margin-left: 8px;
    color: #bbb;
    font-size: 0.7em;
    vertical-align: 6px;
}
#topmenu a:hover,
#topmenu button:hover,
#topmenu button[aria-expanded="true"] {
    background: rgb(10, 13, 33);
    border-color: rgb(103, 112, 169);
    position: relative;
}
#topmenu a.open {
    background: rgb(10, 13, 33);
    border: 1px solid rgb(103, 112, 169);
    margin: -2px 0 -2px -1px;
    height: 39px;
    border-bottom-width: 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 800px) {
    #topmenu {
        font-size: 1em;
    }
    #topmenu a,
    #topmenu button {
        height: 30px;
    }
    #topmenu a.open {
        height: 33px;
    }
    .search-shortcut {
        display: none;
    }
    #topmenu #submenu-link-about {
        font-size: 0;
    }
    #topmenu #submenu-link-about::before {
        content: "...";
        font-size: 1rem;
    }
}
@media (max-width: 700px) {
    #topmenu a,
    #topmenu button {
        padding-left: 8px;
        padding-right: 8px;
    }
}

#site-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(3, 5, 18, 0.78);
    padding: 12vh 16px 24px;
    box-sizing: border-box;
}
#site-search-overlay[hidden] {
    display: none;
}
.site-search-dialog {
    max-width: 680px;
    margin: 0 auto;
    background: rgb(10, 13, 33);
    border: 1px solid rgb(103, 112, 169);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}
.site-search-form {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgb(51, 61, 127);
}
#site-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font: inherit;
    font-size: 1.2em;
    padding: 14px 16px;
}
#site-search-input:focus {
    outline: 2px solid rgb(219, 150, 32);
    outline-offset: -2px;
}
.site-search-results {
    max-height: 80vh;
    overflow-y: auto;
}
.site-search-message {
    color: #bbb;
    padding: 16px;
    text-align: left;
}
.site-search-message p {
    margin: 0;
}
.site-search-key-guides {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px !important;
    color: #888;
    font-size: 0.88em;
}
kbd {
    display: inline-block;
    min-width: 1.4em;
    margin: 0 2px;
    padding: 1px 5px;
    border: 1px solid #767b98;
    border-bottom-color: #474c6c;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: #dddddd;
    font-family: inherit;
    font-size: 0.9em;
    text-align: center;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.site-search-list {
    margin: 0;
    padding: 6px;
    list-style: none;
}
.site-search-result {
    margin: 0;
}
.site-search-result a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 10px;
    color: white;
    text-align: left;
    text-decoration: none;
    border: 1px solid transparent;
}
.site-search-result a:visited {
    color: white;
}
.site-search-result a[aria-selected="true"] {
    background: rgba(103, 112, 169, 0.35);
    border-color: rgb(103, 112, 169);
}
.site-search-title {
    font-weight: bold;
}
.site-search-type {
    color: rgb(219, 150, 32);
    font-size: 0.78em;
    text-transform: uppercase;
}
.site-search-subtitle {
    grid-column: 1 / -1;
    color: #bbb;
    font-size: 0.88em;
}

@media (max-width: 700px) {
    #site-search-overlay {
        padding-top: 8vh;
    }
    .site-search-result a {
        grid-template-columns: 1fr;
    }
}

#content{
    color:white;
    max-width:950px;
    margin-top:50px;
    margin-right:auto;
    margin-left:auto;
}
.submenu{
    display:none;
}
#menu .submenu {
    background: rgb(10, 13, 33);
    border: 1px solid rgb(103, 112, 169);
    padding: 10px 0;
    position: relative;
}
#menu .submenu ul{
    text-decoration: none;
    color:white;
    font-size:0.85em;
}
#commanderList img{
    margin-left:2px;
    margin-right:2px;
    border-radius:50%;
    border: 1px solid transparent;
}
#missionList .mapImg{
    border: 1px solid transparent;
    border-radius: 15px;
}
#menu .submenu ul{
    list-style-type: none;
    padding: 0;
    display:inline;
    color:white;
    line-height:1.6;
}
#menu .submenu li{
    display:inline;
    margin-left:16px;
    margin-right:4px;
}
#menu .highlight a {
    color: rgb(219, 150, 32);
    fill: rgb(219, 150, 32);
}
#menu a:hover img,
#menu a:hover .mapImg {
    border-color: rgb(255, 255, 255);
}
#menu a.highlight img,
#menu a.highlight .mapImg {
    border-color: rgb(219, 150, 32);
}
#menu .submenu a:hover {
    text-decoration: underline;
}
.submenu-with-sections {
    width: fit-content;
    margin: 0 auto;
}
.submenu-section strong {
    color: #999;
    font-size: 0.9em;
}
.submenu-section {
    text-align: left;
    padding: 6px 15px 6px 15px;
}
.submenu-section + .submenu-section {
    border-top: 1px solid rgba(103, 112, 169, .5);
    padding-top: 11px;
    margin-top: 5px;
}
#footer{
    font-style:italic;
    font-size:0.66em;
    margin-top:100px;
    color:white;
    margin-left:50px;
    margin-right:50px;
}
#imgs{
    margin-top:40px;
    text-align:center;
}
#imgs img{
    margin: 0 10px 0 10px;
}
#content table{
    color:inherit;
    border-collapse:collapse;
}


th,td{
    border:1px solid #888;
    padding:5px;
}
a{
    color: yellow;
}
a:where(:visited){
    color: orange;
}
#content h1{
    text-align:center;
}
#content h1,h2,h3{
    margin-top:50px;
}
#content #reportClick{
    text-decoration:underline;
    color: red;
    cursor:pointer;
    font-size:0.75em;
}
#content #errorReport{
    background-color: khaki;
    color: black;
    font-size: 0.8em;
    display: none;
    z-index: 1;
    padding: 5px;
    border-radius: 5px;
}
#content #errorReport a{
    color:red;
}
#content #countp{
    color:#555555;
    font-size:0.7em;
    font-style:italic;
}
#content #errorReport #newPatch{
    color:red;
}
label {
    white-space:nowrap;
}

/* Nav */

#content {
    padding: 0 8px;
}
#toc {
	font-size: 0.8em;
}
#toc ul::before {
	display: block;
	content: 'Contents';
	padding: 5px 8px;
	font-weight: bold;
}
#toc ul, #toc li {
	list-style: none;
	padding: 0;
	margin: 0;
}
#toc ul {
	padding: 5px 0;
	max-width: 400px;
    background: #222;
	margin: 30px 30px 0;
}
#toc ul a {
	display: block;
	padding: 5px 10px;
	text-decoration: none;
	border-left: 5px solid transparent;
    color: yellow;
}
#toc ul a:visited {
    color: orange;
}
#toc ul a.active {
	border-color: yellow;
	text-decoration: underline;
}
#toc ul a.h3 {
	padding-left: 25px;
}

#toc {
	position: sticky;
	float: left;
	margin: 0;
	top: 0;
	padding: 0;
	max-height: 100vh;
	overflow-y: auto;
}
#toc .nav-show {
	display: none;
	width: 30px;
	height: 30px;
	font-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: #444;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}
#toc .nav-show::before {
	content: '≡';
	font-size: 25px;
}
#toc ul {
	display: none;
}
#links {
    font-size: 13px;
}
#links p {
    margin: 8px 0;
}
@media (min-width: 1160px) {
	#toc, #toc ul {
		display: block;
	}
	#toc .nav-show {
		display: none;
	}
	#toc {
		position: sticky;
		float: left;
		margin: 0;
        margin-top: 90px;
		top: 0;
		width: 200px;
		padding: 0;
		height: 100vh;
		overflow-y: auto;
	}
    #content.has-toc {
        /* 1160px does make #content and #toc overlap a tiny bit. */
        /* it's fine because the overlap is just padding, not text */
        margin-left: auto;
        margin-right: 0;
    }
    @media (min-width: 1190px) {
        #content.has-toc {
            margin-left: 210px;
            margin-right: auto;
        }
    }
    @media (min-width: 1400px) {
        #content.has-toc {
            margin-left: auto;
            margin-right: auto;
        }
    }
    #content.has-toc #links {
        display: none;
    }
	#toc ul {
		margin: 20px 0 0 20px;
	}
	#toc ul {
		margin: 0;
		border: 0;
		background: transparent;
	}
}
