/*
Theme Name: Peaceful Life
Theme URI: https://peacefullifethailand.com/
Description: Child theme of Astra for the Peaceful Life websites. Follows the Peaceful Life standard: warm, handmade and rooted. Green leads, one plum accent, photos as prints or arches.
Author: Peaceful Life
Template: astra
Version: 1.7.5
License: GNU General Public License v2 or later
Text Domain: peacefullife
*/

/* ---------- Tokens (Peaceful Life standard v2) ---------- */
:root {
	--pl-green: #31732e;
	--pl-green-deep: #235423;
	--pl-green-night: #17361a;
	--pl-olive: #7fae6a;
	--pl-olive-soft: #c5dcb8;
	--pl-olive-mist: #e3eedb;
	--pl-paper: #f1eadb;
	--pl-paper-light: #f8f3e8;
	--pl-plum: #5d2a49;
	--pl-lilac: #c9a8be;
	--pl-ink: #24331f;
	--pl-muted: #5f6e58;
	--pl-line: rgba(49, 115, 46, 0.18);
	--pl-wrap: 1180px;
	--pl-shadow: 0 14px 34px rgba(23, 54, 26, 0.16);
	--pl-sans: "Bricolage Grotesque", "Sarabun", "Segoe UI", system-ui, sans-serif;
	--pl-serif: "Instrument Serif", "Sarabun", Georgia, serif;
	--pl-grain: 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body.pl-site {
	background: var(--pl-paper);
	color: var(--pl-ink);
	font-family: var(--pl-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.pl-site.pl-site h1, .pl-site.pl-site h2, .pl-site.pl-site h3, .pl-site.pl-site h4, .pl-site.pl-site h5, .pl-site.pl-site h6,
.pl-site.pl-site .entry-title, .pl-site.pl-site .ast-archive-title {
	font-family: var(--pl-sans);
	color: var(--pl-green-deep);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.015em;
}
.pl-site.pl-site h1, .pl-site.pl-site .entry-title { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.pl-site.pl-site h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.pl-site.pl-site h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; line-height: 1.2; }
.pl-site.pl-site h4 { font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.pl-site.pl-lang-th h1, .pl-site.pl-lang-th h2, .pl-site.pl-lang-th h3, .pl-site.pl-lang-th .entry-title { line-height: 1.35; letter-spacing: 0; font-weight: 400; }
.pl-site h1 em, .pl-site h2 em, .pl-site h3 em, .pl-site .pl-serif {
	font-family: var(--pl-serif);
	font-style: italic;
	font-weight: 400;
	color: var(--pl-plum);
	letter-spacing: 0;
}
.pl-site a { color: var(--pl-green); text-decoration: none; }
.pl-site a:hover, .pl-site a:focus { color: var(--pl-plum); }
.pl-site .entry-content p a:not(.wp-block-button__link) { text-decoration: underline; text-decoration-color: rgba(93, 42, 73, 0.4); text-underline-offset: 3px; }
.pl-site img { height: auto; }
.pl-wrap { max-width: var(--pl-wrap); margin: 0 auto; padding: 0 24px; }

/* Labels: wide capitals */
.pl-site.pl-site .pl-label, .pl-site.pl-site .pl-eyebrow {
	font-family: var(--pl-sans);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--pl-muted);
	margin: 0 0 18px;
}
.pl-lang-th .pl-label, .pl-lang-th .pl-eyebrow { letter-spacing: 0.08em; font-size: 0.85rem; }

/* Astra containers */
.pl-site .site-content { background: transparent; }
.pl-site .site-content > .ast-container { max-width: var(--pl-wrap); padding-left: 24px; padding-right: 24px; display: block; }
.pl-site.pl-site.pl-site #primary { width: 100%; margin: 0; padding: 56px 0 88px; float: none; border: 0; }
.pl-site #secondary { display: none; }
.pl-site .ast-article-single, .pl-site .ast-article-post, .pl-site.ast-separate-container .ast-article-single { background: transparent; padding: 0; margin: 0; }
.pl-site.pl-has-hero .site-content > .ast-container { max-width: none; padding-left: 0; padding-right: 0; }
.pl-site.pl-site.pl-site.pl-has-hero #primary { padding: 0; }
.pl-site.pl-has-hero .entry-content { margin: 0; }
.pl-site.pl-has-hero .entry-content > * { margin-top: 0; margin-bottom: 0; }
.pl-site.pl-has-hero .entry-content > .alignfull { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
.pl-site:not(.pl-has-hero) .entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.pl-site .entry-header { margin-bottom: 32px; }
.pl-site.page:not(.pl-has-hero) .entry-header { padding: 8px 0 24px; border-bottom: 1px solid var(--pl-line); margin-bottom: 40px; }
.pl-site.page:not(.pl-has-hero) .entry-content, .pl-site.single-post .entry-content, .pl-site.single-post .entry-header { max-width: 820px; margin-left: auto; margin-right: auto; }
.pl-site.page:not(.pl-has-hero) .entry-header { max-width: 820px; margin-left: auto; margin-right: auto; }
.pl-site .entry-meta, .pl-site .entry-meta * { color: var(--pl-muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Header ---------- */
.pl-header { background: var(--pl-paper-light); position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--pl-line); }
.admin-bar .pl-header { top: 32px; }
.pl-topbar { background: var(--pl-green-deep); background-image: var(--pl-grain); color: var(--pl-olive-soft); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pl-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.pl-site .pl-topbar a { color: var(--pl-olive-mist); }
.pl-site .pl-topbar a:hover { color: #fff; }
.pl-topbar__mail { text-transform: none; letter-spacing: 0.04em; font-size: 0.82rem; }
.pl-topbar__links { display: flex; gap: 22px; }
.pl-header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; position: relative; }
.pl-logo { display: inline-flex; align-items: center; gap: 14px; }
.pl-site .pl-logo__img { width: 58px; height: 58px; object-fit: contain; }
.pl-logo__text { display: flex; flex-direction: column; line-height: 1; }
.pl-logo__name { font-family: var(--pl-sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--pl-green-deep); }
.pl-logo__tag { font-family: var(--pl-serif); font-style: italic; font-size: 1.15rem; color: var(--pl-plum); margin-top: 5px; }
.pl-lang-th .pl-logo__tag { font-family: var(--pl-sans); font-style: normal; font-size: 0.85rem; }

.pl-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.pl-burger { display: none; cursor: pointer; padding: 12px; margin-right: -12px; }
.pl-burger__bars, .pl-burger__bars::before, .pl-burger__bars::after { display: block; width: 26px; height: 1.5px; background: var(--pl-green-deep); transition: transform 0.2s ease, opacity 0.2s ease; }
.pl-burger__bars { position: relative; }
.pl-burger__bars::before, .pl-burger__bars::after { content: ""; position: absolute; left: 0; }
.pl-burger__bars::before { top: -8px; }
.pl-burger__bars::after { top: 8px; }

.pl-menu, .pl-menu ul { list-style: none; margin: 0; padding: 0; }
.pl-menu { display: flex; align-items: center; gap: 2px; }
.pl-menu > li { position: relative; }
.pl-site .pl-menu a { display: block; padding: 10px 15px; color: var(--pl-ink); font-weight: 400; font-size: 0.95rem; border-radius: 999px; white-space: nowrap; }
.pl-site .pl-menu > li > a:hover, .pl-site .pl-menu > li.current-menu-item > a, .pl-site .pl-menu > li.current-menu-ancestor > a { background: var(--pl-olive-mist); color: var(--pl-green-deep); }
.pl-menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.pl-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--pl-paper-light); border: 1px solid var(--pl-line); border-radius: 14px; box-shadow: var(--pl-shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 95; }
.pl-menu > li:hover > .sub-menu, .pl-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pl-site .pl-menu .sub-menu a { border-radius: 10px; white-space: normal; }
.pl-site .pl-menu .sub-menu a:hover { background: var(--pl-olive-mist); }
.pl-menu img { width: 18px; height: auto; margin-right: 6px; vertical-align: -2px; }
.pl-menu > li:last-child > .sub-menu { left: auto; right: 0; min-width: 160px; }

@media (max-width: 1020px) {
	.pl-burger { display: block; }
	.pl-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--pl-paper-light); box-shadow: var(--pl-shadow); border-top: 1px solid var(--pl-line); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
	.pl-nav-toggle:checked ~ .pl-nav { max-height: calc(100vh - 120px); overflow-y: auto; }
	.pl-nav-toggle:checked ~ .pl-burger .pl-burger__bars { background: transparent; }
	.pl-nav-toggle:checked ~ .pl-burger .pl-burger__bars::before { transform: translateY(8px) rotate(45deg); }
	.pl-nav-toggle:checked ~ .pl-burger .pl-burger__bars::after { transform: translateY(-8px) rotate(-45deg); }
	.pl-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; }
	.pl-site .pl-menu a { border-radius: 10px; white-space: normal; padding: 12px 14px; }
	.pl-menu .sub-menu, .pl-menu > li:last-child > .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; min-width: 0; }
	.pl-menu > li.menu-item-has-children > a::after { display: none; }
	.pl-header__main { min-height: 72px; }
	.pl-site .pl-logo__img { width: 48px; height: 48px; }
}
@media (max-width: 600px) {
	.pl-topbar__links a:nth-child(n+3) { display: none; }
	.admin-bar .pl-header { top: 0; }
	.pl-logo__name { font-size: 0.8rem; letter-spacing: 0.24em; }
}

/* ---------- Buttons: pills with wide capitals ---------- */
.pl-site.pl-site .wp-block-button__link, .pl-site.pl-site .wp-element-button, .pl-site.pl-site button[type="submit"], .pl-site.pl-site input[type="submit"], .pl-site.pl-site .ast-button, .pl-site.pl-site .button {
	background: var(--pl-green-deep);
	color: var(--pl-paper-light);
	border: 1px solid var(--pl-green-deep);
	border-radius: 999px;
	padding: 1.05em 2.1em;
	font-family: var(--pl-sans);
	font-weight: 500;
	font-size: 0.76rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pl-lang-th.pl-site.pl-site .wp-block-button__link { letter-spacing: 0.06em; font-size: 0.92rem; }
.pl-site.pl-site .wp-block-button__link:hover, .pl-site.pl-site .wp-element-button:hover, .pl-site.pl-site button[type="submit"]:hover, .pl-site.pl-site input[type="submit"]:hover {
	background: var(--pl-plum); border-color: var(--pl-plum); color: var(--pl-paper-light); transform: translateY(-1px);
}
.pl-site.pl-site .is-style-outline > .wp-block-button__link { background: transparent; color: var(--pl-green-deep); border-color: var(--pl-green-deep); }
.pl-site.pl-site .is-style-outline > .wp-block-button__link:hover { background: var(--pl-green-deep); color: var(--pl-paper-light); border-color: var(--pl-green-deep); }
.pl-site.pl-site .pl-on-dark .wp-block-button__link { background: var(--pl-olive-soft); border-color: var(--pl-olive-soft); color: var(--pl-green-night); }
.pl-site.pl-site .pl-on-dark .wp-block-button__link:hover { background: var(--pl-paper-light); border-color: var(--pl-paper-light); color: var(--pl-plum); }
.pl-site.pl-site .pl-on-dark .is-style-outline > .wp-block-button__link { background: transparent; color: var(--pl-paper-light); border-color: rgba(241, 234, 219, 0.6); }
.pl-site.pl-site .pl-on-dark .is-style-outline > .wp-block-button__link:hover { background: var(--pl-paper-light); color: var(--pl-green-night); border-color: var(--pl-paper-light); }
.pl-site.pl-site .pl-more a { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pl-plum); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.pl-lang-th.pl-site.pl-site .pl-more a { letter-spacing: 0.06em; font-size: 0.9rem; }
.pl-site.pl-site .pl-more a:hover { color: var(--pl-green-deep); }

/* ---------- Sections ---------- */
.pl-section { padding: clamp(64px, 9vw, 120px) 24px; position: relative; }
.pl-section > * { max-width: var(--pl-wrap); margin-left: auto; margin-right: auto; }
.pl-section--paper { background: var(--pl-paper); }
.pl-section--light { background: var(--pl-paper-light); }
.pl-section--olive { background-color: var(--pl-olive-soft); background-image: var(--pl-grain); }
.pl-section--green { background-color: var(--pl-green); background-image: var(--pl-grain); }
.pl-section--night { background-color: var(--pl-green-night); background-image: var(--pl-grain); }
.pl-section--plum { background-color: var(--pl-plum); background-image: var(--pl-grain); }
.pl-site.pl-site .pl-on-dark, .pl-site.pl-site .pl-on-dark h1, .pl-site.pl-site .pl-on-dark h2, .pl-site.pl-site .pl-on-dark h3, .pl-site.pl-site .pl-on-dark p { color: var(--pl-paper); }
.pl-site.pl-site .pl-on-dark .pl-label { color: var(--pl-olive-soft); }
.pl-site.pl-site .pl-on-dark h1 em, .pl-site.pl-site .pl-on-dark h2 em, .pl-site.pl-site .pl-on-dark h3 em { color: var(--pl-lilac); }
.pl-site.pl-site .pl-section--plum h2 em { color: var(--pl-olive-soft); }
.pl-site .pl-head { margin-bottom: clamp(36px, 5vw, 60px); }
.pl-site .pl-head h2 { margin: 0; max-width: 16em; }
.pl-site .pl-head--center { text-align: center; }
.pl-site .pl-head--center h2 { margin-left: auto; margin-right: auto; }
.pl-site.pl-site .pl-lead { font-size: 1.12rem; color: var(--pl-muted); max-width: 620px; margin: 20px 0 0; }
.pl-site.pl-site .pl-on-dark .pl-lead { color: var(--pl-olive-mist); }
.pl-site.pl-site .pl-hint { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pl-muted); margin-top: 18px; }
.pl-site.pl-site .pl-on-dark .pl-hint { color: var(--pl-olive-soft); }
.pl-lang-th.pl-site.pl-site .pl-hint { letter-spacing: 0.04em; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.pl-hero { background-color: var(--pl-green); background-image: var(--pl-grain); padding: clamp(56px, 8vw, 104px) 24px clamp(72px, 9vw, 120px); overflow: hidden; }
.pl-site .pl-hero > .wp-block-columns { max-width: var(--pl-wrap); margin: 0 auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.pl-site.pl-site .pl-hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); margin: 0 0 26px; }
.pl-site.pl-site .pl-hero .pl-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--pl-olive-mist); max-width: 30em; margin: 0 0 36px; }
.pl-site .pl-hero .wp-block-buttons { gap: 14px; }
.pl-site .pl-hero__media { position: relative; }
.pl-site .pl-hero__media .wp-block-image { margin: 0; }

/* Arch frame */
.pl-site .pl-arch { position: relative; margin: 0 auto; max-width: 440px; }
.pl-site .pl-arch img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 10px 10px; border: 7px solid var(--pl-paper); }
.pl-site .pl-arch::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(241, 234, 219, 0.45); border-radius: 999px 999px 16px 16px; pointer-events: none; }
.pl-site .pl-section--paper .pl-arch::after, .pl-site .pl-section--light .pl-arch::after, .pl-site .pl-section--olive .pl-arch::after { border-color: rgba(49, 115, 46, 0.4); }
.pl-site .pl-arch--small { max-width: 220px; }
.pl-site .pl-arch--small img { border-width: 5px; }
.pl-site .pl-arch--small::after { inset: -9px; }

/* Stamp */
.pl-site .pl-stamp { position: absolute; width: clamp(118px, 13vw, 164px); height: auto; left: -4%; bottom: -5%; transform: rotate(-12deg); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25)); z-index: 2; }

/* Print (photo as a print, with tape) */
.pl-site .pl-print { position: relative; background: var(--pl-paper-light); padding: 14px 14px 52px; box-shadow: var(--pl-shadow); transform: rotate(-2deg); margin: 0 auto; max-width: 520px; }
.pl-site .pl-print img { display: block; width: 100%; border-radius: 0; }
.pl-site .pl-print::before, .pl-site .pl-note::before { content: ""; position: absolute; top: -15px; left: 50%; width: 118px; height: 30px; margin-left: -59px; background: rgba(201, 168, 190, 0.86); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); z-index: 1; }
.pl-site .pl-print figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pl-muted); margin: 0; }

/* ---------- Paths: three arch cards ---------- */
.pl-site .pl-paths { gap: clamp(24px, 4vw, 56px); }
.pl-site .pl-path { text-align: center; }
.pl-site .pl-path .pl-arch { margin-bottom: 34px; }
.pl-site .pl-path .pl-num { font-family: var(--pl-serif); font-style: italic; font-size: 1.5rem; color: var(--pl-plum); margin: 0 0 6px; }
.pl-site .pl-path h3 { margin: 0 0 12px; }
.pl-site .pl-path p { color: var(--pl-ink); font-size: 0.98rem; max-width: 22em; margin-left: auto; margin-right: auto; }
.pl-site .pl-path .pl-more { margin-top: 20px; }

/* ---------- Tiles (courses) ---------- */
.pl-site .pl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.pl-site .pl-tile { margin: 0; }
.pl-site .pl-tile .wp-block-image { margin: 0; overflow: hidden; border-radius: 6px; }
.pl-site .pl-tile .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.6s ease; filter: saturate(0.92); }
.pl-site .pl-tile:hover .wp-block-image img { transform: scale(1.04); }
.pl-site.pl-site .pl-tile .pl-label { margin: 16px 0 6px; font-size: 0.66rem; }
.pl-site.pl-site .pl-tile h3 { font-size: 1.25rem; font-weight: 400; margin: 0; line-height: 1.2; }
.pl-site .pl-tile h3 a { color: var(--pl-green-deep); text-decoration: none; }
.pl-site .pl-tile h3 a:hover { color: var(--pl-plum); }
@media (max-width: 1020px) { .pl-site .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Scroller of posters shown as prints ---------- */
.pl-site .wp-block-gallery.pl-scroller { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 26px; overflow-x: auto; scroll-snap-type: x proximity; padding: 26px 14px 34px; margin-top: 0; scrollbar-width: thin; scrollbar-color: var(--pl-olive) transparent; }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image { flex: 0 0 auto; width: auto !important; margin: 0 !important; scroll-snap-align: center; background: var(--pl-paper-light); padding: 10px 10px 34px; box-shadow: var(--pl-shadow); transition: transform 0.3s ease; }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image:nth-child(odd) { transform: rotate(-1.4deg); }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image:nth-child(even) { transform: rotate(1.1deg); }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image:hover { transform: rotate(0) translateY(-4px); }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image img { height: min(330px, 62vw) !important; width: auto !important; max-width: none; object-fit: contain; display: block; border-radius: 0; }
.pl-site .wp-block-gallery.pl-scroller > .wp-block-image a { display: block; }

/* ---------- Split: portrait + text ---------- */
.pl-site .pl-split { gap: clamp(36px, 7vw, 96px); align-items: center; }
.pl-site .pl-split__media { position: relative; }
.pl-site .pl-split__media .pl-print { position: absolute; width: 56%; right: -6%; bottom: -8%; padding: 9px 9px 30px; transform: rotate(4deg); z-index: 2; }
.pl-site .pl-split h2 { margin: 0 0 24px; }
.pl-site .pl-split p { max-width: 32em; }
.pl-site .pl-points { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--pl-line); }
.pl-site .pl-points li { padding: 16px 0 16px 46px; border-bottom: 1px solid var(--pl-line); position: relative; margin: 0; }
.pl-site .pl-points { counter-reset: pl; }
.pl-site .pl-points li::before { counter-increment: pl; content: "0" counter(pl); position: absolute; left: 0; top: 13px; font-family: var(--pl-serif); font-style: italic; font-size: 1.35rem; color: var(--pl-plum); }

/* ---------- Photo wall ---------- */
.pl-site .wp-block-gallery.pl-photos { gap: 18px; }
.pl-site .wp-block-gallery.pl-photos .wp-block-image { background: var(--pl-paper-light); padding: 9px 9px 30px; box-shadow: 0 8px 22px rgba(23, 54, 26, 0.14); }
.pl-site .wp-block-gallery.pl-photos .wp-block-image:nth-child(3n+1) { transform: rotate(-1.2deg); }
.pl-site .wp-block-gallery.pl-photos .wp-block-image:nth-child(3n) { transform: rotate(1deg); }
.pl-site .wp-block-gallery.pl-photos .wp-block-image img { border-radius: 0; }

/* ---------- Notes (student voices on paper) ---------- */
.pl-site .pl-notes { gap: clamp(28px, 4vw, 48px); }
.pl-site .pl-note { position: relative; background: var(--pl-paper-light); padding: 46px 38px 36px; box-shadow: var(--pl-shadow); }
.pl-site .pl-note:nth-child(odd) { transform: rotate(-1deg); }
.pl-site .pl-note:nth-child(even) { transform: rotate(0.8deg); }
.pl-site.pl-site .pl-note p { color: var(--pl-ink); }
.pl-site.pl-site .pl-note .pl-note__quote { font-family: var(--pl-serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.35; color: var(--pl-plum); margin: 0 0 22px; }
.pl-lang-th.pl-site.pl-site .pl-note .pl-note__quote { font-family: var(--pl-sans); font-style: normal; font-size: 1.05rem; line-height: 1.7; }
.pl-site.pl-site .pl-note .pl-label { color: var(--pl-muted); margin: 0; font-size: 0.66rem; }

/* ---------- Philosophy strip ---------- */
.pl-site .pl-sets { gap: 0; border-top: 1px solid rgba(241, 234, 219, 0.28); }
.pl-site .pl-set { padding: 30px 26px 6px 0; border-right: 1px solid rgba(241, 234, 219, 0.28); }
.pl-site .pl-set + .pl-set { padding-left: 26px; }
.pl-site .pl-set:last-child { border-right: 0; }
.pl-site.pl-site .pl-set h3 { font-family: var(--pl-serif); font-style: italic; font-size: 1.9rem; color: var(--pl-lilac); margin: 0 0 10px; }
.pl-site.pl-site .pl-set p { font-size: 0.95rem; color: var(--pl-olive-mist); margin: 0; }
@media (max-width: 781px) { .pl-site .pl-set, .pl-site .pl-set + .pl-set { border-right: 0; border-bottom: 1px solid rgba(241, 234, 219, 0.28); padding: 22px 0; } }

/* ---------- CTA ---------- */
.pl-site .pl-cta { text-align: center; }
.pl-site .pl-cta h2 { max-width: 15em; margin: 0 auto 36px; }

/* ---------- Posts: archives and single ---------- */
.pl-site .ast-archive-description { background: transparent; padding: 0 0 36px; border: 0; border-bottom: 1px solid var(--pl-line); margin-bottom: 44px; }
.pl-site.blog .ast-row, .pl-site.archive .ast-row, .pl-site.search .ast-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; margin: 0; }
.pl-site.blog .ast-row > article, .pl-site.archive .ast-row > article, .pl-site.search .ast-row > article { width: auto; padding: 0; margin: 0; background: transparent; border: 0; }
.pl-site.archive .post-thumb, .pl-site.blog .post-thumb { margin: 0 0 18px; overflow: hidden; border-radius: 6px; }
.pl-site.archive .post-thumb img, .pl-site.blog .post-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pl-site.pl-site.archive .entry-title, .pl-site.pl-site.blog .entry-title, .pl-site.pl-site.search .entry-title { font-size: 1.35rem; font-weight: 400; line-height: 1.25; margin: 0 0 10px; }
.pl-site.archive .entry-title a, .pl-site.blog .entry-title a { color: var(--pl-green-deep); }
.pl-site.archive .entry-title a:hover { color: var(--pl-plum); }
.pl-site .ast-pagination { margin-top: 56px; }
@media (max-width: 1020px) { .pl-site.blog .ast-row, .pl-site.archive .ast-row, .pl-site.search .ast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pl-site.blog .ast-row, .pl-site.archive .ast-row, .pl-site.search .ast-row { grid-template-columns: 1fr; } }
.pl-site.single-post .entry-content img { border-radius: 6px; }
.pl-site .entry-content .wp-block-gallery:not(.pl-scroller):not(.pl-photos) .wp-block-image img { border-radius: 6px; }
.pl-site .post-navigation { border-top: 1px solid var(--pl-line); padding-top: 28px; margin-top: 56px; }

/* ---------- Forms ---------- */
.pl-site input[type="text"], .pl-site input[type="email"], .pl-site input[type="tel"], .pl-site input[type="url"], .pl-site input[type="search"], .pl-site textarea, .pl-site select {
	border: 1px solid rgba(49, 115, 46, 0.35); border-radius: 10px; padding: 13px 16px; background: var(--pl-paper-light); color: var(--pl-ink); font-family: var(--pl-sans); width: 100%; box-shadow: none;
}
.pl-site input:focus, .pl-site textarea:focus, .pl-site select:focus { border-color: var(--pl-plum); outline: 0; box-shadow: 0 0 0 4px rgba(93, 42, 73, 0.12); }
.pl-site .wpcf7 form { background: var(--pl-paper-light); box-shadow: var(--pl-shadow); padding: clamp(24px, 4vw, 48px); }
.pl-site .wpcf7 label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pl-muted); display: block; }

/* ---------- Tables, misc ---------- */
.pl-site table { border-collapse: collapse; width: 100%; background: var(--pl-paper-light); }
.pl-site th, .pl-site td { border: 1px solid var(--pl-line); padding: 12px 14px; text-align: left; }
.pl-site th { background: var(--pl-olive-mist); color: var(--pl-green-deep); font-weight: 500; }
.pl-site blockquote { border-left: 2px solid var(--pl-plum); padding: 6px 0 6px 26px; margin: 32px 0; font-family: var(--pl-serif); font-style: italic; font-size: 1.3rem; color: var(--pl-plum); background: transparent; }
.pl-site hr, .pl-site .wp-block-separator { border: 0; border-top: 1px solid var(--pl-line); }
.pl-site iframe { max-width: 100%; border-radius: 6px; }

/* ---------- Footer ---------- */
.pl-footer { background-color: var(--pl-green-night); background-image: var(--pl-grain); color: var(--pl-olive-soft); font-size: 0.95rem; }
.pl-footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 56px; padding-top: 76px; padding-bottom: 56px; }
.pl-site .pl-footer a { color: var(--pl-paper); }
.pl-site .pl-footer a:hover { color: var(--pl-lilac); }
.pl-site .pl-footer .pl-logo__name { color: var(--pl-paper); }
.pl-site .pl-footer .pl-logo__tag { color: var(--pl-lilac); }
.pl-site .pl-footer .pl-logo__img { background: var(--pl-paper-light); border-radius: 50%; padding: 5px; width: 62px; height: 62px; }
.pl-footer__brand p { margin: 24px 0 0; max-width: 380px; }
.pl-site.pl-site .pl-footer__title { font-family: var(--pl-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--pl-olive); margin: 6px 0 22px; line-height: 1.4; }
.pl-lang-th.pl-site.pl-site .pl-footer__title { letter-spacing: 0.08em; font-size: 0.85rem; }
.pl-footer__list { list-style: none; margin: 0; padding: 0; }
.pl-footer__list li { margin-bottom: 10px; }
.pl-qr { display: flex; gap: 18px; flex-wrap: wrap; }
.pl-qr__item { margin: 0; text-align: center; background: var(--pl-paper-light); padding: 7px 7px 6px; }
.pl-qr__item:nth-child(odd) { transform: rotate(-2deg); }
.pl-qr__item:nth-child(even) { transform: rotate(1.5deg); }
.pl-site .pl-qr__item img { width: 86px; height: 86px; object-fit: contain; display: block; }
.pl-qr__item figcaption { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; color: var(--pl-green-deep); }
.pl-footer__bottom { border-top: 1px solid rgba(241, 234, 219, 0.14); padding: 20px 0; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pl-olive); text-align: center; }
.pl-lang-th .pl-footer__bottom { letter-spacing: 0.04em; font-size: 0.82rem; }
@media (max-width: 900px) { .pl-footer__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; } }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	body.pl-site { font-size: 16px; }
	.pl-site .pl-hero__media { margin-top: 28px; }
	.pl-site .pl-arch { max-width: 320px; }
	.pl-site .pl-split__media .pl-print { right: 0; }
	.pl-site .pl-paths { gap: 56px; }
	.pl-site .pl-tiles { gap: 22px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pl-site * { transition: none !important; }
}

/* ---------- Additions ---------- */
.pl-site .pl-path .pl-arch--path { max-width: 250px; }
.pl-site .pl-path .pl-arch--path img { border-color: var(--pl-paper-light); }
.pl-site .pl-more--after { margin-top: 44px; }
.pl-site .pl-print figcaption.wp-element-caption { text-align: left; }
.pl-site .pl-split__media .wp-block-image { margin: 0; }
.pl-site .pl-split__media .pl-arch { max-width: 400px; }
.pl-site .pl-split__media .pl-arch img { object-position: 50% 30%; border-color: var(--pl-paper-light); }
.pl-site .pl-section--night .pl-head { margin-bottom: 30px; }
.pl-site .pl-section--night { padding-top: clamp(48px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 76px); }
.pl-site.pl-site .pl-section--night .pl-lead { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 300; line-height: 1.25; color: var(--pl-paper); max-width: 22em; margin: 0; }

/* ---------- v1.1.1 ---------- */
.pl-site .pl-header .pl-logo__img { mix-blend-mode: multiply; }
.pl-site.pl-site .is-style-outline > .wp-block-button__link { font-size: 0.76rem; letter-spacing: 0.24em; padding: 1.05em 2.1em; }
.pl-lang-th.pl-site.pl-site .is-style-outline > .wp-block-button__link { letter-spacing: 0.06em; font-size: 0.92rem; }
.pl-site .pl-tile h3 { margin-top: 0; }
.pl-site .pl-cta .pl-label { margin-bottom: 24px; }
@media (max-width: 781px) {
	.pl-site .pl-section { padding-left: 20px; padding-right: 20px; }
	.pl-site .pl-stamp { left: 2%; bottom: -8%; }
	.pl-site .pl-split__media { margin-bottom: 56px; }
	.pl-site .pl-notes { gap: 44px; }
	.pl-site .wp-block-gallery.pl-photos .wp-block-image { width: calc(50% - 9px) !important; }
}
@media (max-width: 520px) { .pl-site .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-site.pl-site .pl-tile h3 { font-size: 1.05rem; } }

/* ---------- v1.1.2 ---------- */
.pl-site h1, .pl-site h2, .pl-site h3 { overflow-wrap: anywhere; }
.pl-site .pl-hero > .wp-block-columns > .wp-block-column { min-width: 0; }
@media (max-width: 600px) {
	.pl-topbar__links { display: none; }
	.pl-topbar__inner { justify-content: center; }
	.pl-site.pl-site .pl-hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
	.pl-site .pl-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.pl-site .pl-hero .wp-block-button, .pl-site .pl-hero .wp-block-button__link { width: 100%; text-align: center; }
	.pl-site .wp-block-gallery.pl-scroller > .wp-block-image img { height: min(270px, 62vw) !important; }
}

/* ---------- v1.1.3 ---------- */
.pl-site .entry-meta .posted-by, .pl-site .entry-meta .author-name { display: none; }

/* ---------- v1.1.4: hero photo is zoomed inside the arch so only hands and face show ---------- */
.pl-site .pl-hero__media .pl-arch { overflow: hidden; border-radius: 999px 999px 10px 10px; border: 7px solid var(--pl-paper); box-shadow: 0 0 0 13px var(--pl-green), 0 0 0 14px rgba(241, 234, 219, 0.45); }
.pl-site .pl-hero__media .pl-arch::after { display: none; }
.pl-site .pl-hero__media .pl-arch img { border: 0; border-radius: 0; transform: scale(1.42); transform-origin: 100% 62%; }
.pl-site .pl-hero__media { padding: 14px; }

/* ---------- v1.2.0: row of prints without scrolling; arrows for long strips ---------- */
.pl-site .wp-block-gallery.pl-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: clamp(16px, 2.4vw, 30px); padding: 18px 6px 8px; }
.pl-site .wp-block-gallery.pl-row > .wp-block-image { flex: 1 1 0; min-width: 0; width: auto !important; margin: 0 !important; background: var(--pl-paper-light); padding: 10px 10px 32px; box-shadow: var(--pl-shadow); transition: transform 0.3s ease; }
.pl-site .wp-block-gallery.pl-row > .wp-block-image.pl-wide { flex: 2 1 0; }
.pl-site .wp-block-gallery.pl-row > .wp-block-image:nth-child(odd) { transform: rotate(-1.2deg); }
.pl-site .wp-block-gallery.pl-row > .wp-block-image:nth-child(even) { transform: rotate(1deg); }
.pl-site .wp-block-gallery.pl-row > .wp-block-image:hover { transform: rotate(0) translateY(-4px); }
.pl-site .wp-block-gallery.pl-row > .wp-block-image img { width: 100% !important; height: auto !important; display: block; border-radius: 0; object-fit: contain; }
.pl-site .wp-block-gallery.pl-row > .wp-block-image a { display: block; }
@media (max-width: 781px) {
	.pl-site .wp-block-gallery.pl-row { flex-wrap: wrap; }
	.pl-site .wp-block-gallery.pl-row > .wp-block-image, .pl-site .wp-block-gallery.pl-row > .wp-block-image.pl-wide { flex: 1 1 100%; }
}
.pl-site .wp-block-gallery.pl-scroller { scrollbar-width: none; }
.pl-site .wp-block-gallery.pl-scroller::-webkit-scrollbar { display: none; }
.pl-scroller-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.pl-site.pl-site .pl-scroller-btn { width: 52px; height: 52px; padding: 0; border-radius: 50%; background: transparent; border: 1px solid currentColor; color: var(--pl-green-deep); cursor: pointer; position: relative; transition: background 0.2s ease, color 0.2s ease; }
.pl-site.pl-site .pl-on-dark .pl-scroller-btn { color: var(--pl-paper); }
.pl-site.pl-site .pl-scroller-btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-70%, -50%) rotate(45deg); }
.pl-site.pl-site .pl-scroller-btn--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pl-site.pl-site .pl-scroller-btn:hover { background: var(--pl-plum); border-color: var(--pl-plum); color: var(--pl-paper-light); transform: none; }
.pl-site .pl-scroller-nav + .pl-hint { margin-top: -34px; max-width: 70%; margin-left: 0; }
@media (max-width: 600px) { .pl-site .pl-scroller-nav + .pl-hint { margin-top: 14px; max-width: none; } }

/* ---------- v1.3.0: "Coming up" is a large stage right under the hero: one banner at a time, full width, changes by itself ---------- */
.pl-site .pl-section--now { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(52px, 7vw, 88px); }
.pl-site .pl-section--now .pl-head { margin-bottom: clamp(22px, 3vw, 34px); }
.pl-site .wp-block-gallery.pl-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; }
.pl-site .wp-block-gallery.pl-stage > .wp-block-image { width: auto !important; max-width: none; margin: 0 !important; background: var(--pl-paper-light); padding: clamp(8px, 1.1vw, 14px); box-shadow: var(--pl-shadow); align-self: center; }
.pl-site .wp-block-gallery.pl-stage > .wp-block-image a { display: block; }
.pl-site .wp-block-gallery.pl-stage > .wp-block-image img { width: 100% !important; height: auto !important; max-height: 86vh; object-fit: contain; display: block; border-radius: 0; }
.pl-site .wp-block-gallery.pl-stage.is-ready > .wp-block-image { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.pl-site .wp-block-gallery.pl-stage.is-ready > .wp-block-image.is-active { opacity: 1; visibility: visible; }
.pl-stage-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.pl-site.pl-site .pl-stage-dot { width: 11px; height: 11px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--pl-green-deep); background: transparent; cursor: pointer; }
.pl-site.pl-site .pl-stage-dot.is-active, .pl-site.pl-site .pl-stage-dot:hover { background: var(--pl-plum); border-color: var(--pl-plum); }
.pl-site .pl-stage-nav + .pl-hint { text-align: center; }
@media (prefers-reduced-motion: reduce) { .pl-site .wp-block-gallery.pl-stage.is-ready > .wp-block-image { transition: none; } }

/* ---------- v1.3.1: older articles and pages (written long before this design) ---------- */
/* one calm heading scale inside articles, whatever heading level the author picked */
.pl-site.pl-site:not(.pl-has-hero) .entry-content h1, .pl-site.pl-site:not(.pl-has-hero) .entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); font-weight: 400; line-height: 1.22; margin: 1.7em 0 0.55em; }
.pl-site.pl-site:not(.pl-has-hero) .entry-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.28; margin: 1.5em 0 0.5em; }
.pl-site.pl-site:not(.pl-has-hero) .entry-content h4, .pl-site.pl-site:not(.pl-has-hero) .entry-content h5, .pl-site.pl-site:not(.pl-has-hero) .entry-content h6 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin: 1.4em 0 0.45em; }
.pl-site:not(.pl-has-hero) .entry-content > :first-child { margin-top: 0; }
.pl-site:not(.pl-has-hero) .entry-content h1 strong, .pl-site:not(.pl-has-hero) .entry-content h2 strong, .pl-site:not(.pl-has-hero) .entry-content h3 strong { font-weight: inherit; }
.pl-site:not(.pl-has-hero) .entry-content h1 u, .pl-site:not(.pl-has-hero) .entry-content h2 u, .pl-site:not(.pl-has-hero) .entry-content h3 u, .pl-site:not(.pl-has-hero) .entry-content h4 u { text-decoration: none; }
/* colours typed by hand in old posts are brought back to the palette: reds and pinks to plum, blues and bright greens to deep green, greys to the text colour */
.pl-site .entry-content [style*="color: #ff0000"], .pl-site .entry-content [style*="color:#ff0000"], .pl-site .entry-content [style*="color: red"], .pl-site .entry-content [style*="color: #ed1c24"], .pl-site .entry-content [style*="color: #ff00ff"], .pl-site .entry-content [style*="color: #800080"] { color: var(--pl-plum) !important; }
.pl-site .entry-content [style*="color: #0000ff"], .pl-site .entry-content [style*="color:#0000ff"], .pl-site .entry-content [style*="color: blue"], .pl-site .entry-content [style*="color: #00a859"], .pl-site .entry-content [style*="color: #008000"], .pl-site .entry-content [style*="color: #00ff00"], .pl-site .entry-content [style*="color: #339966"] { color: var(--pl-green) !important; }
.pl-site .entry-content [style*="color: #282828"], .pl-site .entry-content [style*="color: #000000"], .pl-site .entry-content [style*="color: #333333"], .pl-site .entry-content [style*="color: #555555"] { color: inherit !important; }
.pl-site .entry-content [style*="background-color"] { background-color: transparent !important; }
.pl-site .entry-content [style*="font-size: 1"], .pl-site .entry-content [style*="font-size: 2"], .pl-site .entry-content [style*="font-size: 8"], .pl-site .entry-content [style*="font-size: 9"] { font-size: inherit !important; }
.pl-site .entry-content [style*="font-family"] { font-family: inherit !important; }
/* pasted "code" boxes are really plain text */
.pl-site .entry-content pre, .pl-site .entry-content code { font-family: inherit; font-size: 1em; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--pl-paper-light); color: inherit; border: 0; border-left: 2px solid var(--pl-olive); border-radius: 0; padding: 14px 18px; margin: 1.2em 0; }
.pl-site .entry-content code { padding: 0; border: 0; background: transparent; }
.pl-site .entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.pl-site .entry-content td, .pl-site .entry-content th { border: 1px solid var(--pl-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.pl-site .entry-content iframe, .pl-site .entry-content video { max-width: 100%; }
.pl-site .entry-content ul, .pl-site .entry-content ol { margin: 0 0 1.3em 1.3em; }
.pl-site .entry-content li { margin-bottom: 0.4em; }
.pl-site:not(.pl-has-hero) .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.pl-site.single-post .entry-content > p > img, .pl-site.page:not(.pl-has-hero) .entry-content > p > img { border-radius: 6px; }
/* post date only: no "By" with an empty name */
.pl-site.pl-site .entry-meta { font-size: 0; }
.pl-site.pl-site .entry-meta .posted-on, .pl-site.pl-site .entry-meta .posted-on * { font-size: 0.78rem; }
/* long Thai menu: the name next to the logo stays on one line */
.pl-site .pl-logo__name, .pl-site .pl-logo__tag { white-space: nowrap; }

/* ---------- v1.3.2: lists of posts, search and "not found" use the paper tones, not white boxes ---------- */
.pl-site .pl-logo { flex-shrink: 0; }
.pl-site.pl-site .ast-archive-description { padding-left: 0; padding-right: 0; }
.pl-site.pl-site .ast-archive-description .ast-archive-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.pl-site.pl-site .ast-article-inner { background: var(--pl-paper-light); box-shadow: none; border: 1px solid var(--pl-line); border-radius: 6px; padding: 22px 22px 20px; height: 100%; }
.pl-site .ast-article-inner .cat-links, .pl-site .ast-article-inner .cat-links a { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pl-plum); text-decoration: none; }
.pl-site .ast-article-inner .entry-content p, .pl-site .ast-article-inner .ast-excerpt-container p { color: var(--pl-muted); font-size: 0.95rem; margin: 10px 0 0; }
.pl-site .ast-article-inner .post-thumb:empty { display: none; }
.pl-site.pl-site .error-404, .pl-site.pl-site .ast-404-layout-1, .pl-site.pl-site .no-results { background: transparent; text-align: center; padding: clamp(40px, 8vw, 96px) 0; }
.pl-site.pl-site .error-404 .page-title { font-size: clamp(2rem, 4vw, 3rem); }
.pl-site.pl-site .error-404 .page-sub-title { font-size: 1.1rem; font-weight: 400; color: var(--pl-muted); margin: 18px 0 30px; }
.pl-site .search-form { display: flex; gap: 10px; justify-content: center; align-items: stretch; max-width: 460px; margin: 0 auto; }
.pl-site .search-form label { flex: 1 1 auto; margin: 0; position: static; display: flex; gap: 10px; }
.pl-site.pl-site .search-form .search-field { flex: 1 1 auto; width: auto; min-width: 0; background: var(--pl-paper-light); border: 1px solid var(--pl-line); border-radius: 999px; padding: 12px 20px; }
.pl-site.pl-site .search-form .search-submit { position: static; flex: 0 0 auto; width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: var(--pl-green-deep); color: var(--pl-paper-light); display: inline-flex; align-items: center; justify-content: center; }
.pl-site .search-form .search-submit svg { width: 16px; height: 16px; fill: currentColor; }
.pl-site .search-form input[type="submit"] { display: none; }
/* v1.3.3: one search button, with a visible icon */
.pl-site.pl-site.pl-site .search-form input.search-submit, .pl-site.pl-site.pl-site .search-form input[type="submit"] { display: none; }
.pl-site.pl-site .search-form button.search-submit i, .pl-site.pl-site .search-form button.search-submit .ast-icon { display: inline-flex; line-height: 0; }
.pl-site.pl-site .search-form button.search-submit svg, .pl-site.pl-site .search-form button.search-submit svg path { width: 17px; height: 17px; fill: var(--pl-paper-light) !important; }

/* ---------- v1.4.0: inner pages built with blocks (Courses) ---------- */
.pl-site.pl-site.page:not(.pl-has-hero).pl-wide-page .entry-content, .pl-site.pl-site.page:not(.pl-has-hero).pl-wide-page .entry-header { max-width: none; }
.pl-site .pl-page-intro { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 60px); }
.pl-site.pl-site .pl-page-intro .pl-lead { margin: 0; max-width: none; font-size: 1.2rem; }
.pl-site .pl-page-block { margin: 0 0 clamp(48px, 7vw, 88px); }
.pl-site.pl-site.pl-site .pl-page-block > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 30px; padding-top: 26px; border-top: 1px solid var(--pl-line); }
.pl-site .pl-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-site.pl-site .pl-tile .pl-tile__line { font-size: 0.95rem; color: var(--pl-muted); margin: 8px 0 0; line-height: 1.55; }
.pl-site.pl-site .pl-tile h3 a, .pl-site.pl-site .pl-tile .wp-block-image a { text-decoration: none; }
.pl-site .pl-page-cta { text-align: center; background: var(--pl-olive-mist, #e3eedb); border-radius: 10px; padding: clamp(36px, 6vw, 68px) 24px; }
.pl-site.pl-site.pl-site .pl-page-cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 26px; }
@media (max-width: 1020px) { .pl-site .pl-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pl-site .pl-tiles--3, .pl-site .pl-tiles { grid-template-columns: 1fr 1fr; } }
/* v1.4.1: block-built inner pages line up with the page title; tile headings sit close to their label */
.pl-site.pl-site .pl-page-intro, .pl-site.pl-site .pl-page-block { padding-left: 0; padding-right: 0; max-width: none; }
.pl-site.pl-site .pl-page-intro .pl-lead { max-width: 760px; }
.pl-site.pl-site.pl-site.pl-site .entry-content .pl-tile h3 { margin: 0; font-size: 1.25rem; font-weight: 400; }
.pl-site.pl-site.pl-site .pl-tile a { text-decoration: none; }
/* v1.4.2: two rows of tiles (levels, then classes) */
.pl-site .pl-tiles + .pl-tiles { margin-top: clamp(30px, 4vw, 48px); }

/* ---------- v1.5.0: inner pages, posts and lists open with a green title band and close with an invitation ---------- */
.pl-site.pl-site.pl-site:not(.pl-has-hero) #primary { padding-top: 0; }
.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header,
.pl-site.pl-site.single-post .entry-header,
.pl-site.pl-site .ast-archive-description {
	position: relative; max-width: none; margin: 0 0 clamp(40px, 6vw, 72px); border: 0;
	padding: clamp(46px, 6.5vw, 84px) min(300px, 26vw) clamp(42px, 6vw, 76px) 0;
	background: var(--pl-green); box-shadow: 0 0 0 100vmax var(--pl-green); clip-path: inset(0 -100vmax);
}
.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header::before,
.pl-site.pl-site.single-post .entry-header::before,
.pl-site.pl-site .ast-archive-description::before {
	content: var(--pl-label, "Peaceful Life"); display: block; margin: 0 0 16px;
	font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pl-olive-soft);
}
.pl-lang-th.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header::before,
.pl-lang-th.pl-site.pl-site.single-post .entry-header::before,
.pl-lang-th.pl-site.pl-site .ast-archive-description::before { letter-spacing: 0.12em; font-size: 0.8rem; }
/* the arch, the same shape as on the home page, standing at the right end of the band */
.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header::after,
.pl-site.pl-site.single-post .entry-header::after,
.pl-site.pl-site .ast-archive-description::after {
	content: ""; position: absolute; right: 12px; bottom: -40px; width: min(210px, 20vw); height: min(250px, 24vw);
	border: 5px solid var(--pl-paper); border-radius: 999px 999px 0 0; box-shadow: 0 0 0 11px var(--pl-green), 0 0 0 12px rgba(241, 234, 219, 0.4); opacity: 0.9;
}
.pl-site.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header .entry-title,
.pl-site.pl-site.pl-site.single-post .entry-header .entry-title,
.pl-site.pl-site.pl-site .ast-archive-description .ast-archive-title { color: var(--pl-paper-light); margin: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; max-width: 18em; }
.pl-lang-th.pl-site.pl-site.pl-site article > .entry-header .entry-title { line-height: 1.35; }
.pl-site.pl-site.single-post .entry-header .entry-meta { margin-top: 18px; }
.pl-site.pl-site.single-post .entry-header .entry-meta .posted-on, .pl-site.pl-site.single-post .entry-header .entry-meta .posted-on * { color: var(--pl-olive-soft); }
@media (max-width: 700px) {
	.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header, .pl-site.pl-site.single-post .entry-header, .pl-site.pl-site .ast-archive-description { padding-right: 0; }
	.pl-site.pl-site.page:not(.pl-has-hero) article > .entry-header::after, .pl-site.pl-site.single-post .entry-header::after, .pl-site.pl-site .ast-archive-description::after { display: none; }
}
/* reading column: a little larger, first paragraph leads */
.pl-site.page:not(.pl-has-hero):not(.pl-wide-page) .entry-content, .pl-site.single-post .entry-content { font-size: 1.05rem; line-height: 1.75; }
.pl-site.page:not(.pl-has-hero):not(.pl-wide-page) .entry-content > p:first-of-type, .pl-site.single-post .entry-content > p:first-of-type { font-size: 1.18rem; line-height: 1.65; color: var(--pl-green-deep); }
.pl-site.pl-site:not(.pl-has-hero) .entry-content .pl-page-block > h2, .pl-site.pl-site:not(.pl-has-hero) .entry-content .pl-page-cta h2 { border-top: 0; padding-top: 0; }
.pl-site.pl-site:not(.pl-has-hero) .entry-content .pl-page-block > h2 { border-top: 1px solid var(--pl-line); padding-top: 26px; }
.pl-site:not(.pl-has-hero) .entry-content ul:not(.pl-linkcards):not(.wp-block-list) li::marker, .pl-site:not(.pl-has-hero) .entry-content ul.wp-block-list:not(.pl-linkcards) li::marker { color: var(--pl-plum); }
.pl-site.single-post .entry-content > p > img, .pl-site.page:not(.pl-has-hero) .entry-content > p > img, .pl-site:not(.pl-has-hero) .entry-content > figure.wp-block-image img { box-shadow: var(--pl-shadow); border: 8px solid var(--pl-paper-light); border-radius: 0; }
/* a plain list of links shown as cards (class pl-linkcards on a List block) */
.pl-site.pl-site .entry-content ul.pl-linkcards { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: plcard; }
.pl-site .entry-content ul.pl-linkcards li { margin: 0; counter-increment: plcard; }
.pl-site.pl-site.pl-site .entry-content ul.pl-linkcards a { display: block; height: 100%; padding: 26px 26px 30px; background: var(--pl-paper-light); border: 1px solid var(--pl-line); border-radius: 6px; text-decoration: none; color: var(--pl-green-deep); font-size: 1.3rem; line-height: 1.25; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.pl-site .entry-content ul.pl-linkcards a::before { content: "0" counter(plcard); display: block; font-family: var(--pl-serif); font-style: italic; font-size: 1.1rem; color: var(--pl-plum); margin-bottom: 26px; }
.pl-site.pl-site.pl-site .entry-content ul.pl-linkcards a:hover { background: var(--pl-green); color: var(--pl-paper-light); transform: translateY(-3px); }
.pl-site .entry-content ul.pl-linkcards a:hover::before { color: var(--pl-olive-soft); }
@media (max-width: 900px) { .pl-site.pl-site .entry-content ul.pl-linkcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pl-site.pl-site .entry-content ul.pl-linkcards { grid-template-columns: 1fr; } }
/* closing band above the footer on inner pages */
.pl-site.pl-site.pl-site:not(.pl-has-hero) #primary { padding-bottom: clamp(56px, 8vw, 96px); }
.pl-prefooter { background: var(--pl-olive-soft); background-image: var(--pl-grain); padding: clamp(48px, 7vw, 84px) 24px; text-align: center; }
.pl-site.pl-site .pl-prefooter h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 26px; color: var(--pl-green-deep); }
.pl-prefooter__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pl-site.pl-site .pl-prefooter a.pl-btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; background: var(--pl-green-deep); color: var(--pl-paper-light); border: 1px solid var(--pl-green-deep); }
.pl-site.pl-site .pl-prefooter a.pl-btn--line { background: transparent; color: var(--pl-green-deep); }
.pl-site.pl-site .pl-prefooter a.pl-btn:hover { background: var(--pl-plum); border-color: var(--pl-plum); color: var(--pl-paper-light); }
.pl-lang-th.pl-site.pl-site .pl-prefooter a.pl-btn { letter-spacing: 0.04em; font-size: 0.92rem; }
/* contact form sits on the left of the reading column, not floating in the middle */
.pl-site .wpcf7 { max-width: 640px; }
/* v1.5.1: rules typed by hand in old pages are quieter; the article title band also on posts */
.pl-site:not(.pl-has-hero) .entry-content hr { border: 0; border-top: 1px solid var(--pl-line); margin: 1.6em 0; height: 0; background: none; }
.pl-site:not(.pl-has-hero) .entry-content > hr:first-child, .pl-site:not(.pl-has-hero) .entry-content > hr:last-child { display: none; }
.pl-site.single-post .entry-header { max-width: none; }
/* v1.5.2: a title block pasted inside an article is plain text, not a second band; list headers read on green; search header aligned */
.pl-site.pl-site.pl-site.pl-site .entry-content .entry-header { background: none; box-shadow: none; clip-path: none; padding: 0; margin: 0 0 1.2em; max-width: none; position: static; }
.pl-site.pl-site.pl-site.pl-site .entry-content .entry-header::before, .pl-site.pl-site.pl-site.pl-site .entry-content .entry-header::after { display: none; }
.pl-site.pl-site.pl-site.pl-site .entry-content .entry-header .entry-title { color: var(--pl-green-deep); font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.pl-site.pl-site .ast-archive-description { text-align: left; }
.pl-site.pl-site .ast-archive-description p, .pl-site.pl-site .ast-archive-description .ast-archive-title span { color: var(--pl-olive-mist); max-width: 46em; }
.pl-site.pl-site .ast-archive-description p { margin: 16px 0 0; font-size: 1rem; }
/* v1.5.3: search results header matches the other title bands */
.pl-site.pl-site.pl-site.search .ast-archive-description, .pl-site.pl-site.pl-site.search .ast-archive-description .ast-archive-title { text-align: left; }
.pl-site .ast-archive-description .ast-breadcrumbs-wrapper { display: none; }
.pl-site.pl-site.pl-site .ast-archive-description .ast-archive-title span { color: var(--pl-olive-soft); font-size: inherit; font-weight: inherit; }
/* v1.5.4 */
.pl-site.pl-site.pl-site.search .ast-archive-description { padding-left: 0; }
/* v1.5.5: same as 1.5.4, new number so that no cached copy is served */
/* v1.6.0: greens are the Peaceful Life green of the logo and of the previous site (#31732e) instead of olive */

/* ---------- v1.7.0: one theme for several Peaceful Life sites; pieces for pages converted from the old page builder ---------- */
.pl-footer__qr:not(:has(figure)) { display: none; }
.pl-site:not(.pl-has-hero) .entry-content .wp-block-columns, .pl-site .pl-flow .wp-block-columns { gap: clamp(20px, 3vw, 44px); margin: 0 0 1.6em; }
.pl-site:not(.pl-has-hero) .entry-content .wp-block-column > :first-child, .pl-site .pl-flow .wp-block-column > :first-child { margin-top: 0; }
.pl-site.pl-site:not(.pl-has-hero) .entry-content .wp-block-button__link, .pl-site.pl-site .pl-flow .wp-block-button__link { background: var(--pl-green-deep); color: var(--pl-paper-light); border-radius: 999px; padding: 14px 28px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--pl-green-deep); }
.pl-site.pl-site:not(.pl-has-hero) .entry-content .wp-block-button__link:hover, .pl-site.pl-site .pl-flow .wp-block-button__link:hover { background: var(--pl-plum); border-color: var(--pl-plum); color: var(--pl-paper-light); }
.pl-site:not(.pl-has-hero) .entry-content .wp-block-buttons, .pl-site .pl-flow .wp-block-buttons { margin: 1.2em 0 1.8em; gap: 12px; }
/* a picture with its text and button (was a "banner") */
.pl-site .pl-banner { margin: 0 0 clamp(28px, 4vw, 48px); }
.pl-site .pl-banner > .wp-block-image { margin: 0 0 18px; }
.pl-site .pl-banner > .wp-block-image img { width: 100%; height: auto; display: block; border: 8px solid var(--pl-paper-light); box-shadow: var(--pl-shadow); border-radius: 0; }
/* what a student says (was a "testimonial") */
.pl-site .entry-content .pl-quote { background: var(--pl-paper-light); border-left: 2px solid var(--pl-plum); padding: 22px 26px; margin: 0 0 22px; }
.pl-site.pl-site .entry-content .pl-quote p { font-size: 1rem; line-height: 1.65; margin: 0 0 10px; color: var(--pl-ink); }
.pl-site.pl-site .entry-content .pl-quote .pl-label { margin: 12px 0 0; color: var(--pl-plum); }
.pl-site .entry-content .pl-quote .wp-block-image { margin: 0 0 14px; max-width: 96px; }
.pl-site .entry-content .pl-quote .wp-block-image img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 0; box-shadow: none; }
/* a person or an item with a picture (was "team member" / "image box") */
.pl-site .entry-content .pl-card { margin: 0 0 26px; }
.pl-site .entry-content .pl-card .wp-block-image { margin: 0 0 14px; }
.pl-site .entry-content .pl-card .wp-block-image img { width: 100%; height: auto; border-radius: 6px; border: 0; box-shadow: none; }
.pl-site.pl-site.pl-site .entry-content .pl-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
/* converted pages use the full width; plain text inside stays readable */
.pl-site.pl-wide-page .entry-content > p, .pl-site.pl-wide-page .entry-content > ul, .pl-site.pl-wide-page .entry-content > ol, .pl-site.pl-wide-page .entry-content > h2, .pl-site.pl-wide-page .entry-content > h3, .pl-site.pl-wide-page .entry-content > h4 { max-width: 820px; }
.pl-site .entry-content .pl-stage { margin-bottom: 8px; }
.pl-site .entry-content .wp-block-embed { margin: 0 0 1.6em; }
.pl-site .entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
@media (max-width: 781px) { .pl-site .entry-content .wp-block-columns { flex-wrap: wrap; } .pl-site .entry-content .wp-block-columns > .wp-block-column { flex-basis: 100% !important; } }
/* ---------- v1.7.1: fact lists, and text that was typed white for the old dark backgrounds ---------- */
.pl-site.pl-site .entry-content ul.pl-facts { list-style: none; margin: 0 0 1.8em; padding: 0; border-top: 1px solid var(--pl-line); }
.pl-site .entry-content ul.pl-facts li { margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--pl-line); font-size: 0.98rem; color: var(--pl-green-deep); }
.pl-site .entry-content ul.pl-facts li::marker { content: ""; }
.pl-site:not(.pl-has-hero) .entry-content [style*="color: #ffffff"], .pl-site:not(.pl-has-hero) .entry-content [style*="color:#ffffff"], .pl-site:not(.pl-has-hero) .entry-content [style*="color: #fff;"], .pl-site:not(.pl-has-hero) .entry-content [style*="color: white"], .pl-site:not(.pl-has-hero) .entry-content [style*="color: rgb(255, 255, 255)"] { color: inherit !important; }
.pl-site .entry-content .emoji-sizer { font-size: inherit; }
.pl-site .entry-content .pl-card h4, .pl-site .entry-content .pl-card h3 { margin-top: 0; }
.pl-site.pl-site .entry-content .pl-card p { font-size: 0.96rem; color: var(--pl-muted); }
/* ---------- v1.7.2: long menus stay inside the header; home pages made from converted content ---------- */
.pl-menu { flex-wrap: wrap; justify-content: flex-end; }
.pl-site .pl-menu:has(> li:nth-child(8)) > li > a { padding: 8px 10px; font-size: 0.8rem; letter-spacing: 0.02em; }
.pl-site .pl-menu:has(> li:nth-child(8)) > li.menu-item-has-children > a::after { margin-left: 5px; }
.pl-site .pl-hero__media--plain .pl-arch img { transform: none; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pl-site .pl-flow > * + * { margin-top: 1.5em; }
.pl-site.pl-site .pl-flow > h2:first-child { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 clamp(24px, 3vw, 40px); }
.pl-site .pl-flow .wp-block-columns { margin-bottom: 0; }
.pl-site .pl-flow .pl-banner { margin-bottom: 0; }
@media (max-width: 1020px) { .pl-menu { justify-content: flex-start; } }
/* ---------- v1.7.3: converted home sections line up with the header; rules for converted pages no longer touch the hand-built hero ---------- */
.pl-site .pl-section.pl-flow { padding-left: max(24px, calc((100% - var(--pl-wrap)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--pl-wrap)) / 2 + 24px)); }
.pl-site .pl-section.pl-flow > * { max-width: none; margin-left: 0; margin-right: 0; }
.pl-site .pl-menu:has(> li:nth-child(8)) > li > a { padding: 8px 7px; font-size: 0.77rem; }
.pl-site.pl-site .pl-flow h2 strong, .pl-site.pl-site .pl-flow h3 strong { font-weight: inherit; }
.pl-site.pl-site .pl-flow [style*="color: #ffffff"], .pl-site.pl-site .pl-flow [style*="color:#ffffff"] { color: inherit !important; }
.pl-site.pl-site .pl-flow .wp-block-columns h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
/* ---------- v1.7.4: pictures that carry words (posters) are never cropped; nothing may be wider than a phone screen ---------- */
.pl-site .entry-content img { max-width: 100%; height: auto; }
.pl-site .entry-content iframe, .pl-site .entry-content video, .pl-site .entry-content table { max-width: 100%; }
.pl-site .entry-content { overflow-wrap: break-word; }
/* ---------- v1.7.5: phone review ---------- */
.pl-site .wpcf7 fieldset.hidden-fields-container { display: none; }
@media (max-width: 600px) {
	.pl-site .entry-content .wp-block-gallery.has-nested-images:not(.pl-stage):not(.pl-scroller):not(.pl-row) > figure.wp-block-image { width: 100% !important; flex-grow: 1; }
	.pl-site .entry-content .wp-block-gallery.has-nested-images:not(.pl-stage):not(.pl-scroller):not(.pl-row) > figure.wp-block-image img { height: auto !important; object-fit: contain; }
	.pl-site .entry-content [style*="text-align: justify"], .pl-site .entry-content [style*="text-align:justify"] { text-align: left !important; }
}
