/* Type & base -------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&family=Merriweather+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,500;1,600;1,700;1,800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gruppo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Gruppo&family=Nanum+Myeongjo&display=swap');

* {
	box-sizing: border-box;
}

html, button, input, select, textarea {
	color: maroon;
}

html {
	margin: 0;
	padding: 0;
}

::selection, ::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

body {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.2em;
	line-height: 1.8;
	margin: 0;
	color: #101010;
}

/* Text tweaks -------------------------------------------------------------- */

p, article p {
	margin: 0;
	padding: 0;
	text-indent: 2em;
}

li {
	margin-top: .5em;
	text-indent: 0;
	list-style: none;
}

li p {
	text-indent: 0;
}

h1, h2, h3, h4 {
	font: 900 2em "Cormorant Garamond", serif;
}

h1 {
	font-size: 4em;
	font-weight: 300;
	margin: .67em 0;
	color: maroon;
}

h2, h3, h4 {
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1;
}

h2 {
	font: 900 2em "Cormorant Garamond", serif;
	margin: 1.3em 0 .1em;
	color: teal;
	border-top: 1px solid silver;
	padding-top: .75em;
}

h3 {
	font-weight: 600;
	font-size: 1.2em;
	margin: 1.9em 0 .3em;
	color: #4b8745;
	line-height: 1.5;
	letter-spacing: 2px;
}

h4 {
	font-size: 1em;
	margin: 1.33em 0 .3em;
}

h5 {
	font-weight: normal;
	margin: 0;
	text-indent: 0;
}

p#matrix-b {
	color: #575c47;
}

span#matrix-c {
	color: #a45b39;
}

#submitter {
	text-indent: 0;
	color: #ffa500;
	font-weight: bold;
}

a, #toc li a {
	color: olive;
	text-decoration: none;
}

a:hover, #toc a:hover {
	text-decoration: underline;
}

#toc li {
	margin: 1em 0 0;
}

#toc li::before, li::before {
	content: "•";
	color: olive;
	font-weight: bold;
	display: inline-block;
	width: 1em;
	margin-left: -1em;
}

#updates-box {
	margin: auto;
	padding: 1rem 1.5rem;
	background: #fdf4f4;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	white-space: pre-wrap; /* preserve line breaks */
	font: .6em "Courier New", Courier, mono;
	color: red;
}
  
/* Rules & helpers ---------------------------------------------------------- */

hr {
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
	font-size: 1em;
}

audio, canvas, img, video {
	vertical-align: middle;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

.hidden {
	display: none !important;
	visibility: hidden;
}

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

.invisible {
	visibility: hidden;
}

.clearfix::before, .clearfix::after {
	content: " ";
	display: table;
}

.clearfix::after {
	clear: both;
}

/* Layout containers -------------------------------------------------------- */

.wrapper {
	width: 80%;
	margin: 0 auto;
}

.header-container {
	border-bottom: 2px solid #e44d26;
	padding-top: 0;
	box-shadow: none;
}

.header-container .responsive {
	width: 100%;
	height: auto;
	max-width: 1920px;
}

.footer-container, .main aside {
	border-top: 20px solid #e44d26;
}

.main {
	padding: 30px 0;
}

.main article {
	float: none;
	max-width: 40em;
	margin: 0 auto;
	background: #fff;
}

.main aside {
	color: #fff;
	padding: 0 5% 10px;
}

.main-container {
	background: #fff;
}

.main-container img, .main-container video {
	box-shadow: 5px 5px 10px silver;
	margin: 1em 0;
}

.title {
	color: #fff;
}

/* Nav ---------------------------------------------------------------------- */

nav ul {
	margin: 0;
	padding: 0;
}

nav a {
	display: block;
	margin-bottom: 10px;
	padding: 15px 0;
	text-align: center;
	font-weight: bold;
	color: #fff;
	background: #e44d26;
}

nav a:hover, nav a:visited {
	color: #fff;
}

nav a:hover {
	text-decoration: underline;
}

/* Panels ------------------------------------------------------------------- */

#panel, #panelchsp {
	background: #d4d4cf;
	padding: 1em;
}

#panelchsp {
	clear: both;
	text-align: center;
}

#panel p {
	text-indent: 0;
}

#panel h2 {
	margin: 0;
	color: #807f00;
}

/* Q&A blocks --------------------------------------------------------------- */

#question {
	text-indent: 0;
	color: gray;
	font-style: italic;
	font-size: 1em;
	line-height: 1.3;
	max-width: 80%;
	orphans: 4;
	padding: 4px 0;
}

#answer {
	margin-left: 3em;
	text-indent: 0;
	padding-bottom: 1em;
}

#first {
	text-indent: 0;
	margin-top: 0;
	padding-top: 0;
}

/* Buttons ------------------------------------------------------------------ */

.return a {
	color: navy;
	background: #e8e53f;
	font-size: 15px;
	padding: 15px;
	text-transform: uppercase;
	border-radius: 5px;
	box-shadow: 5px 5px 5px gray;
	position: fixed;
	right: 10px;
	bottom: 10px;
	width: 10em;
	line-height: 1em;
}

.return a:hover {
	box-shadow: 3px 3px 3px gray;
}

/* Misc content blocks ------------------------------------------------------ */

#damaris p {
	text-indent: -6em;
	margin-left: 6em;
}

#author {
	margin-top: 2em;
	text-indent: 0;
}

#date {
	font-family: "Averia Serif Libre", serif;
	font-style: italic;
	margin-top: 0;
	text-align: right;
}

#name, #citysidereports #name {
	color: olive;
	text-indent: 0;
	border-top: 1px solid silver;
	padding-top: 20px;
	font-size: 120%;
}

.chsp-image-box, .chsp-image-box img {
	max-width: 100%;
}

.imageWithCaption img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 0;
}

figure {
	margin: 0;
	padding: 0;
	float: left;
}

.imageWithCaption figcaption {
	display: block;
	color: #333;
	padding: 15px;
	text-align: left;
	font-size: 1em;
	margin-left: 3em;
	font-weight: bold;
	font-style: italic;
}

/* Image pairing ------------------------------------------------------------ */

.image-wrapper {
	display: flex;
	gap: 1em;
	margin: auto;
}

.landscape, .portrait {
	object-fit: cover;
	max-height: 100%;
	height: 100%;
	width: auto;
}

.landscape {
	flex-grow: 2;
}

.portrait {
	flex-grow: 1;
}

/* Flexible image grid (legacy classes retained) ---------------------------- */

.imgrow {
	display: flex;
	flex-wrap: wrap;
	padding: 0 14px;
}

.img1column, .img2column, .img3column {
	padding: 0 4px;
}

.img1column {
	flex: 100%;
	max-width: 100%;
}

.img2column {
	flex: 45%;
	max-width: 45%;
}

.img3column {
	flex: 33%;
	max-width: 33%;
}

.imgcolumn img, .img2column img, .img1column img {
	margin-top: 8px;
	vertical-align: middle;
	width: 100%;
}

/* Variable image container ------------------------------------------------- */

#variable-image-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5em;
	max-width: 60em;
	margin: 0 auto;
	align-items: center;
}

#portrait-img, #landscape-img {
	width: 100%;
	height: auto;
	max-height: 100vh;
	object-fit: contain;
}

/* Gallery ------------------------------------------------------------------ */

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	max-width: 42em;
	width: 100%;
	padding: 1em;
	box-sizing: border-box;
}

.gallery img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Framed image with caption ------------------------------------------------ */

.image-frame {
	display: inline-block;
	border: 2px solid #ccc;
	padding: 10px;
	margin: 10px;
	text-align: center;
}

.image-frame img {
	max-width: 100%;
}

.image-frame figcaption {
	font-size: 14px;
	color: #888;
	margin-top: 5px;
}

/* Sections ----------------------------------------------------------------- */

section {
	clear: both;
}

.caption, .chsp-caption {
	font-style: italic;
	margin: 10px 0 30px;
	font-size: .8em;
	line-height: 1.1;
	padding-right: 4em;
	text-indent: 0;
}

/* Media queries ------------------------------------------------------------ */

@media (max-width: 768px) {
	.image-wrapper {
		flex-direction: column;
		height: auto;
	}
	
	.landscape, .portrait {
		width: 100%;
		height: auto;
	}
}

@media (max-width: 800px) {
	.img3column {
		flex: 50%;
		max-width: 50%;
	}
}

@media (max-width: 600px) {
	.img2column, .img3column {
		flex: 100%;
		max-width: 100%;
	}
}

@media (max-width: 42em) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 28em) {
	.gallery {
		grid-template-columns: 1fr;
	}
}

@media only screen and (min-width: 480px) {
	nav a {
		float: left;
		width: 27%;
		margin: 0 1.7%;
		padding: 25px 2%;
	}
	
	nav li:first-child a {
		margin-left: 0;
	}
	
	nav li:last-child  a {
		margin-right: 0;
	}
	
	nav ul li {
		display: inline;
	}
}

@media only screen and (min-width: 768px) {
	.header-container, .main aside {
		box-shadow: 0 5px 10px #aaa;
	}
	
	.title {
		float: left;
	}
	
	nav {
		float: right;
		width: 38%;
	}
	
	.main article {
		max-width: 42em;
		padding: 0 1em;
	}
	
	.main aside {
		float: right;
		width: 28%;
	}
}

@media only screen and (min-width: 1140px) {
	.wrapper {
		width: 1026px;
		margin: 0 auto;
	}
}

/* Print -------------------------------------------------------------------- */

@media print {
	* {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}
	
	body {
		font: 11pt/1.5em Merriweather, serif;
	}
	
	.return, #kidsreports, .image-wrapper {
		display: none !important;
	}
	
	a, a:visited {
		text-decoration: underline;
	}
	
	a[href]::after {
		content: " (" attr(href) ")";
	}
	
	abbr[title]::after {
		content: " (" attr(title) ")";
	}
	
	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}
	
	thead {
		display: table-header-group;
	}
	
	tr, img {
		page-break-inside: avoid;
	}
	
	img {
		max-width: 100% !important;
	}
	
	  @page {
	margin: .5cm;
	}
	
	  h1, h2 {
		break-before: page;
	}
	
	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}
	
	h2, h3 {
		page-break-after: avoid;
	}
}