/* ============================================================
   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;
}
.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;

}

.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;

}



/* ---- 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); /* Subtly tinted border */
}

.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-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;
}
