/* ============================================================
   WikiPress Theme - Main Stylesheet
   A clean Wikipedia-style layout for encyclopedia articles.
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
	--wikipress-primary: #0645ad;
	--wikipress-primary-hover: #043a7a;
	--wikipress-accent: #f8f9fa;
	--wikipress-text: #202122;
	--wikipress-text-light: #54595d;
	--wikipress-border: #a2a9b1;
	--wikipress-border-light: #eaecf0;
	--wikipress-bg: #ffffff;
	--wikipress-bg-off: #f8f9fa;
	--wikipress-bg-header: #ffffff;
	--wikipress-bg-footer: #f8f9fa;
	--wikipress-heading: #000000;
	--wikipress-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--wikipress-font-content: Georgia, "Times New Roman", Times, serif;
	--wikipress-font-size: 16px;
	--wikipress-line-height: 1.7;
	--wikipress-sidebar-width: 220px;
	--wikipress-toc-width: 250px;
	--wikipress-max-width: 1200px;
	--wikipress-content-max: 780px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--wikipress-font-content);
	font-size: var(--wikipress-font-size);
	line-height: var(--wikipress-line-height);
	color: var(--wikipress-text);
	background-color: var(--wikipress-bg-off);
	-webkit-font-smoothing: antialiased;
}

/* ---- Screen Reader Text ---- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wikipress-bg);
	clip: auto !important;
	clip-path: none;
	color: var(--wikipress-text);
	display: block;
	font-size: 14px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ---- Skip Link ---- */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--wikipress-primary);
	color: #fff;
	padding: 10px 20px;
	z-index: 9999;
	text-decoration: none;
	font-family: var(--wikipress-font-ui);
	font-size: 14px;
}
.skip-link:focus {
	top: 0;
}

/* ---- Links ---- */
a {
	color: var(--wikipress-primary);
	text-decoration: none;
}
a:hover,
a:focus {
	text-decoration: underline;
	color: var(--wikipress-primary-hover);
}
a:focus {
	outline: 2px solid var(--wikipress-primary);
	outline-offset: 2px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wikipress-font-ui);
	color: var(--wikipress-heading);
	line-height: 1.3;
	margin: 1.5em 0 0.5em;
	font-weight: 500;
}
h1 { font-size: 2rem; border-bottom: 1px solid var(--wikipress-border-light); padding-bottom: 0.3em; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--wikipress-border-light); padding-bottom: 0.2em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
	margin: 0 0 1.2em;
}

/* ---- Site Container ---- */
.site {
	max-width: var(--wikipress-max-width);
	margin: 0 auto;
	background: var(--wikipress-bg);
	min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-inner {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	max-width: var(--wikipress-max-width);
	margin: 0 auto;
	gap: 20px;
	flex-wrap: wrap;
}

.site-branding {
	flex-shrink: 0;
}
.site-title {
	margin: 0;
	font-size: 1.4rem;
	font-family: var(--wikipress-font-ui);
	font-weight: 600;
}
.site-title a {
	color: var(--wikipress-heading);
	text-decoration: none;
}
.site-description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--wikipress-text-light);
	font-family: var(--wikipress-font-ui);
}

.custom-logo-link img {
	max-height: 50px;
	width: auto;
}

/* ---- Primary Navigation ---- */
.main-navigation {
	flex: 1;
	font-family: var(--wikipress-font-ui);
	font-size: 0.9rem;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
	flex-wrap: wrap;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 8px 14px;
	color: var(--wikipress-text);
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}
.primary-menu a::after {
	content: '';
	position: absolute;
	width: 0%;
	height: 2px;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--wikipress-primary);
	transition: width 0.3s ease;
}
.primary-menu a:hover,
.primary-menu a:focus {
	background: transparent;
	color: var(--wikipress-primary);
	text-decoration: none;
}
.primary-menu a:hover::after,
.primary-menu a:focus::after {
	width: 80%;
}
.primary-menu .current-menu-item > a {
	color: var(--wikipress-primary);
	font-weight: 600;
}
.primary-menu .current-menu-item > a::after {
	width: 80%;
}

/* ---- Sub Menus ---- */
.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	min-width: 180px;
	list-style: none;
	padding: 4px 0;
	margin: 0;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}
.primary-menu .sub-menu a {
	padding: 8px 16px;
}

/* ---- Menu Toggle (Mobile) ---- */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--wikipress-border-light);
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 1.2rem;
	line-height: 1;
}
.menu-toggle-icon::before {
	content: "☰";
}

/* ---- Header Search ---- */
.header-search {
	position: relative;
	margin-left: auto;
	flex-shrink: 0;
}

.search-toggle {
	background: none;
	border: 1px solid var(--wikipress-border-light);
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 1rem;
}

.header-search-form {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	padding: 12px;
	min-width: 280px;
	z-index: 20;
	box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.header-search-form.is-active {
	display: block;
}

.header-search-form .search-form {
	display: flex;
	gap: 6px;
}
.header-search-form .search-field {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--wikipress-border);
	border-radius: 4px;
	font-size: 0.9rem;
}
.header-search-form .search-submit {
	padding: 8px 16px;
	background: var(--wikipress-primary);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}
.header-search-form .search-submit:hover {
	background: var(--wikipress-primary-hover);
}

/* ---- Content Layout ---- */
.site-content {
	padding: 0;
}

.content-wrapper {
	max-width: var(--wikipress-max-width);
	margin: 0 auto;
	display: flex;
	gap: 0;
}

/* ---- Left Sidebar ---- */
.sidebar-section {
	width: var(--wikipress-sidebar-width);
	flex-shrink: 0;
	padding: 20px 15px;
	background: var(--wikipress-bg);
	border-right: 1px solid var(--wikipress-border-light);
	font-family: var(--wikipress-font-ui);
	font-size: 0.85rem;
	overflow-y: auto;
}

.has-left-sidebar .sidebar-section {
	display: block;
}

/* ---- Site Main ---- */
.site-main {
	flex: 1;
	min-width: 0;
	padding: 20px 30px;
	background: var(--wikipress-bg);
}

/* ---- Widgets ---- */
.widget {
	margin-bottom: 24px;
}
.widget-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--wikipress-border-light);
	color: var(--wikipress-text);
}
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget ul li {
	padding: 3px 0;
}
.widget ul li a {
	color: var(--wikipress-text);
}
.widget ul li a:hover {
	color: var(--wikipress-primary);
}

.search-form {
	display: flex;
	gap: 4px;
}
.search-form .search-field {
	flex: 1;
	padding: 6px 10px;
	border: 1px solid var(--wikipress-border);
	border-radius: 3px;
	font-size: 0.85rem;
}
.search-form .search-submit {
	padding: 6px 12px;
	background: var(--wikipress-primary);
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.85rem;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
	font-family: var(--wikipress-font-ui);
	font-size: 0.8rem;
	padding: 4px 0 12px;
	margin-bottom: 12px;
}

.breadcrumbs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	align-items: center;
}

.breadcrumbs-item {
	display: flex;
	align-items: center;
	gap: 2px;
}

.breadcrumbs-sep {
	color: var(--wikipress-text-light);
	margin: 0 4px;
}

.breadcrumbs-current {
	color: var(--wikipress-text);
}

/* ---- Article Header ---- */
.article-title {
	font-size: 2.2rem;
	font-family: var(--wikipress-font-ui);
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--wikipress-border-light);
	line-height: 1.2;
	color: var(--wikipress-heading);
}

.article-meta {
	font-family: var(--wikipress-font-ui);
	font-size: 0.85rem;
	color: var(--wikipress-text-light);
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	align-items: center;
}
.article-meta a {
	color: var(--wikipress-primary);
}
.meta-divider {
	margin: 0 6px;
	color: var(--wikipress-border);
}

/* ---- Featured Image ---- */
.article-featured-image {
	margin-bottom: 24px;
}
.featured-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.featured-caption {
	font-size: 0.85rem;
	color: var(--wikipress-text-light);
	margin-top: 4px;
	text-align: center;
	font-family: var(--wikipress-font-ui);
}

/* ---- Short Answer Box ---- */
.short-answer-box {
	background: #f0f7ff;
	border: 1px solid #c8d6e5;
	border-left: 4px solid var(--wikipress-primary);
	padding: 16px 20px;
	margin: 0 0 24px;
	border-radius: 4px;
}

.short-answer-label {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wikipress-primary);
	margin: 0 0 6px;
	font-family: var(--wikipress-font-ui);
}

.short-answer-text {
	font-size: 1.05rem;
	line-height: 1.6;
}

/* ---- Article Content ---- */
.article-content {
	font-family: var(--wikipress-font-content);
	font-size: var(--wikipress-font-size);
	line-height: var(--wikipress-line-height);
}

.article-content h2 {
	font-size: 1.5rem;
	margin: 2em 0 0.6em;
}

.article-content h3 {
	font-size: 1.2rem;
	margin: 1.5em 0 0.4em;
}

.article-content p {
	margin-bottom: 1.2em;
}

.article-content ul,
.article-content ol {
	margin: 0 0 1.2em 1.5em;
	padding: 0;
}

.article-content li {
	margin-bottom: 0.3em;
}

.article-content blockquote {
	border-left: 4px solid var(--wikipress-border-light);
	margin: 1.2em 0;
	padding: 0.5em 1.2em;
	background: var(--wikipress-bg-off);
	color: var(--wikipress-text-light);
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 0.95rem;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.article-content th,
.article-content td {
	border: 1px solid var(--wikipress-border-light);
	padding: 8px 12px;
	text-align: left;
}
.article-content th {
	background: var(--wikipress-accent);
	font-weight: 600;
}

/* ---- Article Content Layout (Two-Column) ---- */
.article-content-wrapper {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.article-body {
	flex: 1;
	min-width: 0;
}

.article-sidebar {
	width: var(--wikipress-toc-width);
	flex-shrink: 0;
	font-family: var(--wikipress-font-ui);
	font-size: 0.85rem;
	position: sticky;
	top: 80px;
	align-self: flex-start;
}

/* ---- Infobox ---- */
.infobox {
	border: 1px solid var(--wikipress-border-light);
	background: var(--wikipress-bg-off);
	padding: 16px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 0.85rem;
}

.infobox-title {
	margin: 0 0 10px;
	font-size: 1rem;
	text-align: center;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wikipress-border-light);
}

.infobox-table {
	width: 100%;
	border-collapse: collapse;
}
.infobox-table th,
.infobox-table td {
	padding: 6px 0;
	vertical-align: top;
	border: none;
	border-bottom: 1px solid var(--wikipress-border-light);
	font-size: 0.82rem;
}
.infobox-table th {
	text-align: left;
	font-weight: 600;
	width: 40%;
	padding-right: 8px;
}
.infobox-table tr:last-child th,
.infobox-table tr:last-child td {
	border-bottom: none;
}

.infobox-image {
	margin-top: 12px;
	text-align: center;
}

.infobox-image img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}

/* ---- Table of Contents ---- */
.toc-widget {
	border: 1px solid var(--wikipress-border-light);
	background: var(--wikipress-bg-off);
	padding: 0;
	margin-bottom: 20px;
	border-radius: 4px;
	overflow: hidden;
}

.toc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--wikipress-font-ui);
	text-align: left;
	font-size: 0.9rem;
}

.toc-toggle:hover {
	background: var(--wikipress-accent);
}

.toc-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
}

.toc-toggle-icon {
	font-size: 0.85rem;
	color: var(--wikipress-text-light);
}

.toc-list {
	list-style: none;
	margin: 0;
	padding: 6px 14px 12px;
}

.toc-list.collapsed {
	display: none;
}

.toc-item {
	padding: 3px 0;
	line-height: 1.4;
}

.toc-level-h3 {
	padding-left: 16px;
	font-size: 0.85rem;
}

.toc-item a {
	color: var(--wikipress-text);
	text-decoration: none;
	display: block;
	padding: 2px 4px;
	border-radius: 3px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.toc-item a:hover,
.toc-item a:focus {
	color: var(--wikipress-primary);
	background: rgba(6, 69, 173, 0.05);
}

.toc-item a.active {
	color: var(--wikipress-primary);
	font-weight: 600;
	border-left: 2px solid var(--wikipress-primary);
	padding-left: 8px;
	margin-left: -6px;
}

/* ---- TOC Mobile ---- */
.toc-mobile {
	display: none;
	margin-bottom: 20px;
}

/* ---- Article Sections ---- */
.article-section {
	margin: 2em 0;
}
.article-section h2 {
	border-bottom: 1px solid var(--wikipress-border-light);
	padding-bottom: 0.3em;
}
.article-title {
	font-size: 2rem;
}

.error-404-search {
	margin: 20px 0;
}
.error-404-links ul {
	list-style: none;
	padding: 0;
	margin: 10px 0;
}
.error-404-links ul li {
	padding: 4px 0;
}

/* ---- No Results ---- */
.no-results {
	padding: 40px 0;
}

/* ---- Archive Entries ---- */
.archive-entry {
	display: flex;
	gap: 24px;
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 28px;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.archive-entry:hover {
	box-shadow: 0 12px 32px rgba(0,0,0,0.08);
	transform: translateY(-3px);
	border-color: rgba(6, 69, 173, 0.15);
}

.entry-thumbnail {
	flex-shrink: 0;
	width: 260px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wikipress-bg-off);
}
.entry-thumbnail a {
	display: block;
	height: 100%;
}
.entry-thumbnail img {
	width: 100%;
	height: 100%;
	min-height: 180px;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-entry:hover .entry-thumbnail img {
	transform: scale(1.06);
}

.entry-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.entry-header .entry-title {
	margin: 0 0 12px;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}
.entry-header .entry-title a {
	color: var(--wikipress-heading);
	text-decoration: none;
	transition: color 0.2s ease;
}
.entry-header .entry-title a:hover {
	color: var(--wikipress-primary);
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--wikipress-text-light);
	margin-bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-family: var(--wikipress-font-ui);
}

.entry-meta a {
	color: inherit;
	font-weight: 500;
}
.entry-meta a:hover {
	color: var(--wikipress-primary);
}

.entry-summary {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--wikipress-text);
	margin-bottom: 18px;
	flex-grow: 1;
}

.entry-summary p {
	margin: 0;
}

.read-more {
	display: inline-flex;
	align-items: center;
	font-size: 0.9rem;
	font-family: var(--wikipress-font-ui);
	font-weight: 600;
	color: var(--wikipress-primary);
	text-decoration: none;
	align-self: flex-start;
	padding: 6px 16px;
	background: rgba(6, 69, 173, 0.05);
	border-radius: 20px;
	transition: all 0.2s ease;
}

.read-more:hover {
	background: var(--wikipress-primary);
	color: #fff;
	text-decoration: none;
	transform: translateX(4px);
}



/* ---- Full Width Layout ---- */

.wikipress-layout-fullwidth .article-content-wrapper {

	flex-direction: column;

}

.wikipress-layout-fullwidth .article-sidebar {

	width: 100%;

	position: static;

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

	gap: 20px;

}

.wikipress-layout-fullwidth .has-left-sidebar .sidebar-section {

	display: none;

}



/* ---- Responsive: Tablet (<1024px) ---- */

@media (max-width: 1024px) {

	.article-content-wrapper {

		flex-direction: column;

	}

	.article-sidebar {

		width: 100%;

		position: static;

	}



	.toc-desktop {

		display: none;

	}

	.toc-mobile {

		display: block;

		order: -1;

	}



	.content-wrapper {

		flex-direction: column;

	}

	.sidebar-section {

		width: 100%;

		border-right: none;

		border-bottom: 1px solid var(--wikipress-border-light);

		padding: 12px 20px;

		display: flex;

		flex-wrap: wrap;

		gap: 20px;

	}

	.sidebar-section .widget {

		flex: 1;

		min-width: 200px;

	}



	.related-grid {

		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

	}

}



/* ---- Responsive: Mobile (<768px) ---- */

@media (max-width: 768px) {

	.header-inner {

		flex-wrap: wrap;

		padding: 8px 12px;

		gap: 8px;

	}



	.site-title {

		font-size: 1.15rem;

	}



	.menu-toggle {
		display: block;
		order: 1;
	}

	.main-navigation {
		order: 3;
		width: 100%;
	}

	.primary-menu {
		display: none;
		flex-direction: column;
		gap: 0;
	}
	.primary-menu.is-active {
		display: flex;
	}
	.primary-menu a {
		padding: 10px 8px;
		border-bottom: 1px solid var(--wikipress-border-light);
	}
	.primary-menu .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 16px;
		display: none;
	}
	.primary-menu .sub-menu.is-active {
		display: block;
	}

	.header-search {
		order: 2;
		margin-left: 0;
	}

	.article-title {
		font-size: 1.6rem;
	}
	.article-meta {
		font-size: 0.8rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.meta-divider {
		display: none;
	}

	.article-sidebar {
		width: 100%;
		position: static;
	}

	.site-main {
		padding: 12px 16px;
	}

	.archive-entry {
		flex-direction: column;
	}
	.entry-thumbnail {
		width: 100%;
	}
	.entry-thumbnail img {
		width: 100%;
		max-height: 200px;
		object-fit: cover;
	}

	.related-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-widgets {
		flex-direction: column;
		gap: 20px;
	}
	.footer-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.short-answer-box {
		margin: 0 0 20px;
		padding: 12px 16px;
	}
}

/* ---- Responsive: Small Mobile (<480px) ---- */
@media (max-width: 480px) {
	.related-grid {
		grid-template-columns: 1fr;
	}
	.post-navigation-links {
		flex-direction: column;
		gap: 16px;
	}
	.nav-next {
		text-align: left;
	}
}

/* ---- Print Styles ---- */
@media print {
	.site-header,
	.sidebar-section,
	.article-sidebar,
	.site-footer,
	.post-navigation,
	.breadcrumbs,
	.toc-mobile {
		display: none !important;
	}
	.site,
	.site-main {
		max-width: 100%;
		margin: 0;
		padding: 0;
	}
	body {
		background: #fff;
		font-size: 12pt;
	}
	a {
		color: #000;
	}
}


/* ---- AI Writer FAQ Accordion ---- */
.wpaw-faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 1.5em;
}

.wpaw-faq-item {
	background: var(--wikipress-bg-off);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wpaw-faq-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	border-color: var(--wikipress-border);
}

.wpaw-faq-question {
	font-family: var(--wikipress-font-ui);
	font-weight: 600;
	font-size: 1.05rem;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none; /* Hide default triangle */
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--wikipress-heading);
	transition: background-color 0.2s ease;
}

.wpaw-faq-question::-webkit-details-marker {
	display: none;
}

.wpaw-faq-question::after {
	content: "+";
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--wikipress-primary);
	margin-left: 15px;
	transition: transform 0.3s ease;
}

.wpaw-faq-item[open] .wpaw-faq-question::after {
	content: "-";
	transform: rotate(180deg);
}

.wpaw-faq-item[open] .wpaw-faq-question {
	background-color: var(--wikipress-bg);
	border-bottom: 1px solid var(--wikipress-border-light);
}

.wpaw-faq-answer {
	padding: 16px 20px;
	background-color: var(--wikipress-bg);
	font-size: 0.95rem;
	color: var(--wikipress-text);
	animation: wpaw-fade-in 0.3s ease-in-out;
}

.wpaw-faq-answer p:last-child {
	margin-bottom: 0;
}

/* ---- AI Writer Misconceptions Grid ---- */
.wpaw-misconceptions-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 1.5em 0 2em;
}

.wpaw-misconception-card {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	border: 1px solid var(--wikipress-border-light);
}

@media (min-width: 768px) {
	.wpaw-misconception-card {
		flex-direction: row;
	}
}

.wpaw-misc-box,
.wpaw-corr-box {
	padding: 20px;
	flex: 1;
}

.wpaw-misc-box {
	background-color: #fff5f5;
	border-bottom: 1px dashed var(--wikipress-border-light);
}

@media (min-width: 768px) {
	.wpaw-misc-box {
		border-bottom: none;
		border-right: 1px dashed var(--wikipress-border-light);
	}
}

.wpaw-corr-box {
	background-color: #f0fdf4;
}

.wpaw-misc-label,
.wpaw-corr-label {
	display: inline-block;
	font-family: var(--wikipress-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.wpaw-misc-label {
	background-color: #ffe0e0;
	color: #d32f2f;
}

.wpaw-corr-label {
	background-color: #dcfce7;
	color: #15803d;
}

.wpaw-misc-box p,
.wpaw-corr-box p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

.wpaw-misc-fallback {
	padding: 0;
}

@keyframes wpaw-fade-in {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}



/* ---- Mobile Adjustments ---- */
.infobox-mobile-wrapper {
	display: none;
}

@media (max-width: 1024px) {
	.infobox-mobile-wrapper {
		display: block;
		margin-bottom: 24px;
	}
	.article-sidebar .infobox {
		display: none;
	}
}

@media (max-width: 1024px) {
	.sidebar-section,
	.has-left-sidebar .sidebar-section {
		display: none !important;
	}
}



/* ---- Related Terms ---- */
.related-terms-list {
	margin: 0;
	padding: 0;
}
.related-terms-list dt {
	font-weight: 700;
	color: var(--wikipress-text);
	margin-top: 1rem;
	font-size: 1.1rem;
}
.related-terms-list dd {
	margin: 0.3rem 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--wikipress-border-light);
	color: var(--wikipress-text-light);
	line-height: 1.6;
}
.related-terms-list dt:first-child {
	margin-top: 0;
}
.related-terms-list dd:last-child {
	border-bottom: none;
}


/* ---- Sleek Dark Footer ---- */
.site-footer {
	background-color: #0f172a;
	color: #94a3b8;
	padding: 60px 0 30px;
	margin-top: 60px;
	border-top: none;
	font-family: var(--wikipress-font-ui);
}

.footer-inner {
	max-width: var(--wikipress-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
	margin-bottom: 30px;
}

.footer-widget:last-child {
	margin-bottom: 0;
}

.footer-widget-title {
	color: #f8fafc;
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 20px;
}

.footer-widget p {
	line-height: 1.7;
	font-size: 0.95rem;
}

.footer-recent, .footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-recent li, .footer-widget ul li {
	margin-bottom: 12px;
}

.footer-recent a, .footer-widget ul a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-recent a:hover, .footer-widget ul a:hover {
	color: #38bdf8;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 0.9rem;
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 20px;
}

.footer-menu a {
	color: #cbd5e1;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-menu a:hover {
	color: #38bdf8;
}

.footer-copyright {
	color: #64748b;
}

.theme-credit {
	margin-left: 10px;
}

.theme-credit a {
	color: #64748b;
	text-decoration: underline;
}

.theme-credit a:hover {
	color: #94a3b8;
}

/* ---- Homepage Knowledge Portal ---- */
.wikipress-homepage {
	--wikipress-home-border: #dbe4ee;
	--wikipress-home-border-soft: #edf2f7;
	--wikipress-home-ink: #111827;
	--wikipress-home-muted: #4b5563;
	--wikipress-home-blue-soft: #f3f8ff;
	--wikipress-home-green-soft: #f2fbf5;
	--wikipress-home-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
	background: #ffffff;
}

.wikipress-homepage .site {
	max-width: none;
	background: #ffffff;
}

.wikipress-homepage .content-wrapper {
	display: block;
	max-width: none;
}

.wikipress-homepage .homepage-main {
	padding: 0;
	background: #ffffff;
	font-family: var(--wikipress-font-ui);
}

.wikipress-homepage .site-footer {
	margin-top: 0;
}

.homepage-main h1,
.homepage-main h2,
.homepage-main h3 {
	border-bottom: 0;
	color: var(--wikipress-home-ink);
	letter-spacing: 0;
	margin: 0;
	padding-bottom: 0;
}

.home-container {
	margin: 0 auto;
	max-width: 1120px;
	width: min(1120px, calc(100% - 40px));
}

.home-hero {
	align-items: center;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
	border-bottom: 1px solid var(--wikipress-home-border-soft);
	display: flex;
	isolation: isolate;
	min-height: 560px;
	overflow: hidden;
	position: relative;
}

.home-hero-art {
	bottom: 0;
	height: auto;
	max-width: 610px;
	pointer-events: none;
	position: absolute;
	right: max(24px, calc((100vw - 1120px) / 2 - 16px));
	width: 610px;
	z-index: 0;
}

.home-hero-image-left .home-hero-art {
	left: max(24px, calc((100vw - 1120px) / 2 - 16px));
	right: auto;
}

.home-hero-image-left .home-hero-content {
	margin-left: auto;
	margin-right: max(20px, calc((100% - 1120px) / 2));
}

.home-hero-image-center .home-hero-art {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.home-hero-image-center .home-hero-content,
.home-hero-no-image .home-hero-content {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.home-hero-image-center .home-hero-description,
.home-hero-image-center .homepage-search-form,
.home-hero-no-image .home-hero-description,
.home-hero-no-image .homepage-search-form {
	margin-left: auto;
	margin-right: auto;
}

.home-hero-image-center .home-quick-links,
.home-hero-no-image .home-quick-links {
	justify-content: center;
}

.home-hero-no-image {
	min-height: auto;
}

.home-hero-content {
	margin-left: max(20px, calc((100% - 1120px) / 2));
	margin-right: auto;
	max-width: 740px;
	padding: 88px 0 78px;
	position: relative;
	width: min(740px, calc(100% - 40px));
	z-index: 1;
}

.home-hero-content h1 {
	font-size: 4rem;
	font-weight: 750;
	line-height: 1.05;
	max-width: 720px;
}

.home-hero-description {
	color: var(--wikipress-home-muted);
	font-size: 1.18rem;
	line-height: 1.65;
	margin: 22px 0 0;
	max-width: 620px;
}

.homepage-search-form {
	align-items: center;
	background: #ffffff;
	border: 1px solid #cbd9e8;
	border-radius: 8px;
	box-shadow: var(--wikipress-home-shadow);
	display: flex;
	gap: 8px;
	margin-top: 34px;
	max-width: 760px;
	padding: 8px;
}

.homepage-search-field {
	background: #ffffff;
	border: 0;
	color: var(--wikipress-home-ink);
	flex: 1;
	font-family: var(--wikipress-font-ui);
	font-size: 1.05rem;
	line-height: 1.4;
	min-height: 48px;
	min-width: 0;
	padding: 0 14px;
}

.homepage-search-field:focus {
	outline: 2px solid rgba(6, 69, 173, 0.24);
	outline-offset: 2px;
}

.homepage-search-submit {
	align-items: center;
	background: var(--wikipress-primary);
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--wikipress-font-ui);
	font-size: 0.98rem;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.homepage-search-submit:hover,
.homepage-search-submit:focus {
	background: var(--wikipress-primary-hover);
	text-decoration: none;
	transform: translateY(-1px);
}

.homepage-button-icon,
.home-card-icon,
.home-list-icon {
	align-items: center;
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
}

.homepage-button-icon svg,
.home-card-icon svg,
.home-list-icon svg {
	fill: none;
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
	width: 22px;
}

.home-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 20px;
}

.home-quick-links a {
	color: var(--wikipress-primary);
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
}

.home-quick-links a:hover,
.home-quick-links a:focus {
	color: var(--wikipress-primary-hover);
	text-decoration: underline;
}

.home-section {
	padding: 68px 0;
}

.home-section + .home-section {
	border-top: 1px solid var(--wikipress-home-border-soft);
}

.home-section-header {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 28px;
}

.home-section-header h2,
.home-trust-intro h2 {
	font-size: 2rem;
	font-weight: 750;
	line-height: 1.18;
}

.home-hub-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-hub-card {
	background: #ffffff;
	border: 1px solid var(--wikipress-home-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding: 24px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hub-card:hover {
	border-color: rgba(6, 69, 173, 0.32);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.home-card-icon {
	background: var(--wikipress-home-blue-soft);
	border: 1px solid #d6e7fb;
	border-radius: 8px;
	color: var(--wikipress-primary);
	height: 44px;
	margin-bottom: 18px;
	width: 44px;
}

.home-hub-card h3 {
	font-size: 1.16rem;
	font-weight: 750;
	line-height: 1.35;
}

.home-hub-card h3 a {
	color: var(--wikipress-home-ink);
	text-decoration: none;
}

.home-hub-card h3 a:hover,
.home-hub-card h3 a:focus {
	color: var(--wikipress-primary);
	text-decoration: underline;
}

.home-hub-description {
	color: var(--wikipress-home-muted);
	font-size: 0.94rem;
	line-height: 1.6;
	margin-top: 12px;
}

.home-hub-description p {
	margin: 0;
}

.home-count {
	color: var(--wikipress-home-muted);
	font-size: 0.86rem;
	font-weight: 700;
	margin-top: auto;
	padding-top: 18px;
}

.home-trending-questions {
	background: #ffffff;
}

.home-question-list,
.home-update-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-question-item,
.home-update-item {
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid var(--wikipress-home-border);
	border-radius: 8px;
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-question-item:hover,
.home-update-item:hover {
	border-color: rgba(6, 69, 173, 0.28);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.home-list-icon {
	background: var(--wikipress-home-green-soft);
	border: 1px solid #d7efd8;
	border-radius: 8px;
	color: #16803a;
	height: 38px;
	margin-top: 2px;
	width: 38px;
}

.home-list-content {
	min-width: 0;
}

.home-question-item a,
.home-update-item h3 a {
	color: var(--wikipress-home-ink);
	font-size: 1.05rem;
	font-weight: 750;
	line-height: 1.4;
	text-decoration: none;
}

.home-question-item a:hover,
.home-question-item a:focus,
.home-update-item h3 a:hover,
.home-update-item h3 a:focus {
	color: var(--wikipress-primary);
	text-decoration: underline;
}

.home-list-meta,
.home-update-item time {
	align-items: center;
	color: var(--wikipress-home-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.84rem;
	font-weight: 650;
	gap: 7px;
	line-height: 1.45;
	margin-top: 7px;
}

.home-update-item time {
	margin-top: 0;
}

.home-update-item h3 {
	font-size: 1.05rem;
	line-height: 1.4;
	margin-top: 5px;
}

.home-meta-divider {
	color: #9ca3af;
}

.home-recently-updated,
.home-browse-topics {
	background: #f8fbff;
}

.home-topic-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-topic-link {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--wikipress-home-border);
	border-radius: 8px;
	color: var(--wikipress-home-ink);
	display: flex;
	font-weight: 750;
	gap: 12px;
	justify-content: space-between;
	min-height: 62px;
	padding: 14px 16px;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-topic-link:hover,
.home-topic-link:focus {
	border-color: rgba(6, 69, 173, 0.32);
	color: var(--wikipress-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.home-topic-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.home-topic-count {
	align-items: center;
	background: var(--wikipress-home-blue-soft);
	border-radius: 6px;
	color: var(--wikipress-primary);
	display: inline-flex;
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 800;
	height: 26px;
	justify-content: center;
	min-width: 26px;
	padding: 0 8px;
}

.home-editorial-trust {
	background: #f4fbf7;
	border-top: 1px solid #d8eddf;
}

.home-trust-grid {
	align-items: start;
	display: grid;
	gap: 48px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
}

.home-trust-intro p {
	color: var(--wikipress-home-muted);
	font-size: 1rem;
	line-height: 1.7;
	margin: 18px 0 0;
	max-width: 480px;
}

.home-trust-list {
	display: grid;
	gap: 0;
}

.home-trust-item {
	align-items: flex-start;
	border-top: 1px solid #d8eddf;
	display: flex;
	gap: 16px;
	padding: 18px 0;
}

.home-trust-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.home-card-icon-trust {
	background: #ffffff;
	border-color: #cce9d3;
	color: #16803a;
	margin-bottom: 0;
}

.home-trust-item h3 {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
}

.home-trust-item p {
	color: var(--wikipress-home-muted);
	font-size: 0.94rem;
	line-height: 1.65;
	margin: 6px 0 0;
}

.home-page-content {
	background: #ffffff;
}

.home-page-content .article-body {
	max-width: var(--wikipress-content-max);
}

@media (max-width: 1024px) {
	.home-hero {
		min-height: 520px;
	}

	.home-hero-art {
		right: -60px;
		width: 540px;
	}

	.home-hero-image-left .home-hero-art {
		left: -60px;
		right: auto;
	}

	.home-hero-content h1 {
		font-size: 3.25rem;
		max-width: 620px;
	}

	.home-hero-description,
	.homepage-search-form {
		max-width: 600px;
	}

	.home-hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-trust-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.home-container {
		width: min(100% - 28px, 1120px);
	}

	.home-hero {
		align-items: flex-start;
		min-height: auto;
		padding-bottom: 240px;
	}

	.home-hero-art {
		left: auto;
		bottom: -28px;
		right: 50%;
		transform: translateX(50%);
		width: 430px;
	}

	.home-hero-no-image {
		padding-bottom: 0;
	}

	.home-hero-content {
		margin-left: auto;
		margin-right: auto;
		padding: 48px 0 26px;
		width: min(100% - 28px, 740px);
	}

	.home-hero-content h1 {
		font-size: 2.45rem;
		line-height: 1.1;
	}

	.home-hero-description {
		font-size: 1rem;
		line-height: 1.6;
		margin-top: 16px;
	}

	.homepage-search-form {
		margin-top: 24px;
	}

	.home-section {
		padding: 46px 0;
	}

	.home-section-header {
		margin-bottom: 20px;
	}

	.home-section-header h2,
	.home-trust-intro h2 {
		font-size: 1.55rem;
	}

	.home-hub-grid,
	.home-topic-grid {
		grid-template-columns: 1fr;
	}

	.home-hub-card {
		min-height: 0;
	}

	.home-question-item,
	.home-update-item {
		padding: 16px;
	}
}

@media (max-width: 560px) {
	.home-hero {
		padding-bottom: 205px;
	}

	.home-hero-no-image {
		padding-bottom: 0;
	}

	.home-hero-art {
		width: 370px;
	}

	.homepage-search-form {
		align-items: stretch;
		flex-direction: column;
	}

	.homepage-search-field {
		width: 100%;
	}

	.homepage-search-submit {
		width: 100%;
	}

	.home-question-item,
	.home-update-item,
	.home-trust-item {
		gap: 12px;
	}

	.home-list-icon,
	.home-card-icon {
		height: 36px;
		width: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-hub-card,
	.home-question-item,
	.home-update-item,
	.home-topic-link,
	.homepage-search-submit {
		transition: none;
	}

	.home-hub-card:hover,
	.home-topic-link:hover,
	.homepage-search-submit:hover {
		transform: none;
	}
}

/* ============================================================
   Design Polish — Added during audit
   ============================================================ */

/* ---- Header Scroll Shrink ---- */
.site-header.is-scrolled {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}
.site-header.is-scrolled .header-inner {
	padding-top: 6px;
	padding-bottom: 6px;
}
.site-header .header-inner {
	transition: padding 0.3s ease;
}

/* ---- Search Toggle SVG Styling ---- */
.search-toggle-icon svg {
	vertical-align: middle;
}

/* ---- Footer Gradient Accent ---- */
.site-footer::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--wikipress-primary) 0%, #38bdf8 50%, #a78bfa 100%);
}

/* Footer link hover animation */
.footer-recent a,
.footer-widget ul a,
.footer-menu a {
	position: relative;
}
.footer-recent a::after,
.footer-widget ul a::after,
.footer-menu a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 1px;
	bottom: -2px;
	left: 0;
	background-color: #38bdf8;
	transition: width 0.3s ease;
}
.footer-recent a:hover::after,
.footer-widget ul a:hover::after,
.footer-menu a:hover::after {
	width: 100%;
}

/* ---- Sidebar Active Category ---- */
.sidebar-categories .current-cat > a {
	color: var(--wikipress-primary);
	font-weight: 600;
	border-left: 2px solid var(--wikipress-primary);
	padding-left: 8px;
	margin-left: -2px;
}

/* ---- Sidebar Tag Pill Badges ---- */
.sidebar-tags .tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.sidebar-tags .tag-list li {
	padding: 0;
}
.sidebar-tags .tag-list a {
	display: inline-block;
	padding: 4px 10px;
	background: var(--wikipress-bg-off);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 20px;
	font-size: 0.8rem;
	color: var(--wikipress-text);
	transition: all 0.2s ease;
}
.sidebar-tags .tag-list a:hover {
	background: var(--wikipress-primary);
	color: #fff;
	border-color: var(--wikipress-primary);
	text-decoration: none;
}

/* ---- Short Answer Fade-In ---- */
.short-answer-box {
	animation: shortAnswerReveal 0.5s ease-out;
}
@keyframes shortAnswerReveal {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---- References List ---- */
.references-list {
	padding-left: 24px;
}
.references-list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--wikipress-border-light);
	line-height: 1.6;
	font-size: 0.92rem;
}
.references-list li:last-child {
	border-bottom: none;
}

/* ---- Related Articles Grid Polish ---- */
.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.related-card {
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.related-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
	border-color: rgba(6, 69, 173, 0.2);
}
.related-card-thumbnail img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.related-card:hover .related-card-thumbnail img {
	transform: scale(1.04);
}
.related-card-content {
	padding: 14px 16px;
}
.related-card-title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	line-height: 1.35;
}
.related-card-title a {
	color: var(--wikipress-heading);
	text-decoration: none;
}
.related-card-title a:hover {
	color: var(--wikipress-primary);
}
.related-card-meta {
	font-size: 0.8rem;
	color: var(--wikipress-text-light);
	display: flex;
	gap: 8px;
	align-items: center;
}
.related-card-category {
	background: rgba(6, 69, 173, 0.06);
	color: var(--wikipress-primary);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.75rem;
}

/* ---- Focus-Visible Keyboard Nav ---- */
.home-hub-card:focus-within {
	outline: 2px solid var(--wikipress-primary);
	outline-offset: 2px;
}
.home-topic-link:focus-visible,
.home-question-item a:focus-visible,
.home-update-item h3 a:focus-visible {
	outline: 2px solid var(--wikipress-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Post Navigation Polish ---- */
.post-navigation {
	margin: 40px 0;
	border-top: 1px solid var(--wikipress-border-light);
	padding-top: 30px;
}
.post-navigation-links {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}
.nav-previous,
.nav-next {
	flex: 1;
	min-width: 0;
}
.nav-next {
	text-align: right;
}
.nav-label {
	display: block;
	font-size: 0.8rem;
	color: var(--wikipress-text-light);
	margin-bottom: 4px;
	font-family: var(--wikipress-font-ui);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.post-navigation a {
	font-weight: 600;
	font-family: var(--wikipress-font-ui);
	transition: color 0.2s ease;
}

/* ============================================================
   Tone Words Dictionary — A-Z Archive
   ============================================================ */

.tone-az-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 24px;
	padding: 10px 12px;
	background: var(--wikipress-bg-off);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 4px;
	font-family: var(--wikipress-font-ui);
}

.tone-az-nav a,
.tone-az-nav .tone-az-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	padding: 4px 6px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 3px;
}

.tone-az-nav a {
	color: var(--wikipress-primary);
	text-decoration: none;
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	transition: background 0.2s ease, color 0.2s ease;
}

.tone-az-nav a:hover {
	background: var(--wikipress-primary);
	color: #ffffff;
}

.tone-az-nav .tone-az-empty {
	color: var(--wikipress-text-light);
	opacity: 0.45;
}

.tone-letter-group {
	margin-bottom: 28px;
}

.tone-letter-heading {
	font-family: var(--wikipress-font-ui);
	font-size: 22px;
	border-bottom: 1px solid var(--wikipress-border);
	padding-bottom: 4px;
	margin-bottom: 12px;
	scroll-margin-top: 80px;
}

.tone-entry-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px 24px;
}

.tone-entry-link {
	font-family: var(--wikipress-font-ui);
	font-weight: 600;
	font-size: 16px;
	color: var(--wikipress-primary);
	text-decoration: none;
}

.tone-entry-link:hover {
	text-decoration: underline;
}

.tone-entry-definition {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wikipress-text-light);
	font-family: var(--wikipress-font-ui);
}

/* ============================================================
   ReferenceTone Homepage - Editorial Workbench
   ============================================================ */

.wikipress-homepage {
	--rt-ink: #17233b;
	--rt-ink-soft: #34415a;
	--rt-paper: #fffdf8;
	--rt-cream: #f7f1e6;
	--rt-cream-deep: #eadfcd;
	--rt-coral: #e7624a;
	--rt-coral-dark: #b93f2f;
	--rt-sun: #efbf55;
	--rt-sage: #a7b59d;
	--rt-sage-light: #dbe4d4;
	--rt-blue: #1c4d91;
	--rt-blue-light: #dbe7f7;
	--rt-border: rgba(23, 35, 59, 0.2);
	--rt-shadow: 0 18px 50px rgba(23, 35, 59, 0.12);
	background: var(--rt-cream);
	color: var(--rt-ink);
	font-family: var(--wikipress-font-ui);
}

.wikipress-homepage .site {
	max-width: none;
	background: var(--rt-paper);
}

.wikipress-homepage .site-content,
.wikipress-homepage .content-wrapper,
.wikipress-homepage .homepage-main {
	max-width: none;
	width: 100%;
}

.wikipress-homepage .content-wrapper {
	display: block;
}

.wikipress-homepage .homepage-main {
	background: var(--rt-paper);
	font-family: var(--wikipress-font-ui);
	padding: 0;
}

.wikipress-homepage .site-header {
	background: rgba(255, 253, 248, 0.94);
	border-bottom: 1px solid rgba(23, 35, 59, 0.12);
	box-shadow: none;
}

.wikipress-homepage .header-inner {
	gap: 28px;
	max-width: 1220px;
	padding: 14px 20px;
}

.wikipress-homepage .site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wikipress-homepage .site-branding::before {
	background:
		linear-gradient(90deg, transparent 46%, var(--rt-paper) 46% 54%, transparent 54%),
		linear-gradient(0deg, transparent 46%, var(--rt-paper) 46% 54%, transparent 54%),
		var(--rt-coral);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	content: "";
	display: block;
	height: 28px;
	transform: rotate(8deg);
	width: 28px;
}

.wikipress-homepage .site-title {
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.wikipress-homepage .site-title a {
	color: var(--rt-ink);
}

.wikipress-homepage .main-navigation {
	font-size: 0.9rem;
}

.wikipress-homepage .primary-menu {
	justify-content: flex-end;
}

.wikipress-homepage .primary-menu a {
	color: var(--rt-ink-soft);
	font-weight: 700;
	padding: 8px 13px;
}

.wikipress-homepage .primary-menu a::after {
	background-color: var(--rt-coral);
}

.wikipress-homepage .primary-menu a:hover,
.wikipress-homepage .primary-menu a:focus {
	color: var(--rt-ink);
}

.wikipress-homepage .search-toggle {
	align-items: center;
	background: var(--rt-ink);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
	width: 40px;
}

.wikipress-homepage .search-toggle:hover,
.wikipress-homepage .search-toggle:focus {
	background: var(--rt-coral);
	border-color: var(--rt-coral);
	transform: translateY(-1px);
}

.wikipress-homepage .header-search-form {
	border: 1px solid var(--rt-border);
	border-radius: 10px;
	box-shadow: var(--rt-shadow);
}

.wikipress-homepage .site-footer {
	margin-top: 0;
}

.homepage-main h1,
.homepage-main h2,
.homepage-main h3 {
	border: 0;
	color: var(--rt-ink);
	letter-spacing: -0.025em;
	margin: 0;
	padding: 0;
}

.homepage-main h1,
.homepage-main h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
}

.home-container {
	margin: 0 auto;
	max-width: 1180px;
	width: min(1180px, calc(100% - 40px));
}

.home-eyebrow,
.home-section-kicker {
	color: var(--rt-coral-dark);
	font-family: var(--wikipress-font-ui);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.4;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.home-eyebrow {
	align-items: center;
	display: flex;
	gap: 10px;
}

.home-eyebrow > span {
	background: var(--rt-coral);
	border-radius: 999px;
	height: 8px;
	position: relative;
	width: 8px;
}

.home-eyebrow > span::after {
	border: 1px solid var(--rt-coral);
	border-radius: 50%;
	content: "";
	height: 14px;
	left: -4px;
	position: absolute;
	top: -4px;
	width: 14px;
}

.home-hero {
	background:
		radial-gradient(circle at 8% 18%, rgba(231, 98, 74, 0.08) 0 2px, transparent 3px),
		linear-gradient(180deg, #fffaf1 0%, var(--rt-cream) 100%);
	background-size: 26px 26px, auto;
	border-bottom: 0;
	display: block;
	min-height: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.home-hero::before {
	border: 1px solid rgba(23, 35, 59, 0.12);
	border-radius: 50%;
	content: "";
	height: 560px;
	position: absolute;
	right: -280px;
	top: -260px;
	width: 560px;
}

.home-hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(42px, 6vw, 84px);
	grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
	padding-bottom: 52px;
	padding-top: 70px;
	position: relative;
	z-index: 1;
}

.home-hero-content {
	margin: 0;
	max-width: 680px;
	min-width: 0;
	padding: 0;
	position: relative;
	width: auto;
	z-index: 2;
}

.home-hero-content h1 {
	font-size: clamp(3.35rem, 5.35vw, 5rem);
	font-weight: 600;
	letter-spacing: -0.055em;
	line-height: 0.98;
	max-width: 660px;
}

.home-hero-description {
	color: var(--rt-ink-soft);
	font-size: clamp(1.04rem, 1.5vw, 1.18rem);
	line-height: 1.65;
	margin: 24px 0 0;
	max-width: 600px;
}

.homepage-search-form {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--rt-ink);
	border-radius: 999px;
	box-shadow: 6px 7px 0 rgba(23, 35, 59, 0.11);
	display: flex;
	gap: 8px;
	margin-top: 32px;
	max-width: 650px;
	padding: 7px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.homepage-search-form:focus-within {
	box-shadow: 0 0 0 4px rgba(28, 77, 145, 0.25), 6px 7px 0 rgba(23, 35, 59, 0.11);
	transform: translateY(-1px);
}

.homepage-search-icon {
	align-items: center;
	color: var(--rt-ink-soft);
	display: inline-flex;
	flex: 0 0 42px;
	justify-content: center;
}

.homepage-search-icon svg {
	fill: none;
	height: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 22px;
}

.homepage-search-field {
	background: transparent;
	border: 0;
	color: var(--rt-ink);
	flex: 1;
	font-family: var(--wikipress-font-ui);
	font-size: 1rem;
	line-height: 1.4;
	min-height: 50px;
	min-width: 0;
	padding: 0 4px;
}

.homepage-search-field::placeholder {
	color: #677188;
	opacity: 1;
}

.homepage-search-field:focus {
	outline: 0;
}

.homepage-search-submit {
	align-items: center;
	background: var(--rt-ink);
	border: 1px solid var(--rt-ink);
	border-radius: 999px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--wikipress-font-ui);
	font-size: 0.92rem;
	font-weight: 800;
	gap: 9px;
	justify-content: center;
	min-height: 50px;
	padding: 0 20px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.homepage-search-submit:hover,
.homepage-search-submit:focus {
	background: var(--rt-coral);
	border-color: var(--rt-coral);
	transform: none;
}

.homepage-button-icon,
.home-inline-arrow,
.home-tool-icon,
.home-context-icon,
.home-hero-note-icon {
	align-items: center;
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
}

.homepage-button-icon svg,
.home-inline-arrow svg,
.home-tool-icon svg,
.home-context-icon svg,
.home-hero-note-icon svg,
.home-text-link svg,
.home-primary-link svg,
.home-guide-footer a svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.homepage-button-icon svg,
.home-inline-arrow svg,
.home-text-link svg,
.home-primary-link svg,
.home-guide-footer a svg {
	height: 19px;
	width: 19px;
}

.home-quick-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 20px;
}

.home-quick-links > span {
	color: #626c81;
	font-size: 0.82rem;
	font-weight: 600;
}

.home-quick-links a {
	border-bottom: 1px solid rgba(23, 35, 59, 0.35);
	color: var(--rt-ink);
	font-size: 0.82rem;
	font-weight: 800;
	padding-bottom: 1px;
	text-decoration: none;
}

.home-quick-links a:hover,
.home-quick-links a:focus {
	border-color: var(--rt-coral);
	color: var(--rt-coral-dark);
	text-decoration: none;
}

.home-hero-visual {
	margin: 0;
	max-width: 540px;
	min-width: 0;
	position: relative;
	width: 100%;
}

.home-hero-art-frame {
	background: #f5ead6;
	border: 1px solid var(--rt-ink);
	box-shadow: 13px 14px 0 var(--rt-cream-deep);
	min-width: 0;
	overflow: hidden;
	position: relative;
	transform: rotate(1.2deg);
}

.home-hero-art-frame::before,
.home-hero-art-frame::after {
	background: var(--rt-sun);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	content: "";
	height: 18px;
	position: absolute;
	z-index: 2;
	width: 18px;
}

.home-hero-art-frame::before {
	left: 18px;
	top: 18px;
}

.home-hero-art-frame::after {
	background: var(--rt-sage);
	bottom: 18px;
	right: 18px;
}

.home-hero-art {
	display: block;
	height: auto;
	max-width: 100%;
	pointer-events: none;
	position: static;
	transform: none;
	width: 100%;
}

.home-hero-note {
	align-items: center;
	background: var(--rt-ink);
	border: 1px solid var(--rt-ink);
	bottom: -25px;
	box-shadow: 5px 6px 0 rgba(231, 98, 74, 0.72);
	color: #ffffff;
	display: flex;
	font-size: 0.78rem;
	gap: 12px;
	left: -26px;
	line-height: 1.45;
	max-width: 250px;
	padding: 13px 16px;
	position: absolute;
	transform: rotate(-1.5deg);
}

.home-hero-note strong {
	display: block;
	font-size: 0.9rem;
}

.home-hero-note-icon {
	background: var(--rt-coral);
	border-radius: 50%;
	height: 35px;
	width: 35px;
}

.home-hero-note-icon svg {
	height: 20px;
	width: 20px;
}

.home-hero-image-left .home-hero-content {
	margin: 0;
}

.home-hero-image-left .home-hero-visual {
	grid-column: 1;
	grid-row: 1;
}

.home-hero-image-left .home-hero-content {
	grid-column: 2;
	grid-row: 1;
}

.home-hero-image-center .home-hero-grid {
	grid-template-columns: minmax(0, 840px);
	justify-content: center;
	text-align: center;
}

.home-hero-image-center .home-hero-content,
.home-hero-image-center .home-hero-visual,
.home-hero-no-image .home-hero-content {
	margin-left: auto;
	margin-right: auto;
}

.home-hero-image-center .home-eyebrow,
.home-hero-image-center .home-quick-links,
.home-hero-no-image .home-eyebrow,
.home-hero-no-image .home-quick-links {
	justify-content: center;
}

.home-hero-image-center .homepage-search-form,
.home-hero-no-image .homepage-search-form {
	margin-left: auto;
	margin-right: auto;
}

.home-hero-no-image .home-hero-grid {
	grid-template-columns: minmax(0, 800px);
	justify-content: center;
	text-align: center;
}

.home-proof-strip {
	align-items: center;
	border-top: 1px solid rgba(23, 35, 59, 0.18);
	display: flex;
	gap: 32px;
	justify-content: space-between;
	padding-bottom: 22px;
	padding-top: 22px;
	position: relative;
	z-index: 1;
}

.home-proof-strip > p {
	color: var(--rt-ink-soft);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.home-proof-strip dl {
	display: flex;
	gap: clamp(24px, 4vw, 54px);
	margin: 0;
}

.home-proof-strip dl > div {
	align-items: baseline;
	display: flex;
	gap: 7px;
}

.home-proof-strip dt {
	color: var(--rt-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1;
}

.home-proof-strip dd {
	color: var(--rt-ink-soft);
	font-size: 0.76rem;
	font-weight: 700;
	margin: 0;
}

.home-section {
	padding: 92px 0;
	scroll-margin-top: 86px;
}

.home-section + .home-section {
	border-top: 0;
}

.home-section-header {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 38px;
}

.home-section-header h2,
.home-trust-intro h2 {
	font-size: clamp(2.45rem, 4.2vw, 3.8rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1.04;
	max-width: 760px;
}

.home-section-header-split {
	align-items: end;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
}

.home-section-header-split > p {
	color: var(--rt-ink-soft);
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0 0 4px;
}

.home-section-header-action {
	align-items: end;
}

.home-text-link,
.home-primary-link {
	align-items: center;
	color: var(--rt-ink);
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 800;
	gap: 10px;
	text-decoration: none;
}

.home-text-link > span,
.home-primary-link > span {
	transition: transform 0.2s ease;
}

.home-text-link:hover,
.home-text-link:focus,
.home-primary-link:hover,
.home-primary-link:focus {
	color: var(--rt-coral-dark);
	text-decoration: none;
}

.home-text-link:hover > span,
.home-text-link:focus > span,
.home-primary-link:hover > span,
.home-primary-link:focus > span {
	transform: translateX(4px);
}

.home-tools {
	background: var(--rt-paper);
}

.home-tool-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-tool-card {
	background: var(--rt-blue-light);
	border: 1px solid var(--rt-ink);
	color: var(--rt-ink);
	display: flex;
	flex-direction: column;
	min-height: 390px;
	overflow: hidden;
	padding: 28px;
	position: relative;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-tool-card::after {
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	height: 130px;
	position: absolute;
	right: -70px;
	bottom: -60px;
	width: 130px;
}

.home-tool-card:hover,
.home-tool-card:focus {
	box-shadow: 8px 9px 0 var(--rt-ink);
	color: var(--rt-ink);
	text-decoration: none;
	transform: translate(-3px, -3px);
}

.home-tool-checker {
	background: var(--rt-ink);
	color: #ffffff;
}

.home-tool-checker:hover,
.home-tool-checker:focus {
	box-shadow: 8px 9px 0 var(--rt-coral);
	color: #ffffff;
}

.home-tool-generator {
	background: var(--rt-sun);
}

.home-tool-dictionary {
	background: var(--rt-sage-light);
}

.home-tool-card-top {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 48px;
}

.home-tool-number {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.92rem;
	font-weight: 700;
}

.home-tool-icon {
	border: 1px solid currentColor;
	border-radius: 50%;
	height: 48px;
	width: 48px;
}

.home-tool-icon svg {
	height: 24px;
	width: 24px;
}

.home-tool-eyebrow {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.home-tool-card h3 {
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 2.25vw, 2.05rem);
	font-weight: 600;
	line-height: 1.08;
}

.home-tool-card > p {
	color: inherit;
	font-size: 0.92rem;
	line-height: 1.65;
	margin: 17px 0 24px;
	opacity: 0.84;
}

.home-tool-footer {
	align-items: center;
	border-top: 1px solid currentColor;
	display: flex;
	font-size: 0.74rem;
	font-weight: 750;
	gap: 15px;
	justify-content: space-between;
	margin-top: auto;
	opacity: 0.85;
	padding-top: 16px;
	position: relative;
	z-index: 1;
}

.home-tool-card .home-inline-arrow {
	transition: transform 0.2s ease;
}

.home-tool-card:hover .home-inline-arrow,
.home-tool-card:focus .home-inline-arrow {
	transform: translateX(5px);
}

.home-tone-families {
	background: var(--rt-ink);
	color: #ffffff;
	position: relative;
}

.home-tone-families::before {
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
	background-size: 18px 18px;
	content: "";
	inset: 0;
	opacity: 0.24;
	pointer-events: none;
	position: absolute;
}

.home-tone-families .home-container {
	position: relative;
}

.home-tone-families h2 {
	color: #ffffff;
}

.home-tone-families .home-section-kicker {
	color: #f59a87;
}

.home-tone-families .home-text-link {
	color: #ffffff;
}

.home-tone-families .home-text-link:hover,
.home-tone-families .home-text-link:focus {
	color: var(--rt-sun);
}

.home-family-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-family-link {
	align-items: center;
	background: #f8f1e4;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--rt-ink);
	display: grid;
	gap: 15px;
	grid-template-columns: 44px minmax(0, 1fr) 22px;
	min-height: 88px;
	padding: 15px 17px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-family-link:hover,
.home-family-link:focus {
	background: #ffffff;
	color: var(--rt-ink);
	text-decoration: none;
	transform: translateY(-2px);
}

.home-family-mark {
	align-items: center;
	background: var(--rt-coral);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	display: flex;
	gap: 3px;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.home-family-mark i {
	background: var(--rt-ink);
	border-radius: 50%;
	display: block;
	height: 4px;
	width: 4px;
}

.home-family-color-2 .home-family-mark {
	background: var(--rt-sun);
}

.home-family-color-3 .home-family-mark {
	background: var(--rt-sage);
}

.home-family-color-4 .home-family-mark {
	background: #8aaad0;
}

.home-family-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.home-family-copy strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.03rem;
	font-weight: 700;
	line-height: 1.25;
}

.home-family-copy small {
	color: #596277;
	font-size: 0.72rem;
	font-weight: 700;
	margin-top: 4px;
}

.home-family-link .home-inline-arrow {
	transition: transform 0.2s ease;
}

.home-family-link:hover .home-inline-arrow,
.home-family-link:focus .home-inline-arrow {
	transform: translateX(4px);
}

.home-library {
	background: var(--rt-paper);
}

.home-library-layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr);
}

.home-guide-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-guide-card {
	background: #ffffff;
	border: 1px solid var(--rt-border);
	display: flex;
	flex-direction: column;
	min-height: 330px;
	padding: 25px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-guide-card:hover {
	border-color: var(--rt-ink);
	box-shadow: 6px 7px 0 var(--rt-cream-deep);
	transform: translateY(-2px);
}

.home-guide-meta {
	align-items: center;
	color: #626c81;
	display: flex;
	font-size: 0.7rem;
	font-weight: 750;
	gap: 10px;
	justify-content: space-between;
	line-height: 1.35;
	margin-bottom: 24px;
}

.home-guide-meta span:first-child {
	color: var(--rt-coral-dark);
	max-width: 68%;
	text-transform: uppercase;
}

.home-guide-card h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.38rem;
	font-weight: 600;
	line-height: 1.24;
}

.home-guide-card h3 a {
	color: var(--rt-ink);
	text-decoration: none;
}

.home-guide-card h3 a:hover,
.home-guide-card h3 a:focus {
	color: var(--rt-coral-dark);
	text-decoration: none;
}

.home-guide-card > p {
	color: var(--rt-ink-soft);
	font-size: 0.86rem;
	line-height: 1.65;
	margin: 15px 0 24px;
}

.home-guide-footer {
	align-items: center;
	border-top: 1px solid rgba(23, 35, 59, 0.14);
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 15px;
}

.home-guide-footer time {
	color: #626c81;
	font-size: 0.7rem;
	font-weight: 700;
}

.home-guide-footer a {
	align-items: center;
	background: var(--rt-ink);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	height: 35px;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
	width: 35px;
}

.home-guide-footer a:hover,
.home-guide-footer a:focus {
	background: var(--rt-coral);
	border-color: var(--rt-coral);
	color: #ffffff;
	transform: translateX(2px);
}

.home-context-panel {
	background: var(--rt-coral);
	border: 1px solid var(--rt-ink);
	box-shadow: 8px 9px 0 var(--rt-cream-deep);
	color: var(--rt-ink);
	padding: 28px;
}

.home-context-icon {
	background: var(--rt-paper);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	height: 50px;
	margin-bottom: 34px;
	width: 50px;
}

.home-context-icon svg {
	height: 24px;
	width: 24px;
}

.home-context-panel .home-section-kicker {
	color: #60251c;
	margin-bottom: 8px;
}

.home-context-panel h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.85rem;
	font-weight: 600;
	line-height: 1.08;
}

.home-context-panel > p:not(.home-section-kicker) {
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 15px 0 22px;
}

.home-context-panel ul {
	border-top: 1px solid rgba(23, 35, 59, 0.32);
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-context-panel li {
	border-bottom: 1px solid rgba(23, 35, 59, 0.32);
}

.home-context-panel li a {
	align-items: center;
	color: var(--rt-ink);
	display: flex;
	font-size: 0.78rem;
	font-weight: 750;
	gap: 14px;
	justify-content: space-between;
	line-height: 1.35;
	padding: 12px 0;
	text-decoration: none;
}

.home-context-panel li a:hover,
.home-context-panel li a:focus {
	color: #ffffff;
	text-decoration: none;
}

.home-context-panel li small {
	align-items: center;
	background: rgba(255, 255, 255, 0.66);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.68rem;
	height: 24px;
	justify-content: center;
	min-width: 24px;
	padding: 0 7px;
}

.home-editorial-trust {
	background: #e1e8db;
	border: 0;
}

.home-trust-grid {
	align-items: start;
	display: grid;
	gap: clamp(48px, 7vw, 100px);
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.home-trust-intro h2 {
	font-size: clamp(2.5rem, 4.2vw, 3.8rem);
}

.home-trust-intro > p:not(.home-section-kicker) {
	color: var(--rt-ink-soft);
	font-size: 1rem;
	line-height: 1.75;
	margin: 22px 0 27px;
	max-width: 510px;
}

.home-primary-link {
	background: var(--rt-ink);
	border: 1px solid var(--rt-ink);
	border-radius: 999px;
	color: #ffffff;
	padding: 13px 18px;
}

.home-primary-link:hover,
.home-primary-link:focus {
	background: var(--rt-coral);
	border-color: var(--rt-coral);
	color: #ffffff;
}

.home-trust-list {
	display: grid;
	gap: 0;
}

.home-trust-item {
	align-items: start;
	border-top: 1px solid rgba(23, 35, 59, 0.26);
	display: grid;
	gap: 18px;
	grid-template-columns: 42px minmax(0, 1fr);
	padding: 23px 0;
}

.home-trust-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.home-trust-number {
	align-items: center;
	background: var(--rt-paper);
	border: 1px solid var(--rt-ink);
	border-radius: 50%;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.78rem;
	font-weight: 700;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.home-trust-item h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.home-trust-item p {
	color: var(--rt-ink-soft);
	font-size: 0.88rem;
	line-height: 1.65;
	margin: 7px 0 0;
}

.home-page-content {
	background: var(--rt-paper);
}

.home-page-content .article-body {
	max-width: var(--wikipress-content-max);
}

.wikipress-homepage .site-footer {
	background: var(--rt-ink);
	color: #cbd2df;
	padding: 66px 0 28px;
}

.wikipress-homepage .footer-inner {
	max-width: 1180px;
}

.wikipress-homepage .home-footer-widgets {
	display: grid;
	gap: 42px;
	grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 0.7fr));
}

.wikipress-homepage .home-footer-brand {
	padding-right: 32px;
}

.wikipress-homepage .home-footer-title {
	color: #ffffff;
	display: inline-block;
	font-family: var(--wikipress-font-ui);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 14px;
	text-decoration: none;
}

.wikipress-homepage .home-footer-brand p {
	color: #b9c2d1;
	font-size: 0.85rem;
	line-height: 1.7;
	margin: 0;
	max-width: 340px;
}

.wikipress-homepage .footer-widget-title {
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wikipress-homepage .footer-widget a {
	color: #cbd2df;
}

.wikipress-homepage .footer-widget a:hover,
.wikipress-homepage .footer-widget a:focus {
	color: #ffffff;
}

.wikipress-homepage .footer-bottom {
	border-top-color: rgba(255, 255, 255, 0.17);
}

.wikipress-homepage .footer-navigation {
	max-width: 100%;
	min-width: 0;
}

.wikipress-homepage .footer-menu {
	flex-wrap: wrap;
}

.wikipress-homepage .footer-copyright,
.wikipress-homepage .theme-credit {
	color: #aeb9ca;
}

.wikipress-homepage .theme-credit a {
	color: #dfe5ee;
}

.wikipress-homepage a:focus-visible,
.wikipress-homepage button:focus-visible,
.wikipress-homepage input:focus-visible {
	outline: 3px solid #f3a900;
	outline-offset: 3px;
}

@media (max-width: 1080px) {
	.home-hero-grid {
		gap: 46px;
		grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
	}

	.home-hero-content h1 {
		font-size: clamp(3.2rem, 6vw, 4.25rem);
	}

	.home-tool-card {
		min-height: 370px;
		padding: 24px;
	}

	.home-family-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-library-layout {
		grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.7fr);
	}
}

@media (max-width: 820px) {
	.wikipress-homepage .header-inner {
		gap: 10px;
		flex-wrap: nowrap;
		position: relative;
	}

	.wikipress-homepage .menu-toggle {
		align-items: center;
		background: var(--rt-paper);
		border: 1px solid var(--rt-ink);
		border-radius: 50%;
		color: var(--rt-ink);
		display: inline-flex;
		height: 40px;
		justify-content: center;
		margin-left: auto;
		order: 0;
		padding: 0;
		width: 40px;
	}

	.wikipress-homepage .menu-toggle-icon::before {
		content: "\2630";
		font-family: Arial, sans-serif;
		font-size: 1.05rem;
	}

	.wikipress-homepage .header-search {
		margin-left: 0;
		order: 0;
	}

	.wikipress-homepage .main-navigation {
		flex: 0 0 auto;
		margin-left: auto;
		order: 0;
		width: auto;
	}

	.wikipress-homepage .primary-menu {
		background: var(--rt-paper);
		border: 1px solid var(--rt-border);
		box-shadow: var(--rt-shadow);
		display: none;
		flex-direction: column;
		gap: 0;
		left: 0;
		padding: 8px 14px;
		position: absolute;
		right: 0;
		top: calc(100% + 10px);
		z-index: 40;
	}

	.wikipress-homepage .primary-menu.is-active {
		display: flex;
	}

	.wikipress-homepage .primary-menu a {
		border-bottom: 1px solid rgba(23, 35, 59, 0.12);
		padding: 12px 4px;
	}

	.home-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 62px;
		padding-top: 55px;
	}

	.home-hero-content {
		max-width: 720px;
	}

	.home-hero-visual {
		margin-left: auto;
		margin-right: auto;
		max-width: 620px;
	}

	.home-hero-image-left .home-hero-visual,
	.home-hero-image-left .home-hero-content {
		grid-column: auto;
		grid-row: auto;
	}

	.home-hero-image-left .home-hero-visual {
		order: 2;
	}

	.home-proof-strip {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.home-proof-strip dl {
		justify-content: space-between;
		width: 100%;
	}

	.home-section {
		padding: 72px 0;
	}

	.home-section-header-split {
		gap: 18px;
		grid-template-columns: 1fr;
	}

	.home-tool-grid {
		grid-template-columns: 1fr;
	}

	.home-tool-card {
		min-height: 330px;
	}

	.home-tool-card-top {
		margin-bottom: 34px;
	}

	.home-library-layout,
	.home-trust-grid {
		grid-template-columns: 1fr;
	}

	.home-context-panel {
		box-shadow: 6px 7px 0 var(--rt-cream-deep);
	}

	.wikipress-homepage .home-footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wikipress-homepage .home-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.home-container {
		width: min(100% - 28px, 1180px);
	}

	.home-hero-grid {
		gap: 48px;
		padding-bottom: 50px;
		padding-top: 42px;
	}

	.home-hero-content h1 {
		font-size: clamp(2.75rem, 14.5vw, 3.65rem);
		line-height: 0.99;
	}

	.home-hero-description {
		font-size: 0.98rem;
		line-height: 1.62;
		margin-top: 20px;
	}

	.homepage-search-form {
		border-radius: 18px;
		flex-wrap: wrap;
		padding: 7px;
	}

	.homepage-search-icon {
		flex-basis: 38px;
	}

	.homepage-search-field {
		font-size: 0.92rem;
	}

	.homepage-search-submit {
		border-radius: 12px;
		flex-basis: 100%;
		width: 100%;
	}

	.home-quick-links {
		align-items: flex-start;
	}

	.home-quick-links > span {
		flex-basis: 100%;
	}

	.home-hero-art-frame {
		box-shadow: 8px 9px 0 var(--rt-cream-deep);
	}

	.home-hero-note {
		bottom: -24px;
		left: 12px;
	}

	.home-proof-strip dl {
		flex-wrap: wrap;
		gap: 16px 28px;
	}

	.home-proof-strip dl > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.home-section {
		padding: 62px 0;
	}

	.home-section-header,
	.home-section-header-action {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}

	.home-section-header h2,
	.home-trust-intro h2 {
		font-size: clamp(2.25rem, 11vw, 3rem);
	}

	.home-tool-card {
		min-height: 350px;
		padding: 24px;
	}

	.home-family-grid,
	.home-guide-grid {
		grid-template-columns: 1fr;
	}

	.home-family-link {
		min-height: 82px;
	}

	.home-guide-card {
		min-height: 300px;
	}

	.home-context-panel {
		padding: 24px;
	}

	.home-trust-item {
		gap: 14px;
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.home-trust-number {
		height: 36px;
		width: 36px;
	}

	.wikipress-homepage .home-footer-widgets {
		grid-template-columns: 1fr;
	}

	.wikipress-homepage .home-footer-brand {
		grid-column: auto;
		padding-right: 0;
	}

	.wikipress-homepage .footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.wikipress-homepage .footer-navigation,
	.wikipress-homepage .footer-copyright {
		width: 100%;
	}

	.wikipress-homepage .footer-menu {
		gap: 8px 14px;
	}

	.wikipress-homepage .footer-copyright {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 10px;
	}

	.wikipress-homepage .theme-credit {
		margin-left: 0;
	}
}

@media (max-width: 420px) {
	.wikipress-homepage .site-branding::before {
		height: 24px;
		width: 24px;
	}

	.wikipress-homepage .site-title {
		font-size: 1.05rem;
	}

	.wikipress-homepage .search-toggle {
		height: 36px;
		width: 36px;
	}

	.home-family-link {
		gap: 12px;
		grid-template-columns: 40px minmax(0, 1fr) 19px;
		padding-left: 13px;
		padding-right: 13px;
	}

	.home-family-mark {
		height: 38px;
		width: 38px;
	}
}

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

	.homepage-search-form,
	.home-tool-card,
	.home-family-link,
	.home-guide-card,
	.home-inline-arrow,
	.home-text-link > span,
	.home-primary-link > span,
	.wikipress-homepage .search-toggle {
		transition: none;
	}

	.home-tool-card:hover,
	.home-tool-card:focus,
	.home-family-link:hover,
	.home-family-link:focus,
	.home-guide-card:hover,
	.wikipress-homepage .search-toggle:hover,
	.wikipress-homepage .search-toggle:focus {
		transform: none;
	}
}
