/* ==========================================================================
   USB Type B — main stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	--color-white: #ffffff;
	--color-surface: #ffffff;
	--color-primary: #1a73e8;
	--color-primary-hover: #1557b8;
	--color-primary-soft: #e8f0fe;
	--color-navy: #0d1b2a;
	--color-navy-mid: #1b2838;
	--color-text: #111827;
	--color-text-muted: #6b7280;
	--color-header-link: #374151;
	--color-border: #e5e7eb;
	--color-bg: #ffffff;
	--color-bg-soft: #f8fafc;
	--color-footer-text: #cbd5e1;
	--color-green: #059669;
	--color-green-soft: #ecfdf5;
	--color-purple: #7c3aed;
	--color-purple-soft: #f3e8ff;
	--color-yellow: #d97706;
	--color-yellow-soft: #fef9c3;
	--color-orange: #ea580c;
	--color-orange-soft: #fff7ed;
	--color-red: #dc2626;
	--color-red-soft: #fef2f2;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1120px;
	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3.5rem;
	--space-3xl: 5rem;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-full: 999px;
	--shadow-header: 0 1px 8px rgba(15, 23, 42, 0.06);
	--shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow-search: 0 8px 24px rgba(15, 23, 42, 0.08);
	--focus: 0 0 0 3px rgba(26, 115, 232, 0.35);
	color-scheme: light;
}

html[data-theme="dark"] {
	--color-surface: #152033;
	--color-primary: #4b8df8;
	--color-primary-hover: #6aa1ff;
	--color-primary-soft: #1a2f4d;
	--color-text: #e8edf5;
	--color-text-muted: #9aa6b8;
	--color-header-link: #c9d3e3;
	--color-border: #2a3648;
	--color-bg: #0b1220;
	--color-bg-soft: #121a2b;
	--color-green-soft: #12352a;
	--color-purple-soft: #2a2040;
	--color-yellow-soft: #3a2e14;
	--color-orange-soft: #3a2414;
	--color-red-soft: #3a1a1a;
	--shadow-header: 0 1px 10px rgba(0, 0, 0, 0.35);
	--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.28);
	--shadow-search: 0 8px 24px rgba(0, 0, 0, 0.35);
	--focus: 0 0 0 3px rgba(75, 141, 248, 0.4);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text-muted);
	background: var(--color-bg);
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-sm);
	color: var(--color-text);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 var(--space-md);
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--color-primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: none;
	box-shadow: var(--focus);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

iframe,
embed,
object {
	max-width: 100%;
}

button,
input,
select,
textarea {
	font-family: inherit;
	max-width: 100%;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

.icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
.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;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xl);
	padding: var(--space-xl) 0 var(--space-2xl);
}

.content-area,
.widget-area {
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 960px) {
	.content-layout {
		gap: var(--space-2xl);
		padding: var(--space-2xl) 0 var(--space-3xl);
	}

	.content-layout.has-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}

	.widget-area {
		position: sticky;
		top: 88px;
	}
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.8rem 1.35rem;
	border: 0;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
	width: 16px;
	height: 16px;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover {
	background: var(--color-primary-hover);
	color: var(--color-white);
}

.btn-white {
	background: var(--color-white);
	color: var(--color-primary);
}

.btn-white:hover {
	background: var(--color-primary-soft);
	color: var(--color-primary-hover);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-surface);
	box-shadow: var(--shadow-header);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: var(--space-sm);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: var(--color-bg-soft);
	color: var(--color-text);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: var(--color-primary-soft);
}

.theme-toggle .icon {
	width: 18px;
	height: 18px;
}

.theme-toggle .icon-sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}

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

.custom-logo-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	color: var(--color-text);
	text-decoration: none;
}

.custom-logo img {
	max-height: 40px;
	width: auto;
	max-width: 160px;
}

.custom-logo-link:hover {
	color: var(--color-text);
}

.site-logo-icon {
	width: 36px;
	height: 36px;
}

.site-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.site-title-usb {
	color: var(--color-text);
}

.site-title-type {
	color: var(--color-primary);
}

.main-navigation {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.main-navigation .menu {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.75rem;
}

.main-navigation a {
	color: var(--color-header-link);
	font-size: 0.95rem;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--color-primary);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0.35rem;
	color: var(--color-text);
	cursor: pointer;
}

.menu-toggle .icon {
	width: 28px;
	height: 28px;
}

.menu-toggle .icon-menu-close,
.main-navigation.is-open .menu-toggle .icon-menu-open {
	display: none;
}

.main-navigation.is-open .menu-toggle .icon-menu-close {
	display: block;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero-section {
	position: relative;
	text-align: center;
	padding: 4.5rem 0 3rem;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(90deg, rgba(26, 115, 232, 0.06) 1px, transparent 1px),
		linear-gradient(rgba(26, 115, 232, 0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 40%, transparent 35%, #000 80%);
	pointer-events: none;
}

.hero-title {
	position: relative;
	font-size: clamp(2rem, 4.4vw, 3rem);
	margin-bottom: 0.75rem;
}

.hero-subtitle {
	position: relative;
	font-size: 1.125rem;
	max-width: 36rem;
	margin: 0 auto 2rem;
}

.hero-search-form {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 640px;
	margin: 0 auto 2.5rem;
	padding: 0.35rem 1.25rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-search);
}

.hero-search-form .search-icon {
	width: 20px;
	height: 20px;
	color: #9ca3af;
	margin-right: 0.75rem;
}

.hero-search-form .search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.9rem 0;
	font-size: 1rem;
	color: var(--color-text);
	outline: none;
	box-shadow: none;
}

.hero-search-form:focus-within {
	border-color: var(--color-primary);
}

.trust-stats {
	position: relative;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.75rem 2.5rem;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-primary);
	color: var(--color-white);
}

.stat-icon .icon {
	width: 18px;
	height: 18px;
}

.stat-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   8. Category cards
   -------------------------------------------------------------------------- */
.categories-section {
	padding: 1rem 0 2.5rem;
}

.category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem 1.25rem 1.5rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
	border-color: #c7d7fe;
	box-shadow: 0 8px 20px rgba(26, 115, 232, 0.08);
	color: inherit;
}

.category-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 1rem;
	border-radius: 50%;
}

.category-icon .icon {
	width: 32px;
	height: 32px;
}

.category-icon--blue {
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

.category-icon--green {
	background: var(--color-green-soft);
	color: var(--color-green);
}

.category-icon--purple {
	background: var(--color-purple-soft);
	color: var(--color-purple);
}

.category-icon--yellow {
	background: var(--color-yellow-soft);
	color: var(--color-yellow);
}

.category-title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.category-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-primary);
}

.category-meta .icon {
	width: 14px;
	height: 14px;
}

/* --------------------------------------------------------------------------
   9. Popular tools
   -------------------------------------------------------------------------- */
.tools-section {
	padding: 1.5rem 0 3rem;
}

.section-title {
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}

.tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.tool-card {
	display: flex;
	flex-direction: column;
	padding: 1.35rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.tool-card--more {
	border-style: dashed;
	background: var(--color-bg-soft);
}

.tool-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.tool-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
}

.tool-icon .icon {
	width: 22px;
	height: 22px;
}

.tool-icon--blue {
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

.tool-icon--green {
	background: var(--color-green-soft);
	color: var(--color-green);
}

.tool-icon--purple {
	background: var(--color-purple-soft);
	color: var(--color-purple);
}

.tool-icon--orange {
	background: var(--color-orange-soft);
	color: var(--color-orange);
}

.tool-icon--red {
	background: var(--color-red-soft);
	color: var(--color-red);
}

.tool-title {
	font-size: 1.05rem;
	margin: 0;
}

.tool-desc {
	flex: 1;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.tool-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.tool-link .icon {
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   10. Why free
   -------------------------------------------------------------------------- */
.why-free-section {
	padding: 0 0 2.5rem;
}

.why-free-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xl);
	padding: 2rem 1.5rem;
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.gift-icon {
	width: 96px;
	height: 96px;
}

.why-free-copy h2 {
	font-size: 1.5rem;
}

.why-free-copy p {
	margin: 0;
	max-width: 42rem;
}

/* --------------------------------------------------------------------------
   11. CTA banner
   -------------------------------------------------------------------------- */
.cta-section {
	padding: 0 0 4rem;
}

.cta-banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.75rem;
	background: linear-gradient(135deg, #1a73e8 0%, #1558c0 100%);
	border-radius: var(--radius-lg);
	color: var(--color-white);
	position: relative;
	overflow: hidden;
}

.cta-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 40%);
	pointer-events: none;
}

.cta-copy {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	position: relative;
	z-index: 1;
}

.cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: var(--color-white);
	flex-shrink: 0;
}

.cta-icon .icon {
	width: 24px;
	height: 24px;
}

.cta-banner h2 {
	color: var(--color-white);
	font-size: 1.35rem;
	margin: 0 0 0.25rem;
}

.cta-banner p {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
}

.cta-banner .btn {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	background: var(--color-navy);
	color: var(--color-footer-text);
	padding: 3.5rem 0 1.5rem;
	overflow: hidden;
}

.site-footer::before {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -20px;
	width: 380px;
	height: 280px;
	background-image:
		linear-gradient(90deg, rgba(26, 115, 232, 0.18) 1px, transparent 1px),
		linear-gradient(rgba(26, 115, 232, 0.18) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(circle at 70% 70%, #000 20%, transparent 75%);
	pointer-events: none;
}

.footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 1.5rem;
	padding-bottom: 2.5rem;
}

.footer-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
	text-decoration: none;
}

.footer-logo-link .site-title-usb,
.footer-logo-link .site-title-type {
	color: var(--color-white);
}

.footer-logo-icon {
	width: 32px;
	height: 32px;
}

.footer-description {
	max-width: 22rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	color: #dbe4ee;
}

.footer-socials {
	list-style: none;
	display: flex;
	gap: 0.65rem;
}

.footer-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--color-white);
}

.footer-socials a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.footer-socials .icon {
	width: 16px;
	height: 16px;
}

.footer-heading {
	color: var(--color-white);
	font-size: 1.05rem;
	margin-bottom: 1rem;
	padding-bottom: 0.45rem;
	position: relative;
}

.footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	background: var(--color-primary);
	border-radius: 2px;
}

.footer-menu {
	list-style: none;
}

.footer-menu li + li {
	margin-top: 0.55rem;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--color-footer-text);
	font-size: 0.95rem;
}

.footer-menu a::before {
	content: "";
	width: 0.35rem;
	height: 0.35rem;
	border-right: 2px solid var(--color-white);
	border-bottom: 2px solid var(--color-white);
	transform: rotate(-45deg);
	opacity: 0.85;
}

.footer-menu a:hover {
	color: var(--color-white);
}

.footer-bottom {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.875rem;
}

.footer-bottom p {
	margin: 0;
}

.heart {
	color: #ef4444;
}

/* --------------------------------------------------------------------------
   13. Inner pages — article content
   -------------------------------------------------------------------------- */
.page-header {
	margin-bottom: var(--space-xl);
}

.page-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.entry {
	margin-bottom: var(--space-xl);
}

.entry-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.entry-body {
	padding: 1.5rem 1.35rem 1.75rem;
}

.entry-header {
	margin-bottom: 1.25rem;
}

.entry-cats,
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
}

.entry-cat,
.entry-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.7rem;
	border-radius: var(--radius-full);
	background: var(--color-primary-soft);
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.entry-cat:hover,
.entry-tag:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

.entry-title {
	font-size: clamp(1.6rem, 3.2vw, 2.15rem);
	margin: 0 0 0.75rem;
	overflow-wrap: anywhere;
	color: var(--color-text);
}

.entry-title a {
	color: var(--color-text);
}

.entry-title a:hover {
	color: var(--color-primary);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.entry-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.entry-meta-item .icon {
	width: 16px;
	height: 16px;
	color: var(--color-primary);
}

.entry-meta-item a {
	color: var(--color-text-muted);
	font-weight: 500;
}

.entry-meta-item a:hover {
	color: var(--color-primary);
}

.post-thumbnail {
	display: block;
	margin: 0;
	overflow: hidden;
	background: var(--color-bg-soft);
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.entry-content {
	overflow-wrap: break-word;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--color-text-muted);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.75rem 0 0.7rem;
	color: var(--color-text);
}

.entry-content h2 {
	font-size: 1.4rem;
}

.entry-content h3 {
	font-size: 1.2rem;
}

.entry-content p {
	margin-bottom: 1.15rem;
}

.entry-content a {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.15rem;
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content blockquote {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--color-primary);
	background: var(--color-bg-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--color-text);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content code {
	font-size: 0.9em;
	padding: 0.12rem 0.35rem;
	background: var(--color-bg-soft);
	border-radius: 4px;
	color: var(--color-text);
}

.entry-content pre {
	overflow-x: auto;
	max-width: 100%;
	padding: 1rem 1.15rem;
	margin: 0 0 1.25rem;
	background: var(--color-navy);
	color: #e2e8f0;
	border-radius: var(--radius-sm);
}

.entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.entry-content .wp-block-table,
.entry-content table {
	width: 100%;
	max-width: 100%;
	margin-bottom: 1.25rem;
	border-collapse: collapse;
	overflow-x: auto;
}

.entry-content .wp-block-table {
	display: block;
}

.entry-content th,
.entry-content td {
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-border);
	text-align: left;
}

.entry-content th {
	background: var(--color-bg-soft);
	color: var(--color-text);
	font-weight: 600;
}

.entry-content figure,
.entry-content .wp-caption,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content .wp-block-video {
	max-width: 100%;
	margin: 0 0 1.25rem;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 1.75rem 0;
}

.entry-content .wp-block-button__link {
	background: var(--color-primary);
	color: var(--color-white);
	border-radius: var(--radius-sm);
}

.page-links {
	margin-top: 1.25rem;
	font-weight: 600;
}

.entry-footer {
	margin-top: 1.5rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--color-border);
}

.entry-footer .entry-tags {
	margin-bottom: 0;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.5rem;
	font-weight: 600;
}

.read-more .icon {
	width: 16px;
	height: 16px;
}

.alignnone,
.aligncenter,
.alignleft,
.alignright,
.alignwide,
.alignfull {
	max-width: 100%;
	height: auto;
}

.alignwide,
.alignfull {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0;
}

.search-form-label {
	position: relative;
	flex: 1 1 8rem;
	min-width: 0;
	display: flex;
	align-items: center;
}

.search-form-icon {
	position: absolute;
	left: 0.85rem;
	color: #9ca3af;
	pointer-events: none;
}

.search-form-icon .icon {
	width: 16px;
	height: 16px;
}

.search-form .search-field {
	width: 100%;
	padding: 0.7rem 0.9rem 0.7rem 2.4rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 1rem;
}

.search-submit,
.wp-block-search__button {
	appearance: none;
	-webkit-appearance: none;
	background: var(--color-primary);
	color: var(--color-white);
	border: 0;
	border-radius: var(--radius-sm);
	padding: 0.7rem 1.1rem;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.2;
}

.search-submit:hover,
.wp-block-search__button:hover {
	background: var(--color-primary-hover);
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   13b. Sidebar widgets
   -------------------------------------------------------------------------- */
.widget-area {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.widget-area .widget {
	margin: 0;
	padding: 1.15rem 1.15rem 1.25rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}

.widget-area .widget-title,
.widget-area .wp-block-heading,
.widget-area .wp-block-search__label {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 1rem;
	padding-bottom: 0.55rem;
	position: relative;
}

.widget-area .widget-title::after,
.widget-area .wp-block-heading::after,
.widget-area .wp-block-search__label::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	background: var(--color-primary);
	border-radius: 2px;
}

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

.widget-area li {
	margin: 0;
}

.widget-area li + li {
	border-top: 1px solid var(--color-border);
}

.widget-area li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	padding: 0.65rem 0;
	color: var(--color-header-link);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.widget-area li a::before {
	content: "";
	display: block;
	box-sizing: border-box;
	width: 0.4rem;
	height: 0.4rem;
	border-right: 2px solid var(--color-primary);
	border-bottom: 2px solid var(--color-primary);
	transform: rotate(-45deg);
	flex-shrink: 0;
	opacity: 0.85;
}

.widget-area li a:hover {
	color: var(--color-primary);
}

.widget-area .post-date,
.widget-area .wp-block-latest-posts__post-date {
	display: block;
	padding: 0 0 0.65rem 1rem;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.widget-area .wp-block-latest-comments__comment {
	padding: 0.7rem 0;
}

.widget-area .wp-block-latest-comments__comment-meta,
.widget-area .recentcomments {
	display: block;
	padding: 0.65rem 0;
	font-size: 0.9rem;
	color: var(--color-text-muted);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.widget-area .recentcomments a,
.widget-area .wp-block-latest-comments__comment-author,
.widget-area .wp-block-latest-comments__comment-link {
	display: inline;
	padding: 0;
	font-weight: 600;
	color: var(--color-text);
}

.widget-area .recentcomments a::before,
.widget-area .wp-block-latest-comments a::before {
	display: none;
}

.widget-area .recentcomments a:hover,
.widget-area .wp-block-latest-comments a:hover {
	color: var(--color-primary);
}

.widget-area select {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg-soft);
	color: var(--color-text);
	font-size: 0.95rem;
}

.widget-area .wp-block-search {
	display: flex;
	flex-direction: column;
}

.widget-area .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
}

.widget-area .wp-block-search__button {
	flex-shrink: 0;
	margin: 0;
	min-width: 0;
	background: var(--color-primary);
	color: var(--color-white);
}

.widget-area .wp-block-search__input {
	flex: 1 1 8rem;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 1rem;
}

.widget-area .wp-block-tag-cloud,
.widget-area .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.widget-area .tagcloud a,
.widget-area .wp-block-tag-cloud a {
	display: inline-flex;
	padding: 0.3rem 0.65rem;
	background: var(--color-primary-soft);
	color: var(--color-primary);
	border-radius: var(--radius-full);
	font-size: 0.8rem !important;
	font-weight: 600;
}

.widget-area .tagcloud a:hover,
.widget-area .wp-block-tag-cloud a:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

.widget-area .wp-calendar-table,
.widget-area #wp-calendar {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.8rem;
}

.widget-area .wp-calendar-table th,
.widget-area .wp-calendar-table td,
.widget-area #wp-calendar th,
.widget-area #wp-calendar td {
	padding: 0.4rem 0;
	text-align: center;
}

.widget-area .wp-calendar-table a,
.widget-area #wp-calendar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	max-width: 100%;
	border-radius: 50%;
	background: var(--color-primary-soft);
	color: var(--color-primary);
	font-weight: 600;
}

.widget-area .wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.widget-area .textwidget p:last-child {
	margin-bottom: 0;
}

.widget-area .wp-block-latest-posts__featured-image img {
	border-radius: var(--radius-sm);
	margin-bottom: 0.35rem;
}

.post-navigation {
	margin: 0 0 var(--space-xl);
}

.post-navigation .nav-links,
.nav-links,
.pagination {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	float: none;
	width: 100%;
	min-width: 0;
}

.post-navigation a {
	display: block;
	padding: 1rem 1.15rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}

.post-navigation a:hover {
	border-color: #c7d7fe;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 0.3rem;
}

.post-navigation .nav-title {
	display: block;
	font-weight: 600;
	color: var(--color-text);
	overflow-wrap: anywhere;
}

.comments-area {
	margin-top: 0;
	padding: 1.5rem 1.35rem 1.75rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.comments-title,
.comment-reply-title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
}

.comment-list .children {
	margin-left: 1rem;
	padding-left: 0;
	list-style: none;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
}

.comment-author {
	font-weight: 600;
	color: var(--color-text);
}

.comment-author img {
	border-radius: 50%;
	margin-right: 0.5rem;
}

.comment-metadata {
	font-size: 0.8rem;
	margin: 0.25rem 0 0.75rem;
}

.comment-metadata a {
	color: var(--color-text-muted);
}

.comment-content {
	color: var(--color-text-muted);
}

.comment-respond {
	margin-top: 0.5rem;
}

.comment-form p {
	margin-bottom: 0.85rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	background: var(--color-bg-soft);
}

.comment-form input:focus,
.comment-form textarea:focus {
	background: var(--color-surface);
	border-color: var(--color-primary);
}

.no-comments {
	margin: 0;
	color: var(--color-text-muted);
}

.error-404 {
	padding: var(--space-3xl) 0;
	text-align: center;
	max-width: 36rem;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.why-free-card {
		flex-direction: row;
		padding: 2.25rem 2.5rem;
	}

	.cta-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 1.75rem 2rem;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.post-navigation .nav-links {
		flex-direction: row;
		justify-content: space-between;
	}

	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		flex: 1;
	}

	.alignleft {
		float: left;
		margin: 0 1rem 0.75rem 0;
	}

	.alignright {
		float: right;
		margin: 0 0 0.75rem 1rem;
	}
}

@media (min-width: 900px) {
	.category-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.tools-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.container {
		padding: 0 1rem;
	}

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

	.main-navigation .menu {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.75rem 1rem 1.25rem;
		background: var(--color-surface);
		box-shadow: var(--shadow-header);
	}

	.main-navigation .menu.toggled {
		display: flex;
	}

	.main-navigation .menu a {
		display: block;
		padding: 0.7rem 0;
		border-bottom: 1px solid var(--color-border);
	}

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

	.hero-section {
		padding: 2.5rem 0 1.75rem;
	}

	.trust-stats {
		flex-direction: column;
		align-items: flex-start;
		max-width: 16rem;
		margin: 0 auto;
	}

	.search-form,
	.widget-area .wp-block-search__inside-wrapper {
		flex-direction: column;
	}

	.search-form-label,
	.search-submit,
	.widget-area .wp-block-search__input,
	.widget-area .wp-block-search__button {
		width: 100%;
		flex: 1 1 auto;
	}

	.alignleft,
	.alignright {
		float: none;
		display: block;
		margin: 0 0 1rem;
	}

	.cta-banner h2 {
		font-size: 1.15rem;
	}

	.entry-body,
	.comments-area {
		padding: 1.15rem 1rem 1.35rem;
	}

	.comment-list .children {
		margin-left: 0.75rem;
	}
}

/* --------------------------------------------------------------------------
   Page Full-Width Layout
   -------------------------------------------------------------------------- */
.site-main--page {
	padding: var(--space-xl) 0 var(--space-2xl);
}

.page-full-width {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.page-full-width-tool-wrapper {
	margin-bottom: var(--space-xl);
}

.page-full-width-entry {
	margin: 0;
}

.page-full-width-wrapper {
	width: 100%;
}

.page-full-width-thumbnail {
	width: 100%;
	margin-bottom: var(--space-xl);
}

.page-full-width-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-md);
}

.page-full-width-content {
	width: 100%;
}

.page-full-width-header {
	margin-bottom: var(--space-lg);
}

.page-full-width-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 var(--space-md);
	color: var(--color-text);
	line-height: 1.2;
}

.page-full-width-body {
	color: var(--color-text-muted);
	line-height: 1.7;
}

.page-full-width-body > *:first-child {
	margin-top: 0;
}

.page-full-width-body > *:last-child {
	margin-bottom: 0;
}

.page-full-width-body h2,
.page-full-width-body h3,
.page-full-width-body h4,
.page-full-width-body h5,
.page-full-width-body h6 {
	color: var(--color-text);
	margin-top: var(--space-xl);
	margin-bottom: var(--space-md);
}

.page-full-width-body h2 {
	font-size: 1.75rem;
}

.page-full-width-body h3 {
	font-size: 1.5rem;
}

.page-full-width-body h4 {
	font-size: 1.25rem;
}

.page-full-width-body p {
	margin-bottom: var(--space-md);
}

.page-full-width-body ul,
.page-full-width-body ol {
	margin-bottom: var(--space-md);
	padding-left: 1.5rem;
}

.page-full-width-body li {
	margin-bottom: 0.5rem;
}

.page-full-width-body a {
	color: var(--color-primary);
	text-decoration: none;
}

.page-full-width-body a:hover {
	text-decoration: underline;
}

.page-full-width-body blockquote {
	margin: var(--space-lg) 0;
	padding: var(--space-md) var(--space-lg);
	border-left: 4px solid var(--color-primary);
	background: var(--color-bg-soft);
	color: var(--color-text-muted);
}

.page-full-width-body pre,
.page-full-width-body code {
	background: var(--color-bg-soft);
	padding: 0.1rem 0.3rem;
	border-radius: 4px;
	font-size: 0.9em;
}

.page-full-width-body pre {
	padding: var(--space-md);
	overflow-x: auto;
}

.page-full-width-body table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-md);
}

.page-full-width-body th,
.page-full-width-body td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

.page-full-width-body th {
	background: var(--color-bg-soft);
	font-weight: 600;
	color: var(--color-text);
}

.page-full-width-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: var(--space-md) 0;
}

@media (min-width: 960px) {
	.site-main--page {
		padding: var(--space-2xl) 0 var(--space-3xl);
	}

	.page-full-width-title {
		font-size: 2.75rem;
	}
}

@media (max-width: 639px) {
	.site-main--page {
		padding: var(--space-lg) 0 var(--space-xl);
	}

	.page-full-width {
		padding: 0 1rem;
	}

	.page-full-width-title {
		font-size: 1.75rem;
	}

	.page-full-width-body {
		font-size: 1rem;
	}

	.page-full-width-body h2 {
		font-size: 1.5rem;
	}

	.page-full-width-body h3 {
		font-size: 1.25rem;
	}

	.page-full-width-body h4 {
		font-size: 1.1rem;
	}
}
