/*
Theme Name: Writing Struggles Foundation
Theme URI: https://writingstruggles.com
Author: Writing Struggles
Description: Custom WordPress theme with a persistent collapsible sidebar, mobile drawer navigation, and a reading-first layout.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: writing-struggles-foundation
*/

:root {
	--wsf-page-bg: #f4f1ea;
	--wsf-surface: #fffdfa;
	--wsf-surface-alt: #ece5d7;
	--wsf-sidebar-bg: #1c2230;
	--wsf-sidebar-border: rgba(255, 255, 255, 0.08);
	--wsf-text: #1b1f28;
	--wsf-text-muted: #5e6678;
	--wsf-sidebar-text: #f5f7fb;
	--wsf-accent: #b86f52;
	--wsf-accent-strong: #94563c;
	--wsf-border: rgba(27, 31, 40, 0.1);
	--wsf-shadow: 0 18px 44px rgba(19, 24, 36, 0.12);
	--wsf-scrollbar-size: 8px;
	--wsf-scrollbar-thumb: rgba(28, 34, 48, 0.28);
	--wsf-scrollbar-thumb-hover: rgba(28, 34, 48, 0.42);
	--wsf-scrollbar-track: rgba(28, 34, 48, 0.04);
	--wsf-sidebar-width: 320px;
	--wsf-sidebar-collapsed-width: 72px;
	--wsf-content-max: 860px;
	--wsf-header-gap: 24px;
	--wsf-font-body: "Lora", Georgia, serif;
	--wsf-font-heading: "Cormorant Garamond", Georgia, serif;
	--wsf-font-ui: "Inter", Arial, Helvetica, sans-serif;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--wsf-page-bg);
	color: var(--wsf-text);
	font-family: var(--wsf-font-body);
	line-height: 1.65;
}

a {
	color: var(--wsf-accent-strong);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.14em;
}

a:hover,
a:focus {
	color: var(--wsf-accent);
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wsf-shell {
	display: flex;
	min-height: 100vh;
}

.wsf-sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	width: var(--wsf-sidebar-width);
	min-width: var(--wsf-sidebar-width);
	height: 100vh;
	padding: 28px 20px 24px;
	background: var(--wsf-sidebar-bg);
	color: var(--wsf-sidebar-text);
	border-right: 1px solid var(--wsf-sidebar-border);
	transition: width 180ms ease, min-width 180ms ease, transform 180ms ease;
	z-index: 30;
	overflow: visible;
}

.admin-bar .wsf-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

body.wsf-sidebar-collapsed .wsf-sidebar {
	width: var(--wsf-sidebar-collapsed-width);
	min-width: var(--wsf-sidebar-collapsed-width);
	padding-left: 10px;
	padding-right: 10px;
	overflow: hidden;
}

.wsf-sidebar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}

.wsf-branding {
	min-width: 0;
	flex: 1;
}

.wsf-branding__title {
	display: block;
	color: var(--wsf-sidebar-text);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.wsf-branding__logo,
.wsf-mobile-branding__logo {
	display: block;
	line-height: 0;
}

.wsf-branding__logo .custom-logo-link,
.wsf-mobile-branding__logo .custom-logo-link {
	display: inline-block;
}

.wsf-branding__logo .custom-logo,
.wsf-mobile-branding__logo .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}

.wsf-branding__logo .custom-logo {
	max-height: 56px;
}

.wsf-branding__tagline {
	display: block;
	margin-top: 6px;
	color: rgba(245, 247, 251, 0.72);
	font-family: var(--wsf-font-ui);
	font-size: 0.9rem;
	line-height: 1.4;
}

.wsf-sidebar__toggle,
.wsf-mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--wsf-sidebar-text);
	cursor: pointer;
}

.wsf-mobile-toggle {
	border-color: var(--wsf-border);
	background: var(--wsf-surface-alt);
	color: var(--wsf-text);
	flex-shrink: 0;
}

.wsf-sidebar__toggle::before,
.wsf-sidebar__toggle::after {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transition: transform 180ms ease;
}

.wsf-sidebar__toggle::before {
	transform: rotate(225deg);
	margin-right: -5px;
}

.wsf-sidebar__toggle::after {
	transform: rotate(225deg);
}

.wsf-mobile-toggle .wsf-toggle__bars,
.wsf-mobile-toggle .wsf-toggle__bars::before,
.wsf-mobile-toggle .wsf-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	content: "";
	transition: transform 180ms ease, opacity 180ms ease;
}

.wsf-mobile-toggle .wsf-toggle__bars {
	position: relative;
}

.wsf-mobile-toggle .wsf-toggle__bars::before {
	position: absolute;
	top: -6px;
	left: 0;
}

.wsf-mobile-toggle .wsf-toggle__bars::after {
	position: absolute;
	top: 6px;
	left: 0;
}

body.wsf-sidebar-collapsed .wsf-sidebar__toggle::before,
body.wsf-sidebar-collapsed .wsf-sidebar__toggle::after {
	transform: rotate(45deg);
}

.wsf-sidebar__scroll {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 26px;
	min-height: 0;
	overflow-y: auto;
	padding-right: 2px;
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	scrollbar-width: thin;
	scrollbar-color: var(--wsf-scrollbar-thumb) var(--wsf-scrollbar-track);
	scrollbar-gutter: stable;
}

@media (min-width: 961px) {
	.wsf-sidebar__scroll::-webkit-scrollbar,
	html::-webkit-scrollbar,
	body::-webkit-scrollbar {
		width: var(--wsf-scrollbar-size);
		height: var(--wsf-scrollbar-size);
	}

	.wsf-sidebar__scroll::-webkit-scrollbar-track,
	html::-webkit-scrollbar-track,
	body::-webkit-scrollbar-track {
		background: var(--wsf-scrollbar-track);
		border-radius: 999px;
	}

	.wsf-sidebar__scroll::-webkit-scrollbar-thumb,
	html::-webkit-scrollbar-thumb,
	body::-webkit-scrollbar-thumb {
		background: var(--wsf-scrollbar-thumb);
		border: 1px solid transparent;
		border-radius: 999px;
		background-clip: padding-box;
		min-height: 36px;
	}

	.wsf-sidebar__scroll::-webkit-scrollbar-thumb:hover,
	html::-webkit-scrollbar-thumb:hover,
	body::-webkit-scrollbar-thumb:hover {
		background: var(--wsf-scrollbar-thumb-hover);
		border: 1px solid transparent;
		background-clip: padding-box;
	}

	.wsf-sidebar__scroll::-webkit-scrollbar-corner,
	html::-webkit-scrollbar-corner,
	body::-webkit-scrollbar-corner {
		background: var(--wsf-scrollbar-track);
	}
}

.wsf-nav-label,
.wsf-sidebar-section__title {
	margin: 0 0 12px;
	color: rgba(245, 247, 251, 0.64);
	font-family: var(--wsf-font-ui);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wsf-nav {
	font-family: var(--wsf-font-ui);
}

.wsf-nav ul,
.wsf-nav .sub-menu {
	margin: 0;
	padding: 0;
}

.wsf-nav ul {
	list-style: none;
}

.wsf-nav li {
	margin: 0 0 6px;
	position: relative;
}

.wsf-nav a {
	display: block;
	padding: 14px 52px 14px 12px;
	border-radius: 12px;
	color: rgba(245, 247, 251, 0.92);
	text-decoration: none;
	font-weight: 600;
}

.wsf-nav a:hover,
.wsf-nav a:focus,
.wsf-nav .current-menu-item > a,
.wsf-nav .current_page_item > a {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.wsf-nav .sub-menu,
.wsf-nav .children {
	display: none;
	margin-top: 6px;
	padding-left: 0;
	border-left: 0;
}

.wsf-nav .is-open > .sub-menu,
.wsf-nav .is-open > .children {
	display: block;
}

.wsf-nav .sub-menu li,
.wsf-nav .children li {
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wsf-nav .sub-menu a,
.wsf-nav .children a {
	padding: 14px 12px 14px 28px;
	border-radius: 0;
	color: rgba(245, 247, 251, 0.82);
	font-weight: 400;
}

.wsf-submenu-toggle {
	position: absolute;
	top: 7px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(245, 247, 251, 0.82);
	cursor: pointer;
	font: inherit;
}

.wsf-submenu-toggle:hover,
.wsf-submenu-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

.wsf-submenu-toggle__icon {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1;
}

.wsf-nav-item--has-children > a {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wsf-nav-item--has-children.is-open > a,
.wsf-nav-item--has-children.is-open > .wsf-submenu-toggle {
	background: rgba(255, 255, 255, 0.05);
}

body.wsf-sidebar-collapsed .wsf-branding__tagline,
body.wsf-sidebar-collapsed .wsf-nav-label,
body.wsf-sidebar-collapsed .wsf-branding__title-text {
	display: none;
}

body.wsf-sidebar-collapsed .wsf-branding__title {
	font-size: 0;
	line-height: 0;
	text-align: center;
}

body.wsf-sidebar-collapsed .wsf-branding__title::before {
	content: "WS";
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

body.wsf-sidebar-collapsed .wsf-branding--has-logo .wsf-branding__title::before {
	content: none;
}

body.wsf-sidebar-collapsed .wsf-branding--has-logo .wsf-branding__logo {
	display: block;
}

body.wsf-sidebar-collapsed .wsf-branding--has-logo .wsf-branding__logo .custom-logo {
	max-height: 36px;
	width: auto;
	margin: 0 auto;
}

body.wsf-sidebar-collapsed .wsf-sidebar__scroll {
	display: none;
	opacity: 0;
	visibility: hidden;
}

body.wsf-sidebar-collapsed .wsf-sidebar__top {
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

body.wsf-sidebar-collapsed .wsf-branding {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	overflow: hidden;
}

.wsf-main {
	flex: 1;
	min-width: 0;
	padding: 28px 32px 48px;
}

.wsf-mobile-header {
	display: none;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 24px;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.wsf-content {
	max-width: var(--wsf-content-max);
	margin: 0 auto;
	padding: 32px;
	border: 1px solid var(--wsf-border);
	border-radius: 28px;
	background: var(--wsf-surface);
	box-shadow: var(--wsf-shadow);
}

.wsf-entry-header,
.wsf-archive-header {
	margin-bottom: 28px;
}

.wsf-entry-title,
.wsf-archive-title,
.wsf-page-title {
	margin: 0 0 12px;
	font-family: var(--wsf-font-heading);
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.06;
}

.wsf-entry-meta,
.wsf-archive-description,
.wsf-entry-summary {
	color: var(--wsf-text-muted);
	font-family: var(--wsf-font-ui);
	font-size: 0.98rem;
}

.wsf-post-list {
	display: grid;
	gap: 22px;
}

.wsf-card {
	padding: 24px;
	border: 1px solid var(--wsf-border);
	border-radius: 22px;
	background: var(--wsf-surface);
}

.wsf-card__title {
	margin: 0 0 10px;
	font-family: var(--wsf-font-heading);
	font-size: 1.55rem;
	line-height: 1.15;
}

.wsf-card__meta {
	margin-bottom: 12px;
	color: var(--wsf-text-muted);
	font-family: var(--wsf-font-ui);
	font-size: 0.9rem;
}

.wsf-card__excerpt > *:last-child,
.wsf-entry-content > *:last-child,
.wsf-page-content > *:last-child {
	margin-bottom: 0;
}

.wsf-pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
	font-family: var(--wsf-font-ui);
}

.wsf-pagination a,
.wsf-pagination span,
.nav-links a,
.nav-links span {
	padding: 10px 14px;
	border: 1px solid var(--wsf-border);
	border-radius: 999px;
	background: var(--wsf-surface-alt);
	text-decoration: none;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.search-form label {
	flex: 1 1 260px;
}

.search-field,
.search-submit,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wsf-border);
	border-radius: 14px;
	background: #ffffff;
	color: var(--wsf-text);
	font: inherit;
}

.search-submit {
	width: auto;
	background: var(--wsf-accent);
	color: #fffaf5;
	border-color: var(--wsf-accent);
	cursor: pointer;
}

.wsf-entry-content,
.wsf-page-content,
.entry-content,
.woocommerce {
	font-size: 1.06rem;
}

.woocommerce .products,
.woocommerce-page .products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.woocommerce div.product,
.woocommerce-page div.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
}

.wsf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 16, 28, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
	z-index: 20;
}

body.wsf-mobile-sidebar-open .wsf-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.wsdm-dark-mode {
	--wsf-page-bg: #0d1118;
	--wsf-surface: #151b24;
	--wsf-surface-alt: #202938;
	--wsf-sidebar-bg: #0b1018;
	--wsf-sidebar-border: rgba(255, 255, 255, 0.08);
	--wsf-text: #e8edf7;
	--wsf-text-muted: #aeb8ca;
	--wsf-sidebar-text: #f5f7fb;
	--wsf-accent: #e0a17f;
	--wsf-accent-strong: #f0b795;
	--wsf-border: rgba(174, 184, 202, 0.18);
	--wsf-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
	--wsf-scrollbar-thumb: rgba(232, 237, 247, 0.24);
	--wsf-scrollbar-thumb-hover: rgba(232, 237, 247, 0.36);
	--wsf-scrollbar-track: rgba(232, 237, 247, 0.05);
}

body.wsdm-dark-mode,
body.wsdm-dark-mode .wsf-main,
body.wsdm-dark-mode .wsf-content,
body.wsdm-dark-mode .wsf-card,
body.wsdm-dark-mode .wsf-mobile-header,
body.wsdm-dark-mode .wsf-page-content,
body.wsdm-dark-mode .wsf-entry-content,
body.wsdm-dark-mode .wsf-card__excerpt,
body.wsdm-dark-mode .comment-content,
body.wsdm-dark-mode .woocommerce,
body.wsdm-dark-mode .woocommerce-page {
	color: var(--wsf-text);
}

body.wsdm-dark-mode .wsf-content,
body.wsdm-dark-mode .wsf-card,
body.wsdm-dark-mode .wsf-mobile-header,
body.wsdm-dark-mode .wsf-sidebar,
body.wsdm-dark-mode .wsf-sidebar__top,
body.wsdm-dark-mode .wsf-sidebar__scroll,
body.wsdm-dark-mode .wsf-nav,
body.wsdm-dark-mode .wsf-sidebar-section,
body.wsdm-dark-mode .wp-block-group,
body.wsdm-dark-mode .wp-block-columns,
body.wsdm-dark-mode .wp-block-column,
body.wsdm-dark-mode .wp-block-cover:not(.has-background-dim),
body.wsdm-dark-mode .wp-block-media-text,
body.wsdm-dark-mode .wp-block-post-featured-image,
body.wsdm-dark-mode .search-field,
body.wsdm-dark-mode input[type="text"],
body.wsdm-dark-mode input[type="email"],
body.wsdm-dark-mode input[type="search"],
body.wsdm-dark-mode input[type="password"],
body.wsdm-dark-mode textarea,
body.wsdm-dark-mode select {
	background: var(--wsf-surface);
	border-color: var(--wsf-border);
	color: var(--wsf-text);
}

body.wsdm-dark-mode .wsf-sidebar,
body.wsdm-dark-mode .wsf-sidebar__top,
body.wsdm-dark-mode .wsf-sidebar__scroll,
body.wsdm-dark-mode .wsf-nav,
body.wsdm-dark-mode .wsf-sidebar-section {
	background: var(--wsf-sidebar-bg);
	color: var(--wsf-sidebar-text);
}

body.wsdm-dark-mode .wsf-sidebar {
	border-right-color: var(--wsf-sidebar-border);
}

body.wsdm-dark-mode .wsf-branding__tagline,
body.wsdm-dark-mode .wsf-nav-label {
	color: rgba(245, 247, 251, 0.72);
}

body.wsdm-dark-mode .wsf-nav a {
	color: rgba(245, 247, 251, 0.94);
}

body.wsdm-dark-mode .wsf-nav .sub-menu a,
body.wsdm-dark-mode .wsf-nav .children a,
body.wsdm-dark-mode .wsf-submenu-toggle {
	color: rgba(245, 247, 251, 0.84);
}

body.wsdm-dark-mode .wsf-nav .sub-menu {
	border-left-color: rgba(255, 255, 255, 0.12);
}

body.wsdm-dark-mode .wp-block-group.has-background,
body.wsdm-dark-mode .wp-block-cover.has-background-dim,
body.wsdm-dark-mode .has-background {
	background-color: var(--wsf-surface-alt) !important;
	color: var(--wsf-text);
}

body.wsdm-dark-mode .search-submit,
body.wsdm-dark-mode .wp-block-button__link,
body.wsdm-dark-mode button,
body.wsdm-dark-mode input[type="submit"] {
	background: var(--wsf-accent);
	border-color: var(--wsf-accent);
	color: #17110d;
}

body.wsdm-dark-mode h1,
body.wsdm-dark-mode h2,
body.wsdm-dark-mode h3,
body.wsdm-dark-mode h4,
body.wsdm-dark-mode h5,
body.wsdm-dark-mode h6,
body.wsdm-dark-mode .wsf-entry-title,
body.wsdm-dark-mode .wsf-card__title,
body.wsdm-dark-mode .wsf-archive-title,
body.wsdm-dark-mode .wsf-page-title {
	color: #f2f5fb;
}

body.wsdm-dark-mode p,
body.wsdm-dark-mode li,
body.wsdm-dark-mode span,
body.wsdm-dark-mode blockquote,
body.wsdm-dark-mode label {
	color: inherit;
}

body.wsdm-dark-mode .wsf-entry-meta,
body.wsdm-dark-mode .wsf-card__meta,
body.wsdm-dark-mode .wsf-archive-description,
body.wsdm-dark-mode figcaption,
body.wsdm-dark-mode .wp-block-image figcaption {
	color: var(--wsf-text-muted);
}

body.wsdm-dark-mode .wsf-pagination a,
body.wsdm-dark-mode .wsf-pagination span,
body.wsdm-dark-mode .nav-links a,
body.wsdm-dark-mode .nav-links span {
	background: var(--wsf-surface-alt);
	border-color: var(--wsf-border);
	color: var(--wsf-text);
}

body.wsdm-dark-mode .wp-block-image img,
body.wsdm-dark-mode .wp-block-cover img {
	opacity: 0.98;
}

body.wsdm-dark-mode .wsf-mobile-toggle {
	background: var(--wsf-surface-alt);
	border-color: var(--wsf-border);
	color: var(--wsf-text);
}

@media (max-width: 960px) {
	.wsf-shell {
		display: block;
	}

	.wsf-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: min(88vw, 340px);
		min-width: min(88vw, 340px);
		transform: translateX(-100%);
		box-shadow: 0 24px 64px rgba(8, 12, 20, 0.36);
		background: var(--wsf-sidebar-bg);
	}

	.admin-bar .wsf-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}

	body.wsf-sidebar-collapsed .wsf-sidebar {
		width: min(88vw, 340px);
		min-width: min(88vw, 340px);
	}

	body.wsf-mobile-sidebar-open .wsf-sidebar {
		transform: translateX(0);
	}

	.wsf-sidebar__top {
		align-items: flex-start;
	}

	.wsf-branding {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.wsf-branding__title {
		width: 100%;
	}

	.wsf-branding__logo .custom-logo {
		max-height: 84px;
	}

	.wsf-branding__tagline {
		margin-top: 0;
		max-width: 22ch;
	}

	.wsf-main {
		padding: 16px 16px 132px;
	}

	.wsf-mobile-header {
		display: flex;
		margin-bottom: 12px;
	}

	.wsf-content {
		padding: 22px 18px 36px;
		border-radius: 22px;
	}

	.wsf-entry-title,
	.wsf-archive-title,
	.wsf-page-title {
		font-size: clamp(1.85rem, 5vw, 2.5rem);
	}

	.wsf-entry-content,
	.wsf-page-content,
	.entry-content {
		font-size: 1rem;
	}

	.wsf-sidebar__toggle {
		display: none;
	}

	body.wsf-sidebar-collapsed .wsf-branding__tagline,
	body.wsf-sidebar-collapsed .wsf-nav-label,
	body.wsf-sidebar-collapsed .wsf-branding__title-text {
		display: initial;
	}

	body.wsf-sidebar-collapsed .wsf-branding__title {
		font-size: 1.45rem;
	}

	body.wsf-sidebar-collapsed .wsf-branding__title::before {
		content: none;
	}

	body.wsf-sidebar-collapsed .wsf-sidebar__scroll {
		position: static;
		width: auto;
		display: flex;
		opacity: 1;
		visibility: visible;
	}

	body.wsf-sidebar-collapsed .wsf-sidebar__top {
		flex-direction: row;
		align-items: center;
	}
}

@media (hover: none) and (pointer: coarse) {
	.wsf-shell {
		display: block;
	}

	.wsf-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: min(88vw, 340px);
		min-width: min(88vw, 340px);
		transform: translateX(-100%);
		box-shadow: 0 24px 64px rgba(8, 12, 20, 0.36);
		background: var(--wsf-sidebar-bg);
	}

	.admin-bar .wsf-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}

	body.wsf-sidebar-collapsed .wsf-sidebar {
		width: min(88vw, 340px);
		min-width: min(88vw, 340px);
	}

	body.wsf-mobile-sidebar-open .wsf-sidebar {
		transform: translateX(0);
	}

	.wsf-sidebar__toggle {
		display: none;
	}

	.wsf-sidebar__top {
		align-items: flex-start;
	}

	.wsf-branding {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.wsf-branding__title {
		width: 100%;
		font-size: 1.45rem;
		line-height: 1.1;
		text-align: left;
	}

	.wsf-branding__logo .custom-logo {
		max-height: 84px;
	}

	.wsf-branding__tagline {
		margin-top: 0;
		max-width: 22ch;
	}

	body.wsf-sidebar-collapsed .wsf-branding__tagline,
	body.wsf-sidebar-collapsed .wsf-nav-label,
	body.wsf-sidebar-collapsed .wsf-branding__title-text,
	body.wsf-sidebar-collapsed .wsf-branding__logo {
		display: initial;
	}

	body.wsf-sidebar-collapsed .wsf-branding__title::before {
		content: none;
	}

	body.wsf-sidebar-collapsed .wsf-sidebar__scroll {
		position: static;
		width: auto;
		display: flex;
		opacity: 1;
		visibility: visible;
	}

	body.wsf-sidebar-collapsed .wsf-sidebar__top {
		flex-direction: row;
		align-items: center;
	}

	.wsf-main {
		padding: 16px 16px 132px;
	}

	.wsf-mobile-header {
		display: flex;
		margin-bottom: 12px;
	}
}

@media (max-width: 640px) {
	.wsf-main {
		padding: 12px 12px 140px;
	}

	.wsf-mobile-header {
		margin-bottom: 10px;
	}

	.wsf-content {
		padding: 18px 14px 36px;
		border-radius: 18px;
	}

	.wsf-entry-title,
	.wsf-archive-title,
	.wsf-page-title {
		font-size: clamp(1.45rem, 9vw, 2.15rem);
		line-height: 1.08;
	}

	.wsf-entry-header,
	.wsf-archive-header {
		margin-bottom: 20px;
	}
}

@media (max-width: 782px) {
	.admin-bar .wsf-sidebar {
		top: 46px;
		height: calc(100vh - 46px);
	}
}
