/* Pages, posts, blog listings, search, 404. */
.pl-prose { padding-top: 32px; }
.pl-prose > * + * { margin-top: 20px; }
.pl-prose > :is(h2, h3, h4) { margin-top: 40px; }
.pl-prose > :is(h2, h3, h4) + * { margin-top: 12px; }
.pl-prose p, .pl-prose li { line-height: 1.7; color: var(--soft); }
.pl-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.pl-prose ul:not([class]), .pl-prose ol:not([class]) { padding-left: 1.3em; }
.pl-prose ul:not([class]) li + li, .pl-prose ol:not([class]) li + li { margin-top: 6px; }
.pl-prose img { border-radius: var(--r-card); }
.pl-prose figure { margin-inline: auto; }
.pl-prose figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 8px; }
.pl-prose table { width: 100%; border-collapse: collapse; }
.pl-prose th, .pl-prose td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
.pl-prose blockquote { margin-inline: 0; }
.pl-blocks > .wp-block-columns { gap: clamp(24px, 1rem + 2vw, 48px); }
.wp-block-columns { display: flex; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.is-style-pl-checklist { padding: 0 !important; list-style: none; }
.is-style-pl-checklist li { position: relative; padding-left: 32px; }
.is-style-pl-checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.is-style-pl-accordion { border-bottom: 1px solid var(--border); padding: 18px 0; margin: 0 !important; }
.is-style-pl-accordion > summary { font-weight: 600; cursor: pointer; }
.is-style-pl-accordion > :not(summary) { margin-top: 10px; }
.pl-faq .pl-accordion, .pl-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.pl-faq summary { font-weight: 600; cursor: pointer; }
.pl-faq .pl-accordion__body { margin-top: 10px; }

/* Media + text and image card sections */
.pl-media-text { align-items: center; }
.pl-media-text .wp-block-image img { border-radius: var(--r-section); width: 100%; object-fit: cover; }
.pl-media-text h2 { margin-bottom: 4px; }
.pl-media-text p { color: var(--soft); }

/* Blog list */
.pl-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; margin-top: 32px; }
.pl-post-card { display: flex; flex-direction: column; gap: 14px; }
.pl-post-card__media { aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; background: var(--surface); display: block; }
.pl-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pl-post-card:hover .pl-post-card__media img { transform: scale(1.03); }
.pl-post-card__body { display: flex; flex-direction: column; gap: 6px; }
.pl-post-card__date { font-size: var(--fs-caption); color: var(--muted); }
.pl-post-card__title { font-size: 20px; line-height: 1.3; }
.pl-post-card__title a { color: var(--ink); }
.pl-post-card__title a:hover { color: var(--primary); }
.pl-post-card__excerpt { color: var(--muted); font-size: var(--fs-ui); }

/* Single post */
.pl-article__header { display: grid; gap: 16px; }
.pl-article__title { font-size: var(--fs-h1); line-height: 1.1; max-width: 900px; margin-top: 12px; }
.pl-article__meta { color: var(--muted); font-size: var(--fs-small); }
.pl-article__image { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-section); margin-top: 8px; }

/* 404 */
.pl-404 { margin-top: 32px; display: grid; gap: 16px; justify-items: start; padding-block: clamp(40px, 2rem + 4vw, 88px); }
.pl-404 h1 { font-size: var(--fs-display); line-height: 1.05; }
.pl-404 p { color: var(--muted); font-size: var(--fs-lead); }
.pl-404__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pl-blocks > ul.wp-block-list, .pl-blocks > ol.wp-block-list { margin-inline: auto; padding-left: calc(var(--gutter) + 1.3em); list-style: revert; }
.pl-blocks > ul.wp-block-list.is-style-pl-checklist { list-style: none; padding-left: var(--gutter) !important; }
.pl-blocks li + li { margin-top: 6px; }
.wp-block-column > ul.wp-block-list:not(.is-style-pl-checklist) { padding-left: 1.3em; list-style: revert; }

/* ---------- Article (single post) ---------- */
.pl-article__header { gap: 0; }
.pl-article__intro { max-width: 820px; margin: 28px auto 0; text-align: center; display: grid; justify-items: center; gap: 16px; }
.pl-article__cat { background: var(--primary-tint); border-color: var(--primary-tint); color: var(--primary); }
.pl-article__cat:hover { border-color: var(--primary); color: var(--primary); }
.pl-article__title { margin: 0; max-width: none; text-wrap: balance; }
.pl-article__meta { display: flex; gap: 10px; justify-content: center; color: var(--muted); font-size: var(--fs-small); margin: 0; }
.pl-article__image { display: block; max-width: 1040px; max-height: 520px; margin: 36px auto 0; aspect-ratio: 16 / 9; height: auto; }
.pl-article__body { padding-top: 40px; font-size: 17px; }
.pl-article__body > p:first-child { font-size: var(--fs-lead); color: var(--ink); }
.pl-article__body > :is(h2) { font-size: 28px; line-height: 1.2; }
.pl-article__body > :is(h3) { font-size: 21px; line-height: 1.3; }
.pl-article__body strong { color: var(--ink); }
.pl-article__body img { height: auto; }
.pl-article__body p:has(> img:only-child), .pl-article__body p:has(> a:only-child > img) { text-align: center; }
.pl-article__body blockquote, .pl-article__body > .wp-block-quote { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 20px 24px; max-width: 760px; }
.pl-article__footer { max-width: calc(1040px + 2 * var(--gutter)); margin-top: 48px; display: grid; gap: 24px; }
.pl-article__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; background: var(--primary-tint); border-radius: var(--r-section); padding: clamp(24px, 1rem + 2vw, 36px); }
.pl-article__cta-title { font-family: var(--font-h); font-weight: 700; font-size: 22px; color: var(--ink); margin: 0; }
.pl-article__cta-text { color: var(--soft); margin: 6px 0 0; max-width: 420px; }
.pl-article__back { color: var(--primary); font-weight: 600; justify-self: start; }

/* Classic-content lists and alignments inside page/post bodies */
.pl-prose > ul:not([class]), .pl-prose > ol:not([class]) { padding-left: 1.4em; }
.pl-prose li::marker { color: var(--primary); }
.pl-prose .aligncenter { display: block; margin-inline: auto; }
.pl-prose .alignleft { float: left; margin: 6px 24px 12px 0; }
.pl-prose .alignright { float: right; margin: 6px 0 12px 24px; }
.pl-prose > :is(h2, h3, h4) { clear: both; }

/* Blog card without any image */
.pl-post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--wp--preset--color--tile-oat-fg, #8A6A4A); opacity: .5; }

@media (max-width: 700px) {
	.pl-article__intro { text-align: left; justify-items: start; }
	.pl-article__meta { justify-content: flex-start; }
	.pl-article__image { border-radius: var(--r-card); margin-top: 24px; }
	.pl-prose .alignleft, .pl-prose .alignright { float: none; margin: 12px auto; }
}

/* ---------- FAQ accordions as cards ---------- */
.pl-faq { display: grid; gap: 10px; }
.pl-faq .pl-accordion, .pl-faq details, .is-style-pl-accordion { border: 0 !important; background: var(--surface); border-radius: var(--r-card); padding: 0 !important; transition: background .2s; }
.pl-faq details[open], .is-style-pl-accordion[open] { background: var(--primary-tint); }
.pl-faq summary, .is-style-pl-accordion > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; color: var(--ink); line-height: 1.4; }
.pl-faq summary::-webkit-details-marker, .is-style-pl-accordion > summary::-webkit-details-marker { display: none; }
.pl-faq summary::after, .is-style-pl-accordion > summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.pl-faq details[open] > summary::after, .is-style-pl-accordion[open] > summary::after { transform: rotate(45deg); }
.pl-faq summary:focus-visible, .is-style-pl-accordion > summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--r-card); }
.pl-faq .pl-accordion__body, .is-style-pl-accordion > :not(summary) { margin: 0 !important; padding: 0 22px 20px; }
.pl-faq .pl-accordion__body p { margin: 0; }
.pl-faq .pl-accordion__body p + p { margin-top: 10px; }
.pl-prose > .pl-faq { margin-top: 16px; }

/* ---------- Contact page ---------- */
.pl-prose > .pl-contact { gap: 24px !important; align-items: flex-start; }
.pl-contact__info { display: grid; align-content: start; gap: 20px; }
.pl-contact__info h2, .pl-form-card h2 { font-size: 26px; margin: 0 0 4px; }
.pl-contact-item { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; }
.pl-contact-item::before { content: ""; grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--white) var(--pl-ci) center / 22px no-repeat; }
.pl-contact-item--mail { --pl-ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.pl-contact-item--truck { --pl-ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8' fill='white'/%3E%3Ccircle cx='17' cy='17.5' r='1.8' fill='white'/%3E%3C/svg%3E"); }
.pl-contact-item h3 { font-size: var(--fs-small) !important; font-family: var(--font-b, inherit); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 !important; align-self: end; }
.pl-contact-item p { margin: 2px 0 0 !important; color: var(--ink); font-weight: 600; align-self: start; overflow-wrap: anywhere; }
.pl-contact-item a { color: var(--primary); text-decoration: none; }
.pl-form-card { border: 1.5px solid var(--border); border-radius: var(--r-section); padding: clamp(24px, 1rem + 2vw, 40px); height: 100%; }
.pl-form-card > p { color: var(--soft); }
.pl-form-card > * + * { margin-top: 16px; }

/* For Educators page: intro, steps, reason cards, CTA */
.pl-prose > .pl-edu-intro { align-items: center; }
.pl-edu-intro .wp-block-column:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pl-edu-intro .wp-block-column:first-child > * { margin: 0; }
.pl-edu-intro .is-style-pl-eyebrow { background: var(--surface); }
.pl-edu-intro h2 { font-size: var(--fs-h1, 2.25rem); line-height: 1.1; }
.pl-edu-intro .is-style-pl-checklist li { color: var(--ink); font-weight: 500; }
.pl-edu-intro .wp-block-image img { aspect-ratio: 4 / 5; max-height: 520px; }
.pl-prose > .pl-edu-section, .pl-prose > .pl-cat-tiles, .pl-prose > .pl-edu-cta { margin-top: clamp(48px, 2rem + 3vw, 80px); }
.pl-edu-section > h2 { margin: 0 0 20px; }
.pl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: pl-step; }
.pl-steps > .wp-block-group { counter-increment: pl-step; position: relative; margin: 0 !important; padding: 64px 20px 22px; background: var(--surface); border-radius: var(--r-card); }
.pl-steps > .wp-block-group::before { content: counter(pl-step); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.pl-steps h3 { margin: 0 0 6px !important; font-size: 18px; }
.pl-steps p { margin: 0 !important; font-size: var(--fs-small); line-height: 1.55; }
.pl-trust--cards > .wp-block-group { padding: 70px 20px 22px; background: var(--white); }
.pl-trust--cards > .wp-block-group::before { top: 22px; width: 30px; height: 30px; }
.pl-trust--cards p:first-child { font-size: 17px; color: var(--ink); }
.pl-trust--cards p + p { line-height: 1.55; }
.pl-icon-target { --pl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.pl-icon-grid { --pl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.pl-icon-heart { --pl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E"); }
.pl-edu-cta .wp-block-buttons { margin-top: 20px; }
.pl-edu-cta p { max-width: 620px; }
@media (max-width: 781px) {
	.pl-edu-intro .wp-block-column:last-child { order: -1; }
	.pl-edu-intro .wp-block-image img { aspect-ratio: 4 / 3; }
}
.pl-prose .wp-block-button__link { color: var(--white); text-decoration: none; }
.pl-prose .is-style-pl-outline .wp-block-button__link { color: var(--ink); }
.pl-prose .is-style-pl-outline .wp-block-button__link:hover { color: var(--white); }
.pl-prose .pl-cat-tiles a:not(.pl-section-head__link) { text-decoration: none; color: inherit; }

/* ---------- Page layout: line up with the page title panel ----------
   --pl-edge = left edge of the header container; --pl-pad = the title panel's inner padding.
   Text sits under the title text and is as wide as the panel's inner area. Boxes, columns and tiles span the full panel width. */
.pl-prose { --pl-edge: max(var(--gutter), calc((100% - var(--container)) / 2)); --pl-pad: clamp(24px, 1rem + 2vw, 40px); }
.pl-blocks.pl-prose > * { max-width: calc(100% - 2 * var(--pl-edge) - 2 * var(--pl-pad)); margin-left: calc(var(--pl-edge) + var(--pl-pad)); margin-right: auto; padding-inline: 0; }
.pl-blocks.pl-prose > :is(.alignwide, .wp-block-columns, .wp-block-table, .pl-contact, .pl-cat-tiles, .pl-edu-section, .pl-edu-cta, .is-style-pl-panel, .is-style-pl-panel-sale, .is-style-pl-panel-help, .wp-block-group.has-background) { max-width: calc(100% - 2 * var(--pl-edge)); margin-left: var(--pl-edge); }
.pl-blocks.pl-prose > :is(.is-style-pl-panel, .is-style-pl-panel-sale, .wp-block-group.has-background) { padding-inline: var(--pl-pad); }
.pl-blocks.pl-prose > .alignfull { max-width: none; margin-left: 0; }
.pl-blocks.pl-prose > :is(ul, ol).wp-block-list, .pl-blocks.pl-prose > :is(ul, ol) { margin-left: calc(var(--pl-edge) + var(--pl-pad)); padding-left: 1.3em; }
.pl-blocks.pl-prose > :is(ul, ol).is-style-pl-checklist { padding-left: 0; }
/* Blog articles: text column as wide as the main photo (1040px), centred under it. */
.pl-blocks.pl-prose.pl-article__body > *, .pl-blocks.pl-prose.pl-article__body > :is(ul, ol) { max-width: min(1040px, calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
@media (max-width: 700px) {
	.pl-prose { --pl-pad: 0px; }
}
