:root {
	--fpcp-accent: #111827;
	--fpcp-page-bg: #f4f6f8;
	--fpcp-surface: #ffffff;
	--fpcp-text: #111827;
	--fpcp-muted: #667085;
	--fpcp-subtle: #98a2b3;
	--fpcp-border: #e4e7ec;
	--fpcp-border-strong: #d0d5dd;
	--fpcp-surface-soft: #f8fafc;
	--fpcp-danger: #b42318;
	--fpcp-success: #067647;
	--fpcp-radius: 16px;
	--fpcp-radius-small: 10px;
	--fpcp-container: 1240px;
	--fpcp-header-height: 76px;
	--fpcp-shadow-small: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
	--fpcp-shadow-medium: 0 12px 32px rgba(16, 24, 40, 0.12);
	--fpcp-transition: 180ms ease;
}

.fpcp-theme,
.fpcp-theme * {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.fpcp-theme {
	margin: 0;
	background: var(--fpcp-page-bg);
	color: var(--fpcp-text);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.fpcp-drawer-open {
	overflow: hidden;
}

.fpcp-theme a {
	color: var(--fpcp-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fpcp-theme a:hover {
	text-decoration-color: currentColor;
}

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

.fpcp-theme button,
.fpcp-theme input,
.fpcp-theme select,
.fpcp-theme textarea {
	font: inherit;
}

.fpcp-theme button,
.fpcp-theme summary {
	-webkit-tap-highlight-color: transparent;
}

.fpcp-theme :focus-visible {
	outline: 3px solid rgba(17, 24, 39, 0.24);
	outline-offset: 3px;
}

.fpcp-theme .screen-reader-text:focus,
.fpcp-skip-link:focus {
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	top: 12px;
	left: 12px;
	z-index: 100000;
	background: #ffffff;
	color: #111827;
	border-radius: 8px;
	box-shadow: var(--fpcp-shadow-medium);
}

.fpcp-theme .fp-container {
	width: calc(100% - 40px);
	max-width: var(--fpcp-container);
	margin-right: auto;
	margin-left: auto;
	padding-right: 0;
	padding-left: 0;
}

.fpcp-theme .fp-container--860 {
	max-width: 860px;
}

.fpcp-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--fpcp-page-bg);
}

.fpcp-main-content {
	min-height: 55vh;
	flex: 1 0 auto;
}

.fpcp-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.fpcp-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 10px;
	color: var(--fpcp-muted);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fpcp-button,
.fpcp-theme .button,
.fpcp-theme button[type="submit"],
.fpcp-theme input[type="submit"] {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--fpcp-transition), box-shadow var(--fpcp-transition), filter var(--fpcp-transition), background var(--fpcp-transition), border-color var(--fpcp-transition);
}

.fpcp-button:hover,
.fpcp-theme .button:hover,
.fpcp-theme button[type="submit"]:hover,
.fpcp-theme input[type="submit"]:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.fpcp-button--primary,
.fpcp-theme button[type="submit"],
.fpcp-theme input[type="submit"] {
	background: var(--fpcp-accent);
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.fpcp-button--primary:hover,
.fpcp-theme button[type="submit"]:hover,
.fpcp-theme input[type="submit"]:hover {
	color: #ffffff;
	filter: brightness(0.9);
}

.fpcp-button--secondary,
.fpcp-theme .button:not(.submit) {
	background: var(--fpcp-surface);
	color: var(--fpcp-text);
	border-color: var(--fpcp-border-strong);
}

.fpcp-button--secondary:hover,
.fpcp-theme .button:not(.submit):hover {
	color: var(--fpcp-text);
	border-color: var(--fpcp-text);
}

/* Header */
.fpcp-header {
	position: relative;
	z-index: 1000;
	min-height: var(--fpcp-header-height);
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--fpcp-border);
	backdrop-filter: saturate(140%) blur(12px);
}

.fpcp-has-sticky-header .fpcp-header {
	position: sticky;
	top: 0;
}

.admin-bar.fpcp-has-sticky-header .fpcp-header {
	top: 32px;
}

.fpcp-header__inner {
	min-height: var(--fpcp-header-height);
	display: flex;
	align-items: center;
	gap: 24px;
}

.fpcp-brand {
	min-width: 0;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.fpcp-brand .custom-logo-link,
.fpcp-brand__legacy-logo,
.fpcp-brand__text {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.fpcp-brand img,
.fpcp-brand .custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 46px;
	object-fit: contain;
}

.fpcp-brand__text {
	max-width: 240px;
	color: var(--fpcp-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.fpcp-nav {
	min-width: 0;
}

.fpcp-nav__list,
.fpcp-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fpcp-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.fpcp-nav__list > li {
	position: relative;
	margin: 0;
}

.fpcp-nav__list > li > a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 12px;
	border-radius: 9px;
	color: var(--fpcp-muted);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--fpcp-transition), color var(--fpcp-transition);
}

.fpcp-nav__list > li > a:hover,
.fpcp-nav__list > .current-menu-item > a,
.fpcp-nav__list > .current-menu-ancestor > a {
	background: var(--fpcp-surface-soft);
	color: var(--fpcp-text);
}

.fpcp-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 220px;
	padding: 8px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: 12px;
	box-shadow: var(--fpcp-shadow-medium);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--fpcp-transition), visibility var(--fpcp-transition), transform var(--fpcp-transition);
}

.fpcp-nav__list li:hover > .sub-menu,
.fpcp-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fpcp-nav__list .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--fpcp-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fpcp-nav__list .sub-menu a:hover {
	background: var(--fpcp-surface-soft);
}

.fpcp-header__search {
	min-width: 190px;
	max-width: 330px;
	margin-left: auto;
	flex: 1 1 300px;
}

.fpcp-theme .fpcp-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding-left: 14px;
	background: var(--fpcp-surface-soft);
	border: 1px solid var(--fpcp-border);
	border-radius: 11px;
	transition: background var(--fpcp-transition), border-color var(--fpcp-transition), box-shadow var(--fpcp-transition);
}

.fpcp-theme .fpcp-search:focus-within {
	background: var(--fpcp-surface);
	border-color: var(--fpcp-accent);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.fpcp-theme .fpcp-search .fpcp-icon {
	width: 18px;
	height: 18px;
	color: var(--fpcp-muted);
}

.fpcp-theme .fpcp-search input[type="search"] {
	min-width: 0;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--fpcp-text);
	font-size: 14px;
	outline: 0;
}

.fpcp-theme .fpcp-search input[type="search"]::placeholder {
	color: var(--fpcp-subtle);
}

.fpcp-theme .fpcp-search button[type="submit"] {
	min-height: 36px;
	margin-right: 4px;
	padding: 7px 11px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: 8px;
	color: var(--fpcp-text);
	font-size: 12px;
	font-weight: 700;
	box-shadow: none;
}

.fpcp-theme .fpcp-search button[type="submit"]:hover {
	transform: none;
	background: var(--fpcp-text);
	border-color: var(--fpcp-text);
	color: #ffffff;
	filter: none;
}

.fpcp-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fpcp-header__login {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 10px;
	color: var(--fpcp-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.fpcp-user-menu {
	position: relative;
}

.fpcp-user-menu > summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 8px 3px 4px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	list-style: none;
	transition: background var(--fpcp-transition), border-color var(--fpcp-transition);
}

.fpcp-user-menu > summary::-webkit-details-marker {
	display: none;
}

.fpcp-user-menu > summary:hover,
.fpcp-user-menu[open] > summary {
	background: var(--fpcp-surface-soft);
	border-color: var(--fpcp-border);
}

.fpcp-user-menu__avatar,
.fpcp-user-menu__avatar img {
	width: 36px;
	height: 36px;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.fpcp-user-menu__name {
	max-width: 116px;
	overflow: hidden;
	color: var(--fpcp-text);
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fpcp-user-menu__chevron {
	width: 14px;
	height: 14px;
	transition: transform var(--fpcp-transition);
}

.fpcp-user-menu[open] .fpcp-user-menu__chevron {
	transform: rotate(90deg);
}

.fpcp-user-menu__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 30;
	width: 230px;
	padding: 8px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: 13px;
	box-shadow: var(--fpcp-shadow-medium);
}

.fpcp-user-menu__panel a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--fpcp-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fpcp-user-menu__panel a:hover {
	background: var(--fpcp-surface-soft);
}

.fpcp-user-menu__panel .fpcp-icon {
	width: 18px;
	height: 18px;
	color: var(--fpcp-muted);
}

.fpcp-user-menu__panel .fpcp-user-menu__logout {
	margin-top: 6px;
	padding-top: 11px;
	border-top: 1px solid var(--fpcp-border);
	border-radius: 0 0 8px 8px;
	color: var(--fpcp-danger);
}

.fpcp-menu-toggle,
.fpcp-drawer__close {
	width: 44px;
	height: 44px;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 1px solid var(--fpcp-border);
	border-radius: 10px;
	color: var(--fpcp-text);
	box-shadow: none;
}

.fpcp-menu-toggle:hover,
.fpcp-drawer__close:hover {
	transform: none;
	background: var(--fpcp-surface-soft);
	color: var(--fpcp-text);
	filter: none;
}

/* Mobile drawer */
.fpcp-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 1090;
	background: rgba(16, 24, 40, 0.48);
	backdrop-filter: blur(2px);
}

.fpcp-drawer-overlay[hidden] {
	display: none;
}

.fpcp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1100;
	width: min(390px, 92vw);
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	overflow-y: auto;
	background: var(--fpcp-surface);
	box-shadow: -18px 0 48px rgba(16, 24, 40, 0.18);
	transform: translateX(104%);
	visibility: hidden;
	transition: transform 220ms ease, visibility 220ms ease;
}

.fpcp-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

.fpcp-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fpcp-drawer__close {
	display: inline-flex;
}

.fpcp-brand--drawer img,
.fpcp-brand--drawer .custom-logo {
	max-width: 190px;
	max-height: 42px;
}

.fpcp-nav--drawer .fpcp-nav__list {
	display: block;
}

.fpcp-nav--drawer .fpcp-nav__list > li > a {
	min-height: 48px;
	padding: 11px 8px;
	border-bottom: 1px solid var(--fpcp-border);
	border-radius: 0;
	color: var(--fpcp-text);
	font-size: 16px;
}

.fpcp-nav--drawer .fpcp-nav__list .sub-menu {
	position: static;
	width: auto;
	min-width: 0;
	padding: 2px 0 8px 18px;
	border: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.fpcp-drawer__account {
	display: grid;
	gap: 6px;
	padding: 14px;
	background: var(--fpcp-surface-soft);
	border: 1px solid var(--fpcp-border);
	border-radius: 13px;
}

.fpcp-drawer__user {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 5px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fpcp-border);
}

.fpcp-drawer__user img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.fpcp-drawer__user div {
	min-width: 0;
	display: grid;
}

.fpcp-drawer__user strong {
	overflow: hidden;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fpcp-drawer__user span {
	color: var(--fpcp-muted);
	font-size: 12px;
}

.fpcp-drawer__account > a:not(.fpcp-button) {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	color: var(--fpcp-text);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.fpcp-drawer__account > a:not(.fpcp-button):hover {
	background: var(--fpcp-surface);
}

.fpcp-drawer__ask {
	margin-top: auto;
}

/* Footer */
.fpcp-footer {
	margin-top: auto;
	padding: 48px 0 24px;
	background: #ffffff;
	border-top: 1px solid var(--fpcp-border);
}

.fpcp-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 48px;
	padding-bottom: 32px;
}

.fpcp-footer__brand {
	max-width: 360px;
}

.fpcp-footer__brand p {
	margin: 14px 0 0;
	color: var(--fpcp-muted);
	font-size: 14px;
}

.fpcp-footer__menu,
.fpcp-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fpcp-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 24px;
}

.fpcp-footer__menu a {
	color: var(--fpcp-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fpcp-footer__menu a:hover {
	color: var(--fpcp-text);
}

.fpcp-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--fpcp-border);
}

.fpcp-footer__copyright {
	color: var(--fpcp-muted);
	font-size: 13px;
}

.fpcp-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.fpcp-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 8px;
	border-radius: 7px;
	color: var(--fpcp-muted);
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.fpcp-footer__social a:hover {
	background: var(--fpcp-surface-soft);
	color: var(--fpcp-text);
}

.fpcp-footer__social .fpcp-icon {
	width: 13px;
	height: 13px;
}

/* Mobile dock */
.fpcp-mobile-dock {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	min-height: 64px;
	padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
	background: rgba(255, 255, 255, 0.98);
	border-top: 1px solid var(--fpcp-border);
	box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
	backdrop-filter: blur(14px);
}

.fpcp-mobile-dock a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	padding: 3px;
	border-radius: 9px;
	color: var(--fpcp-muted);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.fpcp-mobile-dock a:hover {
	background: var(--fpcp-surface-soft);
	color: var(--fpcp-text);
}

.fpcp-mobile-dock .fpcp-icon {
	width: 22px;
	height: 22px;
}

.fpcp-mobile-dock__ask .fpcp-icon {
	width: 28px;
	height: 28px;
	padding: 5px;
	background: var(--fpcp-accent);
	border-radius: 50%;
	color: #ffffff;
}

/* Generic parent content */
.fpcp-theme .fp-main {
	padding: 48px 0;
	background: var(--fpcp-page-bg);
}

.fpcp-theme .fp-forumheader {
	padding: 54px 0 46px;
	background: #ffffff;
	border-bottom: 1px solid var(--fpcp-border);
}

.fpcp-theme .fp-forumheader__title {
	margin: 0;
	color: var(--fpcp-text);
	font-size: clamp(32px, 5vw, 50px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.fpcp-theme .fp-pagesingle,
.fpcp-theme .ht-postsingle,
.fpcp-theme .fp-profilebody,
.fpcp-search-result {
	padding: clamp(24px, 4vw, 40px);
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: var(--fpcp-radius);
	box-shadow: var(--fpcp-shadow-small);
}

.fpcp-theme .fp-thecontent {
	color: #344054;
	font-size: 16px;
	line-height: 1.78;
}

.fpcp-theme .fp-thecontent h2,
.fpcp-theme .fp-thecontent h3,
.fpcp-theme .fp-thecontent h4 {
	margin-top: 1.55em;
	color: var(--fpcp-text);
	line-height: 1.3;
}

.fpcp-theme .fp-thecontent a {
	text-decoration: underline;
}

.fpcp-theme .fp-thecontent blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	background: var(--fpcp-surface-soft);
	border-left: 4px solid var(--fpcp-accent);
	border-radius: 0 10px 10px 0;
}

.fpcp-theme .fp-thecontent pre,
.fpcp-theme .fp-thecontent code {
	max-width: 100%;
	overflow-x: auto;
}

.fpcp-theme .widget {
	margin: 0 0 18px;
	padding: 20px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: 13px;
	box-shadow: var(--fpcp-shadow-small);
}

.fpcp-theme .widget__title,
.fpcp-theme .widget-title {
	margin: 0 0 14px;
	color: var(--fpcp-text);
	font-size: 15px;
	font-weight: 750;
}

.fpcp-theme .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fpcp-theme .widget li + li {
	margin-top: 8px;
}

.fpcp-theme .widget a {
	color: var(--fpcp-muted);
	font-size: 14px;
	text-decoration: none;
}

.fpcp-theme .widget a:hover {
	color: var(--fpcp-text);
}

.fpcp-theme input[type="text"],
.fpcp-theme input[type="email"],
.fpcp-theme input[type="password"],
.fpcp-theme input[type="url"],
.fpcp-theme input[type="search"],
.fpcp-theme input[type="number"],
.fpcp-theme select,
.fpcp-theme textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	background: #ffffff;
	border: 1px solid var(--fpcp-border-strong);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--fpcp-text);
	transition: border-color var(--fpcp-transition), box-shadow var(--fpcp-transition);
}

.fpcp-theme textarea {
	min-height: 150px;
	resize: vertical;
}

.fpcp-theme input:focus,
.fpcp-theme select:focus,
.fpcp-theme textarea:focus {
	border-color: var(--fpcp-accent);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
	outline: 0;
}

.fpcp-theme label {
	color: #344054;
	font-size: 14px;
	font-weight: 650;
}

.fpcp-theme .fp-pagination,
.fpcp-theme .bbp-pagination-links {
	margin-top: 28px;
}

.fpcp-theme .page-numbers,
.fpcp-theme .bbp-pagination-links a,
.fpcp-theme .bbp-pagination-links span {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 2px;
	padding: 0 10px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: 9px;
	color: var(--fpcp-text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.fpcp-theme .page-numbers.current,
.fpcp-theme .bbp-pagination-links span.current {
	background: var(--fpcp-accent);
	border-color: var(--fpcp-accent);
	color: #ffffff;
}

/* Authentication */
body.fpcp-auth-page {
	min-height: 100vh;
	background: var(--fpcp-page-bg);
}

.fpcp-auth-shell {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 36px 20px;
	background:
		radial-gradient(circle at 12% 10%, rgba(17, 24, 39, 0.08), transparent 30%),
		radial-gradient(circle at 88% 90%, rgba(17, 24, 39, 0.06), transparent 28%),
		var(--fpcp-page-bg);
}

.fpcp-auth-layout {
	width: min(100%, 500px);
}

.fpcp-auth-layout__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 22px;
}

.fpcp-auth-card {
	padding: clamp(24px, 5vw, 42px);
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: calc(var(--fpcp-radius) + 4px);
	box-shadow: var(--fpcp-shadow-medium);
}

.fpcp-auth-card__header {
	margin-bottom: 26px;
	text-align: center;
}

.fpcp-auth-card__header h1 {
	margin: 0;
	color: var(--fpcp-text);
	font-size: clamp(28px, 7vw, 38px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.fpcp-auth-card__header p {
	margin: 12px auto 0;
	color: var(--fpcp-muted);
	font-size: 14px;
	line-height: 1.6;
}

.fpcp-auth-card__content .bbp-login-form,
.fpcp-auth-card__content .bbp-register-form,
.fpcp-auth-card__content .bbp-lost-password-form {
	margin: 0;
}

.fpcp-auth-card__content .bbp-username,
.fpcp-auth-card__content .bbp-email,
.fpcp-auth-card__content .bbp-password {
	margin-bottom: 16px;
}

.fpcp-auth-card__content label {
	display: block;
	margin-bottom: 6px;
}

.fpcp-auth-card__content .bbp-remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 18px;
}

.fpcp-auth-card__content .bbp-remember-me label {
	margin: 0;
}

.fpcp-auth-card__content .bbp-submit-wrapper,
.fpcp-auth-card__content .submit {
	width: 100%;
	float: none;
}

.fpcp-auth-card__content button[type="submit"] {
	width: 100%;
}

.fpcp-auth-card__footer {
	display: grid;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--fpcp-border);
	color: var(--fpcp-muted);
	font-size: 13px;
	text-align: center;
}

.fpcp-auth-card__footer a {
	font-weight: 700;
	text-decoration: none;
}

/* Search and error states */
.fpcp-form-hero {
	padding: 54px 0 46px;
	background: #ffffff;
	border-bottom: 1px solid var(--fpcp-border);
	text-align: center;
}

.fpcp-form-hero h1 {
	margin: 0;
	color: var(--fpcp-text);
	font-size: clamp(32px, 6vw, 50px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.fpcp-form-hero p {
	max-width: 650px;
	margin: 14px auto 0;
	color: var(--fpcp-muted);
}

.fpcp-search-hero .search-form {
	max-width: 600px;
	display: flex;
	gap: 8px;
	margin: 24px auto 0;
}

.fpcp-search-results {
	display: grid;
	gap: 16px;
}

.fpcp-search-result {
	padding: 24px;
}

.fpcp-search-result__type {
	color: var(--fpcp-muted);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fpcp-search-result h2 {
	margin: 6px 0 10px;
	font-size: 22px;
	line-height: 1.3;
}

.fpcp-search-result h2 a {
	color: var(--fpcp-text);
	text-decoration: none;
}

.fpcp-search-result__excerpt,
.fpcp-search-result__excerpt p {
	margin: 0;
	color: var(--fpcp-muted);
}

.fpcp-empty-state {
	display: grid;
	justify-items: center;
	padding: 42px 28px;
	background: var(--fpcp-surface);
	border: 1px solid var(--fpcp-border);
	border-radius: var(--fpcp-radius);
	text-align: center;
}

.fpcp-empty-state > .fpcp-icon {
	width: 42px;
	height: 42px;
	margin-bottom: 12px;
	padding: 9px;
	background: var(--fpcp-surface-soft);
	border-radius: 12px;
}

.fpcp-empty-state h1,
.fpcp-empty-state h2 {
	margin: 0;
	color: var(--fpcp-text);
}

.fpcp-empty-state p {
	max-width: 600px;
	margin: 12px auto 0;
	color: var(--fpcp-muted);
}

.fpcp-empty-state--large {
	padding: clamp(50px, 9vw, 100px) 24px;
}

.fpcp-not-found__code {
	color: var(--fpcp-border-strong);
	font-size: clamp(80px, 20vw, 150px);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.08em;
}

.fpcp-empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 1180px) {
	.fpcp-header__inner {
		gap: 16px;
	}

	.fpcp-header__search {
		display: none;
	}

	.fpcp-nav--desktop {
		margin-left: auto;
	}
}

@media (max-width: 960px) {
	.fpcp-nav--desktop,
	.fpcp-header__login,
	.fpcp-user-menu {
		display: none;
	}

	.fpcp-header__actions {
		margin-left: auto;
	}

	.fpcp-menu-toggle {
		display: inline-flex;
	}

	.fpcp-footer__top,
	.fpcp-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.fpcp-footer__menu {
		justify-content: flex-start;
	}

	.fpcp-has-mobile-dock .fpcp-mobile-dock {
		display: grid;
	}

	.fpcp-has-mobile-dock .fpcp-footer {
		padding-bottom: 94px;
	}
}

@media (max-width: 782px) {
	.admin-bar.fpcp-has-sticky-header .fpcp-header {
		top: 46px;
	}
}

@media (max-width: 700px) {
	:root {
		--fpcp-header-height: 66px;
	}

	.fpcp-theme .fp-container {
		width: calc(100% - 28px);
	}

	.fpcp-header__inner {
		gap: 10px;
	}

	.fpcp-brand img,
	.fpcp-brand .custom-logo {
		max-width: 165px;
		max-height: 40px;
	}

	.fpcp-brand__text {
		max-width: 170px;
		font-size: 17px;
	}

	.fpcp-header__ask {
		width: 42px;
		height: 42px;
		min-height: 42px;
		padding: 0;
	}

	.fpcp-header__ask span {
		display: none;
	}

	.fpcp-header__ask .fpcp-icon {
		width: 21px;
		height: 21px;
	}

	.fpcp-footer {
		padding-top: 36px;
	}

	.fpcp-footer__top {
		gap: 28px;
		padding-bottom: 24px;
	}

	.fpcp-footer__menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 20px;
	}

	.fpcp-footer__social span {
		display: none;
	}

	.fpcp-footer__social a {
		width: 34px;
		height: 34px;
		justify-content: center;
		border: 1px solid var(--fpcp-border);
	}

	.fpcp-footer__social .fpcp-icon {
		width: 16px;
		height: 16px;
	}

	.fpcp-theme .fp-main {
		padding: 32px 0;
	}

	.fpcp-theme .fp-forumheader,
	.fpcp-form-hero {
		padding: 40px 0 34px;
	}

	.fpcp-search-hero .search-form {
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.fpcp-brand img,
	.fpcp-brand .custom-logo {
		max-width: 135px;
	}

	.fpcp-brand__text {
		max-width: 140px;
		font-size: 15px;
	}

	.fpcp-header__actions {
		gap: 6px;
	}

	.fpcp-menu-toggle,
	.fpcp-header__ask {
		width: 40px;
		height: 40px;
		min-height: 40px;
	}

	.fpcp-auth-shell {
		padding-right: 14px;
		padding-left: 14px;
	}
}
