/*
Theme Name: The Other McCain
Theme URI: https://theothermccain.com/
Description: A classic (non-block) WordPress theme for The Other McCain. One sidebar, responsive, modern typography, works without JavaScript. Design cues taken from the site's original "Elements of SEO" layout: top stripe, right-aligned nav, serif masthead, banner, firebrick links, dashed widget titles, gray category box.
Author: The Other McCain
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theothermccain
Tags: blog, two-columns, right-sidebar, custom-header, custom-menu, threaded-comments, translation-ready
*/

/* ------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------ */
:root {
	--font-serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--color-bg: #ffffff;
	--color-text: #232629;
	--color-text-soft: #4b5257;
	--color-muted: #6f7a7c;
	--color-heading: #14181a;

	--color-accent: #b22222;       /* firebrick: links, nav, site title */
	--color-accent-dark: #8c1a1a;
	--color-visited: #4682b4;      /* steel blue: visited links in post bodies */
	--color-slate: #4c666a;        /* slate: hover, rules, dashed widget titles */
	--color-slate-light: #657e82;
	--color-meta: #a97965;         /* warm brown: "Posted on" line */

	--color-rule: #e2ddde;
	--color-rule-strong: #c6c5c5;
	--color-panel: #efefef;
	--color-panel-border: #dddcdc;
	--color-quote: #f4f4f4;

	--container: 1100px;
	--measure: 760px;
	--sidebar-width: 300px;
	--gutter: clamp(1rem, 3vw, 2rem);
	--radius: 3px;
}

/* ------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-serif);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

[hidden] {
	display: none !important;
}

img,
video,
iframe,
embed,
object,
svg {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

/* Links: firebrick, no underline until hover, as on the original site. */
a {
	color: var(--color-accent);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.12s ease;
}

a:hover {
	color: var(--color-slate);
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--color-slate);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--color-heading);
	margin: 1.5em 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; }

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-rule);
	margin: 2rem 0;
}

b,
strong {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

abbr[title] {
	text-decoration: underline dotted;
	cursor: help;
}

code,
kbd,
samp,
pre {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

pre {
	background: var(--color-panel);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 1rem;
	overflow: auto;
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

code {
	background: var(--color-panel);
	padding: 0.1em 0.3em;
	border-radius: 2px;
}

pre code {
	background: none;
	padding: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.25rem;
	font-size: 0.95em;
}

th,
td {
	padding: 0.5rem 0.65rem;
	border-bottom: 1px solid var(--color-rule);
	text-align: left;
	vertical-align: top;
}

th {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-text-soft);
}

figure {
	margin: 0 0 1.25rem;
}

figcaption {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	color: var(--color-muted);
	margin-top: 0.4rem;
}

/* ------------------------------------------------------------------
   3. Forms and buttons
   ------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--color-text);
	background: #fff;
	border: 1px solid #c9c9c9;
	border-radius: var(--radius);
	padding: 0.5rem 0.65rem;
	max-width: 100%;
}

input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--color-slate);
}

textarea {
	width: 100%;
	min-height: 8rem;
	resize: vertical;
}

button,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	color: #fff;
	background: var(--color-accent);
	border: 1px solid var(--color-accent-dark);
	border-radius: var(--radius);
	padding: 0.5rem 0.9rem;
	cursor: pointer;
	text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--color-accent-dark);
	color: #fff;
}

/* PayPal and other image buttons that live inside post content. */
input[type="image"] {
	border: 0;
	padding: 0;
	background: none;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	max-width: 100%;
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

.search-field {
	width: 100%;
}

/* ------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* The original 9px top stripe (white / gray / white / slate / dark slate), full width. */
.site-stripe {
	height: 9px;
	background: linear-gradient(
		to bottom,
		#ffffff 0 3px,
		#989898 3px 4px,
		#ffffff 4px 5px,
		#657e82 5px 8px,
		#4c666a 8px 9px
	);
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 3rem;
	align-items: start;
	padding-top: 0.5rem;
	padding-bottom: 3rem;
}

.site-main {
	min-width: 0;
	max-width: var(--measure);
}

@media (min-width: 900px) {
	.site-content {
		grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
	}

	.no-sidebar .site-content {
		grid-template-columns: minmax(0, var(--measure));
	}
}

/* ------------------------------------------------------------------
   5. Header: nav, masthead, banner
   ------------------------------------------------------------------ */
.site-header {
	padding: 0.25rem 0 1.25rem;
}

.site-nav {
	display: flex;
	justify-content: flex-end;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0.5rem 0 1.25rem;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

.nav-list li {
	position: relative;
}

.nav-list a {
	display: inline-block;
	color: var(--color-accent);
	text-decoration: none;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
}


.nav-list a:hover {
	text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current_page_ancestor > a {
	color: var(--color-slate);
	border-bottom-color: currentColor;
}

/* Sub-menus: CSS-only dropdowns on wide screens, inline lists on narrow ones. */
.nav-list .sub-menu,
.nav-list .children {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

@media (min-width: 900px) {
	.nav-list .sub-menu,
	.nav-list .children {
		position: absolute;
		top: 100%;
		right: 0;
		min-width: 14rem;
		background: #fff;
		border: 1px solid var(--color-rule);
		border-radius: var(--radius);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
		z-index: 20;
		display: none;
	}

	.nav-list li:hover > .sub-menu,
	.nav-list li:focus-within > .sub-menu,
	.nav-list li:hover > .children,
	.nav-list li:focus-within > .children {
		display: block;
	}

	.nav-list .sub-menu a,
	.nav-list .children a {
		display: block;
		padding: 0.4rem 0.9rem;
		border-bottom: 0;
		white-space: nowrap;
	}

	.nav-list .sub-menu a:hover,
	.nav-list .children a:hover {
		background: var(--color-panel);
	}
}

@media (max-width: 899px) {
	.site-nav {
		justify-content: flex-start;
		margin-bottom: 1rem;
	}

	.nav-list {
		gap: 0 1.25rem;
	}

	/* Sub-pages sit inline under their parent, slightly smaller. */
	.nav-list .sub-menu,
	.nav-list .children {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1rem;
		padding: 0;
		font-size: 0.75rem;
	}

	.nav-list .sub-menu a,
	.nav-list .children a {
		padding-top: 0;
	}
}

.site-branding {
	margin: 0 0 1rem;
}

.site-title {
	font-family: var(--font-serif);
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}

.site-title a {
	color: var(--color-accent);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--color-accent-dark);
	text-decoration: none;
}

.site-description {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #767676;
}

.site-banner {
	margin: 0 0 0.5rem;
}

.site-banner a {
	display: inline-block;
	line-height: 0;
	border-radius: 2px;
}

.site-banner__img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------
   6. Posts
   ------------------------------------------------------------------ */
.hentry {
	margin: 0 0 2.5rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--color-rule);
}

.site-main > .hentry:last-of-type {
	border-bottom: 0;
}

.entry-title {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem);
	line-height: 1.2;
	margin: 0.25rem 0 0.5rem;
}

.entry-title a {
	color: var(--color-heading);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.entry-meta {
	font-family: var(--font-serif);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--color-meta);
	margin: 0 0 1.25rem;
}

.entry-meta b {
	font-weight: 700;
}

.entry-meta a {
	color: var(--color-accent);
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--color-slate);
	text-decoration: underline;
}

.entry-meta .sep {
	margin: 0 0.4em;
	color: var(--color-rule-strong);
}

.entry-thumbnail {
	margin: 0 0 1.25rem;
}

.entry-thumbnail img {
	display: block;
	border-radius: var(--radius);
}

.entry-content > :first-child,
.entry-summary > :first-child {
	margin-top: 0;
}

.entry-content > :last-child,
.entry-summary > :last-child {
	margin-bottom: 0;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content a:visited {
	color: var(--color-visited);
}

.entry-content a:hover,
.entry-content a:visited:hover {
	color: var(--color-slate);
	text-decoration: underline;
}

.entry-content .more-link {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.entry-content blockquote,
.comment-content blockquote {
	margin: 1.25rem 0;
	padding: 0.75rem 1.25rem;
	background: var(--color-quote);
	border-left: 3px solid var(--color-slate);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #555;
}

blockquote > :last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--color-muted);
}

/* WordPress image alignment (legacy classes used throughout the archive). */
.alignleft {
	float: left;
	margin: 0.35rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	clear: both;
	margin: 1rem auto;
}

.alignnone {
	margin: 0.5rem 0 1rem;
}

@media (max-width: 560px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		display: block;
		margin: 1rem auto;
	}

	.entry-content a > img.alignleft,
	.entry-content a > img.alignright {
		margin: 1rem auto;
	}
}

.wp-caption {
	max-width: 100%;
	background: #f3f3f3;
	border: 1px solid #ddd;
	border-radius: var(--radius);
	padding: 4px;
	margin-bottom: 1rem;
	text-align: center;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
}

.wp-caption-text,
.wp-caption-dd {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #555;
	margin: 0;
	padding: 0.35rem 0.5rem;
}

.gallery {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	margin: 0 0 1.25rem;
}

.gallery-item {
	margin: 0;
}

.gallery-caption {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	color: var(--color-muted);
}

.sticky .entry-title::before {
	content: "\2605\00a0";
	color: var(--color-accent);
}

.page-links {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	margin: 1.5rem 0 0;
}

.page-links .post-page-numbers {
	display: inline-block;
	min-width: 2em;
	text-align: center;
	padding: 0.2em 0.4em;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius);
	text-decoration: none;
}

.page-links .post-page-numbers.current {
	background: var(--color-panel);
}

/* Category box (the original .bt-links). */
.entry-footer {
	margin-top: 1.5rem;
	background: var(--color-panel);
	border: 1px solid var(--color-panel-border);
	border-radius: var(--radius);
	padding: 0.65rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.entry-footer:empty {
	display: none;
}

.entry-footer .meta-group {
	display: block;
}

.entry-footer strong {
	color: #444;
}

.entry-footer a {
	text-decoration: none;
}

.entry-footer a:hover {
	text-decoration: underline;
}

.entry-footer .edit-link a {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
}

/* Page headers on archive / search / 404. */
.page-header {
	margin: 0 0 2rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--color-rule);
}

.page-title {
	font-size: 1.5rem;
	margin: 0;
}

.page-title .search-term {
	color: var(--color-accent);
}

.archive-description {
	color: var(--color-text-soft);
	margin: 0.5rem 0 0;
}

.archive-description > :last-child {
	margin-bottom: 0;
}

/* Search results and the 404 page. */
.entry-summary {
	margin-top: 0.5rem;
}

.error-404 .search-form {
	max-width: 28rem;
	margin: 1.5rem 0 2rem;
}

.error-404 .widget {
	margin-top: 2rem;
}

/* ------------------------------------------------------------------
   7. Navigation between posts / pages of posts
   ------------------------------------------------------------------ */
.posts-navigation,
.post-navigation,
.pagination,
.comment-navigation {
	margin: 1.5rem 0 2rem;
	font-family: var(--font-serif);
	font-size: 1.0625rem;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.nav-links a {
	text-decoration: none;
	font-weight: 400;
}

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

/* WordPress puts the "older" link in .nav-previous; keep "newer" on the left, "older" on the right. */
.posts-navigation .nav-previous {
	order: 2;
	margin-left: auto;
	text-align: right;
}

.posts-navigation .nav-next {
	order: 1;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 45%;
	min-width: 0;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-links a {
	display: block;
}

.post-navigation .nav-subtitle {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 0.2rem;
}

.post-navigation .nav-title {
	color: var(--color-heading);
}

.post-navigation a:hover {
	text-decoration: none;
}

.post-navigation a:hover .nav-title {
	color: var(--color-accent);
	text-decoration: underline;
}

.pagination .nav-links {
	justify-content: center;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	gap: 0.35rem;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.2em;
	padding: 0.35em 0.6em;
	text-align: center;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination a.page-numbers:hover,
.page-links a.post-page-numbers:hover {
	text-decoration: none;
	background: var(--color-panel);
}

.pagination .page-numbers.current {
	background: var(--color-panel);
	color: var(--color-heading);
}

.pagination .page-numbers.dots {
	border: 0;
}

/* ------------------------------------------------------------------
   8. Sidebar
   ------------------------------------------------------------------ */
.widget-area {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--color-text-soft);
	min-width: 0;
}

@media (min-width: 900px) {
	.widget-area {
		border-left: 1px solid var(--color-rule);
		padding-left: 1.75rem;
	}
}

@media (max-width: 899px) {
	.widget-area {
		margin-top: 2.5rem;
		padding-top: 2rem;
		border-top: 1px solid var(--color-rule);
	}
}

.widget {
	margin: 0 0 2rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title,
.widget .widgettitle {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #444;
	margin: 0 0 0.75rem;
	padding: 0 0 0.4rem;
	border-bottom: 1px dashed var(--color-slate);
}

.widget-title a {
	color: inherit;
	text-decoration: none;
}

.widget-title a:hover {
	text-decoration: none;
	color: var(--color-accent);
}

.widget a {
	color: var(--color-accent);
	text-decoration: none;
}

.widget a:hover {
	color: var(--color-slate);
	text-decoration: underline;
}

.widget p {
	margin: 0 0 0.75rem;
}

.widget > :last-child,
.widget > div > :last-child {
	margin-bottom: 0;
}

.widget ul,
.widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	position: relative;
	padding: 0.25rem 0 0.25rem 0.9rem;
}

/* Small red marker, a nod to the original 4x6 bullet gif. */
.widget li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 5px;
	height: 5px;
	background: var(--color-accent);
	transform: rotate(45deg);
}

.widget li li {
	padding-left: 0.9rem;
}

.widget select {
	width: 100%;
}

.widget img {
	max-width: 100%;
	height: auto;
}

.widget_rss .rss-date,
.widget_rss cite {
	display: block;
	font-size: 0.75rem;
	color: var(--color-muted);
}

.widget_rss .rssSummary {
	margin: 0.2rem 0 0;
}

.widget_recent_comments .comment-author-link {
	font-weight: 600;
}

.widget_calendar table {
	font-size: 0.8125rem;
	margin: 0;
}

.widget_calendar caption {
	font-weight: 700;
	padding: 0 0 0.4rem;
}

.widget_calendar th,
.widget_calendar td {
	padding: 0.25rem;
	text-align: center;
	border: 0;
}

.widget_calendar .wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	padding-top: 0.4rem;
}

.widget_tag_cloud .tagcloud a {
	display: inline-block;
	margin: 0 0.5rem 0.35rem 0;
}

.widget-more {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.3rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--color-slate);
	background: #fff;
	border: 1px solid var(--color-rule-strong);
}

.widget-more:hover {
	color: #fff;
	background: var(--color-slate);
	border-color: var(--color-slate);
}

/* ------------------------------------------------------------------
   9. Comments (native). The Disqus plugin replaces this block when active.
   ------------------------------------------------------------------ */
.comments-area {
	margin-top: 3rem;
	padding: 1.5rem 1.25rem;
	background: #f7f7f7;
	border-top: 2px solid var(--color-slate);
	border-bottom: 1px solid var(--color-slate);
	border-radius: 0 0 var(--radius) var(--radius);
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 2px solid var(--color-rule);
}

@media (min-width: 600px) {
	.comment-list .children {
		margin-left: 2rem;
	}
}

.comment-body {
	background: #fff;
	border: 1px solid #dedede;
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	margin: 0 0 1rem;
	font-size: 0.97em;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.6rem;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-author .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--color-slate);
}

.comment-author .fn {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-style: normal;
	font-weight: 700;
	color: #000;
}

.comment-author .fn a {
	color: inherit;
	text-decoration: none;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	color: var(--color-muted);
}

.comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata a:hover {
	text-decoration: underline;
}

.comment-content p {
	margin: 0 0 0.75em;
}

.comment-content > :last-child {
	margin-bottom: 0;
}

.comment-awaiting-moderation {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-style: italic;
	color: #886353;
}

.reply {
	margin-top: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
}

.reply a {
	text-decoration: none;
	font-weight: 600;
}

.bypostauthor > .comment-body {
	border-color: var(--color-slate);
	box-shadow: inset 3px 0 0 var(--color-slate);
}

.comment-respond {
	margin-top: 1.5rem;
}

.comment-form {
	display: grid;
	gap: 0.85rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	margin: 0;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	color: var(--color-muted);
}

.no-comments {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--color-muted);
}

#cancel-comment-reply-link {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	margin-left: 0.5rem;
}

#disqus_thread {
	margin-top: 2rem;
}

/* ------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------ */
.site-footer {
	margin-top: 1rem;
	padding: 2rem 0 2.5rem;
	/* The original 4px foot gif: gray / white / white / light gray. */
	background: linear-gradient(to bottom, #989898 0 1px, #ffffff 1px 3px, #c6c5c5 3px 4px) no-repeat top / 100% 4px;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--color-muted);
	text-align: center;
}

.site-footer a {
	color: var(--color-muted);
	text-decoration: none;
	border-bottom: 1px solid rgba(111, 122, 124, 0.4);
}

.site-footer a:hover {
	color: var(--color-accent);
	border-bottom-color: currentColor;
	text-decoration: none;
}

.footer-widgets {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	text-align: left;
	margin-bottom: 2rem;
	color: var(--color-text-soft);
}

.footer-widgets .widget {
	margin: 0;
}

.footer-nav ul {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.footer-nav a {
	border-bottom: 0;
}

.site-info {
	margin: 0;
}

.site-info .sep {
	margin: 0 0.45em;
	color: var(--color-rule-strong);
}

.back-to-top {
	display: inline-block;
	margin-top: 0.75rem;
}

/* With JavaScript, the footer "Top" link becomes a floating button. */
.js .back-to-top--floating {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 30;
	margin: 0;
	padding: 0.5rem 0.85rem;
	color: var(--color-slate);
	background: #fff;
	border: 1px solid var(--color-rule-strong);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.js .back-to-top--floating.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.js .back-to-top--floating:hover {
	color: #fff;
	background: var(--color-slate);
	border-color: var(--color-slate);
}

@media (prefers-reduced-motion: reduce) {
	.js .back-to-top--floating {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   11. Accessibility helpers
   ------------------------------------------------------------------ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	left: 0.5rem;
	top: 0.5rem;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--color-accent);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
	border: 1px solid var(--color-slate);
	border-radius: var(--radius);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
	z-index: 100000;
}

/* ------------------------------------------------------------------
   12. Print
   ------------------------------------------------------------------ */
@media print {
	.site-stripe,
	.site-nav,
	.site-banner,
	.widget-area,
	.site-footer,
	.posts-navigation,
	.post-navigation,
	.comment-respond,
	.back-to-top,
	.skip-link {
		display: none !important;
	}

	body {
		font-size: 11pt;
		color: #000;
	}

	.site-content {
		display: block;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	.entry-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		color: #555;
	}
}
