/* ==========================================================================
   JobDriveNow — main stylesheet
   Colour tokens match the original app (Tailwind/shadcn HSL variables).
   ========================================================================== */

:root {
	--background: 0 0% 100%;
	--foreground: 0 0% 3.9%;
	--card: 0 0% 100%;
	--primary: 227 100% 59%;
	--primary-foreground: 0 0% 100%;
	--muted: 0 0% 96.1%;
	--muted-foreground: 0 0% 45.1%;
	--border: 0 0% 89.8%;
	--input: 0 0% 89.8%;
	--destructive: 0 84.2% 60.2%;
	--success: 142 71% 35%;
	--radius: 0.5rem;
	--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 80rem;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	color-scheme: light;
}

html[data-theme="dark"] {
	--background: 0 0% 3.9%;
	--foreground: 0 0% 98%;
	--card: 0 0% 3.9%;
	--muted: 0 0% 14.9%;
	--muted-foreground: 0 0% 63.9%;
	--border: 0 0% 14.9%;
	--input: 0 0% 14.9%;
	--destructive: 0 62.8% 50%;
	--success: 142 60% 50%;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html[data-theme="system"] {
		--background: 0 0% 3.9%;
		--foreground: 0 0% 98%;
		--card: 0 0% 3.9%;
		--muted: 0 0% 14.9%;
		--muted-foreground: 0 0% 63.9%;
		--border: 0 0% 14.9%;
		--input: 0 0% 14.9%;
		--destructive: 0 62.8% 50%;
		--success: 142 60% 50%;
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
svg.icon { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid hsl(var(--primary) / .5); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100; top: .5rem; left: .5rem;
	padding: .75rem 1rem; background: hsl(var(--primary)); color: #fff; border-radius: .5rem;
}

/* ---------- Layout ---------- */
.site { display: flex; min-height: 100vh; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.container-3xl { max-width: 48rem; }
.container-2xl { max-width: 42rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4rem 0; }
@media (min-width: 640px) { .section-lg { padding: 5rem 0; } }
.bg-muted { background: hsl(var(--muted) / .3); }
.bg-primary-soft { background: hsl(var(--primary) / .05); }
.scroll-mt { scroll-margin-top: 5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-tight { gap: 1rem; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--primary)); }
.eyebrow-muted { color: hsl(var(--muted-foreground)); }
.h-display { margin-top: .75rem; font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .h-display { font-size: 3rem; } }
@media (min-width: 1024px) { .h-display.h-xl { font-size: 3.75rem; } }
.h-section { margin-top: .5rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .h-section { font-size: 2.25rem; } }
.h-sub { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .h-sub { font-size: 1.875rem; } }
.lead { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.intro { margin-top: .75rem; max-width: 42rem; color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-14 { margin-top: 3.5rem; }

.section-head { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 640px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head .text-sm { max-width: 28rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 2.75rem; padding: 0 2rem; border-radius: .75rem;
	font-size: .875rem; font-weight: 500; white-space: nowrap; cursor: pointer;
	background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
	border: 1px solid transparent; box-shadow: var(--shadow-sm);
	transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: hsl(var(--primary) / .9); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn .icon { width: 1.25rem; height: 1.25rem; }
.btn-lg { height: 3rem; font-size: 1rem; }
.btn-xl { height: 3.5rem; font-size: 1rem; }
.btn-outline { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--input)); }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn-sm { height: 2.25rem; padding: 0 1rem; }
.btn-row { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

.link-arrow { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; color: hsl(var(--primary)); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform .15s; }
.link-inline { color: hsl(var(--primary)); text-underline-offset: 4px; }
.link-inline:hover { text-decoration: underline; }

/* ---------- Cards / chips ---------- */
.card {
	border: 1px solid hsl(var(--border)); border-radius: 1rem;
	background: hsl(var(--card)); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .15s, border-color .15s, box-shadow .15s; }
.card-hover:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / .4); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 600; }
.card h3:first-child { margin-top: 0; }
.card p { margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.icon-tile {
	display: flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; border-radius: .75rem;
	background: hsl(var(--primary) / .1); color: hsl(var(--primary));
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }
.chip {
	display: inline-flex; align-items: center; gap: .25rem; border-radius: 9999px;
	padding: .25rem .75rem; font-size: .75rem; font-weight: 500; background: hsl(var(--muted));
}
.chip .icon { width: .75rem; height: .75rem; }
.chip-primary { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-weight: 600; }
.chip-lg { font-size: .875rem; gap: .375rem; }
.chip-lg .icon { width: 1rem; height: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; } .line-clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40; width: 100%;
	border-bottom: 1px solid hsl(var(--border) / .6);
	background: hsl(var(--background) / .8);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.brand img, .brand .custom-logo, .brand svg { width: 2rem; height: 2rem; border-radius: .5rem; object-fit: contain; }
.brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .brand-name { font-size: 1.25rem; } }
.brand-name .accent { color: hsl(var(--primary)); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a { font-size: .875rem; font-weight: 500; color: hsl(var(--muted-foreground)); transition: color .15s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a:not([href*="#"]) { color: hsl(var(--foreground)); }
.primary-nav .sub-menu { display: none; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; color: hsl(var(--muted-foreground)); }
.cart-link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.cart-link .icon { width: 1.25rem; height: 1.25rem; }
.cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem;
	border-radius: 9999px; background: hsl(var(--primary)); color: #fff;
	font-size: .6875rem; font-weight: 700; line-height: 1.125rem; text-align: center;
}
.cart-count.is-empty { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .375rem; cursor: pointer; color: hsl(var(--foreground)); border-radius: .5rem; }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }

@media (max-width: 899px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 4rem;
		background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border));
		padding: .5rem 1rem 1rem; box-shadow: var(--shadow-md);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav a { display: block; padding: .75rem 0; font-size: 1rem; border-bottom: 1px solid hsl(var(--border) / .6); }
	.primary-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle { display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .5); padding: .25rem; }
.theme-toggle button { border: 0; background: transparent; border-radius: 9999px; padding: .375rem; cursor: pointer; color: hsl(var(--muted-foreground)); transition: color .15s, background-color .15s; display: inline-flex; }
.theme-toggle button:hover { color: hsl(var(--foreground)); }
.theme-toggle button[aria-pressed="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.theme-toggle .icon { width: 1rem; height: 1rem; }
@media (max-width: 479px) { .theme-toggle { display: none; } .primary-nav .theme-toggle-mobile { display: inline-flex; margin-top: .75rem; } }
.theme-toggle-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow { pointer-events: none; position: absolute; right: -6rem; top: -6rem; width: 24rem; height: 24rem; border-radius: 9999px; background: hsl(var(--primary) / .1); filter: blur(64px); }
.hero-inner { position: relative; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero-inner { padding-top: 6rem; padding-bottom: 6rem; } }
.hero .btn-row { margin-top: 2rem; }

/* ---------- Trusted by ---------- */
.trusted { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.trusted .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.trusted p { text-align: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.brands { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem; }
@media (min-width: 640px) { .brands { column-gap: 3.5rem; } }
.brands span { font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; color: hsl(var(--muted-foreground) / .6); }
@media (min-width: 640px) { .brands span { font-size: 1.5rem; } }
.brands li { display: flex; align-items: center; }
.brands .brand-logo { display: block; height: 2.5rem; width: auto; max-width: 9rem; object-fit: contain; transition: transform .2s; }
.brands .brand-logo:hover { transform: scale(1.05); }
@media (min-width: 640px) { .brands .brand-logo { height: 3rem; max-width: 10.5rem; } }
html[data-theme="dark"] .brands .brand-logo { background: #fff; padding: .4rem .75rem; border-radius: .5rem; box-sizing: content-box; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .brands .brand-logo { background: #fff; padding: .4rem .75rem; border-radius: .5rem; box-sizing: content-box; } }

/* ---------- Stats ---------- */
.stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.card .stat-label { margin-top: 0; }
.stat-value, .card .stat-value { margin-top: .75rem; color: hsl(var(--foreground)); font-size: 2.25rem; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.progress { margin-top: 1.25rem; height: .375rem; width: 100%; overflow: hidden; border-radius: 9999px; background: hsl(var(--muted)); }
.progress > span { display: block; height: 100%; border-radius: 9999px; background: hsl(var(--primary)); }
.card .stat-foot, .stat-foot { margin-top: .75rem; display: flex; align-items: center; justify-content: space-between; font-size: .75rem; }
.stat-foot .pct { font-weight: 500; color: hsl(var(--primary)); }
.stats .card { box-shadow: none; }
.bars { margin-top: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar-area { position: relative; display: flex; height: 10rem; width: 100%; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-forecast { position: absolute; left: 0; right: 0; border-top: 2px dashed hsl(var(--primary)); }
.bar-display { margin-bottom: .25rem; font-size: .625rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.bar { width: 100%; border-radius: .375rem .375rem 0 0; background: hsl(var(--muted-foreground) / .25); }
.bar.is-current { background: hsl(var(--primary)); }
.bar-year { margin-top: .5rem; font-size: .625rem; color: hsl(var(--muted-foreground)); }

/* ---------- Contact ---------- */
.contact-card h3, .footer-col h3 { margin: 0; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-card .note, .footer-col .note { margin-top: .25rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.contact-line { margin-top: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsl(var(--foreground)); word-break: break-word; }
.contact-line:hover { color: hsl(var(--primary)); }
.contact-line .icon { width: 1rem; height: 1rem; }
.contact-line.first { margin-top: .75rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .3); }
.site-footer > .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.site-footer .h-sub { font-size: 1.5rem; }
.footer-grid { margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-address { margin-top: .75rem; display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.footer-address .icon { margin-top: .125rem; width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid hsl(var(--border)); padding-top: 1.5rem; }
.footer-row { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; }
.footer-nav a { color: hsl(var(--muted-foreground)); transition: color .15s; }
.footer-nav a:hover { color: hsl(var(--primary)); }
.socials { display: flex; align-items: center; gap: 1rem; }
.socials a { color: hsl(var(--muted-foreground)); transition: color .15s; }
.socials a:hover { color: hsl(var(--primary)); }
.socials .icon { width: 1.25rem; height: 1.25rem; }
.copyright { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .copyright { flex-direction: row; } }

.chat-fab {
	position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
	display: flex; align-items: center; justify-content: center;
	width: 3.5rem; height: 3.5rem; border-radius: 9999px;
	background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
	box-shadow: var(--shadow-lg); transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Jobs ---------- */
.search-form { margin-top: 2rem; display: flex; max-width: 42rem; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .search-form { flex-direction: row; } }
.search-field { position: relative; flex: 1; }
.search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; color: hsl(var(--muted-foreground)); pointer-events: none; }
.search-field input { height: 3.5rem; padding-left: 3rem; border-radius: .75rem; font-size: 1rem; }
.pill-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { border-radius: 9999px; padding: .375rem 1rem; font-size: .875rem; font-weight: 500; background: hsl(var(--muted)); color: hsl(var(--foreground)); transition: background-color .15s; }
.pill:hover { background: hsl(var(--muted) / .7); }
.pill.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.jobs-toolbar { display: flex; flex-direction: column; gap: 1rem; border-bottom: 1px solid hsl(var(--border)); padding-bottom: 1rem; }
@media (min-width: 640px) { .jobs-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.jobs-toolbar h2 { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.sort { display: flex; align-items: center; gap: .5rem; }
.segmented { display: inline-flex; border-radius: 9999px; background: hsl(var(--muted)); padding: .25rem; }
.segmented a { border-radius: 9999px; padding: .375rem 1rem; font-size: .875rem; font-weight: 500; }
.segmented a.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.jobs-list { padding-bottom: 5rem; }
.job-card { display: flex; flex-direction: column; padding: 1.25rem; }
.job-card h3 { margin: 0; }
.job-card .chip-row { margin-top: 1rem; }
.job-card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid hsl(var(--border) / .6); }
.job-card .chip-row + .job-card-foot { margin-top: 1.25rem; }
.job-card:hover .link-arrow .icon { transform: translateX(2px); }
.empty-state { margin-top: 2.5rem; text-align: center; color: hsl(var(--muted-foreground)); }

.back-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.back-link:hover { color: hsl(var(--foreground)); }
.back-link .icon { width: 1rem; height: 1rem; }
.page-narrow { padding-top: 3rem; padding-bottom: 3rem; }
.job-title { margin-top: 1.5rem; font-size: 1.875rem; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .job-title { font-size: 2.25rem; } }
.job-desc { margin-top: 2rem; font-size: 1.125rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.job-desc > * + * { margin-top: 1rem; }
.panel { margin-top: 2rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--muted) / .4); padding: 1.5rem; }
.panel h2, .panel h3 { font-size: 1.125rem; font-weight: 600; }
.panel ul { margin-top: .75rem; list-style: none; display: grid; gap: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.panel p { margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* ---------- Forms ---------- */
.input, .dsh-form input[type="text"], .dsh-form input[type="email"], .dsh-form input[type="tel"], .dsh-form input[type="date"], .dsh-form select {
	display: flex; width: 100%; height: 2.5rem; border-radius: .375rem;
	border: 1px solid hsl(var(--input)); background: transparent; padding: .25rem .75rem;
	font-size: .875rem; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.dsh-form select { appearance: none; -webkit-appearance: none; padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .625rem center; }
.dsh-form select option { background: hsl(var(--background)); color: hsl(var(--foreground)); }
.input:focus, .dsh-form input:focus, .dsh-form select:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .2); }
.dsh-form { display: grid; gap: 2rem; }
.form-card { border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--card)); box-shadow: var(--shadow-sm); }
.form-card > h2 { padding: 1.5rem 1.5rem 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.form-card-body { padding: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-card-body.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.form-card-body .cols-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-card-body .cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: .375rem; align-content: start; }
.field label, .field .label { font-size: .875rem; font-weight: 500; line-height: 1.25; }
.field .req { color: hsl(var(--destructive)); }
.field .hint { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.field .error { font-size: .75rem; color: hsl(var(--destructive)); }
.field.has-error input, .field.has-error select { border-color: hsl(var(--destructive)); }
.phone-row { display: flex; gap: .5rem; }
.phone-row select { width: 6rem; flex-shrink: 0; }
.phone-row input { flex: 1; }
.field-end { display: flex; align-items: flex-end; }
.file-drop { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border: 2px dashed hsl(var(--input)); border-radius: .75rem; background: hsl(var(--muted) / .35); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-dragover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .06); }
.file-drop.has-file { border-style: solid; border-color: hsl(var(--primary)); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop input[type="file"]:focus-visible + .file-drop-icon { outline: 2px solid hsl(var(--primary)); outline-offset: 4px; border-radius: 50%; }
.file-drop-icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.file-drop-text { font-size: .9375rem; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.file-drop-text strong { color: hsl(var(--foreground)); font-weight: 600; }
.field.has-error .file-drop { border-color: hsl(var(--destructive)); }
.radio-card { display: flex; gap: .75rem; border: 1px solid hsl(var(--border)); border-radius: .5rem; padding: 1rem; cursor: pointer; }
.radio-card input { margin-top: .2rem; accent-color: hsl(var(--primary)); width: 1rem; height: 1rem; flex-shrink: 0; }
.radio-card:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .05); }
.radio-card strong { display: block; font-weight: 500; }
.radio-card span span { display: block; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.notice-box { border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--muted) / .4); padding: 1.5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.notice-box h3 { font-size: 1rem; font-weight: 600; color: hsl(var(--foreground)); }
.notice-box p { margin-top: .5rem; }
.form-alert { border: 1px solid hsl(var(--destructive) / .4); background: hsl(var(--destructive) / .08); color: hsl(var(--destructive)); border-radius: .75rem; padding: 1rem 1.25rem; font-size: .875rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.success-card { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1.5rem; text-align: center; }
.success-card .icon { width: 3rem; height: 3rem; color: hsl(var(--primary)); }
.success-card h2 { font-size: 1.25rem; font-weight: 600; }
.success-card p { max-width: 28rem; color: hsl(var(--muted-foreground)); }

/* ---------- Static pages / prose ---------- */
.static-page { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .static-page { padding-top: 6rem; padding-bottom: 6rem; } }
.entry-content { margin-top: 2.5rem; line-height: 1.625; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 700; }
.entry-content h2 + * { margin-top: .75rem; }
.entry-content h3 { margin-top: 2rem; font-size: 1.125rem; font-weight: 600; }
.entry-content p, .entry-content li { color: hsl(var(--muted-foreground)); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; display: grid; gap: .25rem; }
.entry-content ul { list-style: disc; }
.entry-content a { color: hsl(var(--primary)); text-underline-offset: 4px; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { border-radius: .75rem; }
.entry-content blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid hsl(var(--primary)); }
.entry-content .wp-block-columns { gap: 1rem; }
.entry-content .wp-block-group.is-style-dsh-card,
.entry-content .dsh-topic { border: 1px solid hsl(var(--border)); border-radius: .5rem; background: hsl(var(--card)); padding: 1.25rem; }
.entry-content .dsh-topic h3, .entry-content .dsh-topic h2 { margin-top: 0; font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); }
.entry-content .dsh-topic p { margin-top: .5rem; font-size: .875rem; }
.entry-content .dsh-topics { display: grid; gap: 1rem; }
@media (min-width: 640px) { .entry-content .dsh-topics { grid-template-columns: repeat(2, 1fr); } }
.entry-content .dsh-help { border: 1px solid hsl(var(--border)); border-radius: .5rem; background: hsl(var(--muted) / .3); padding: 1.5rem; }
.entry-content .dsh-help h2 { margin-top: 0; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
/* Blog article extras: key takeaways, table of contents, figures, FAQ, call to action */
.entry-content h2[id] { scroll-margin-top: 6rem; }
.entry-content .dsh-takeaways { border: 1px solid hsl(var(--primary) / .25); border-left: 4px solid hsl(var(--primary)); border-radius: .75rem; background: hsl(var(--primary) / .06); padding: 1.25rem 1.5rem; }
.entry-content .dsh-takeaways h3 { margin-top: 0; color: hsl(var(--foreground)); }
.entry-content .dsh-takeaways ul { margin-top: .75rem; }
.entry-content .dsh-takeaways li { color: hsl(var(--foreground)); }
.entry-content .dsh-toc { border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--muted) / .4); padding: 1.25rem 1.5rem; }
.entry-content .dsh-toc p { margin: 0; color: hsl(var(--foreground)); }
.entry-content .dsh-toc ol { margin-top: .75rem; list-style: decimal; }
.entry-content .dsh-toc a { color: hsl(var(--foreground)); text-decoration: none; }
.entry-content .dsh-toc a:hover { color: hsl(var(--primary)); text-decoration: underline; }
.entry-content figure { margin: 2rem 0 0; }
.entry-content figure img { width: 100%; height: auto; display: block; }
.entry-content figcaption { margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); text-align: center; }
.entry-content details { border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1rem 1.25rem; background: hsl(var(--card)); }
.entry-content details + details { margin-top: .75rem; }
.entry-content summary { cursor: pointer; font-weight: 600; color: hsl(var(--foreground)); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; color: hsl(var(--primary)); }
.entry-content details[open] summary::after { content: "\2212"; }
.entry-content details p { margin-top: .75rem; }
.entry-content .dsh-cta { margin-top: 2.5rem; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: hsl(var(--primary)) !important; border: 1px solid hsl(var(--primary)); }
.wp-block-button__link { background: hsl(var(--primary)); color: #fff !important; border-radius: .75rem; padding: .75rem 1.5rem; font-weight: 500; text-decoration: none !important; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-card h2, .post-card h3 { margin-top: .5rem; font-size: 1.125rem; font-weight: 600; }
.post-card .link-arrow { margin-top: 1rem; }
.post-list { margin-top: 2.5rem; display: grid; gap: 2rem; }
.post-list .post-card h2 { font-size: 1.25rem; }
.post-list .post-card p.excerpt { font-size: 1rem; }
.post-thumb { margin: -1.5rem -1.5rem 1.25rem; border-radius: 1rem 1rem 0 0; overflow: hidden; }
.post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-thumb { margin-top: 2rem; border-radius: 1rem; overflow: hidden; }
.pagination, .nav-links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nav-links .page-numbers { display: inline-flex; min-width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: 9999px; background: hsl(var(--muted)); font-size: .875rem; font-weight: 500; }
.nav-links .page-numbers.current { background: hsl(var(--primary)); color: #fff; }

/* Training (WooCommerce on the homepage) */
.training-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.training-card .thumb { aspect-ratio: 16/10; background: hsl(var(--primary) / .08); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.training-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.training-card .thumb .icon { width: 3rem; height: 3rem; }
.training-card .body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.training-card h3 { margin-top: .75rem; }
.training-card .price { margin-top: .75rem; font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
.training-card .price del { font-size: .875rem; font-weight: 400; color: hsl(var(--muted-foreground)); margin-right: .25rem; }
.training-card .price ins { text-decoration: none; }
.training-card .foot { margin-top: auto; padding-top: 1.25rem; }

/* Comments */
.comments-area { margin-top: 3rem; border-top: 1px solid hsl(var(--border)); padding-top: 2rem; }
.comments-area textarea { width: 100%; border: 1px solid hsl(var(--input)); border-radius: .5rem; padding: .75rem; background: transparent; }
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] { width: 100%; height: 2.5rem; border: 1px solid hsl(var(--input)); border-radius: .375rem; padding: 0 .75rem; background: transparent; }
.comments-area .submit { background: hsl(var(--primary)); color: #fff; border: 0; border-radius: .75rem; padding: .75rem 1.5rem; font-weight: 500; cursor: pointer; }
.comment-list { list-style: none; display: grid; gap: 1.25rem; }
.comment-list .children { list-style: none; margin-top: 1rem; padding-left: 1.5rem; }
