/* 28 States 28 Plates: what theme.json cannot express. */
.wp-site-blocks > * + * { margin-block-start: 0; }
main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
a { text-underline-offset: 3px; }

/* Header */
.p28-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .p28-header { top: var(--wp-admin--admin-bar--height, 32px); }
.p28-logo img { display: block; height: auto; }
.p28-nav { font-size: 15px; font-weight: 600; gap: 26px; }
.p28-nav a, .p28-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--sand); text-decoration: none; }
.p28-nav a:hover { color: var(--wp--preset--color--turmeric); }
.p28-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand); }
.p28-buy-small .wp-block-button__link { padding: 10px 20px; font-size: 15px; }

/* Shared */
.is-style-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--saffron); }
.p28-dark h1, .p28-dark h2, .p28-dark h3 { color: var(--wp--preset--color--paper); }
.p28-dark p { color: var(--wp--preset--color--sand); }
.p28-dark em, .p28-accent { font-style: italic; color: var(--wp--preset--color--turmeric); }
h1 em, h2 em { font-weight: 450; }

/* Hero */
.p28-hero { position: relative; overflow: hidden; }
.p28-hero::before {
	content: ""; position: absolute; inset: auto -10% -45% auto; width: 760px; height: 760px; border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 182, 50, 0.20), transparent 62%); pointer-events: none;
}
.p28-price { font-family: var(--wp--preset--font-family--display); font-size: 34px; font-weight: 600; color: var(--wp--preset--color--paper) !important; margin: 0; }
.p28-price small { font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 500; color: var(--wp--preset--color--sand); margin-left: 6px; }
.p28-trust { font-size: 14px !important; opacity: 0.85; }
.wp-block-image.is-style-book img {
	border-radius: 4px 10px 10px 4px;
	box-shadow: -14px 22px 0 -4px rgba(0, 0, 0, 0.18), 0 40px 70px rgba(0, 0, 0, 0.45);
	transform: rotate(-4deg);
}
.wp-block-image.is-style-photo img { border-radius: 18px; }

/* Stats */
.p28-stat { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1; color: var(--wp--preset--color--chilli); }
.p28-stat-label { margin: 8px 0 0; font-size: 15px; color: var(--wp--preset--color--muted); }
.p28-stats .wp-block-column { border-left: 2px solid var(--wp--preset--color--line); padding-left: 20px; }

/* Lists and chips */
ul.is-style-ticks { list-style: none; padding-left: 0; }
ul.is-style-ticks li { position: relative; padding-left: 30px; margin: 0 0 12px; }
ul.is-style-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 13px; height: 7px; border-left: 2.5px solid var(--wp--preset--color--saffron); border-bottom: 2.5px solid var(--wp--preset--color--saffron); transform: rotate(-45deg); }
.p28-chips p { margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); font-size: 14px; }
.p28-chips p strong { color: var(--wp--preset--color--forest); }

/* Photo band */
.p28-band .wp-block-cover__inner-container { max-width: 1180px; }
.p28-band blockquote, .p28-band p { color: #fff; }
.p28-quote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; max-width: 760px; }

/* Cards */
.wp-block-group.is-style-card { height: 100%; box-sizing: border-box; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: 26px; }
.wp-block-columns.p28-grid > .wp-block-column { display: flex; flex-direction: column; }
.p28-press-logo img { height: 34px; width: auto; object-fit: contain; }
.p28-launch img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.p28-meta { font-size: 14px !important; color: var(--wp--preset--color--muted); margin: 0; }

/* FAQ */
.p28-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 0; }
.p28-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-size: 21px; font-weight: 550; color: var(--wp--preset--color--forest); cursor: pointer; list-style: none; position: relative; padding-right: 36px; }
.p28-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.p28-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 28px; color: var(--wp--preset--color--saffron); }
.p28-faq .wp-block-details[open] summary::after { content: "–"; }
.p28-faq .wp-block-details p { margin-top: 12px; color: var(--wp--preset--color--muted); }

/* Pages converted from the old site */
.p28-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Footer */
.p28-footer a { color: var(--wp--preset--color--paper); }
.p28-footer-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--turmeric); }
.p28-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(241, 230, 208, 0.18); opacity: 0.75; }

/* WooCommerce bits on the block templates */
.wc-block-components-button:not(.is-link), .single_add_to_cart_button { border-radius: 999px !important; }

@media (max-width: 781px) {
	.p28-stats .wp-block-column { border-left: 0; padding-left: 0; }
	.wp-block-image.is-style-book img { transform: none; max-width: 300px; margin: 0 auto; display: block; }
	.p28-hero::before { width: 420px; height: 420px; }
}

/* Buttons on dark sections */
.p28-dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--paper); border: 2px solid rgba(251, 246, 236, 0.55); background: transparent; }
.p28-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--turmeric); color: var(--wp--preset--color--turmeric); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; color: var(--wp--preset--color--forest); }
.p28-header .p28-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--sand); }
.p28-header .p28-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--turmeric); }

/* Full-width sections sit flush. */
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.p28-band .wp-block-cover__inner-container { box-sizing: border-box; width: 100%; max-width: none; padding: 0 max(24px, calc((100vw - 1180px) / 2)) 56px; }
.p28-quote { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.p28-press-logo img { height: 48px; max-width: 220px; }
.p28-press-name { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wp--preset--color--chilli); }
.p28-stars { margin: 0; color: var(--wp--preset--color--saffron); letter-spacing: 0.12em; font-size: 15px; }
/* Galleries keep an even grid (no stretched last photo). */
.wp-block-gallery.p28-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; color: var(--wp--preset--color--forest); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea {
	width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid #D9CCB0; border-radius: 10px; background: #fff; font: 16px var(--wp--preset--font-family--body); color: var(--wp--preset--color--ink);
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--saffron); outline-offset: 1px; border-color: transparent; }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] {
	padding: 15px 32px; border: 0; border-radius: 999px; background: var(--wp--preset--color--saffron); color: var(--wp--preset--color--forest-deep); font: 700 16px var(--wp--preset--font-family--body); cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, .wpcf7 button[type="submit"]:hover { background: var(--wp--preset--color--turmeric); }

/* Classic WooCommerce checkout */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { border: 1px solid #D9CCB0; border-radius: 10px; padding: 11px 13px; background: #fff; min-height: 46px; box-sizing: border-box; }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { border-radius: 999px; background: var(--wp--preset--color--saffron); color: var(--wp--preset--color--forest-deep); font-weight: 700; padding: 16px 32px; }
