/*
Theme Name: DevOps Academy
Theme URI: https://devops-academy.local
Author: DevOps Academy
Description: Custom IT consultancy & mini-LMS theme, hand-coded on top of Tutor LMS and WooCommerce. Design system ported from the client's own reference prototype: light-default with a dark-mode toggle, blue primary (#0052FF), Inter + JetBrains Mono type, Swup.js-powered smooth navigation.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: devops-academy
*/

/* ==========================================================================
   Design tokens — Design System v2, ported from the reference prototype's
   assets/css/style.css. Mirrors the Tailwind config extension in
   functions.php so the same palette is available to any CSS that isn't
   Tailwind-utility-driven (content typed into the block editor).
   ========================================================================== */
:root {
	/* Light theme (default) */
	--bg-body: #FFFFFF;
	--bg-surface: #f7faf8;
	--bg-surface-elevated: #FFFFFF;
	--bg-surface-subtle: #f0f5f2;

	--border-subtle: #e1eae4;
	--border-strong: #c6d2ca;
	--border-focus: var(--primary);

	--text-primary: #122118;
	--text-secondary: #4d5b52;
	--text-muted: #657269;
	--text-inverse: #FFFFFF;

	--primary: #15803D;
	--primary-hover: #127136;
	--primary-subtle: #ecf5ef;
	--primary-glow: rgba(21, 128, 61, 0.20);
	--on-primary: #FFFFFF; /* text/icons placed on a primary-coloured background */

	--accent-cyan: #06B6D4;
	--accent-emerald: #10B981;
	--accent-amber: #F59E0B;
	--accent-rose: #F43F5E;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-full: 9999px;

	--shadow-card: 0 4px 6px -1px rgba(15, 23, 42, .05), 0 2px 4px -2px rgba(15, 23, 42, .05);
	--shadow-hover: 0 12px 24px -8px rgba(15, 23, 42, .12), 0 0 0 1px var(--primary-glow);

	--ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

	--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Dark theme — toggled by adding data-theme="dark" to <html>, persisted to
   localStorage (key: devops_theme) by the toggle script in header.php. */
:root[data-theme="dark"] {
	--bg-body: #101211;
	--bg-surface: #161918;
	--bg-surface-elevated: #1d211f;
	--bg-surface-subtle: #1d211f;

	--border-subtle: #2b302d;
	--border-strong: #3d4440;

	--text-primary: #f1f3f2;
	--text-secondary: #aab1ad;
	--text-muted: #858d88;

	--primary: #3fbf74;
	--primary-hover: #58d08a;
	--primary-subtle: rgba(63, 191, 116, 0.12);
	--primary-glow: rgba(63, 191, 116, 0.22);
	--on-primary: #08140d;

	--shadow-card: 0 4px 6px -1px rgba(0, 0, 0, .3), 0 2px 4px -2px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   Base reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background-color: var(--bg-body);
	color: var(--text-primary);
	font-family: var(--font-sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s var(--ease-smooth), color .25s var(--ease-smooth);
}

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

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

a:hover {
	text-decoration: underline;
}

code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
}

::selection {
	background-color: var(--primary);
	color: var(--on-primary);
}

:focus-visible {
	outline: 2px solid var(--border-focus);
	outline-offset: 2px;
}

/* ==========================================================================
   Accessibility: skip link
   ========================================================================== */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999999;
	padding: 0.75rem 1.25rem;
	background-color: var(--primary);
	color: var(--on-primary);
	font-weight: 600;
	border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

/* ==========================================================================
   Component patterns — ported from the reference prototype's hand-authored
   classes, so behavior/naming stays consistent with what the client already
   reviewed.
   ========================================================================== */
.btn-primary,
.btn-outline,
.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: var(--radius-full);
	transition: all .2s var(--ease-smooth);
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
}

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

.btn-primary:hover {
	background-color: var(--primary-hover);
	box-shadow: var(--shadow-hover);
	text-decoration: none;
}

.btn-outline {
	background-color: transparent;
	border-color: var(--border-strong);
	color: var(--text-primary);
}

.btn-outline:hover {
	border-color: var(--primary);
	color: var(--primary);
	text-decoration: none;
}

.btn-ghost {
	background-color: transparent;
	color: var(--text-secondary);
}

.btn-ghost:hover {
	color: var(--text-primary);
	text-decoration: none;
}

.card-pro {
	background-color: var(--bg-surface-elevated);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .25s var(--ease-smooth);
}

.card-pro:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
	border-color: var(--primary);
}

.badge-live {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.75rem;
	border-radius: var(--radius-full);
	background-color: var(--primary-subtle);
	color: var(--primary);
	font-size: 0.8125rem;
	font-weight: 600;
}

.pulse-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--radius-full);
	background-color: var(--accent-emerald);
	animation: da-pulse 2s var(--ease-smooth) infinite;
}

@keyframes da-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, .4); }
	50% { opacity: .7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Freeform content (About, Services, Corporate Training, legal pages —
   anything rendered via the_content()). Tailwind utility classes don't
   reach content typed into the block editor, so these are real CSS rules.
   ========================================================================== */
.da-prose {
	max-width: 72ch;
	color: var(--text-primary);
}

.da-prose h1,
.da-prose h2,
.da-prose h3,
.da-prose h4 {
	color: var(--text-primary);
	font-weight: 700;
	line-height: 1.25;
	margin-top: 2em;
	margin-bottom: 0.6em;
}

.da-prose h1 { font-size: 2.25rem; }

.da-prose h2 {
	font-size: 1.75rem;
	border-bottom: 1px solid var(--border-subtle);
	padding-bottom: 0.4em;
}

.da-prose h3 { font-size: 1.375rem; }

.da-prose p {
	margin: 0 0 1.25em;
	color: var(--text-secondary);
}

.da-prose ul,
.da-prose ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
	color: var(--text-secondary);
}

.da-prose li { margin-bottom: 0.5em; }

.da-prose a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.da-prose blockquote {
	margin: 1.5em 0;
	padding: 0.75em 1.25em;
	border-left: 3px solid var(--primary);
	background-color: var(--bg-surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-primary);
	font-style: italic;
}

.da-prose code {
	background-color: var(--bg-surface-subtle);
	border: 1px solid var(--border-subtle);
	border-radius: 4px;
	padding: 0.15em 0.4em;
	font-size: 0.9em;
	color: var(--primary);
}

.da-prose pre {
	background-color: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1em;
	overflow-x: auto;
}

.da-prose pre code {
	background: none;
	border: none;
	padding: 0;
}

.da-prose img {
	border-radius: var(--radius-md);
	margin: 1.5em 0;
}

/* ==========================================================================
   WooCommerce / Tutor LMS integration surfaces
   ========================================================================== */
.woocommerce,
.tutor-wrap {
	color: var(--text-primary);
}

.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--border-subtle);
}

/* ==========================================================================
   Swup.js page-transition animation.
   Resting state is fully visible; Swup adds `is-animating` to <html> for
   both the outgoing (fade+drop) and incoming (fade+rise) halves of the
   transition, matching the reference's motion tokens (--ease-smooth,
   ~0.3s). Respects prefers-reduced-motion by disabling the effect
   entirely — Swup still swaps content, just without the animation delay.
   ========================================================================== */
.transition-fade {
	opacity: 1;
	transition: opacity .3s var(--ease-smooth), transform .3s var(--ease-smooth);
}

/*
 * transform/will-change only apply while animating, not at rest — a
 * resting `transform: translateY(0)` on #swup (even the identity value)
 * creates a new containing block for any `position: fixed` descendant
 * (e.g. the mobile course CTA bar), making it fixed to #swup's box
 * instead of the viewport and breaking it the moment the page scrolls.
 */
html.is-animating .transition-fade {
	opacity: 0;
	transform: translateY(8px);
	will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
	.transition-fade,
	html.is-animating .transition-fade {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   WordPress admin-bar protection.
   Tailwind's Play CDN injects its Preflight reset as a <style> tag at
   runtime, which can land after wp-admin's own admin-bar.css in the DOM —
   in a cascade tie, whichever loads later wins, so Preflight's broad
   low-specificity element selectors (ul/li/a/button resets) can visually
   break the admin bar (collapsed height, hidden text/icons) for logged-in
   users. These rules restore the essential layout with !important so they
   win regardless of injection order, without touching Preflight itself
   (disabling Preflight sitewide was tried and reverted — it broke list
   bullets and other resets the theme's own component classes rely on).
   ========================================================================== */
#wpadminbar,
#wpadminbar * {
	box-sizing: border-box !important;
}

#wpadminbar {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	height: 32px !important;
	line-height: 32px !important;
}

#wpadminbar ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

#wpadminbar li {
	list-style: none !important;
}

#wpadminbar a {
	text-decoration: none !important;
}

html.wp-toolbar {
	padding-top: 32px !important;
}

/* ==========================================================================
   Tutor LMS's own enroll/add-to-cart button + price markup.
   Tutor's own frontend stylesheet is deliberately dequeued on course pages
   (da_dequeue_tutor_course_page_styles()) so it can't fight the theme's
   design — but that leaves Tutor's own output (its add-to-cart partial,
   reused as-is for correctness) completely unstyled. These rules give it
   real styling: primary buttons match .btn-primary's look but larger, to
   read as the page's main CTA.
   ========================================================================== */
.tutor-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 1rem 1.5rem;
	border-radius: var(--radius-full);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all .2s var(--ease-smooth);
}

.tutor-btn-primary,
.tutor-add-to-cart-button {
	background-color: var(--primary);
	color: var(--on-primary);
}

.tutor-btn-primary:hover,
.tutor-add-to-cart-button:hover {
	background-color: var(--primary-hover);
	box-shadow: var(--shadow-hover);
}

.tutor-btn-outline-primary,
.tutor-woocommerce-view-cart {
	background-color: transparent;
	border-color: var(--primary);
	color: var(--primary);
}

.tutor-btn-outline-primary:hover,
.tutor-woocommerce-view-cart:hover {
	background-color: var(--primary-subtle);
}

.tutor-alert-warning {
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	background-color: var(--bg-surface-subtle);
	padding: 1rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.tutor-course-sidebar-card-pricing .tutor-fs-4 {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--text-primary);
}

.tutor-course-sidebar-card-pricing del {
	color: var(--text-muted);
	margin-left: 0.5rem;
	font-size: 0.9rem;
}

/* -----------------------------------------------------------------------
   WooCommerce Cart & Checkout — classic shortcode templates
   ([woocommerce_cart] / [woocommerce_checkout]), overridden in
   woocommerce/cart/*.php and woocommerce/checkout/*.php. Real WooCommerce
   markup/classes/hooks preserved in those templates verbatim; this skins
   the actual, stable WooCommerce class names with the theme's own
   component language (.card-pro, .btn-primary/.btn-outline) instead of
   WooCommerce's bare defaults.
   ------------------------------------------------------------------- */

.da-cart-checkout {
	max-width: none;
}

.da-cart-checkout .shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.da-cart-checkout .shop_table th,
.da-cart-checkout .shop_table td {
	padding: 1rem 0.5rem;
	border-bottom: 1px solid var(--border-subtle);
	text-align: left;
	vertical-align: middle;
}

.da-cart-checkout .shop_table thead th {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-muted);
}

.da-cart-checkout .product-name a {
	font-weight: 600;
	color: var(--text-primary);
	text-decoration: none;
}

.da-cart-checkout .product-name a:hover {
	color: var(--primary);
}

.da-cart-checkout .product-thumbnail img {
	width: 4rem;
	height: 4rem;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.da-cart-checkout .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--radius-full);
	color: var(--text-muted);
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
	transition: all .2s var(--ease-smooth);
}

.da-cart-checkout .product-remove a.remove:hover {
	background-color: rgba(244, 63, 94, 0.1);
	color: var(--accent-rose);
}

.da-cart-checkout .quantity .qty {
	width: 4rem;
	padding: 0.5rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background-color: var(--bg-surface-elevated);
	color: var(--text-primary);
	font-size: 0.875rem;
}

.da-cart-checkout .actions {
	padding-top: 1.5rem !important;
	border-bottom: none !important;
}

.da-cart-checkout .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.da-cart-checkout .actions .coupon .input-text {
	padding: 0.625rem 1rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-full);
	background-color: var(--bg-surface-elevated);
	color: var(--text-primary);
	font-size: 0.8125rem;
}

.da-order-summary .shop_table th,
.da-order-summary .shop_table td {
	padding: 0.625rem 0;
	font-size: 0.8125rem;
}

.da-order-summary .order-total th,
.da-order-summary .order-total td {
	border-top: 1px solid var(--border-subtle);
	border-bottom: none;
	padding-top: 1rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--text-primary);
}

.da-order-summary .product-name .product-quantity {
	color: var(--text-muted);
	font-weight: 400;
}

.wc-proceed-to-checkout {
	margin-top: 1rem;
}

.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border-radius: var(--radius-full);
	background-color: var(--primary);
	color: var(--on-primary) !important;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none !important;
	text-align: center;
	transition: all .2s var(--ease-smooth);
}

.checkout-button:hover {
	background-color: var(--primary-hover);
	box-shadow: var(--shadow-hover);
}

.da-cart-checkout .return-to-shop {
	margin-top: 0;
}

/* Checkout: billing/shipping field grid + inputs (woocommerce_form_field()'s
   real output — .form-row/.input-text/etc. are WooCommerce's own stable,
   documented markup, not something this theme invents). */
.da-checkout-form #customer_details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.da-checkout-form #customer_details .col-2:empty {
	display: none;
}

.da-checkout-form h3 {
	margin-bottom: 1rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--text-primary);
}

.da-checkout-form .form-row {
	margin-bottom: 1.1rem;
}

.da-checkout-form .form-row label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.da-checkout-form .form-row .required {
	color: var(--accent-rose);
	text-decoration: none;
}

.da-checkout-form .form-row .optional {
	color: var(--text-muted);
	font-weight: 400;
}

.da-checkout-form .input-text,
.da-checkout-form select,
.da-checkout-form textarea,
.da-checkout-form .select2-selection {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background-color: var(--bg-surface-elevated);
	color: var(--text-primary);
	font-size: 0.875rem;
	font-family: var(--font-sans);
	transition: border-color .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth);
}

.da-checkout-form .select2-selection {
	display: flex;
	align-items: center;
	height: auto;
}

.da-checkout-form .input-text:focus,
.da-checkout-form select:focus,
.da-checkout-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-glow);
}

.da-checkout-form .woocommerce-additional-fields,
.da-checkout-form .woocommerce-account-fields {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-subtle);
}

.da-checkout-form .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.da-checkout-form .woocommerce-form__input-checkbox {
	margin-top: 0.2rem;
	accent-color: var(--primary);
}

/* Order review + payment (rendered inside .da-order-summary, the sidebar
   card in form-checkout.php). */
.da-order-summary .wc_payment_methods {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	border-top: 1px solid var(--border-subtle);
	padding-top: 1.25rem;
}

.da-order-summary .wc_payment_method {
	margin-bottom: 0.75rem;
	padding: 0.875rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
}

.da-order-summary .wc_payment_method label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
}

.da-order-summary .wc_payment_method input[type="radio"] {
	accent-color: var(--primary);
	margin-right: 0.5rem;
}

.da-order-summary .payment_box {
	margin-top: 0.75rem;
	padding: 0.875rem;
	border-radius: var(--radius-sm);
	background-color: var(--bg-surface-subtle);
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.da-order-summary .woocommerce-terms-and-conditions-wrapper {
	margin: 1.25rem 0;
	font-size: 0.8125rem;
}

.da-order-summary #place_order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem 1.5rem;
	border: none;
	border-radius: var(--radius-full);
	background-color: var(--primary);
	color: var(--on-primary);
	font-weight: 700;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: all .2s var(--ease-smooth);
}

.da-order-summary #place_order:hover {
	background-color: var(--primary-hover);
	box-shadow: var(--shadow-hover);
}

/* WooCommerce notices (errors, "please fill in required fields", etc.) —
   real markup from wc_print_notice()/wc_get_template('notices/*.php'). */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	background-color: var(--bg-surface-subtle);
	font-size: 0.875rem;
	color: var(--text-primary);
}

.woocommerce-error {
	border-color: var(--accent-rose);
	background-color: rgba(244, 63, 94, 0.08);
}

.woocommerce-message {
	border-color: var(--accent-emerald);
	background-color: rgba(16, 185, 129, 0.08);
}

/* -----------------------------------------------------------------------
   Mobile fixed course CTA bar (single-course.php) — reuses Tutor's real
   add-to-cart-woocommerce partial for correctness, but that partial's
   markup is sized for a full sidebar card (large stacked price + button).
   Scoped down here to fit a slim, fixed-to-viewport bottom bar instead.
   ------------------------------------------------------------------- */
.da-mobile-cta .tutor-course-sidebar-card-pricing {
	margin-bottom: 0.375rem;
	justify-content: flex-end;
}

.da-mobile-cta .tutor-course-sidebar-card-pricing .tutor-fs-4 {
	font-size: 1.0625rem;
}

.da-mobile-cta .tutor-btn {
	width: auto;
	padding: 0.625rem 1.25rem;
	font-size: 0.8125rem;
}

/* ==========================================================================
   Tutor LMS student dashboard — skinned with the site's design tokens.
   Tutor renders the dashboard as its own document from --tutor-* tokens;
   setting them on the layout wrapper (a descendant of Tutor's :root /
   [data-tutor-theme] definitions) wins by proximity, and because our tokens
   switch with [data-theme="dark"], dark mode follows the site toggle. The
   brand palette itself is fed from the Customizer in inc/tutor-dashboard.php.
   ========================================================================== */
.tutor-dashboard-layout {
	--tutor-surface-base: var(--bg-body);
	--tutor-surface-l1: var(--bg-surface-elevated);
	--tutor-surface-l2: var(--bg-surface-subtle);
	--tutor-surface-sidebar-l1: var(--bg-surface);
	--tutor-border-idle: var(--border-subtle);
	--tutor-text-primary: var(--text-primary);
	--tutor-text-secondary: var(--text-secondary);
	--tutor-text-subdued: var(--text-muted);
}

/* -----------------------------------------------------------------------
   Show/hide password button. WooCommerce's script wraps every password
   field on the auth screens in .password-input and adds this button; its
   stylesheet (dequeued there) normally draws the eye icon.
   ------------------------------------------------------------------- */
.password-input {
	position: relative;
	display: block;
}

.password-input .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	border: 0;
	transform: translateY(-50%);
	cursor: pointer;
	background-color: var(--text-secondary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-input .show-password-input.display-password {
	background-color: var(--primary);
}

.password-input input {
	padding-right: 2.75rem;
}


/* Theme toggle: show the sun in light mode and the moon in dark mode, whatever
   the utility-class state is. */
[data-theme-icon="dark"] { display: none; }
[data-theme="dark"] [data-theme-icon="dark"] { display: block; }
[data-theme="dark"] [data-theme-icon="light"] { display: none; }
