/*
Theme Name: PureDesk
Theme URI: https://puredesk.example/theme
Author: PureDesk
Author URI: https://puredesk.example
Description: Dedicated minimal starter theme for the PureDesk support plugin. It supplies the header, footer, typography, spacing and a neutral full-width container only — the ticket/support interface stays entirely owned by the PureDesk plugin. No blog, no widgets, no page builder, no options framework.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puredesk
Tags: custom-logo, custom-menu, full-width-template, translation-ready
*/

/* -----------------------------------------------------------------------------
   Tokens
   All custom properties are prefixed --pdt- so they can never collide with
   PureDesk plugin variables (--pd-*).
   -------------------------------------------------------------------------- */

:root {
	--pdt-canvas: #f6f7f9;
	--pdt-surface: #ffffff;
	--pdt-inset: #fafbfc;
	--pdt-border: #e5e7ee;
	--pdt-border-strong: #d5d8e3;
	--pdt-ink: #121420;
	--pdt-ink-2: #40465c;
	--pdt-muted: #6b7183;
	--pdt-accent: #2553f6;
	--pdt-accent-ink: #ffffff;
	--pdt-tint: #eef2fe;
	--pdt-online: #16a34a;
	--pdt-shadow: 0 1px 2px rgba(18, 20, 32, .05);
	--pdt-logo-filter: none;

	--pdt-container: 1200px;
	--pdt-gutter: clamp(16px, 4vw, 32px);
	--pdt-radius: 6px;
	--pdt-radius-lg: 8px;
	--pdt-header-h: 68px;

	--pdt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pdt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--pdt-canvas: #0b0c12;
		--pdt-surface: #12141c;
		--pdt-inset: #0f111a;
		--pdt-border: #23263a;
		--pdt-border-strong: #2e3248;
		--pdt-ink: #eceef5;
		--pdt-ink-2: #b9bfd0;
		--pdt-muted: #8a90a4;
		--pdt-accent: #4f76ff;
		--pdt-tint: #171d33;
		--pdt-online: #22c55e;
		--pdt-shadow: 0 1px 2px rgba(0, 0, 0, .4);
		--pdt-logo-filter: invert(1) hue-rotate(180deg) saturate(1.1);
	}
}

/* Opt out of the dark scheme entirely: add the pdt-light-only body class
   (see puredesk_body_classes() in functions.php). */
.pdt-light-only {
	--pdt-canvas: #f6f7f9;
	--pdt-surface: #ffffff;
	--pdt-inset: #fafbfc;
	--pdt-border: #e5e7ee;
	--pdt-border-strong: #d5d8e3;
	--pdt-ink: #121420;
	--pdt-ink-2: #40465c;
	--pdt-muted: #6b7183;
	--pdt-accent: #2553f6;
	--pdt-tint: #eef2fe;
	--pdt-shadow: 0 1px 2px rgba(18, 20, 32, .05);
	--pdt-logo-filter: none;
}

/* -----------------------------------------------------------------------------
   Base
   Deliberately shallow: no bare element rules that could reach into plugin
   markup beyond inherited font and colour.
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body.pdt-body {
	margin: 0;
	background: var(--pdt-canvas);
	color: var(--pdt-ink);
	font-family: var(--pdt-font);
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: -.006em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color-scheme: light dark;
	overflow-x: hidden;
}

body.pdt-light-only {
	color-scheme: light;
}

.pdt-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.pdt-container {
	width: 100%;
	max-width: var(--pdt-container);
	margin: 0 auto;
	padding-left: var(--pdt-gutter);
	padding-right: var(--pdt-gutter);
}

.pdt-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 10px 16px;
	background: var(--pdt-surface);
	color: var(--pdt-accent);
	font-size: 14px;
	font-weight: 600;
	border-radius: 0 0 var(--pdt-radius) 0;
}

.pdt-skip-link:focus {
	left: 0;
	outline: 2px solid var(--pdt-accent);
	outline-offset: 2px;
}

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

.pdt-site a {
	text-decoration: none;
}

.pdt-site a:hover {
	
}

.pdt-site a:focus-visible,
.pdt-site button:focus-visible {
	outline: 2px solid var(--pdt-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.pdt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pdt-surface);
	border-bottom: 1px solid var(--pdt-border);
	box-shadow: var(--pdt-shadow);
}

.pdt-no-sticky .pdt-header {
	position: static;
}

.pdt-header__bar {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	height: var(--pdt-header-h);
}

.pdt-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	height: var(--pdt-header-h);
}

.pdt-brand img {
	display: block;
	width: auto;
	height: 22px;
	max-width: 200px;
	filter: var(--pdt-logo-filter);
}

.pdt-brand__text {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--pdt-ink);
}

.pdt-nav {
	margin-right: auto;
}

.pdt-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pdt-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--pdt-radius);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--pdt-ink-2);
	transition: background .14s ease, color .14s ease;
}

.pdt-nav a:hover,
.pdt-nav .current-menu-item > a,
.pdt-nav .current_page_item > a {
	background: var(--pdt-tint);
	color: var(--pdt-accent);
}

.pdt-nav .sub-menu {
	display: none;
}

.pdt-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.pdt-link-quiet {
	padding: 9px 12px;
	border-radius: var(--pdt-radius);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--pdt-ink-2);
	white-space: nowrap;
}

.pdt-link-quiet:hover {
	color: var(--pdt-accent);
}

.pdt-btn {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--pdt-radius);
	background: var(--pdt-accent);
	color: var(--pdt-accent-ink);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -.004em;
	white-space: nowrap;
	cursor: pointer;
	transition: background .14s ease;
}

.pdt-btn:hover {
	background: color-mix(in oklab, var(--pdt-accent), #000 16%);
	color: var(--pdt-accent-ink);
}

.pdt-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border: 0;
	border-radius: var(--pdt-radius);
	background: transparent;
	color: var(--pdt-ink);
	cursor: pointer;
}

.pdt-menu-toggle:hover {
	background: var(--pdt-tint);
}

.pdt-menu-toggle__bars {
	display: block;
	width: 18px;
	height: 10px;
	border-top: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
}

.pdt-menu-toggle[aria-expanded="true"] .pdt-menu-toggle__bars {
	height: 0;
	border-bottom-color: transparent;
}

.pdt-mobile-nav {
	display: none;
	border-top: 1px solid var(--pdt-border);
	background: var(--pdt-surface);
	padding-top: 8px;
	padding-bottom: 16px;
}

.pdt-mobile-nav.is-open {
	display: block;
}

.pdt-mobile-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pdt-mobile-nav li + li a,
.pdt-mobile-nav .pdt-mobile-nav__extra {
	border-top: 1px solid var(--pdt-border);
}

.pdt-mobile-nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	font-size: 16px;
	font-weight: 500;
	color: var(--pdt-ink);
}

@media (max-width: 879px) {
	.pdt-nav,
	.pdt-header__actions .pdt-link-quiet {
		display: none;
	}

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

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

/* -----------------------------------------------------------------------------
   Main / page head
   -------------------------------------------------------------------------- */

.pdt-main {
	flex: 1 1 auto;
	width: 100%;
	padding-top: clamp(24px, 4vw, 40px);
	padding-bottom: clamp(40px, 6vw, 72px);
}

.pdt-page-head {
	margin-bottom: 22px;
}

.pdt-breadcrumb {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--pdt-muted);
}

.pdt-breadcrumb a {
	color: var(--pdt-muted);
}

.pdt-breadcrumb a:hover {
	color: var(--pdt-accent);
}

.pdt-breadcrumb__sep {
	opacity: .6;
}

.pdt-breadcrumb__current {
	color: var(--pdt-ink-2);
}

.pdt-page-title {
	margin: 0;
	font-size: clamp(24px, 3.4vw, 30px);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -.022em;
	color: var(--pdt-ink);
}

.pdt-page-sub {
	margin: 8px 0 0;
	max-width: 62ch;
	font-size: 15.5px;
	color: var(--pdt-muted);
	text-wrap: pretty;
}

/* The plugin surface. A frame and nothing else — no descendant selectors,
   so PureDesk markup inside keeps its own styles untouched. */
.pdt-surface {
	border: 1px solid var(--pdt-border);
	border-radius: var(--pdt-radius-lg);
	background: var(--pdt-surface);
	box-shadow: var(--pdt-shadow);
	padding: clamp(16px, 2.5vw, 24px);
}

.pdt-surface--flush {
	padding: 0;
	overflow: hidden;
}

.pdt-empty {
	padding: clamp(32px, 6vw, 64px) 24px;
	text-align: center;
	color: var(--pdt-muted);
	font-size: 15px;
}

.pdt-empty code {
	font-family: var(--pdt-mono);
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 5px;
	background: var(--pdt-tint);
	color: var(--pdt-accent);
}

/* Typography for theme-authored pages only (never plugin output). */
.pdt-entry-content > h2 {
	margin: 1.6em 0 .5em;
	font-size: 21px;
	font-weight: 650;
	letter-spacing: -.014em;
}

.pdt-entry-content > h3 {
	margin: 1.4em 0 .4em;
	font-size: 17px;
	font-weight: 650;
}

.pdt-entry-content > p,
.pdt-entry-content > ul,
.pdt-entry-content > ol {
	margin: 0 0 1em;
	max-width: 72ch;
	color: var(--pdt-ink-2);
	font-size: 15.5px;
	text-wrap: pretty;
}

.pdt-entry-content > *:first-child {
	margin-top: 0;
}

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

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.pdt-footer {
	border-top: 1px solid var(--pdt-border);
	background: var(--pdt-surface);
}

.pdt-footer__inner {
	padding-top: clamp(28px, 4vw, 40px);
}

.pdt-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px clamp(32px, 5vw, 64px);
	align-items: start;
}

.pdt-footer__brand {
	max-width: 340px;
}

.pdt-footer__brand img {
	display: block;
	width: auto;
	height: 20px;
	max-width: 180px;
	margin-bottom: 12px;
	filter: var(--pdt-logo-filter);
}

.pdt-footer__tagline {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: var(--pdt-muted);
	text-wrap: pretty;
}

.pdt-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.pdt-status__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pdt-online);
	flex: 0 0 auto;
}

.pdt-status__label {
	font-weight: 500;
	color: var(--pdt-ink-2);
}

.pdt-status__note {
	color: var(--pdt-muted);
}

.pdt-contact {
	min-width: 0;
}

@media (min-width: 880px) {
	.pdt-contact {
		grid-column: span 2;
	}
}

.pdt-contact__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-bottom: 12px;
}

.pdt-contact__title {
	margin: 0;
	font-size: 12.5px;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pdt-ink-2);
}

.pdt-contact__hours {
	font-size: 12.5px;
	color: var(--pdt-muted);
}

.pdt-channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
	gap: 8px;
}

.pdt-channel {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 56px;
	padding: 9px 12px;
	border: 1px solid var(--pdt-border);
	border-radius: 7px;
	background: var(--pdt-inset);
	transition: border-color .14s ease, background .14s ease;
}

.pdt-channel:hover {
	border-color: var(--pdt-accent);
	background: var(--pdt-tint);
}

.pdt-channel__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: var(--pdt-radius);
	background: var(--pdt-tint);
	color: var(--pdt-accent);
}

.pdt-channel__icon svg {
	display: block;
}

.pdt-channel__text {
	min-width: 0;
}

.pdt-channel__label {
	display: block;
	font-size: 12px;
	line-height: 1.3;
	color: var(--pdt-muted);
}

.pdt-channel__value {
	display: block;
	font-size: 14px;
	font-weight: 550;
	line-height: 1.35;
	color: var(--pdt-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pdt-social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.pdt-social__label {
	margin-right: 2px;
	font-size: 12.5px;
	color: var(--pdt-muted);
}

.pdt-social a {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 11px;
	border: 1px solid var(--pdt-border);
	border-radius: 15px;
	font-size: 13px;
	font-weight: 500;
	color: var(--pdt-ink-2);
	transition: border-color .14s ease, color .14s ease;
}

.pdt-social a:hover {
	border-color: var(--pdt-accent);
	color: var(--pdt-accent);
}

.pdt-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: clamp(24px, 4vw, 36px);
	padding: 18px 0;
	border-top: 1px solid var(--pdt-border);
}

.pdt-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--pdt-muted);
}

.pdt-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.pdt-footer__legal a {
	font-size: 13px;
	color: var(--pdt-muted);
}

.pdt-footer__legal a:hover {
	color: var(--pdt-accent);
}

/* -----------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.pdt-site *,
	.pdt-site *::before,
	.pdt-site *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* WordPress admin bar offset for the sticky header. */
body.admin-bar .pdt-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .pdt-header {
		top: 46px;
	}
}
