/**
 * Main front-end styles for Perimeter Calculator theme.
 *
 * @package Perimeter_Calculator
 */

/* -------------------------------------------------------------------------
   Theme tokens
   ------------------------------------------------------------------------- */

:root,
html[data-theme="dark"] {
	color-scheme: dark;

	/* Brand */
	--pc-accent: #a151ed;
	--pc-accent-hover: #b76ef0;
	--pc-accent-soft: rgba(161, 81, 237, 0.14);
	--pc-on-accent: #ffffff;

	/* Surfaces */
	--pc-bg: #141414;
	--pc-bar: #202020;
	--pc-surface: #1a1a1a;
	--pc-surface-2: #202020;
	--pc-surface-3: #1a1522;
	--pc-input-bg: #181818;

	/* Text */
	--pc-text: #e8e8e8;
	--pc-text-body: #c8c8c8;
	--pc-text-muted: #a8a8a8;
	--pc-text-faint: #9a9a9a;
	--pc-on-bar: #ffffff;

	/* Borders / chrome */
	--pc-border: #333333;
	--pc-border-subtle: #2e2e2e;
	--pc-border-strong: #3a3a3a;
	--pc-border-accent: #3a2a4a;
	--pc-control-border: #5a5a5a;

	/* Calculator bridge (plugin shell reads these) */
	--accent: var(--pc-accent);
	--accent-hover: #be79ff;
	--accent-soft: var(--pc-accent-soft);
	--bg-card: var(--pc-surface-2);
	--bg-input: var(--pc-input-bg);
	--text-primary: #f9fafb;
	--text-secondary: #d4d4d8;
	--text-muted: var(--pc-text-faint);
	--border-subtle: rgba(55, 65, 81, 0.8);
	--border-strong: rgba(75, 85, 99, 1);

	/* Typography / layout */
	--pc-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pc-container-max: 1330px;
	--pc-sidebar-width: 340px;
	--pc-layout-gap: 16px;
}

/*
 * Light mode � soft zinc surfaces, deeper purple accent for WCAG on white,
 * calculator bridge vars stay in sync with theme tokens.
 */
html[data-theme="light"] {
	color-scheme: light;

	--pc-accent: #8b2fc9;
	--pc-accent-hover: #7a1fb0;
	--pc-accent-soft: rgba(139, 47, 201, 0.12);
	--pc-on-accent: #ffffff;

	--pc-bg: #f4f4f5;
	--pc-bar: #ffffff;
	--pc-surface: #ffffff;
	--pc-surface-2: #ffffff;
	--pc-surface-3: #f8f5fc;
	--pc-input-bg: #f4f4f5;

	--pc-text: #18181b;
	--pc-text-body: #3f3f46;
	--pc-text-muted: #71717a;
	--pc-text-faint: #71717a;
	--pc-on-bar: #18181b;

	--pc-border: #e4e4e7;
	--pc-border-subtle: #e4e4e7;
	--pc-border-strong: #d4d4d8;
	--pc-border-accent: #e9d5ff;
	--pc-control-border: #d4d4d8;

	--accent: var(--pc-accent);
	--accent-hover: #a855f7;
	--accent-soft: var(--pc-accent-soft);
	--bg-card: var(--pc-surface);
	--bg-input: var(--pc-input-bg);
	--text-primary: #18181b;
	--text-secondary: #3f3f46;
	--text-muted: var(--pc-text-faint);
	--border-subtle: rgba(24, 24, 27, 0.1);
	--border-strong: rgba(24, 24, 27, 0.18);
}

/* -------------------------------------------------------------------------
   Base / Reset
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--pc-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pc-text);
	background: var(--pc-bg);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--pc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--pc-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.75em;
	line-height: 1.25;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

/* Accessibility helpers */
.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--pc-bar);
	clip: auto !important;
	clip-path: none;
	color: var(--pc-on-bar);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 15px;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 15px;
	width: auto;
	z-index: 100000;
}

/* -------------------------------------------------------------------------
   Layout shell � mobile first
   ------------------------------------------------------------------------- */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
	width: 100%;
	background: var(--pc-bg);
}

.pc-container {
	width: 100%;
	max-width: var(--pc-container-max);
	margin: 0 auto;
	padding: 0 10px;
}

/* -------------------------------------------------------------------------
   Header � 50px dark bar (reference navbar)
   ------------------------------------------------------------------------- */

.site-header {
	height: 50px;
	background: var(--pc-bar);
	border-bottom: 1px solid transparent;
	position: sticky;
	top: 0;
	z-index: 1000;
}

html[data-theme="light"] .site-header {
	border-bottom-color: var(--pc-border);
	box-shadow: 0 1px 0 rgba(24, 24, 27, 0.04);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 50px;
	min-height: 50px;
	padding-top: 0;
	padding-bottom: 0;
}

/* Brand: calculator icon + text */
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	color: var(--pc-on-bar);
	text-decoration: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-brand:hover,
.site-brand:focus {
	color: var(--pc-on-bar);
	opacity: 0.92;
}

.site-brand__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: var(--pc-on-bar);
}

.site-brand__icon svg {
	width: 100%;
	height: 100%;
}

.site-brand__text {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Hamburger ? mobile / tablet only */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--pc-control-border);
	border-radius: 10px;
	background: var(--pc-input-bg);
	color: var(--pc-on-bar);
	cursor: pointer;
	font: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
	border-color: var(--pc-accent);
	outline: none;
}

.menu-toggle:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

.menu-toggle__bars {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	position: relative;
	border-radius: 1px;
	transition: background 0.2s ease;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle__bars::before {
	top: -5px;
}

.menu-toggle__bars::after {
	top: 5px;
}

.menu-toggle[aria-expanded="true"] {
	border-color: var(--pc-accent);
	color: var(--pc-accent);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Right tools: menus + search + theme toggle */
.header-tools {
	display: none;
	align-items: center;
	gap: 1.25rem;
	color: var(--pc-on-bar);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.header-tools__actions {
	display: contents;
}

.header-menu__eyebrow {
	display: none;
}

.header-menu__icon,
.header-menu__chevron {
	display: none;
}

.header-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.header-menu__link {
	display: block;
	color: var(--pc-on-bar);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.header-menu__link:hover,
.header-menu__link:focus {
	color: var(--pc-on-bar);
	opacity: 0.85;
}

/* Mobile / tablet open panel */
.header-tools.is-open {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.1rem;
	position: absolute;
	top: 50px;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.85rem 0.85rem 1.15rem;
	background: var(--pc-bar);
	border-bottom: 1px solid var(--pc-border);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	animation: pc-header-menu-in 0.22s ease;
}

html[data-theme="light"] .header-tools.is-open {
	box-shadow: 0 14px 32px rgba(24, 24, 27, 0.1);
}

@keyframes pc-header-menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.header-tools.is-open {
		animation: none;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		transition: none;
	}
}

.header-tools.is-open .header-menu__eyebrow {
	display: block;
	margin: 0 0 0.45rem 0.15rem;
	font-size: 0.6875rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pc-text-muted);
	line-height: 1.2;
}

.header-tools.is-open .header-menu__list {
	gap: 0;
	border: 1px solid var(--pc-border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--pc-input-bg);
}

.header-tools.is-open .header-menu__item + .header-menu__item {
	border-top: 1px solid var(--pc-border);
}

.header-tools.is-open .header-menu__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	opacity: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.header-tools.is-open .header-menu__link:hover,
.header-tools.is-open .header-menu__link:focus {
	background: var(--pc-accent-soft);
	color: var(--pc-accent);
	opacity: 1;
	outline: none;
}

.header-tools.is-open .header-menu__link:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: -2px;
}

.header-tools.is-open .header-menu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--pc-bg);
	border: 1px solid var(--pc-border);
	color: var(--pc-on-bar);
}

.header-tools.is-open .header-menu__link:hover .header-menu__icon,
.header-tools.is-open .header-menu__link:focus .header-menu__icon {
	border-color: var(--pc-accent);
	color: var(--pc-accent);
}

.header-tools.is-open .header-menu__label {
	flex: 1;
	min-width: 0;
}

.header-tools.is-open .header-menu__chevron {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--pc-text-muted);
	opacity: 0.85;
}

.header-tools.is-open .header-menu__link:hover .header-menu__chevron,
.header-tools.is-open .header-menu__link:focus .header-menu__chevron {
	color: var(--pc-accent);
	opacity: 1;
}

.header-tools.is-open .header-tools__actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.header-tools.is-open .header-search {
	flex: 1;
	max-width: none;
	height: 42px;
	border-radius: 12px;
}

.header-tools.is-open .theme-toggle {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 12px;
}

.header-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	max-width: 280px;
	height: 35px;
	padding: 0 0.75rem;
	border: 1px solid var(--pc-control-border);
	border-radius: 999px;
	background: var(--pc-bg);
	color: var(--pc-on-bar);
}

.header-search.is-open {
	border-color: var(--pc-accent);
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}

.header-search__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--pc-on-bar);
	opacity: 0.9;
}

.header-search__icon svg {
	width: 100%;
	height: 100%;
}

.header-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--pc-on-bar);
	font: inherit;
	font-size: 0.8125rem;
	padding: 0;
	box-shadow: none !important;
}

.header-search__input::placeholder {
	color: var(--pc-text-faint);
	opacity: 1;
}

.header-search__results {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 1100;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	max-height: min(60vh, 320px);
	overflow-y: auto;
	border: 1px solid var(--pc-border);
	border-radius: 12px;
	background: var(--pc-surface);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.header-search.is-open .header-search__results {
	display: block;
}

.header-search__item {
	margin: 0;
}

.header-search__link {
	display: block;
	padding: 0.55rem 0.85rem;
	color: var(--pc-text);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.header-search__link:hover,
.header-search__link:focus,
.header-search__item.is-active .header-search__link {
	background: var(--pc-accent-soft);
	color: var(--pc-accent);
	outline: none;
}

.header-search__empty {
	padding: 0.65rem 0.85rem;
	color: var(--pc-text-muted);
	font-size: 0.8125rem;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 1px solid var(--pc-control-border);
	border-radius: 999px;
	background: var(--pc-bg);
	color: var(--pc-on-bar);
	cursor: pointer;
	font: inherit;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
	border-color: var(--pc-accent);
	color: var(--pc-accent);
	outline: none;
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

.theme-toggle__icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.theme-toggle__icon[hidden] {
	display: none !important;
}

.theme-toggle__icon svg {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------------------------
   Main content
   ------------------------------------------------------------------------- */

.content-area {
	padding-top: 2rem;
	padding-bottom: 3rem;
	background: var(--pc-bg);
}

.entry {
	margin-bottom: 2.5rem;
}

.entry-title,
.page-title {
	color: var(--pc-on-bar);
}

.entry-title {
	font-size: 1.75rem;
}

.entry-title a {
	text-decoration: none;
	color: var(--pc-on-bar);
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--pc-accent);
}

.entry-meta {
	margin: 0 0 1rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.875rem;
	color: var(--pc-text-muted);
}

.entry-content,
.pc-page__content,
.pc-article__content {
	font-family: var(--pc-font);
	font-size: 17px; /* body 16px + 1px */
	line-height: 1.55;
	/* Same as footer nav links (.footer-nav__link) before hover */
	color: var(--pc-text-body);
}

.posts-navigation a,
.post-navigation a {
	color: var(--pc-accent);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.page-header {
	margin-bottom: 1.75rem;
}

.page-title {
	font-size: 1.75rem;
}

.no-results {
	padding: 1rem 0;
}

.posts-navigation,
.post-navigation {
	margin-top: 2rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   Icons (from inc/icons.php)
   ------------------------------------------------------------------------- */

.pc-icon {
	display: block;
	flex-shrink: 0;
	max-width: none;
}

/* -------------------------------------------------------------------------
   Footer � dark static bar (matches header var(--pc-bar))
   ------------------------------------------------------------------------- */

.site-footer {
	margin-top: auto;
	padding: 2.75rem 0 0;
	background: var(--pc-bar);
	border-top: 0;
	color: var(--pc-text-body);
	font-family: var(--pc-font);
}

.site-footer__inner {
	text-align: left;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.25rem;
	padding-bottom: 2.5rem;
}

/* ---- Brand column ---- */

.footer-brand__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--pc-on-bar);
	margin-bottom: 0.85rem;
}

.footer-brand__logo:hover,
.footer-brand__logo:focus {
	color: var(--pc-on-bar);
	opacity: 0.95;
}

.footer-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-on-bar);
	flex-shrink: 0;
}

.footer-brand__name {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.28rem;
	font-size: 1.25rem; /* ~20px (+3) */
	font-weight: 700;
	line-height: 1.2;
}

.footer-brand__name-light {
	color: var(--pc-on-bar);
}

.footer-brand__name-accent {
	color: var(--pc-accent);
}

.footer-brand__tagline {
	margin: 0 0 1rem;
	max-width: 260px;
	font-size: 1.0625rem; /* ~17px (+3) */
	line-height: 1.55;
	color: var(--pc-text-muted);
}

.footer-brand__rule {
	display: block;
	width: 42px;
	height: 3px;
	margin-bottom: 1.15rem;
	border-radius: 2px;
	background: var(--pc-accent);
}

.footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-on-bar);
	text-decoration: none;
}

.footer-social__link:hover,
.footer-social__link:focus {
	color: var(--pc-on-bar);
	opacity: 0.85;
}

/* ---- Nav columns ---- */

.footer-nav__title {
	margin: 0 0 0.65rem;
	font-size: 1.1875rem; /* ~19px (+3) */
	font-weight: 700;
	line-height: 1.25;
	color: var(--pc-on-bar);
}

.footer-nav .footer-brand__rule {
	margin-bottom: 1.1rem;
}

.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--pc-text-body);
	font-size: 1.0625rem; /* ~17px (+3) */
	line-height: 1.3;
	text-decoration: none;
}

.footer-nav__link:hover,
.footer-nav__link:focus {
	color: var(--pc-on-bar);
}

.footer-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-on-bar);
	flex-shrink: 0;
}

.footer-nav__label {
	min-width: 0;
}

/* ---- Aside: CTA + Suggest a calculator ---- */

.footer-aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.footer-cta {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1rem;
	border: 1px solid var(--pc-border);
	border-radius: 12px;
	background: var(--pc-input-bg);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	max-width: 100%;
}

.footer-cta:hover,
.footer-cta:focus {
	color: inherit;
	opacity: 0.95;
}

.footer-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-on-bar);
	flex-shrink: 0;
}

.footer-cta__body {
	flex: 1;
	min-width: 0;
}

.footer-cta__title {
	display: block;
	margin: 0 0 0.2rem;
	font-size: 1.125rem; /* ~18px (+3) */
	font-weight: 700;
	line-height: 1.25;
	color: var(--pc-on-bar);
}

.footer-cta__text {
	display: block;
	margin: 0;
	font-size: 0.9375rem; /* ~15px (+3) */
	line-height: 1.45;
	color: var(--pc-text-faint);
}

.footer-cta__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-on-bar);
	flex-shrink: 0;
}

.footer-suggest {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
}

.footer-suggest__title {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--pc-on-bar);
	cursor: pointer;
}

.footer-suggest__form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
}

.footer-suggest__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.footer-suggest__input {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 6.5rem;
	max-height: 10rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--pc-border-strong);
	border-radius: 12px;
	background: var(--pc-input-bg);
	color: var(--pc-on-bar);
	font: inherit;
	font-size: 1rem;
	line-height: 1.45;
	resize: vertical;
	box-sizing: border-box;
	box-shadow: none !important;
}

.footer-suggest__input::placeholder {
	color: var(--pc-text-muted);
	opacity: 1;
}

.footer-suggest__input:focus {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
	border-color: var(--pc-accent);
}

.footer-suggest__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.footer-suggest__count {
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--pc-text-muted);
	font-variant-numeric: tabular-nums;
}

.footer-suggest__count.is-near-limit {
	color: var(--pc-text-body);
}

.footer-suggest__count.is-at-limit {
	color: var(--pc-accent);
}

.footer-suggest__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 1.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	font: inherit;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
	text-align: center;
	flex-shrink: 0;
}

.footer-suggest__submit:hover,
.footer-suggest__submit:focus {
	opacity: 0.95;
}

.footer-suggest__submit:focus {
	outline: 2px solid var(--pc-accent);
	outline-offset: 3px;
}

.footer-suggest__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.footer-suggest__form.is-loading .footer-suggest__submit {
	opacity: 0.75;
}

.footer-suggest__status {
	margin: 0;
	min-height: 1.25em;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--pc-text-muted);
}

.footer-suggest__status.is-success {
	color: #4ade80;
}

.footer-suggest__status.is-error {
	color: #f87171;
}

html[data-theme="light"] .footer-suggest__status.is-success {
	color: #15803d;
}

html[data-theme="light"] .footer-suggest__status.is-error {
	color: #b91c1c;
}

/* ---- Bottom bar ---- */

.site-footer__bottom {
	padding: 1.15rem 0 1.35rem;
	border-top: 1px solid var(--pc-border);
	text-align: center;
}

.site-info {
	margin: 0;
	font-size: 1rem; /* ~16px (+3) */
	line-height: 1.4;
	color: var(--pc-text-muted);
}

.site-info a {
	color: inherit;
}

/* -------------------------------------------------------------------------
   Tablet: 768px � 1023px
   ------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
	.content-area {
		padding-top: 2.5rem;
		padding-bottom: 3.5rem;
	}

	.entry-content .wp-block-columns,
	.content-grid--2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1.75rem;
	}

	.footer-aside {
		grid-column: 1 / -1;
	}
}

/* -------------------------------------------------------------------------
   Desktop: 1024px+ � full horizontal header tools
   ------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}

	.header-tools,
	.header-tools.is-open {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 1.35rem;
		position: static;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		animation: none;
	}

	.header-tools__actions {
		display: flex;
		align-items: center;
		gap: 0.85rem;
		flex-shrink: 0;
	}

	.header-menu__eyebrow,
	.header-menu__icon,
	.header-menu__chevron {
		display: none !important;
	}

	.header-menu__list {
		flex-direction: row;
		align-items: center;
		gap: 1.35rem;
		border: 0;
		border-radius: 0;
		overflow: visible;
		background: transparent;
	}

	.header-menu__item + .header-menu__item {
		border-top: 0;
	}

	.header-menu__link {
		display: block;
		min-height: 0;
		padding: 0;
		font-size: 0.9375rem;
		font-weight: 400;
		line-height: 1;
		background: transparent;
	}

	.header-menu__link:hover,
	.header-menu__link:focus {
		background: transparent;
		color: var(--pc-on-bar);
		opacity: 0.85;
	}

	.header-search {
		width: 280px;
		max-width: 280px;
		flex-shrink: 0;
		height: 35px;
		border-radius: 999px;
	}

	.theme-toggle {
		width: 35px;
		height: 35px;
		border-radius: 999px;
	}

	.content-area {
		padding-top: 3rem;
		padding-bottom: 4rem;
	}

	.entry-title,
	.page-title {
		font-size: 2rem;
	}

	.site-footer {
		padding-top: 3.25rem;
	}

	.site-footer__grid {
		grid-template-columns: 1.15fr 1fr 0.95fr 1.35fr;
		gap: 0;
		padding-bottom: 2.75rem;
	}

	.site-footer__grid > * {
		padding: 0 1.35rem;
	}

	.site-footer__grid > *:first-child {
		padding-left: 0;
	}

	.site-footer__grid > *:last-child {
		padding-right: 0;
	}

	.site-footer__grid > * + * {
		border-left: 1px solid var(--pc-border);
	}

	.footer-aside {
		grid-column: auto;
	}
}

/* -------------------------------------------------------------------------
   Single / blog layout + sidebar (matches article UI reference)
   ------------------------------------------------------------------------- */

.content-area--single,
.content-area--search,
.content-area--404,
.content-area--archive {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

/* Shared: content + sidebar (pages + blog layouts) */
.pc-layout-single,
.pc-layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: start;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.pc-layout-with-sidebar > .pc-page,
.pc-layout-with-sidebar > .pc-article,
.pc-layout-single > .pc-article {
	min-width: 0;
	max-width: 100%;
}

.pc-article {
	min-width: 0;
}

.pc-breadcrumbs {
	margin: 0 0 1rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.8125rem;
}

.pc-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.4rem;
}

.pc-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--pc-text-faint);
	max-width: 100%;
}

.pc-breadcrumbs__item:not(:last-child)::after {
	content: ">";
	margin-left: 0.3rem;
	color: var(--pc-text-muted);
}

.pc-breadcrumbs__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--pc-text-faint);
	text-decoration: none;
}

.pc-breadcrumbs__link:hover,
.pc-breadcrumbs__link:focus {
	color: var(--pc-on-bar);
}

.pc-breadcrumbs__icon {
	display: inline-flex;
	color: inherit;
}

.pc-breadcrumbs__current {
	color: var(--pc-text-body);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(420px, 55vw);
}

.pc-article__header {
	margin-bottom: 1.15rem;
}

.pc-article__badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.9rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.pc-article__badge:hover,
.pc-article__badge:focus {
	color: var(--pc-on-bar);
	opacity: 0.92;
}

.pc-article__title,
.pc-page__title,
.pc-search-results__title,
.pc-404__title,
.pc-archive__title {
	margin: 0;
	color: var(--pc-on-bar);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.pc-article__featured,
.pc-page__featured {
	margin: 1.25rem 0 1.35rem;
	border-radius: 16px;
	overflow: hidden;
	background: var(--pc-surface);
	border: 1px solid var(--pc-border-subtle);
}

.pc-article__featured-img,
.pc-page__featured-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	background: var(--pc-surface-2);
}

.pc-article__meta-bar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 0 1.85rem;
	padding: 1.05rem 0 1.25rem;
	border-top: 1px solid var(--pc-border-subtle);
	border-bottom: 1px solid var(--pc-border-subtle);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pc-article__author {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.pc-article__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid var(--pc-border);
}

.pc-article__byline {
	margin: 0 0 0.35rem;
	color: var(--pc-on-bar);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
}

.pc-article__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1.05rem;
	color: var(--pc-text-faint);
	font-size: 0.8125rem;
}

.pc-article__stats li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.pc-article__stat-icon {
	display: inline-flex;
	color: var(--pc-text-muted);
}

.pc-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem 0.7rem;
}

.pc-share__label {
	color: var(--pc-text-faint);
	font-size: 0.8125rem;
	font-weight: 600;
}

.pc-share__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pc-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--pc-border-subtle);
	color: var(--pc-on-bar);
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	font: inherit;
}

.pc-share__btn--facebook {
	background: #1877f2;
}

.pc-share__btn--x {
	background: #111111;
	border: 1px solid var(--pc-border-strong);
}

.pc-share__btn--linkedin {
	background: #0a66c2;
}

.pc-share__btn--copy {
	background: var(--pc-border-strong);
}

.pc-share__btn:hover,
.pc-share__btn:focus {
	color: var(--pc-on-bar);
	opacity: 0.9;
}

.pc-share__btn.is-copied {
	background: var(--pc-accent);
}

.pc-article__content,
.pc-page__content {
	font-family: var(--pc-font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--pc-text-body); /* footer menu link color (pre-hover) */
}

/* Single post body: +2px vs shared page/article base */
.pc-article__content {
	font-size: 19px;
}

.entry-content p,
.pc-article__content p,
.pc-page__content p,
.entry-content li,
.pc-article__content li,
.pc-page__content li {
	color: var(--pc-text-body);
}

.pc-article__content > *:first-child {
	margin-top: 0;
}

.pc-article__content h2,
.pc-article__content h3,
.pc-page__content h2,
.pc-page__content h3 {
	margin: 1.75rem 0 0.85rem;
	color: var(--pc-on-bar);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 750;
	line-height: 1.25;
}

.pc-article__content h2 {
	font-size: 1.5rem;
}

.pc-article__content h3 {
	font-size: 1.2rem;
}

.pc-article__content p {
	margin: 0 0 1.15rem;
}

.pc-article__content a,
.pc-page__content a {
	color: var(--pc-accent);
}

/* Blank page canvas � no chrome; width follows .pc-container */
.content-area--page {
	padding-top: 0;
	/* Space before footer so sidebar/content aren�t glued to footer edge */
	padding-bottom: 2rem;
	/* Horizontal gutters come from .pc-container only (avoid double pad / overflow) */
}

.pc-page--blank {
	margin: 0;
	padding: 5px 0 10px;
}

.pc-page--blank .pc-page__content {
	margin: 0;
	padding: 0;
	max-width: none;
	font-family: var(--pc-font);
	font-size: 17px;
	line-height: 1.55;
	/* Do not inherit body (var(--pc-text)) � match footer nav links */
	color: var(--pc-text-body);
}

.pc-page--blank .pc-page__content p,
.pc-page--blank .pc-page__content li {
	color: var(--pc-text-body);
}

.pc-page--blank .pc-page__content > *:first-child {
	margin-top: 0;
}

.pc-page--blank .pc-page__content > *:last-child {
	margin-bottom: 0;
}

.pc-article__content .wp-block-columns {
	gap: 0.85rem;
	margin: 1.35rem 0;
}

.pc-article__content .wp-block-column {
	padding: 1rem;
	border: 1px solid var(--pc-border-subtle);
	border-radius: 12px;
	background: var(--pc-surface);
}

.pc-article__tags {
	list-style: none;
	margin: 2rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--pc-border-subtle);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pc-article__tags a {
	display: inline-flex;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--pc-border-strong);
	border-radius: 999px;
	color: var(--pc-text-faint);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.8125rem;
	text-decoration: none;
}

.pc-article__tags a:hover,
.pc-article__tags a:focus {
	color: var(--pc-on-bar);
	border-color: var(--pc-accent);
}

/* Sidebar widgets */
.pc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding-top: 16px;
}

/* Core / plugin widgets inside primary sidebar */
.pc-sidebar .widget {
	margin: 0;
}

.pc-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pc-sidebar .widget li {
	margin: 0;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--pc-border);
}

.pc-sidebar .widget li:last-child {
	border-bottom: none;
}

.pc-sidebar .widget a {
	color: var(--pc-text-body);
	text-decoration: none;
}

.pc-sidebar .widget a:hover,
.pc-sidebar .widget a:focus {
	color: var(--pc-accent);
}

/* Widgets: no card chrome ? use full sidebar width */
.pc-widget {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.pc-sidebar .pc-widget img,
.pc-sidebar .widget img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.pc-sidebar .pc-widget .wp-block-image,
.pc-sidebar .pc-widget .wp-block-image figure,
.pc-sidebar .pc-widget figure {
	margin: 0;
	width: 100%;
	max-width: 100%;
}

.pc-widget__title {
	margin: 0 0 0.75rem;
	color: var(--pc-on-bar);
	font-size: 1.0625rem;
	font-weight: 750;
	line-height: 1.25;
}

.pc-widget__empty {
	margin: 0;
	color: var(--pc-text-faint);
	font-size: 0.875rem;
}

.pc-sidebar-search {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	height: 46px;
	padding: 0 0.35rem 0 0.9rem;
	border: 1px solid var(--pc-border-strong);
	border-radius: 999px;
	background: var(--pc-bg);
}

.pc-sidebar-search__icon {
	display: inline-flex;
	color: var(--pc-text-muted);
	flex-shrink: 0;
}

.pc-sidebar-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--pc-on-bar);
	font: inherit;
	font-size: 0.875rem;
	padding: 0;
	box-shadow: none !important;
}

.pc-sidebar-search__input::placeholder {
	color: var(--pc-text-muted);
}

.pc-sidebar-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
}

.pc-sidebar-search__submit:hover,
.pc-sidebar-search__submit:focus {
	opacity: 0.92;
}

.pc-cat-list,
.pc-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.pc-cat-list__link,
.pc-recent-list__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.15rem;
	color: var(--pc-text-body);
	text-decoration: none;
	border-radius: 8px;
}

.pc-cat-list__link:hover,
.pc-cat-list__link:focus,
.pc-recent-list__link:hover,
.pc-recent-list__link:focus {
	color: var(--pc-on-bar);
}

.pc-cat-list__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	color: var(--pc-on-bar);
	flex-shrink: 0;
}

.pc-cat-list__icon--blue {
	background: #3b82f6;
}

.pc-cat-list__icon--red {
	background: #ef4444;
}

.pc-cat-list__icon--green {
	background: #22c55e;
}

.pc-cat-list__icon--yellow {
	background: #eab308;
}

.pc-cat-list__icon--purple {
	background: #8b5cf6;
}

.pc-cat-list__icon--teal {
	background: #14b8a6;
}

.pc-cat-list__icon--orange {
	background: #f97316;
}

.pc-cat-list__label,
.pc-recent-list__title {
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.pc-cat-list__chevron,
.pc-recent-list__chevron {
	display: inline-flex;
	color: var(--pc-text-muted);
	flex-shrink: 0;
}

.pc-recent-list__thumb {
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 11px;
	overflow: hidden;
	background: var(--pc-surface-2);
	flex-shrink: 0;
}

.pc-recent-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pc-recent-list__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--pc-text-muted);
}

.pc-recent-list__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pc-recent-list__title {
	color: var(--pc-on-bar);
	font-weight: 650;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pc-recent-list__date {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--pc-text-muted);
	font-size: 0.75rem;
}

.pc-widget--cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	text-decoration: none;
	color: inherit;
	background: transparent;
}

.pc-widget--cta:hover,
.pc-widget--cta:focus {
	color: inherit;
	opacity: 0.96;
}

.pc-widget-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--pc-border-subtle);
	color: #f5c542;
	flex-shrink: 0;
}

.pc-widget-cta__body {
	flex: 1;
	min-width: 0;
}

.pc-widget-cta__title {
	display: block;
	margin: 0 0 0.2rem;
	color: var(--pc-on-bar);
	font-size: 0.9375rem;
	font-weight: 750;
	line-height: 1.3;
}

.pc-widget-cta__text {
	display: block;
	color: var(--pc-text-faint);
	font-size: 0.75rem;
	line-height: 1.45;
}

.pc-widget-cta__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	flex-shrink: 0;
}

/* Search results */
.pc-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.pc-search-card__link {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--pc-border-subtle);
	border-radius: 14px;
	background: var(--pc-surface);
	text-decoration: none;
	color: inherit;
}

.pc-search-card__link:hover,
.pc-search-card__link:focus {
	color: inherit;
	border-color: var(--pc-accent);
}

.pc-search-card__thumb {
	display: block;
	width: 110px;
	height: 80px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--pc-surface-2);
}

.pc-search-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pc-search-card__title {
	display: block;
	margin: 0 0 0.35rem;
	color: var(--pc-on-bar);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
}

.pc-search-card__meta {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--pc-text-muted);
	font-size: 0.8125rem;
}

.pc-search-card__excerpt {
	display: block;
	color: var(--pc-text-body);
	font-size: 0.875rem;
	line-height: 1.5;
}

.pc-search-empty,
.pc-404__text {
	color: var(--pc-text-muted);
}

.pc-404__code {
	margin: 0 0 0.5rem;
	color: var(--pc-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
}

.pc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 1.25rem;
	border-radius: 999px;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.9375rem;
	font-weight: 650;
	text-decoration: none;
}

.pc-button:hover,
.pc-button:focus {
	color: var(--pc-on-bar);
	opacity: 0.92;
}

.navigation.pagination {
	margin-top: 1.75rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 0.65rem;
	border: 1px solid var(--pc-border-strong);
	border-radius: 8px;
	color: var(--pc-on-bar);
	text-decoration: none;
}

.navigation.pagination a:hover,
.navigation.pagination a:focus {
	border-color: var(--pc-accent);
	color: var(--pc-on-bar);
}

.navigation.pagination .current {
	background: var(--pc-accent);
	border-color: var(--pc-accent);
}

/* -------------------------------------------------------------------------
   Archive / blog cards
   ------------------------------------------------------------------------- */

.pc-archive__header {
	margin: 0 0 1.5rem;
}

.pc-archive__title {
	margin-bottom: 0.55rem;
}

.pc-archive__desc {
	margin: 0 0 0.75rem;
	color: var(--pc-text-muted);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 42rem;
}

.pc-archive__desc p {
	margin: 0 0 0.5rem;
}

.pc-archive__desc p:last-child {
	margin-bottom: 0;
}

.pc-archive__count {
	margin: 0;
	color: var(--pc-text-muted);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
}

.pc-archive__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
}

.pc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pc-border-subtle);
	border-radius: 16px;
	background: var(--pc-surface);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pc-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pc-surface-2);
	text-decoration: none;
}

.pc-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pc-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--pc-text-muted);
	background: var(--pc-input-bg);
}

.pc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.1rem 1.15rem 1.2rem;
	flex: 1;
}

.pc-card__badge {
	align-self: flex-start;
	display: inline-flex;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: var(--pc-accent);
	color: var(--pc-on-accent);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.pc-card__badge:hover,
.pc-card__badge:focus {
	color: var(--pc-on-accent);
	opacity: 0.92;
}

.pc-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 750;
	line-height: 1.3;
}

.pc-card__title a {
	color: var(--pc-on-bar);
	text-decoration: none;
}

.pc-card__title a:hover,
.pc-card__title a:focus {
	color: var(--pc-accent);
}

.pc-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.9rem;
	color: var(--pc-text-muted);
	font-size: 0.75rem;
}

.pc-card__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.pc-card__excerpt {
	margin: 0;
	color: var(--pc-text-muted);
	font-size: 0.875rem;
	line-height: 1.55;
	flex: 1;
}

.pc-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.25rem;
	color: var(--pc-accent);
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: none;
}

.pc-card__more:hover,
.pc-card__more:focus {
	color: var(--pc-accent-hover);
}

.pc-archive__empty {
	padding: 1.5rem 0;
	color: var(--pc-text-muted);
}

.pc-archive__empty .pc-button {
	margin-top: 1rem;
}

@media (min-width: 640px) {
	.pc-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 768px) {
	.pc-article__meta-bar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1.25rem;
	}

	.pc-search-card__thumb {
		width: 140px;
		height: 96px;
	}
}

@media (min-width: 1024px) {
	.content-area--single,
	.content-area--search,
	.content-area--404,
	.content-area--archive {
		padding-top: 2rem;
		padding-bottom: 4rem;
	}

	.content-area--page {
		padding-bottom: 2.5rem;
	}

	.pc-layout-single,
	.pc-layout-with-sidebar {
		/* Fluid content + capped sidebar; see --pc-sidebar-width / --pc-layout-gap */
		grid-template-columns: minmax(0, 1fr) var(--pc-sidebar-width);
		gap: var(--pc-layout-gap);
		justify-content: stretch;
	}

	/*
	 * Smart sticky: --pc-sidebar-sticky-top from smart-sticky-sidebar.js
	 * Short sidebar ? ~70px under header; tall ? bottom-locks in viewport.
	 */
	.pc-sidebar {
		position: sticky;
		top: var(--pc-sidebar-sticky-top, 70px);
		width: var(--pc-sidebar-width);
		max-width: var(--pc-sidebar-width);
		justify-self: end;
		align-self: start;
		/* Extra air when sticky column ends near footer */
		padding-bottom: 0.5rem;
	}
}

/* -------------------------------------------------------------------------
   Light mode: page Custom HTML blocks (About / Contact / Legal)
   Embedded page <style> hardcodes dark surfaces � override via theme.
   ------------------------------------------------------------------------- */

html[data-theme="light"] .pc-about__hero,
html[data-theme="light"] .pc-contact__hero,
html[data-theme="light"] .pc-legal__hero,
html[data-theme="light"] .pc-advertise__hero,
html[data-theme="light"] .pc-advertise__cta {
	background: linear-gradient(165deg, #ffffff 0%, #fafafa 55%, #f8f5fc 100%) !important;
	border-color: var(--pc-border-subtle) !important;
	border-left-color: var(--pc-accent) !important;
}

html[data-theme="light"] .pc-about__title,
html[data-theme="light"] .pc-contact__title,
html[data-theme="light"] .pc-legal__title,
html[data-theme="light"] .pc-advertise__title,
html[data-theme="light"] .pc-advertise__cta-title,
html[data-theme="light"] .pc-advertise__card-title,
html[data-theme="light"] .pc-advertise__subheading,
html[data-theme="light"] .pc-about__heading,
html[data-theme="light"] .pc-contact__heading,
html[data-theme="light"] .pc-legal__heading,
html[data-theme="light"] .pc-advertise__heading,
html[data-theme="light"] .pc-about__tool-name,
html[data-theme="light"] .pc-about__role-label,
html[data-theme="light"] .pc-about__value-title,
html[data-theme="light"] .pc-about__mission-quote,
html[data-theme="light"] .pc-about__team,
html[data-theme="light"] .pc-contact__topic-title,
html[data-theme="light"] .pc-contact__tip-title,
html[data-theme="light"] .pc-contact__social-name,
html[data-theme="light"] .pc-contact__time-label,
html[data-theme="light"] .pc-contact__signoff,
html[data-theme="light"] .pc-legal__subheading {
	color: var(--pc-text) !important;
}

html[data-theme="light"] .pc-about__lead,
html[data-theme="light"] .pc-contact__lead,
html[data-theme="light"] .pc-legal__lead,
html[data-theme="light"] .pc-advertise__lead,
html[data-theme="light"] .pc-advertise__intro,
html[data-theme="light"] .pc-advertise__prose p,
html[data-theme="light"] .pc-advertise__note,
html[data-theme="light"] .pc-advertise__cta p,
html[data-theme="light"] .pc-advertise__list li,
html[data-theme="light"] .pc-about__intro,
html[data-theme="light"] .pc-about__prose p,
html[data-theme="light"] .pc-about__note,
html[data-theme="light"] .pc-about__contact p,
html[data-theme="light"] .pc-about__thanks p,
html[data-theme="light"] .pc-about__mission-text,
html[data-theme="light"] .pc-about__value p,
html[data-theme="light"] .pc-contact__intro,
html[data-theme="light"] .pc-contact__email-note,
html[data-theme="light"] .pc-contact__note-block p,
html[data-theme="light"] .pc-contact__closing p,
html[data-theme="light"] .pc-legal p,
html[data-theme="light"] .pc-legal__list li,
html[data-theme="light"] .pc-contact__list li,
html[data-theme="light"] .pc-about__roadmap li,
html[data-theme="light"] .pc-about__promises li,
html[data-theme="light"] .pc-contact__promises li,
html[data-theme="light"] .pc-contact__community li,
html[data-theme="light"] .pc-contact__times li,
html[data-theme="light"] .pc-contact__time-value {
	color: var(--pc-text-body) !important;
}

html[data-theme="light"] .pc-about__tool-desc,
html[data-theme="light"] .pc-about__role-text,
html[data-theme="light"] .pc-about__social-note,
html[data-theme="light"] .pc-contact__social-desc,
html[data-theme="light"] .pc-contact__social-note,
html[data-theme="light"] .pc-contact__time-value em,
html[data-theme="light"] .pc-advertise__card-desc {
	color: var(--pc-text-muted) !important;
}

html[data-theme="light"] .pc-about__tool,
html[data-theme="light"] .pc-about__role,
html[data-theme="light"] .pc-about__value,
html[data-theme="light"] .pc-about__roadmap li,
html[data-theme="light"] .pc-about__promises li,
html[data-theme="light"] .pc-about__contact,
html[data-theme="light"] .pc-contact__topic,
html[data-theme="light"] .pc-contact__tip,
html[data-theme="light"] .pc-contact__social,
html[data-theme="light"] .pc-contact__times li,
html[data-theme="light"] .pc-contact__promises li,
html[data-theme="light"] .pc-contact__community li,
html[data-theme="light"] .pc-contact__note-block,
html[data-theme="light"] .pc-legal__section,
html[data-theme="light"] .pc-advertise__card,
html[data-theme="light"] .pc-advertise__pill {
	background: var(--pc-surface) !important;
	border-color: var(--pc-border-subtle) !important;
}

html[data-theme="light"] .pc-about__mission,
html[data-theme="light"] .pc-contact__email-card {
	background: var(--pc-surface-3) !important;
	border-color: var(--pc-border-accent) !important;
}

html[data-theme="light"] .pc-about__mission-label,
html[data-theme="light"] .pc-contact__email-label,
html[data-theme="light"] .pc-about__eyebrow,
html[data-theme="light"] .pc-advertise__eyebrow,
html[data-theme="light"] .pc-advertise__cta-label {
	color: var(--pc-accent) !important;
}

html[data-theme="light"] .pc-about__thanks,
html[data-theme="light"] .pc-contact__closing {
	border-top-color: var(--pc-border-subtle) !important;
}

html[data-theme="light"] .pc-about__email-btn,
html[data-theme="light"] .pc-contact__email-btn,
html[data-theme="light"] .pc-advertise__btn {
	background: var(--pc-accent) !important;
	color: var(--pc-on-accent) !important;
}

html[data-theme="light"] .pc-about__mail,
html[data-theme="light"] .pc-contact__mail,
html[data-theme="light"] .pc-legal__mail,
html[data-theme="light"] .pc-advertise__mail,
html[data-theme="light"] .pc-legal a {
	color: var(--pc-accent) !important;
}

html[data-theme="light"] .pc-about__mail:hover,
html[data-theme="light"] .pc-contact__mail:hover,
html[data-theme="light"] .pc-legal__mail:hover,
html[data-theme="light"] .pc-advertise__mail:hover,
html[data-theme="light"] .pc-legal a:hover,
html[data-theme="light"] .pc-legal a:focus {
	color: var(--pc-accent-hover) !important;
}

/* Article / page prose headings stay readable in light */
html[data-theme="light"] .pc-article__content h2,
html[data-theme="light"] .pc-article__content h3,
html[data-theme="light"] .pc-page__content h2,
html[data-theme="light"] .pc-page__content h3 {
	color: var(--pc-text);
}

html[data-theme="light"] .site-footer {
	border-top: 1px solid var(--pc-border);
}

/* -------------------------------------------------------------------------
   All Calculators directory (page-all-calculators.php)
   Large interactive cards ? matches product mock (title + short desc).
   ------------------------------------------------------------------------- */

.content-area--all-calcs {
	padding-top: 1.25rem;
	padding-bottom: 3rem;
}

.pc-all-calcs {
	max-width: 920px;
	margin: 0 auto;
}

.pc-all-calcs__hero {
	margin: 0 0 2rem;
	padding: 1.35rem 1.4rem 1.45rem;
	border: 1px solid var(--pc-border-subtle);
	border-left: 4px solid var(--pc-accent);
	border-radius: 14px;
	background: linear-gradient(
		165deg,
		var(--pc-surface) 0%,
		var(--pc-surface-3) 100%
	);
}

.pc-all-calcs__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pc-accent);
}

.pc-all-calcs__title {
	margin: 0 0 0.55rem;
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--pc-text);
}

.pc-all-calcs__lead {
	margin: 0 0 1.1rem;
	max-width: 42rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--pc-text-body);
}

.pc-all-calcs__toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pc-all-calcs__toc-link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--pc-border-subtle);
	border-radius: 999px;
	background: var(--pc-surface-2);
	color: var(--pc-text-body) !important;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		color 0.15s ease;
}

.pc-all-calcs__toc-link:hover,
.pc-all-calcs__toc-link:focus {
	border-color: var(--pc-accent);
	background: var(--pc-accent-soft);
	color: var(--pc-text) !important;
	outline: none;
}

.pc-all-calcs__toc-link:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

.pc-all-calcs__section {
	margin: 0 0 2.25rem;
	scroll-margin-top: 5.5rem;
}

.pc-all-calcs__heading {
	margin: 0 0 1rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--pc-border-subtle);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pc-text);
}

.pc-all-calcs__empty {
	margin: 0;
	padding: 1.15rem 1.25rem;
	border: 1px dashed var(--pc-border);
	border-radius: 12px;
	background: var(--pc-surface);
	color: var(--pc-text-muted);
	font-size: 0.95rem;
}

.pc-all-calcs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.pc-all-calcs__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

.pc-all-calcs__card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 5.5rem;
	padding: 1.15rem 1.25rem 1.2rem;
	border: 1px solid var(--pc-border-subtle);
	border-radius: 12px;
	background: var(--pc-surface-2);
	color: inherit !important;
	text-decoration: none;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		transform 0.15s ease;
}

.pc-all-calcs__card:hover,
.pc-all-calcs__card:focus {
	border-color: var(--pc-border-strong);
	background: var(--pc-surface);
	transform: translateY(-1px);
	outline: none;
}

.pc-all-calcs__card:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

.pc-all-calcs__card-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pc-text);
}

.pc-all-calcs__card-desc {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--pc-text-muted);
}

html[data-theme="light"] .pc-all-calcs__hero {
	background: linear-gradient(
		165deg,
		var(--pc-surface) 0%,
		var(--pc-surface-3) 100%
	);
}

html[data-theme="light"] .pc-all-calcs__card {
	background: var(--pc-surface);
	box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

html[data-theme="light"] .pc-all-calcs__card:hover,
html[data-theme="light"] .pc-all-calcs__card:focus {
	background: var(--pc-surface-3);
	border-color: var(--pc-border-accent);
}
