body {
	/*max-width: 50rem;*/
	width: 90%;
	margin: 1% auto;
	word-break: break-word;
	background-color: #f2f1e0;
	/*#e3e1c7;*/
}

div[role=main] {
	max-width: 50rem;
	margin: 0 auto;
}

footer {
	border-top: 2px groove;
}

nav span:before {
	content: '/ ';
}
nav span:first-child:before {
	content: '';
}

.top-link:before {
	content: '※ ';
}

.writing-group {
	column-count: 2;
	padding-bottom: 1em;
	border-bottom: 2px groove #000;
	margin-bottom: 1em;
}

.writing-group:last-child {
	border-bottom: none;
}

.writing-group ul {
	margin: 0;
}

/*#front-image {
	text-align: center;
}
#front-image img {
	margin: 0 auto;
	max-width: 180px;
}*/

.codeblock {
	background-color: #fffbde;
	color: #000;
	padding: 1em;
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
}

.timestamp,.tags {
	font-size: 82%;
}

/* headings */

.front-heading {
	font-size: 1em;
}

.writing-group h2 {
	text-decoration: underline;
}

header h1 {
	/*border-bottom: .35em solid #000;*/
}
h1,h2,h3,h4,h5 {
	clear: both;
}
h1.thin,h2.thin,h3.thin,h4.thin,h5.thin {
	font-style: italic;
	font-weight: normal;
}
.front-h {
	margin-top: 2em;
}
.minor-subtitle {
	font-size: 80%;
	opacity: .8;
}
.category-description {
	font-style: italic;
	margin-top: -1em;
	padding-top: 0;
}

/* lists */

ul.striped {
	padding-left: 0;
}
ul.striped li {
	list-style-type: none;
	line-height: 1.4em;
	padding: .1em;
}
ul.striped li:nth-child(odd) {
	background-color: #75757547;
	color: #000;
}

li:target {
	background-color: #BFEFFF;
	font-weight: bold;
}

ol.references,ol.footnotes {
	list-style:none;
	margin-left: 0;
	padding-left: 1.8em;
	text-indent: -1.8em;
	counter-reset: refcounter;
	font-size: 82%;
}

ol.references > li:before {
  content: " [" counter(refcounter) "] ";
  counter-increment: refcounter;
}

ol.footnotes > li:before {
  content: " (" counter(refcounter) ") ";
  counter-increment: refcounter;
}

/* images, captions */

img {
	margin: 1em;
	width: 90%;
	max-width: 400px;
}
img.small {
	max-width: max-content;
}
.front-h img {
	/*max-width: 100px;*/
	border: 0;
	max-width:100%;
	max-height:1em;
	height: auto;
	width:auto;
	margin: 0;
	padding: 0;
	margin-bottom: -3px;
}
.caption {
	font-size: 75%;
}

.left,.right {
	text-align: center;
	font-size: 75%;
	max-width: 400px;
	margin-bottom: .8em;
}
.left {
	float:left;
	margin-right: 1em;
}
.right {
	float:right;
	margin-left: 1em;
}
.left img, .right img {
	margin: 0;
}

/* aside */

.aside h4 {
	margin: 0;
	margin-top: -1.3em;
	margin-left:-.2em;
	color: green;
	text-decoration: underline dotted green;
	clear: none;
}
.aside {
	margin-left: 1em;
	margin-top: 2em;
	padding-left: .3em;
	padding-top: .3em;
	border-left: 1px dotted green;
}
.aside p:first-child {
	margin-top: 0;
}

/* formal */

.formal p {
	text-indent: 1.4em;
	line-height: 1.4em;
}

/* indexed */

.indexed .index {
	background-color: #fff;
	border: 1px solid;
	padding: .5em;
	opacity: .9;
}

.index ul {
	padding-left: 1.5em;
}

.index summary {
	cursor: pointer;
}


/* classy */

/*.hip body {
	background-color: #e3e1c7;
}*/

.hip hr {
	height: 2px;
	border-top: 1px dotted #e07526;
	border-bottom: 1px dotted #e07526;
	border-left: 0;
	border-right: 0;
	margin-top: 10px;
	margin-bottom: 0px;
	width: 80%;
	clear: both;
}

blockquote {
  border-left: 3px solid #FF5154;
  color: #1a1a1a;
  font-family: 'Cinzel', serif;
  font-style: italic;
  line-height: 1.8em;
  margin: 1.1em;
  padding: 1em 2em;
  position: relative;
  transition: 0.2s border ease-in-out;
  z-index: 0;
}
blockquote:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  height: 2em;
  background-color: #f2f1e0;
  width: 5px;
  margin-top: -1em;
}
blockquote:after {
  content: "Q";
  position: absolute;
  top: 50%;
  left: -0.5em;
  color:  #FF5154;
  font-style: normal;
  line-height: 1em;
  text-align: center;
  text-indent: -2px;
  width: 1em;
  margin-top: -0.5em;
  transition: 0.2s all ease-in-out, 0.4s transform ease-in-out;
}
blockquote cite {
  display: block;
  font-size: 0.75em;
  line-height: 1.8em;
  margin-top: 1em;
}

img {
	padding:1px;
	border:3px double #333;
	border-radius:3px;
}

.corporate-call {
	font-style: italic;
}
.corporate-response {
	font-weight: bold;
}

/* resized */

@media screen and (min-width:500px) {
	.index {
		position: fixed;
		right: 20px;
		top: 20px;
		max-width: 50%;
	}
	div[role=main].indexed {
		margin: 0 0;
	}
}
@media screen and (max-width:580px) {
	.writing-group {
		column-count: 1;
	}
	.left,.right,img.right,img.left,.right img,.left img {
		clear: both;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 0;
		margin-top: 0;
		float: none;
	}
  	  blockquote {
    border-top: 2px solid #FF5154;
    border-bottom: 2px solid #FF5154;
    border-left: none;
    margin: 1.5em 0;
    padding: 1.5em 1em;
  }
  blockquote:before {
    left: 50%;
    top: 0;
    height: 4px;
    margin-top: -3px;
    margin-left: -1em;
    width: 2em;
  }
  blockquote:after {
    font-size: 0.75em;
    left: 50%;
    top: 0;
    margin-top: -0.5em;
    margin-left: -0.5em;
  }
  blockquote cite {
    text-align: right;
  }
}
