/* Blog: list of posts, a post, comments, the "write a post" form, reader questions.
   Same palette as the rest of the site (cream, black, RAW red). No italics in the
   interface; sizes stay at 15px and up. */

.tag-topic { background: #ffd9d9; }

/* ---------- small list of posts (homepage, writer pages) ---------- */
.latest-posts,
.writer-posts {
	margin: 0 0 36px;
}

.writer-posts {
	border-top: 1px solid #ddd;
	margin-top: 40px;
	padding-top: 24px;
}

.writer-posts h2 {
	font-size: 24px;
	margin-bottom: 16px;
}

.latest-head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	justify-content: space-between;
}

.latest-head a {
	font-size: 17px;
	font-weight: 700;
}

.entry-content ul.post-mini,
.post-mini {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .post-mini > li {
	list-style: none;
	margin: 0;
}

.post-mini a {
	background: #fff;
	border: 1px solid #e6d7b8;
	border-radius: 8px;
	color: #111;
	display: flex;
	gap: 14px;
	height: 100%;
	padding: 12px;
	text-decoration: none;
}

.post-mini a:hover,
.post-mini a:focus {
	border-color: #111;
}

.post-mini img,
.pm-noimg {
	aspect-ratio: 1 / 1;
	background: #f1e6cd;
	border-radius: 6px;
	flex: 0 0 76px;
	height: 76px;
	object-fit: cover;
	width: 76px;
}

.pm-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pm-kicker,
.post-kicker {
	color: #a30000;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .06em;
	margin: 0;
	text-transform: uppercase;
}

.post-kicker a {
	color: inherit;
	text-decoration: none;
}

.post-kicker a:hover,
.post-kicker a:focus {
	text-decoration: underline;
}

.pm-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.pm-by {
	color: #444;
	font-size: 15px;
}

.writer-posts-all {
	font-weight: 700;
	margin: 14px 0 0;
}

/* ---------- the list of posts ---------- */
.blog-intro {
	font-size: 20px;
	margin: 0 0 16px;
}

.blog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 24px;
}

.blog-filter {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 8px;
	font-weight: 700;
	padding: 10px 14px;
}

.entry-content ul.post-cards,
.post-cards {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .post-cards > li.post-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0 0 20px;
	padding: 20px;
}

.post-card[hidden] {
	display: none !important;
}

.pc-pic {
	flex: 0 0 200px;
}

.pc-pic img {
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.pc-body {
	min-width: 0;
}

.entry-content .pc-title {
	font-size: 26px;
	line-height: 1.25;
	margin: 2px 0 6px;
}

.pc-title a {
	color: #000;
	text-decoration: none;
}

.pc-title a:hover,
.pc-title a:focus {
	color: #a30000;
	text-decoration: underline;
}

.post-byline {
	color: #333;
	font-size: 16px;
	margin: 0 0 10px;
}

.pc-excerpt {
	margin: 0 0 12px;
}

.pc-body .tag-list {
	margin: 0;
}

.blog-empty {
	font-size: 19px;
}

/* ---------- one post ---------- */
.post-banner {
	margin: 0 0 28px;
}

.post-banner img {
	border-radius: 8px;
	display: block;
	height: auto;
	max-height: 460px;
	object-fit: cover;
	width: 100%;
}

.post-head .entry-title {
	line-height: 1.2;
	margin: 4px 0 10px;
}

.post-head .tag-list {
	margin: 0 0 8px;
}

.post-body {
	max-width: 760px;
}

.post-body .post-section {
	margin: 0 0 30px;
}

.post-body .post-section h2 {
	border-left: 6px solid #ef0000;
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 12px;
	padding-left: 14px;
}

.post-body .post-section h3 {
	font-size: 21px;
	margin: 22px 0 8px;
}

.post-body blockquote {
	border-left: 4px solid #c9b88f;
	color: #111;
	margin: 0 0 20px;
	padding: 2px 0 2px 18px;
}

.post-body blockquote::before {
	content: none;
}

.post-body blockquote p {
	margin: 0;
}

.post-figure {
	margin: 18px 0 0;
}

.post-figure img {
	border-radius: 6px;
	display: block;
	height: auto;
	max-width: 100%;
}

.post-cross {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 8px;
	font-size: 17px;
	padding: 10px 14px;
}

.book-card {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 10px;
	display: flex;
	gap: 22px;
	margin: 0 0 32px;
	padding: 20px;
}

.book-cover {
	flex: 0 0 170px;
	margin: 0;
}

.book-cover img {
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	display: block;
	height: auto;
	width: 100%;
}

.book-facts {
	flex: 1;
	min-width: 0;
}

.book-title {
	font-size: 24px;
	font-weight: 900;
	line-height: 1.25;
	margin: 0 0 10px;
}

.book-card dl {
	margin: 0 0 14px;
}

.book-card dl div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin: 0 0 4px;
}

.book-card dt {
	font-weight: 900;
}

.book-card dd {
	margin: 0;
}

.book-buy {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.post-author {
	align-items: flex-start;
	border-top: 1px solid #ddd;
	display: flex;
	gap: 18px;
	margin-top: 36px;
	max-width: 760px;
	padding-top: 24px;
}

.post-author img {
	border-radius: 50%;
	flex: 0 0 96px;
	height: 96px;
	object-fit: cover;
	width: 96px;
}

.post-author p {
	font-size: 17px;
	margin: 0 0 6px;
}

.post-author .pa-name {
	font-size: 20px;
	font-weight: 900;
}

/* ---------- likes ---------- */
.post-actions {
	margin: 28px 0 0;
}

.like-btn {
	align-items: center;
	background: #fff;
	border: 2px solid #111;
	border-radius: 999px;
	color: #111;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	gap: 8px;
	padding: 8px 18px;
}

.like-btn:hover,
.like-btn:focus {
	background: #fbf3e2;
	color: #111;
}

.like-btn.on {
	background: #111;
	color: #fff;
	cursor: default;
}

.like-heart {
	color: #ef0000;
	font-size: 20px;
	line-height: 1;
}

/* ---------- comments ---------- */
.comments {
	border-top: 1px solid #ddd;
	margin-top: 36px;
	max-width: 760px;
	padding-top: 24px;
}

.comments h2 {
	font-size: 26px;
	margin: 0 0 14px;
}

.entry .comment-list,
.comment-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.entry .comment-list > li,
.comment {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 14px 16px;
}

.comment-list.replies {
	border-left: 4px solid #e6d7b8;
	margin: 12px 0 0;
	padding-left: 14px;
}

.comment-list.replies > li {
	background: #fbf9f3;
}

.comment p {
	font-size: 17px;
	margin: 0 0 8px;
}

.comment-meta {
	color: #333;
}

.comment-none {
	color: #333;
}

.comment-form h3 {
	font-size: 22px;
	margin: 0;
}

.comment-who {
	display: grid;
	gap: 0 16px;
	grid-template-columns: 1fr 1fr;
}

.replying {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 6px;
	margin: 12px 0 0;
	padding: 8px 12px;
}

.raw-join .button {
	background: #000;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 17px;
	font-weight: 700;
	padding: 14px 26px;
}

.raw-join .button:hover,
.raw-join .button:focus {
	background: #ef0000;
}

/* ---------- write a post ---------- */
.raw-post {
	max-width: 800px;
}

.entry-content .post-step {
	border-top: 2px solid #111;
	font-size: 26px;
	margin: 44px 0 4px;
	padding-top: 18px;
}

.raw-join .post-choice {
	align-items: flex-start;
	background: #fff;
	border: 2px solid #bbb;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin: 8px 0;
	padding: 12px 14px;
}

.raw-join .post-choice:has(input:checked) {
	background: #fbf3e2;
	border-color: #111;
}

.raw-join .post-choice input {
	flex: 0 0 auto;
	height: 20px;
	margin: 4px 0 0;
	width: 20px;
}

.post-choice strong {
	font-weight: 900;
}

.post-choice-about {
	color: #222;
}

.post-grid {
	display: grid;
	gap: 0 18px;
	grid-template-columns: 1fr 1fr;
}

.post-q {
	background: #fff;
	border: 2px solid #555;
	border-radius: 10px;
	margin: 0 0 16px;
	padding: 14px 16px 16px;
}

.post-q.off {
	background: #f6f6f6;
	border: 2px dashed #999;
}

.post-q-head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.raw-join .post-q .q-h {
	border-color: transparent transparent #999;
	border-width: 0 0 2px;
	flex: 1 1 240px;
	font-size: 21px;
	font-weight: 900;
	padding: 6px 2px;
	width: auto;
}

.raw-join .post-q .q-h:focus {
	border-color: #000;
}

.post-q.off .q-h {
	background: transparent;
	color: #333;
}

.q-tools {
	display: flex;
	gap: 6px;
}

.raw-join .q-tools button:disabled {
	border-color: #bbb;
	color: #888;
	cursor: default;
}

.raw-join .q-skip[aria-pressed="true"] {
	background: #111;
	border-color: #111;
	color: #fff;
}

.q-nudge {
	font-size: 18px;
	margin: 10px 0 0;
}

.q-local {
	background: #d9f0e3;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	margin-left: 6px;
	padding: 2px 10px;
}

.q-body {
	margin-top: 10px;
}

.q-pic {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.q-pic .join-photo {
	margin: 0;
	max-height: 140px;
}

.raw-join .q-pic .q-alt {
	flex: 1 1 260px;
	width: auto;
}

.post-more-tags {
	border: 1px solid #ddd;
	border-radius: 10px;
	margin: 0 0 10px;
	padding: 8px 14px;
}

.post-more-tags summary {
	cursor: pointer;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.post-tag-wrap {
	display: flex;
	flex-wrap: wrap;
	padding: 4px 0 8px;
}

.post-preview {
	background: #fff;
	border: 2px solid #111;
	border-radius: 10px;
	margin: 0 0 20px;
	padding: 24px;
}

/* ---------- reader questions ---------- */
.q-board {
	margin: 0 0 20px;
}

.entry-content ul.q-items,
.q-items {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.entry-content .q-items > li.q-item {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	list-style: none;
	margin: 12px 0;
	padding: 14px 16px;
}

.q-item p {
	margin: 0 0 8px;
}

.q-line {
	font-size: 20px;
	font-weight: 700;
}

@media only screen and (max-width: 800px) {
	.entry-content ul.post-mini,
	.post-mini {
		grid-template-columns: 1fr;
	}

	.entry-content .post-cards > li.post-card,
	.book-card {
		flex-direction: column;
	}

	.pc-pic {
		flex: none;
	}

	.book-cover {
		flex: none;
		max-width: 200px;
	}

	.post-grid,
	.comment-who {
		grid-template-columns: 1fr;
	}

	.post-author img {
		flex-basis: 72px;
		height: 72px;
		width: 72px;
	}
}

/* The form's own rules set display on pictures and rows; keep hidden things hidden. */
.raw-join [hidden],
.comments [hidden] {
	display: none !important;
}

/* ---------- book catalog ---------- */
.book-tools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0 0 20px;
}

.book-tools input[type=search],
.book-tools select {
	background: #fff;
	border: 2px solid #555;
	font-size: 17px;
	padding: 9px 12px;
}

.book-tools .search {
	flex: 1 1 240px;
}

.book-tools .search input {
	width: 100%;
}

.book-soon {
	align-items: center;
	display: inline-flex;
	font-size: 17px;
	font-weight: 700;
	gap: 8px;
}

.book-soon input {
	height: 20px;
	width: 20px;
}

.entry-content ul.book-grid,
.book-grid {
	display: grid;
	gap: 26px 20px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content ul.book-grid.small,
.book-grid.small {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.entry-content .book-grid > li.book-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
	margin: 0;
}

.book-tile[hidden] {
	display: none !important;
}

.book-tile > a {
	color: #000;
	text-decoration: none;
}

.book-tile > a:hover .tile-title,
.book-tile > a:focus .tile-title {
	color: #a30000;
	text-decoration: underline;
}

.tile-cover {
	aspect-ratio: 2 / 3;
	background: #f1e6cd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
	margin: 0 0 10px;
	overflow: hidden;
}

.tile-cover img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

/* a real cover sits on the page, not on a tinted panel */
figure.tile-cover {
	background: none;
	box-shadow: none;
}

figure.tile-cover img {
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .3));
	object-position: bottom;
}

.book-cover img {
	box-shadow: none;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

/* no cover yet: the title on a plain tile */
.no-cover {
	align-items: center;
	background: #2f3b45;
	border: 6px solid #f6eedc;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
	color: #fff;
	display: flex;
	justify-content: center;
	outline: 1px solid #2f3b45;
	padding: 12px;
	text-align: center;
}

.no-cover span {
	font-size: 17px;
	font-weight: 900;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.book-cover.no-cover {
	aspect-ratio: 2 / 3;
	border-radius: 4px;
}

.tile-title {
	display: block;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.25;
}

.tile-by {
	font-size: 16px;
}

.tile-when,
.book-release {
	color: #a30000;
	font-size: 15px;
	font-weight: 900;
}

.book-release {
	font-size: 18px;
	margin: 0 0 10px;
}

.book-page {
	display: flex;
	gap: 30px;
	margin: 0 0 10px;
}

.book-page .book-cover {
	flex: 0 0 260px;
}

.book-page .book-by,
.book-card .book-by {
	font-size: 19px;
	margin: 0 0 8px;
}

.book-page dl {
	margin: 16px 0;
}

.book-page dl div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin: 0 0 4px;
}

.book-page dt {
	font-weight: 900;
}

.book-page dd {
	margin: 0;
}

.book-cover-link {
	flex: 0 0 170px;
}

.book-card .book-cover-link .book-cover {
	flex: none;
}

.book-title a {
	color: #000;
	text-decoration: none;
}

.book-title a:hover,
.book-title a:focus {
	text-decoration: underline;
}

.news-facts {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-left: 6px solid #ef0000;
	border-radius: 8px;
	margin: 0 0 28px;
	padding: 16px 20px;
}

.news-facts dl {
	margin: 0 0 10px;
}

.news-facts dl div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin: 0 0 4px;
}

.news-facts dt {
	font-weight: 900;
}

.news-facts dd {
	font-size: 19px;
	margin: 0;
}

/* ---------- add your books ---------- */
.book-row {
	display: grid;
	gap: 8px;
	grid-template-columns: 2.2fr 1.5fr .5fr 1.2fr 1fr 1.6fr auto;
	margin: 0 0 10px;
}

.raw-join .book-row input,
.raw-join .book-row select {
	font-size: 16px;
	padding: 8px;
}

.post-new-book {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 10px;
	margin: 14px 0 0;
	padding: 4px 18px 18px;
}

@media only screen and (max-width: 800px) {
	.book-page {
		flex-direction: column;
	}

	.book-page .book-cover {
		flex: none;
		max-width: 220px;
	}

	.book-row {
		border-bottom: 2px solid #ccc;
		grid-template-columns: 1fr 1fr;
		padding-bottom: 12px;
	}

	.book-row .r-title,
	.book-row .r-link {
		grid-column: 1 / -1;
	}

	.book-cover-link {
		flex: none;
		max-width: 180px;
	}
}

/* A post whose picture is a book cover: show the whole cover, small, on the plain page. */
.pc-pic.is-cover {
	display: flex;
	justify-content: center;
}

.pc-pic.is-cover img {
	aspect-ratio: auto;
	border-radius: 3px;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .3));
	height: auto;
	max-height: 230px;
	object-fit: contain;
	width: auto;
	max-width: 100%;
}

.post-mini img.is-cover {
	background: none;
	border-radius: 2px;
	object-fit: contain;
}

.more-by-all {
	margin: 18px 0 0;
}

.blog-rss {
	align-self: center;
	font-size: 17px;
	font-weight: 700;
}

.raw-join .post-calendar {
	grid-column: 1 / -1;
}

.post-grid input[type=date],
.post-grid input[type=time] {
	font-family: inherit;
}

/* ---------- share ---------- */
.share {
	margin: 22px 0 0;
	max-width: 760px;
}

.share-label {
	font-size: 17px;
	font-weight: 900;
	margin: 0 0 8px;
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.share-link,
.entry-content .share-link {
	background: #fff;
	border: 2px solid #111;
	border-radius: 999px;
	color: #111;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	padding: 7px 14px;
	text-decoration: none;
}

.share-link:hover,
.share-link:focus {
	background: #111;
	color: #fff;
}

.share-link[hidden] {
	display: none;
}

.share-status {
	font-size: 16px;
	font-weight: 700;
	margin: 8px 0 0;
	min-height: 1.4em;
}

/* ---------- event on a post (picker on the form) ---------- */
.post-event {
	background: #fbf3e2;
	border: 1px solid #e6d7b8;
	border-radius: 10px;
	margin: 18px 0 0;
	padding: 6px 18px 16px;
}

.post-event [hidden] {
	display: none !important;
}

.raw-join .post-event select {
	background: #fff;
}

.ev-biz-note {
	grid-column: 1 / -1;
}
