/* =====================================================================
   威廉王子幼兒園 — base.css  (v2 "picture-book scrapbook")
   Paper background, crayon doodles, taped photos, chunky toy buttons.
   Loads after the parent theme's dynamic CSS (see functions.php).
   ===================================================================== */

:root {
	/* Brand (logo) */
	--pw-navy: #14499B;
	--pw-navy-900: #0E2A55;
	--pw-blue: #0A6FB0;
	--pw-sky: #01A2E9;
	--pw-green: #4BB23F;
	--pw-green-700: #2F7D27;
	--pw-yellow: #FCD100;
	--pw-orange: #F08519;
	--pw-orange-700: #A85400;
	--pw-lime: #DBE000;

	/* Paper & ink */
	--pw-paper: #FFFBF2;
	--pw-paper-2: #FBF1DE;
	--pw-sky-paper: #D9F0FB;
	--pw-yellow-paper: #FFE66B;
	--pw-green-paper: #E3F3DC;
	--pw-ink: #23304A;         /* body text 12.9:1 on paper */
	--pw-ink-soft: #4F5B73;    /* secondary 6.9:1 on paper */
	--pw-line: #E9DEC8;

	/* Type */
	--pw-font-body: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
	--pw-font-display: "Huninn", var(--pw-font-body);
	--pw-font-hand: "Iansui", "Huninn", var(--pw-font-body);

	/* Shape */
	--pw-r: 16px;
	--pw-r-lg: 26px;
	--pw-ease: cubic-bezier(.2, .75, .2, 1);
	--pw-container: 1200px;
	--pw-measure: 720px;

	/* compat for pages.css v1 */
	--pw-cream: var(--pw-paper);
	--pw-sand: #FDE9C4;
	--pw-muted: var(--pw-ink-soft);
	--pw-sky-50: #E8F6FD;
	--pw-green-50: #EAF6E7;
	--pw-yellow-50: #FFF6CC;
	--pw-orange-50: #FDEBD8;
	--pw-navy-700: #0F3A7E;
	--pw-radius: var(--pw-r);
	--pw-radius-lg: var(--pw-r-lg);
	--pw-radius-sm: 10px;
	--pw-shadow-sm: 0 1px 0 rgba(35,48,74,.06);
	--pw-shadow: 0 10px 30px rgba(35,48,74,.08);
	--pw-white: #fff;
}

/* ---------- Paper ---------- */
body.pw {
	font-family: var(--pw-font-body);
	font-size: 17px;
	line-height: 1.85;
	color: var(--pw-ink);
	background-color: var(--pw-paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.pw, body.pw button, body.pw input, body.pw select, body.pw textarea,
.head-info-area, #topmenu ul li a, .sidr, #footer, .copytext { font-family: var(--pw-font-body); }
body.pw p { line-height: 1.85; }
body.pw h1, body.pw h2, body.pw h3 {
	font-family: var(--pw-font-display); font-weight: 400; color: var(--pw-navy);
	line-height: 1.3; letter-spacing: .03em; text-wrap: balance;
}
body.pw h4, body.pw h5, body.pw h6 { font-family: var(--pw-font-body); font-weight: 700; color: var(--pw-ink); }
body.pw a { color: var(--pw-blue); transition: color .2s var(--pw-ease); }
body.pw a:hover { color: var(--pw-navy); }
body.pw ::selection { background: var(--pw-yellow); color: var(--pw-navy-900); }
.layer_wrapper, #content, .page_fullwidth_wrap, .footer_wrap { background-color: transparent; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px dashed var(--pw-orange); outline-offset: 4px; border-radius: 6px;
}
.pw-skip { position: absolute; left: 12px; top: -80px; z-index: 10000; padding: 10px 18px; border-radius: 12px; background: var(--pw-yellow); color: var(--pw-navy-900) !important; font-weight: 700; border: 2px solid var(--pw-navy-900); text-decoration: none; }
.pw-skip:focus { top: 12px; }
.pw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hand-written accents */
.pw-hand { font-family: var(--pw-font-hand); font-weight: 400; letter-spacing: .02em; line-height: 1.4; }
.pw-note {
	display: inline-block; font-family: var(--pw-font-hand); font-size: 22px; line-height: 1.35;
	color: var(--pw-orange-700); transform: rotate(-2deg);
}

/* Crayon marks drawn around words: <span class="pw-mark">快樂學習<svg class="pw-doodle pw-mark__line">…</svg></span> */
.pw-mark { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.pw-mark__line { position: absolute; left: -3%; right: -3%; bottom: -.18em; width: 106%; height: .42em; z-index: -1; overflow: visible; }
.pw-mark__circle { position: absolute; left: -14%; top: -22%; width: 128%; height: 144%; z-index: -1; overflow: visible; }
.pw-doodle { display: block; overflow: visible; pointer-events: none; }
.pw-doodle path, .pw-doodle circle, .pw-doodle ellipse { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pw-doodle--fill path { fill: currentColor; stroke: none; }

/* ---------- Buttons: chunky, tactile ---------- */
a.pw-btn, .wp-block-button.pw-btn .wp-block-button__link, button.pw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 12px 26px;
	border: 2.5px solid var(--pw-navy-900); border-radius: 16px;
	background: var(--pw-white); color: var(--pw-navy-900) !important;
	font-family: var(--pw-font-body); font-size: 17px; font-weight: 800; letter-spacing: .05em; line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 4px 4px 0 var(--pw-navy-900);
	transition: transform .15s var(--pw-ease), box-shadow .15s var(--pw-ease), background-color .15s;
	cursor: pointer;
}
.wp-block-button.pw-btn { background: none; padding: 0; border: 0; box-shadow: none; }
a.pw-btn:hover, .wp-block-button.pw-btn .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pw-navy-900); color: var(--pw-navy-900) !important; }
a.pw-btn:active, .wp-block-button.pw-btn .wp-block-button__link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pw-navy-900); }
a.pw-btn--gold, .wp-block-button.pw-btn-gold .wp-block-button__link { background: var(--pw-yellow); }
a.pw-btn--ghost, .wp-block-button.pw-btn-outline .wp-block-button__link { background: var(--pw-white); }
a.pw-btn--navy { background: var(--pw-navy); color: #fff !important; }
a.pw-btn--navy:hover { color: #fff !important; }
.pw-btn__icon { width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; -webkit-mask: var(--pw-ic-phone) center / contain no-repeat; mask: var(--pw-ic-phone) center / contain no-repeat; }
.pw-btn__icon--pin { -webkit-mask-image: var(--pw-ic-pin); mask-image: var(--pw-ic-pin); }
.pw-btn__icon--cal { -webkit-mask-image: var(--pw-ic-calendar); mask-image: var(--pw-ic-calendar); }

/* Text link with hand-drawn arrow */
a.pw-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--pw-navy) !important; text-decoration: none !important; }
a.pw-link::after {
	content: ""; width: 34px; height: 14px; background: currentColor; transition: transform .25s var(--pw-ease);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9c8-2 17-3 33-1'/%3E%3Cpath d='M29 3l7 5-6 6'/%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 40 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9c8-2 17-3 33-1'/%3E%3Cpath d='M29 3l7 5-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
a.pw-link:hover::after { transform: translateX(6px); }
a.pw-link:hover { text-decoration: underline wavy var(--pw-orange) !important; text-underline-offset: 6px; }

/* ---------- Photos: taped prints & blobs ---------- */
.pw-photo { position: relative; margin: 0; }
.pw-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pw-print {
	--r: -2deg;
	background: #fff; padding: 10px 10px 12px; border-radius: 4px;
	box-shadow: 0 1px 1px rgba(35,48,74,.08), 0 12px 24px -10px rgba(35,48,74,.28);
	transform: rotate(var(--r));
}
.pw-print img { border-radius: 2px; }
.pw-print figcaption { padding: 10px 4px 0; font-family: var(--pw-font-hand); font-size: 20px; line-height: 1.35; color: var(--pw-ink); text-align: center; }
.pw-tape::before {
	content: ""; position: absolute; z-index: 2; top: -14px; left: 50%; width: 92px; height: 28px; margin-left: -46px;
	background: rgba(252, 209, 0, .55);
	transform: rotate(calc(var(--r, 0deg) * -1 - 3deg));
	clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
	mix-blend-mode: multiply;
}
.pw-tape--sky::before { background: rgba(1, 162, 233, .35); }
.pw-tape--green::before { background: rgba(75, 178, 63, .4); }
.pw-tape--corner::before { top: -10px; left: auto; right: -18px; margin: 0; transform: rotate(38deg); }
.pw-blob { overflow: hidden; border-radius: 47% 53% 44% 56% / 52% 45% 55% 48%; animation: pw-blob 14s ease-in-out infinite alternate; }
@keyframes pw-blob {
	50% { border-radius: 55% 45% 52% 48% / 45% 56% 44% 55%; }
	100% { border-radius: 44% 56% 48% 52% / 56% 48% 52% 44%; }
}

/* Torn-paper / crayon edges between colour bands */
.pw-edge { display: block; width: 100%; height: 34px; color: var(--pw-paper); }
.pw-edge path { fill: currentColor; }

/* ---------- Header ---------- */
.header_wrap { position: sticky; top: 0; z-index: 900; background: transparent !important; }
.admin-bar .header_wrap { top: 32px; }
.head-info-area { display: none !important; }
.header {
	background: rgba(255, 251, 242, .92) !important;
	-webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
	box-shadow: none; transition: box-shadow .25s var(--pw-ease), background-color .25s;
}
.pw-scrolled .header { box-shadow: 0 1px 0 var(--pw-line), 0 10px 24px -18px rgba(35,48,74,.35); }
.header .center { width: auto; max-width: var(--pw-container); padding: 0 24px; box-sizing: border-box; }
.header .head_inner { float: none !important; width: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; transition: min-height .25s var(--pw-ease); }
.pw-scrolled .header .head_inner { min-height: 70px; }
.header .logo { float: none; padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
.header .logo img { height: 60px !important; width: auto !important; max-height: none; margin: 0 !important; display: block; transition: height .25s var(--pw-ease); }
.pw-scrolled .header .logo img { height: 48px !important; }
.header .logo .desc { display: none; }
.header-svg { display: none !important; }
.header #topmenu { float: none; margin: 0; flex: 1 1 auto; justify-content: flex-end; }
@media (min-width: 1024px) { body:not(.touchon) .header #topmenu { display: flex; } }
#topmenu ul.menu { display: flex; align-items: center; gap: 4px; float: none; }
#topmenu ul.menu > li { float: none; padding: 0; margin: 0; position: relative; }
#topmenu ul.menu > li > a:link, #topmenu ul.menu > li > a:visited {
	position: relative; display: block; padding: 10px 14px !important;
	font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
	color: var(--pw-ink) !important; background: transparent !important;
}
/* crayon underline on hover / current */
#topmenu ul.menu > li:not(.menu-cta) > a::before {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 8px;
	background: var(--pw-yellow); opacity: .9; border-radius: 4px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c14-3 30 1 46-1s34-3 50 0' stroke='%23000' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c14-3 30 1 46-1s34-3 50 0' stroke='%23000' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	transform: scaleX(0); transform-origin: left; transition: transform .35s var(--pw-ease);
	z-index: -1;
}
#topmenu ul.menu > li:hover > a::before, #topmenu ul.menu > li.current-menu-item > a::before,
#topmenu ul.menu > li.current-menu-ancestor > a::before, #topmenu ul.menu > li.current-page-ancestor > a::before { transform: scaleX(1); }
#topmenu ul.menu > li:hover:after, #topmenu ul.menu > li:after { display: none !important; }
#topmenu ul li ul {
	border: 2px solid var(--pw-navy-900) !important; border-radius: 16px;
	background: #fff !important; box-shadow: 5px 5px 0 var(--pw-navy-900);
	padding: 8px !important; min-width: 220px; margin-top: 6px;
}
#topmenu ul li ul li { border: 0 !important; background: transparent !important; }
#topmenu ul li ul li a:link, #topmenu ul li ul li a:visited {
	display: block; padding: 9px 14px !important; border-radius: 10px;
	font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--pw-ink) !important; background: transparent !important;
}
#topmenu ul li ul li a:hover, #topmenu ul li ul li.current-menu-item > a { background: var(--pw-yellow-paper) !important; color: var(--pw-navy-900) !important; }
#topmenu ul.menu > li.menu-cta { margin-left: 12px; }
#topmenu ul.menu > li.menu-cta > a:link, #topmenu ul.menu > li.menu-cta > a:visited {
	padding: 10px 20px !important; border: 2.5px solid var(--pw-navy-900); border-radius: 14px;
	background: var(--pw-yellow) !important; color: var(--pw-navy-900) !important; font-weight: 800;
	box-shadow: 3px 3px 0 var(--pw-navy-900); transition: transform .15s var(--pw-ease), box-shadow .15s var(--pw-ease);
}
#topmenu ul.menu > li.menu-cta > a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pw-navy-900); }
#simple-menu { color: var(--pw-navy-900) !important; }
@media (max-width: 1023px) {
	.header #topmenu { display: none !important; }
	#simple-menu {
		display: flex !important; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 !important;
		border: 2.5px solid var(--pw-navy-900); border-radius: 14px; background: var(--pw-yellow); box-shadow: 3px 3px 0 var(--pw-navy-900);
		text-shadow: none; position: static !important; transform: none !important; float: none; font-size: 22px; line-height: 1;
	}
}
/* Mobile slide-out menu (sidr) */
.sidr { background: var(--pw-paper) !important; box-shadow: none !important; border-left: 2.5px solid var(--pw-navy-900); }
.sidr ul li a, .sidr ul li span { color: var(--pw-ink) !important; font-weight: 700; border: 0 !important; }
.sidr ul li { border: 0 !important; border-bottom: 1px dashed var(--pw-line) !important; }
.sidr ul li:hover > a, .sidr ul li.active > a, .sidr ul li.current-menu-item > a { background: var(--pw-yellow-paper) !important; box-shadow: none !important; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.pw-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--pw-ease), transform .9s var(--pw-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.pw-js [data-reveal="left"] { transform: translateX(-36px); }
.pw-js [data-reveal="right"] { transform: translateX(36px); }
.pw-js [data-reveal="pop"] { transform: scale(.92) rotate(var(--r, 0deg)); }
.pw-js [data-reveal].is-in { opacity: 1; transform: none; }
.pw-js [data-reveal="pop"].is-in { transform: rotate(var(--r, 0deg)); }
.pw-js .pw-print[data-reveal].is-in { transform: rotate(var(--r)); }
/* doodles draw themselves */
.pw-js .pw-draw path, .pw-js .pw-draw circle, .pw-js .pw-draw ellipse { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.pw-js .pw-draw.is-in path, .pw-js .pw-draw.is-in circle, .pw-js .pw-draw.is-in ellipse,
.pw-js .is-in .pw-draw path, .pw-js .is-in .pw-draw circle, .pw-js .is-in .pw-draw ellipse { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--pw-ease) calc(.25s + var(--d, 0s)); }

/* Gentle floating */
@keyframes pw-float { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes pw-spin { to { rotate: 360deg; } }
@keyframes pw-wiggle { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

/* ---------- Footer ---------- */
.footer_wrap { position: relative; margin-top: 36px; }
#footer { margin-top: 0 !important; padding: 30px 0 40px !important; }
#footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -35px; height: 36px;
	background: var(--pw-navy-900);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 22c60-10 110 6 170-4s110-14 170-2 120 14 180 2 110-16 170-6 120 14 180 4 110-12 170-4 120 12 180 2 130-8 220-2V36H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 22c60-10 110 6 170-4s110-14 170-2 120 14 180 2 110-16 170-6 120 14 180 4 110-12 170-4 120 12 180 2 130-8 220-2V36H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
#footer h3:empty { display: none; }
#footer { background: var(--pw-navy-900) !important; color: rgba(255,255,255,.86); }
#footer .footer-svg { display: none; }
#footer .center { max-width: var(--pw-container); width: auto; padding: 0 24px; box-sizing: border-box; }
#footer .rowfooter { padding: 18px 0 36px; }
#footer h3 {
	font-family: var(--pw-font-hand) !important; font-weight: 400 !important;
	font-size: 26px !important; letter-spacing: .04em; color: var(--pw-yellow) !important;
	padding: 30px 0 0 !important; margin: 0 0 14px !important; border: 0 !important;
}
#footer h3::after { display: none; }
#footer p, #footer li { color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.9; }
#footer a:link, #footer a:visited { color: #fff; text-decoration: none; }
#footer a:hover { color: var(--pw-yellow); text-decoration: underline wavy; text-underline-offset: 5px; }
#footer .pw-footer-logo { margin: 0 0 16px; }
#footer .pw-footer-logo img { width: 220px; height: auto; }
#footer .pw-foot-contact span { display: inline-block; min-width: 3.4em; margin-right: .3em; color: var(--pw-yellow); font-weight: 700; }
#footer .pw-foot-license { font-size: 13px; color: rgba(255,255,255,.68); }
#footer ul.footmenu, #footer .pw-foot-links { margin: 0; padding: 0; list-style: none; }
#footer ul.footmenu li, #footer .pw-foot-links li { margin: 0 0 8px; padding: 0 0 0 20px; position: relative; line-height: 1.6; background: none !important; }
#footer ul.footmenu li::before, #footer .pw-foot-links li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--pw-yellow);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20.5 3.5L24 14.6l12.2.8-9.2 7.8 3.4 12.6L20 28.6 9.4 36l3.6-12.4-9.2-7.8 12.2-1z'/%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 40 40'%3E%3Cpath d='M20.5 3.5L24 14.6l12.2.8-9.2 7.8 3.4 12.6L20 28.6 9.4 36l3.6-12.4-9.2-7.8 12.2-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#footer ul.footmenu li a::before, #footer .pw-foot-links li a::before { display: none !important; content: none !important; }
#footer ul.footmenu li .fa, #footer .pw-foot-links li .fa { display: none; }
#copyright { background: #0A1F40 !important; border: 0 !important; }
#copyright .copytext { padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.7) !important; text-align: center; }
#copyright a { color: rgba(255,255,255,.85) !important; }

/* Back-to-top (parent theme) */
.to_top { width: 48px !important; height: 48px !important; border-radius: 14px !important; background: var(--pw-paper) !important; border: 2.5px solid var(--pw-navy-900); box-shadow: 3px 3px 0 var(--pw-navy-900); color: var(--pw-navy-900) !important; display: flex !important; align-items: center; justify-content: center; opacity: .95; }
.to_top.hide_totop { display: none !important; }
.to_top i { color: var(--pw-navy-900) !important; line-height: 1 !important; }
@media (max-width: 767px) { .to_top { display: none !important; } }

/* ---------- Phone action bar ---------- */
.pw-actionbar { display: none; }
.pw-i-phone, .pw-i-calendar, .pw-i-pin {
	display: inline-block; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: var(--pw-ic-phone) center / contain no-repeat; mask: var(--pw-ic-phone) center / contain no-repeat;
}
.pw-i-calendar { -webkit-mask-image: var(--pw-ic-calendar); mask-image: var(--pw-ic-calendar); }
.pw-i-pin { -webkit-mask-image: var(--pw-ic-pin); mask-image: var(--pw-ic-pin); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	#topmenu ul.menu > li > a:link, #topmenu ul.menu > li > a:visited { padding: 10px 10px !important; font-size: 15px; }
	#topmenu ul.menu > li.menu-cta { margin-left: 4px; }
}
@media (max-width: 767px) {
	body.pw { font-size: 16px; }
	#copyright { padding-bottom: 92px; }
	.header .center { padding: 0 16px; }
	.header .head_inner, .pw-scrolled .header .head_inner { min-height: 70px; }
	.header .logo img, .pw-scrolled .header .logo img { height: 46px !important; }
	a.pw-btn { min-height: 52px; padding: 12px 20px; font-size: 16px; }
	#footer .footercols1, #footer .footercols2, #footer .footercols3, #footer .footercols4 { width: 100% !important; float: none; }
	#footer .center { padding: 0 18px; }

	.pw-actionbar {
		display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px;
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9990;
		padding: 7px; border-radius: 20px;
		background: var(--pw-paper); border: 2.5px solid var(--pw-navy-900); box-shadow: 4px 4px 0 var(--pw-navy-900);
		transform: translateY(0); transition: transform .3s var(--pw-ease);
	}
	.pw-hide-bar .pw-actionbar { transform: translateY(140%); }
	.pw-actionbar__item:link, .pw-actionbar__item:visited {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		min-height: 50px; border-radius: 13px; font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none;
		color: var(--pw-navy-900);
	}
	.pw-actionbar__item--cta:link, .pw-actionbar__item--cta:visited { flex-direction: row; gap: 8px; font-size: 16px; background: var(--pw-yellow); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.pw-js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.pw-js .pw-print[data-reveal] { transform: rotate(var(--r)) !important; }
	.pw-js .pw-draw path, .pw-js .pw-draw circle, .pw-js .pw-draw ellipse { stroke-dashoffset: 0 !important; }
}

/* Parent floats .header; keep the sticky wrapper sized to it. */
.header { float: none !important; }
