/*
Theme Name:   Phuket Yacht Party (pyp-child)
Theme URI:    https://phuketyachtparty.com/
Description:  Kadence child theme for phuketyachtparty.com – private party boats in Phuket, Thailand (broker service): day parties, sunset sessions, pool parties at sea, bachelor & bachelorette, birthday, company and DJ cruises. Night / neon identity, Party Builder. Fleet cards with swipe galleries and share, yacht pages, occasions, routes, request form (email to the team, optional WhatsApp hand-off, no online payment), currency switcher (THB + 8 currencies, approximate), dark / light switch, FAQ + Service schema, EN / TH / RU / ZH / AR via Polylang, llms.txt, app-style mobile menu + bottom bar, RTL. No jQuery, no page builder.
Author:       Mohammed Zaki
Template:     kadence
Version:      1.0.4
Requires PHP: 7.4
Text Domain:  pyp-child
*/

/* ---------------------------------------------------------------- tokens: NIGHT (default) · neon magenta · electric cyan · sunset gold
   The brand is the night look. The sun/moon button switches to a bright "day party" look (html[data-theme="light"]). */
:root {
	--pyp-sea: #19e3ff;
	--pyp-sea-d: #0bb5d0;
	--pyp-lagoon: #2a0f4a;
	--pyp-deep: #0b0614;
	--pyp-foam: #1d1033;
	--pyp-coral: #ff2d95;
	--pyp-coral-d: #e0157a;
	--pyp-gold: #ffc83d;
	--pyp-gold-d: #e0a512;
	--pyp-pearl: #24133f;
	--pyp-bg: #0b0614;
	--pyp-surface: #160c27;
	--pyp-shell-bg: #110920;
	--pyp-text: #ece6ff;
	--pyp-head: #ffffff;
	--pyp-muted: #b4a8d4;
	--pyp-line: #2e1d4d;
	--pyp-wa: #1fae5b;
	--pyp-sea-t: #5beeff;
	--pyp-coral-t: #ff6db4;
	--pyp-gold-t: #ffd56b;
	--pyp-neon: 0 0 18px rgba(255, 45, 149, .55), 0 0 42px rgba(255, 45, 149, .25);
	--pyp-neon-c: 0 0 18px rgba(25, 227, 255, .5), 0 0 42px rgba(25, 227, 255, .2);
	--pyp-r: 14px;
	--pyp-r-lg: 22px;
	--pyp-shadow: 0 24px 50px -24px rgba(0, 0, 0, .85);
	--pyp-shadow-sm: 0 12px 26px -16px rgba(0, 0, 0, .8);
	--pyp-serif: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	--pyp-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--pyp-wrap: 1200px;
	--pyp-head-h: 72px;
	color-scheme: dark;
}
html[lang^="ar"] {
	--pyp-serif: 'Cairo', Tahoma, sans-serif;
	--pyp-sans: 'Cairo', Tahoma, 'Segoe UI', sans-serif;
}
html[lang^="ru"] {
	--pyp-serif: 'Oswald', 'Arial Narrow', sans-serif;
	--pyp-sans: 'Manrope', system-ui, 'Segoe UI', sans-serif;
}
html[lang^="th"] {
	--pyp-serif: 'Noto Sans Thai', 'Anton', Tahoma, sans-serif;
	--pyp-sans: 'Noto Sans Thai', 'Space Grotesk', 'Leelawadee UI', Tahoma, sans-serif;
}
html[lang^="zh"] {
	--pyp-serif: 'Anton', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
	--pyp-sans: 'Space Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
:root[data-theme="dark"] { color-scheme: dark; }
/* Day party (light) */
:root[data-theme="light"] {
	color-scheme: light;
	--pyp-lagoon: #3a1270;
	--pyp-deep: #140b24;
	--pyp-foam: #fde9f4;
	--pyp-pearl: #f3e8ff;
	--pyp-bg: #fff8fc;
	--pyp-surface: #ffffff;
	--pyp-shell-bg: #f7efff;
	--pyp-text: #1b1029;
	--pyp-head: #140b24;
	--pyp-muted: #67597d;
	--pyp-line: #ecdcf2;
	--pyp-sea-t: #0a7f95;
	--pyp-coral-t: #c8146e;
	--pyp-gold-t: #9a6a00;
	--pyp-shadow: 0 22px 44px -24px rgba(58, 18, 112, .35);
	--pyp-shadow-sm: 0 10px 24px -16px rgba(58, 18, 112, .35);
}

body.pyp-site {
	background: var(--pyp-bg);
	color: var(--pyp-text);
	font-family: var(--pyp-sans);
	font-size: 16.5px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.pyp-site h1, .pyp-site h2, .pyp-site h3, .pyp-site h4 {
	font-family: var(--pyp-serif);
	color: var(--pyp-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
}
html[lang^="ar"] .pyp-site h1, html[lang^="ar"] .pyp-site h2, html[lang^="ar"] .pyp-site h3,
html[lang^="th"] .pyp-site h1, html[lang^="th"] .pyp-site h2, html[lang^="th"] .pyp-site h3,
html[lang^="zh"] .pyp-site h1, html[lang^="zh"] .pyp-site h2, html[lang^="zh"] .pyp-site h3 { letter-spacing: 0; line-height: 1.4; }
.pyp-site a { color: var(--pyp-sea-t); }
.pyp-site a:hover { color: var(--pyp-coral-t); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .pyp-site a { color: #5beeff; } :where(:root:not([data-theme="light"])) .pyp-site a:hover { color: #ff6db4; } }
:where(:root[data-theme="dark"]) .pyp-site a { color: #5beeff; }
:where(:root[data-theme="dark"]) .pyp-site a:hover { color: #ff6db4; }
.pyp-site img { max-width: 100%; height: auto; }
::selection { background: var(--pyp-gold); color: #13282b; }
:focus-visible { outline: 3px solid var(--pyp-gold); outline-offset: 3px; border-radius: 6px; }
.pyp-sr, .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; }
.pyp-site *, .pyp-site *::before, .pyp-site *::after { box-sizing: border-box; }
.pyp-wrap { width: min(var(--pyp-wrap), calc(100% - 32px)); margin-inline: auto; }
.pyp-narrow { max-width: 860px; }
.pyp-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pyp-wa-i { width: 1.3em; height: 1.3em; flex: none; }
.pyp-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
bdi.pyp-m { unicode-bidi: isolate; white-space: nowrap; }
.pyp-conv { display: inline-block; margin-inline-start: .4em; font: 700 .62em/1.2 var(--pyp-sans); color: var(--pyp-muted); white-space: nowrap; unicode-bidi: isolate; }
.pyp-dark .pyp-conv, .pyp-phero .pyp-conv, .pyp-hero .pyp-conv, .pyp-fcta .pyp-conv, .pyp-rq-sum .pyp-conv { color: rgba(255, 255, 255, .78); }

/* ---------------------------------------------------------------- buttons */
.pyp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 50px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--pyp-sans); font-weight: 800; font-size: 15.5px; line-height: 1.15;
	text-decoration: none !important; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; text-align: center;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s;
}
.pyp-btn:hover { transform: translateY(-2px); }
.pyp-btn:active { transform: translateY(0); }
.pyp-btn .pyp-i { width: 1.15em; height: 1.15em; }
.pyp-site .pyp-btn-coral { background: linear-gradient(135deg, #d4948b, var(--pyp-coral) 50%, var(--pyp-coral-d)); color: #fff; box-shadow: 0 12px 26px -12px rgba(165, 82, 79, .85); }
.pyp-site .pyp-btn-coral:hover { color: #fff; box-shadow: 0 16px 32px -14px rgba(165, 82, 79, .95); }
.pyp-btn-coral::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.pyp-btn-coral:hover::after { transform: translateX(120%); }
.pyp-site .pyp-btn-sea { background: var(--pyp-sea-d); color: #fff; }
.pyp-site .pyp-btn-sea:hover { background: var(--pyp-lagoon); color: #fff; }
.pyp-site .pyp-btn-wa { background: var(--pyp-wa); color: #fff; }
.pyp-site .pyp-btn-wa:hover { background: #179a4f; color: #fff; }
.pyp-site .pyp-btn-line { background: transparent; color: var(--pyp-head); border-color: currentColor; }
.pyp-site .pyp-btn-line:hover { background: var(--pyp-head); color: var(--pyp-bg); }
.pyp-site .pyp-btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.pyp-site .pyp-btn-glass:hover { background: #fff; color: var(--pyp-deep); }
.pyp-btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: 14px; }
.pyp-btn-block { display: flex; width: 100%; }
.pyp-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pyp-ctas.is-center { justify-content: center; }
.pyp-center { text-align: center; }
.pyp-center .pyp-btn { margin-top: 26px; }

/* ---------------------------------------------------------------- header */
.pyp-header {
	position: sticky; top: 0; z-index: 900; height: var(--pyp-head-h);
	background: color-mix(in srgb, var(--pyp-bg) 92%, transparent); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--pyp-line);
	transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.admin-bar .pyp-header { top: 32px; }
.pyp-header.is-over { position: fixed; inset-inline: 0; background: linear-gradient(180deg, rgba(4, 30, 33, .55), rgba(4, 30, 33, 0)); border-color: transparent; backdrop-filter: none; }
.pyp-header.is-over.is-solid { background: color-mix(in srgb, var(--pyp-bg) 94%, transparent); border-color: var(--pyp-line); backdrop-filter: saturate(160%) blur(14px); box-shadow: var(--pyp-shadow-sm); }
.pyp-nav { height: 100%; display: flex; align-items: center; gap: 18px; }
.pyp-logo { display: inline-flex; align-items: center; text-decoration: none !important; flex: none; }
.pyp-logo-in { display: inline-flex; align-items: center; gap: 10px; }
.pyp-mark { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.pyp-wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--pyp-serif); color: var(--pyp-head); text-transform: uppercase; }
.pyp-wordmark small { font-family: var(--pyp-sans); font-weight: 600; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--pyp-coral-t); margin-bottom: 4px; }
.pyp-wordmark b { font-size: 21px; font-weight: 700; white-space: nowrap; }
.pyp-header.is-over:not(.is-solid) .pyp-wordmark b, .pyp-logo-in.is-light .pyp-wordmark b { color: #fff; }
.pyp-header.is-over:not(.is-solid) .pyp-wordmark small, .pyp-logo-in.is-light .pyp-wordmark small { color: var(--pyp-gold); }
.pyp-nav-menu { flex: 1; display: flex; justify-content: center; min-width: 0; }
.pyp-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pyp-menu > li { position: relative; }
.pyp-menu > li > a, .pyp-sub-btn {
	display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px; border-radius: 999px; border: 0; background: none;
	font: 700 15px/1 var(--pyp-sans); color: var(--pyp-head); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pyp-menu > li > a:hover, .pyp-sub-btn:hover, .has-sub.open > .pyp-sub-btn { background: var(--pyp-foam); color: var(--pyp-head); }
.pyp-header.is-over:not(.is-solid) .pyp-menu > li > a, .pyp-header.is-over:not(.is-solid) .pyp-sub-btn { color: #fff; }
.pyp-header.is-over:not(.is-solid) .pyp-menu > li > a:hover, .pyp-header.is-over:not(.is-solid) .pyp-sub-btn:hover { background: rgba(255, 255, 255, .16); }
.pyp-sub {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px;
	background: var(--pyp-surface); border: 1px solid var(--pyp-line); border-radius: 18px; box-shadow: var(--pyp-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-sub:hover .pyp-sub, .has-sub.open .pyp-sub, .has-sub:focus-within .pyp-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .pyp-chev, .has-sub.open .pyp-chev { transform: rotate(180deg); }
.pyp-sub a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--pyp-text) !important; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.pyp-sub a:hover { background: var(--pyp-foam); }
.pyp-sub small { color: var(--pyp-muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.pyp-sub .is-all a { color: var(--pyp-coral-t) !important; }
.pyp-head-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.pyp-lsel, .pyp-csel { position: relative; }
.pyp-lsel-btn, .pyp-csel-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 11px; border-radius: 999px;
	border: 1px solid var(--pyp-line); background: var(--pyp-surface); color: var(--pyp-head); font: 800 13px/1 var(--pyp-sans); cursor: pointer;
}
.pyp-header.is-over:not(.is-solid) .pyp-lsel-btn, .pyp-header.is-over:not(.is-solid) .pyp-csel-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.pyp-lsel-list, .pyp-csel-list {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; list-style: none; margin: 0; padding: 6px;
	background: var(--pyp-surface); border: 1px solid var(--pyp-line); border-radius: 16px; box-shadow: var(--pyp-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 5;
}
.pyp-lsel.open .pyp-lsel-list, .pyp-csel.open .pyp-csel-list { opacity: 1; visibility: visible; transform: none; }
.pyp-lsel.open .pyp-chev, .pyp-csel.open .pyp-chev { transform: rotate(180deg); }
.pyp-lsel-list a, .pyp-csel-list button {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: none; cursor: pointer;
	color: var(--pyp-text) !important; text-decoration: none; font: 700 14px/1.2 var(--pyp-sans); text-align: start;
}
.pyp-lsel-list a:hover, .pyp-csel-list button:hover, .pyp-lsel-list a.on, .pyp-csel-list button.on { background: var(--pyp-foam); }
.pyp-csel-list { display: grid; grid-template-columns: 1fr 1fr; min-width: 230px; }
.pyp-csel-list b, .pyp-curs b { min-width: 30px; color: var(--pyp-coral-t); font-weight: 800; }
.pyp-lbadge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 999px; background: var(--pyp-foam); color: var(--pyp-sea-t); font: 800 11.5px/1 var(--pyp-sans); }
.pyp-lbadge.is-zh, .pyp-lbadge.is-ar { font-size: 13px; }
.pyp-head-call { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pyp-foam); color: var(--pyp-sea-t); }
.pyp-head-cta { min-height: 42px; padding: .5em 1.15em; font-size: 14.5px; }
.pyp-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pyp-foam); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.pyp-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--pyp-head); }
.pyp-header.is-over:not(.is-solid) .pyp-burger { background: rgba(255, 255, 255, .18); }
.pyp-header.is-over:not(.is-solid) .pyp-burger span { background: #fff; }

/* ---------------------------------------------------------------- footer */
.pyp-footer { margin-top: 0; }
.pyp-fcta { padding: 70px 0 0; background: var(--pyp-bg); }
.pyp-fcta-box {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center;
	padding: 52px 52px; border-radius: var(--pyp-r-lg); color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, rgba(212, 176, 106, .35), transparent 50%), radial-gradient(90% 120% at 0% 100%, rgba(194, 122, 114, .45), transparent 55%), linear-gradient(135deg, var(--pyp-lagoon), var(--pyp-deep));
	box-shadow: var(--pyp-shadow);
}
.pyp-fcta-text { position: relative; z-index: 2; }
.pyp-site .pyp-fcta-box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 12px; }
.pyp-fcta-box p { color: rgba(255, 255, 255, .88); margin: 0 0 22px; }
.pyp-fcta-stats { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pyp-fcta-stats li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 14px 18px; }
.pyp-fcta-stats b { display: block; font: 700 26px/1.1 var(--pyp-serif); color: var(--pyp-gold); }
.pyp-fcta-stats span { font-size: 14px; color: rgba(255, 255, 255, .85); }
.pyp-fbody { background: var(--pyp-deep); color: rgba(255, 255, 255, .78); padding: 70px 0 24px; margin-top: -40px; padding-top: 110px; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .pyp-fbody { background: #07040e; } }
:where(:root[data-theme="dark"]) .pyp-fbody { background: #07040e; }
.pyp-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.pyp-fgrid h4 { color: #fff !important; font-size: 17px; margin: 0 0 14px; }
.pyp-fgrid a { display: block; color: rgba(255, 255, 255, .78) !important; text-decoration: none; padding: 4px 0; font-size: 15px; }
.pyp-fgrid a:hover { color: var(--pyp-gold) !important; }
.pyp-fbrand p { font-size: 15px; margin: 14px 0 0; max-width: 360px; }
.pyp-fcontact { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; }
.pyp-fcontact a, .pyp-fcontact span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82) !important; text-decoration: none; }
.pyp-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.pyp-copy-links { display: flex; gap: 18px; }
.pyp-copy a { color: rgba(255, 255, 255, .7) !important; text-decoration: none; }

/* floating contact (desktop) */
.pyp-float {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 800; display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 18px; border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 14.5px;
	background: var(--pyp-coral); box-shadow: 0 16px 30px -12px rgba(165, 82, 79, .7); transition: transform .2s;
}
.pyp-float.is-wa { background: var(--pyp-wa); box-shadow: 0 16px 30px -12px rgba(31, 174, 91, .7); }
.pyp-float:hover { transform: translateY(-3px); }

/* Kadence spacing resets */
.pyp-site .single-content { margin-top: 0; }
.pyp-site.page .content-area, .pyp-site.single-pyp_yacht .content-area { margin-top: 0; margin-bottom: 0; }

/* Owner 2026-10-11 (iPhone dark mode): Kadence wrappers kept a white background behind our light-coloured text.
   Make every Kadence content wrapper transparent so the section/body colours (light or dark) always show through. */
html { background: var(--pyp-bg); }
.pyp-site #wrapper, .pyp-site .site, .pyp-site #inner-wrap, .pyp-site .site-main, .pyp-site .content-area,
.pyp-site .content-container, .pyp-site .content-wrap, .pyp-site .entry-content-wrap, .pyp-site .content-bg,
.pyp-site article.entry, .pyp-site .entry.single-entry, .pyp-site .entry-content, .pyp-site .single-content {
	background: transparent !important;
	box-shadow: none !important;
}
.pyp-site { --global-palette9: var(--pyp-bg); --global-palette8: var(--pyp-surface); --global-palette7: var(--pyp-shell-bg); --global-palette3: var(--pyp-head); --global-palette4: var(--pyp-text); --global-palette5: var(--pyp-muted); }
.pyp-sec:not(.pyp-dark):not(.pyp-shell):not(.pyp-hero) { background: var(--pyp-bg); color: var(--pyp-text); }
.pyp-sec h2, .pyp-sec h3 { color: var(--pyp-head); }
.pyp-dark h2, .pyp-dark h3 { color: #fff; }

/* ---------------------------------------------------------------- dark / light toggle (1.0.3) – hidden without JS (system setting applies) */
.pyp-theme-btn {
	display: none; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; flex: none; cursor: pointer;
	border: 1px solid var(--pyp-line); background: var(--pyp-surface); color: var(--pyp-head);
	transition: background-color .2s, color .2s, border-color .2s;
}
.pyp-js .pyp-theme-btn { display: inline-grid; }
.pyp-theme-btn:hover { background: var(--pyp-foam); }
.pyp-theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pyp-theme-btn .is-sun { display: none; }
@media (prefers-color-scheme: dark) {
	:where(:root:not([data-theme="light"])) .pyp-theme-btn .is-sun { display: block; }
	:where(:root:not([data-theme="light"])) .pyp-theme-btn .is-moon { display: none; }
}
:where(:root[data-theme="dark"]) .pyp-theme-btn .is-sun { display: block; }
:where(:root[data-theme="dark"]) .pyp-theme-btn .is-moon { display: none; }
.pyp-header.is-over:not(.is-solid) .pyp-theme-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
/* mobile menu: pill with text + switch */
.pyp-theme-btn.is-pill {
	width: auto; height: auto; border-radius: 999px; gap: 9px; padding: 7px 10px 7px 12px; margin-bottom: 12px; grid-auto-flow: column; align-items: center;
	border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: 700 14px/1 var(--pyp-sans);
}
.pyp-theme-btn.is-pill:hover { background: rgba(255, 255, 255, .16); }
.pyp-theme-sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: background-color .2s; }
.pyp-theme-sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.pyp-theme-btn[aria-pressed="true"] .pyp-theme-sw { background: var(--pyp-gold); }
.pyp-theme-btn[aria-pressed="true"] .pyp-theme-sw::after { inset-inline-start: 17px; }

/* ---------------------------------------------------------------- language suggestion bar (1.0.3; site.js, dismiss remembered) */
.pyp-lhint {
	position: fixed; z-index: 950; top: calc(var(--pyp-head-h) + 10px); inset-inline: 12px; margin-inline: auto; max-width: 460px;
	display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px;
	background: var(--pyp-surface); color: var(--pyp-text); border: 1px solid var(--pyp-line); box-shadow: var(--pyp-shadow);
	font: 700 14.5px/1.35 var(--pyp-sans); animation: pyp-lhint-in .35s ease both;
}
.admin-bar .pyp-lhint { top: calc(var(--pyp-head-h) + 42px); }
.pyp-lhint p { margin: 0; flex: 1; }
.pyp-site .pyp-lhint a.pyp-btn { min-height: 38px; padding: .45em 1em; font-size: 14px; }
.pyp-lhint-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--pyp-foam); color: var(--pyp-head); font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes pyp-lhint-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pyp-lhint { animation: none; } }
