/* ==========================================================================
   Learning Loft Bento · global styles (front end and editor)
   Port of the approved mock-up (designs/bento/style.css) onto block markup.
   Order: 1 tokens · 2 base · 3 block styles · 4 components · 5 header
          6 footer · 7 bento layouts · 8 media queries
   Mobile first; desktop starts at 900px like the mock-up.
   ========================================================================== */

/* ---------- 1. Tokens (short aliases for theme.json presets) ---------- */
:root {
	color-scheme: light;
	--ll-ink: var(--wp--preset--color--ink);
	--ll-ink-soft: var(--wp--preset--color--ink-soft);
	--ll-paper: var(--wp--preset--color--paper);
	--ll-white: var(--wp--preset--color--white);
	--ll-butter: var(--wp--preset--color--butter);
	--ll-blush: var(--wp--preset--color--blush);
	--ll-sky: var(--wp--preset--color--sky);
	--ll-mint: var(--wp--preset--color--mint);
	--ll-lilac: var(--wp--preset--color--lilac);
	--ll-peach: var(--wp--preset--color--peach);
	--ll-apricot: var(--wp--preset--color--apricot);
	--ll-berry: var(--wp--preset--color--berry);
	--ll-teal: var(--wp--preset--color--teal);
	--ll-plum: var(--wp--preset--color--plum);
	--ll-cocoa: var(--wp--preset--color--cocoa);
	--ll-navy: var(--wp--preset--color--navy);
	--ll-berry-dark: var(--wp--custom--color--berry-dark);
	--ll-teal-dark: var(--wp--custom--color--teal-dark);
	--ll-line: var(--wp--custom--color--line);
	--ll-line-chip: var(--wp--custom--color--line-chip);
	--ll-footer-soft: var(--wp--custom--color--footer-soft);
	--ll-l-yellow: var(--wp--custom--color--logo-yellow);
	--ll-l-blue: var(--wp--custom--color--logo-blue);
	--ll-l-pink: var(--wp--custom--color--logo-pink);
	--ll-l-peach: var(--wp--custom--color--logo-peach);
	--ll-l-mint: var(--wp--custom--color--logo-mint);
	--ll-l-lilac: var(--wp--custom--color--logo-lilac);

	--ll-font-head: var(--wp--preset--font-family--heading);
	--ll-font-body: var(--wp--preset--font-family--body);
	--ll-font-logo: var(--wp--preset--font-family--logo);
	--ll-font-script: var(--wp--preset--font-family--script);

	--ll-r-xl: 32px;
	--ll-r-lg: 28px;
	--ll-r-md: 22px;
	--ll-r-sm: 16px;
	--ll-r-pill: 999px;

	--ll-gutter: var(--wp--preset--spacing--40);
	--ll-gap: var(--wp--preset--spacing--30);
	--ll-tile-pad: var(--wp--preset--spacing--50);
	--ll-section: var(--wp--preset--spacing--70);
	--ll-container: 1200px;

	--ll-grid-paper:
		linear-gradient(#0000 calc(100% - 1px), rgb(216 200 120 / 0.35) 0),
		linear-gradient(90deg, #0000 calc(100% - 1px), rgb(216 200 120 / 0.35) 0);
	--ll-gingham:
		linear-gradient(90deg, rgb(242 143 176 / 0.22) 50%, #0000 0),
		linear-gradient(rgb(242 143 176 / 0.22) 50%, #0000 0);
	--ll-pop-shadow: 0 26px 50px -28px rgb(58 46 63 / 0.45);
	--ll-focus: 3px solid var(--ll-navy);

	/* Inline icons as masks (decorative; colour follows currentColor). */
	--ll-i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-4.5-4.5L12 15l4.5-4.5M5 20h14'/%3E%3C/svg%3E");
	--ll-i-sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3.5'/%3E%3C/svg%3E");
	--ll-i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3.2v2.8h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
	--ll-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--ll-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E");
	--ll-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--ll-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5h16v10.5H9.5L4 20z'/%3E%3C/svg%3E");
	--ll-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
	--ll-i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 10.6a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 1.9-1.5L21 8H6.1'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E");
	--ll-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");
	--ll-i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
	--ll-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
	--ll-i-insta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='.8' fill='%23000'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 24px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-width: 320px;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

:where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: var(--ll-focus);
	outline-offset: 3px;
}

::selection {
	background: var(--ll-butter);
	color: var(--ll-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	overflow-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	top: 12px;
	left: 16px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 22px;
	clip-path: none;
	border-radius: var(--ll-r-pill);
	background: var(--ll-navy);
	color: var(--ll-white);
	font-weight: 800;
	text-decoration: none;
}

.ll-nowrap {
	white-space: nowrap;
}

/* Buttons: min sizes the mock-up uses */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	border: 2px solid var(--ll-ink);
	background: var(--ll-white);
	color: var(--ll-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ll-butter);
	color: var(--ll-ink);
}

.wp-block-button.is-style-teal > .wp-block-button__link {
	background: var(--ll-teal);
	color: var(--ll-white);
}

.wp-block-button.is-style-teal > .wp-block-button__link:hover {
	background: var(--ll-teal-dark);
}

.wp-block-button.is-style-outline-teal > .wp-block-button__link {
	border: 2px solid var(--ll-teal);
	background: var(--ll-white);
	color: var(--ll-teal);
}

.wp-block-button.is-style-outline-teal > .wp-block-button__link:hover {
	background: var(--ll-mint);
	color: var(--ll-teal-dark);
}

.wp-block-button.ll-btn-lg > .wp-block-button__link {
	min-height: 54px;
	padding-inline: 28px;
	font-size: 1.0625rem;
}

.wp-block-button.ll-btn-sm > .wp-block-button__link {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.9375rem;
}

/* Icon after/before button text (decorative) */
.wp-block-button.ll-icon-arrow > .wp-block-button__link::after,
.wp-block-button.ll-icon-chat > .wp-block-button__link::before,
.wp-block-button.ll-icon-mail > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentcolor;
	-webkit-mask: var(--ll-icon) center / contain no-repeat;
	mask: var(--ll-icon) center / contain no-repeat;
}

.wp-block-button.ll-icon-arrow {
	--ll-icon: var(--ll-i-arrow);
}

.wp-block-button.ll-icon-chat {
	--ll-icon: var(--ll-i-chat);
}

.wp-block-button.ll-icon-mail {
	--ll-icon: var(--ll-i-mail);
}

/* ---------- 3. Block styles ---------- */

/* Tile: flat pastel fill, generous radius, no heavy shadow */
.wp-block-group.is-style-tile {
	position: relative;
	min-width: 0;
	padding: var(--ll-tile-pad);
	border-radius: var(--ll-r-lg);
	overflow: hidden;
}

.wp-block-group.is-style-tile:not(.has-background) {
	background-color: var(--ll-lilac);
}

.is-style-grid-paper,
.wp-block-group.is-style-grid-paper {
	background-color: var(--ll-butter);
	background-image: var(--ll-grid-paper);
	background-size: 28px 28px;
}

.wp-block-group.is-style-grid-paper,
.wp-block-group.is-style-gingham {
	position: relative;
	min-width: 0;
	padding: var(--ll-tile-pad);
	border-radius: var(--ll-r-xl);
	overflow: hidden;
}

.wp-block-group.is-style-gingham {
	background-color: var(--ll-blush);
	background-image: var(--ll-gingham);
	background-size: 26px 26px;
}

/* Fill-in note: highlighted box for details the shop owner must add (legal
   pages) */
.wp-block-group.is-style-fill-in-note {
	padding: 18px 22px;
	border: 2px dashed var(--ll-cocoa);
	border-radius: var(--ll-r-md);
	background: var(--ll-butter);
}

/* Script accent (decorative) */
.is-style-script,
p.is-style-script {
	display: block;
	margin-block: 0;
	padding-inline: 0.18em;
	color: var(--ll-berry);
	font-family: var(--ll-font-script);
	font-size: 2.15rem;
	font-weight: 400;
	line-height: 1;
}

.is-style-script.ll-tilt,
.ll-tilt {
	transform: rotate(-3deg);
	transform-origin: left;
}

/* Scalloped frame (her apricot frame) */
.wp-block-image.is-style-scalloped {
	--r: 11px;
	padding: calc(var(--r) + 9px);
	background: var(--ll-apricot);
	-webkit-mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(circle closest-side, #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
	mask:
		linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(circle closest-side, #000 96%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
}

.wp-block-image.is-style-scalloped img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 12px;
}

/* Tilted photo with a white border */
.wp-block-image.is-style-tilted img {
	width: 100%;
	object-fit: cover;
	border: 6px solid var(--ll-white);
	border-radius: var(--ll-r-md);
	transform: rotate(3deg);
}

.wp-block-image.is-style-soft img {
	border-radius: 18px;
}

/* Check list */
.wp-block-list.is-style-checks {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each item: a white circle (::before) with a teal tick (::after) */
.wp-block-list.is-style-checks > li {
	position: relative;
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 10px;
	align-items: start;
}

.wp-block-list.is-style-checks > li::before {
	content: "";
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ll-white);
}

.wp-block-list.is-style-checks > li::after {
	content: "";
	position: absolute;
	top: 5.5px;
	left: 5.5px;
	width: 15px;
	height: 15px;
	background: var(--ll-teal);
	-webkit-mask: var(--ll-i-check) center / contain no-repeat;
	mask: var(--ll-i-check) center / contain no-repeat;
}

/* Pills (grades, subjects, languages) */
.wp-block-list.is-style-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-pills > li,
.ll-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 2px solid transparent;
	border-radius: var(--ll-r-pill);
	background: var(--ll-white);
	color: var(--ll-ink);
	font-size: 0.9375rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.wp-block-list.is-style-pills > li > a {
	color: inherit;
	text-decoration: none;
}

a.ll-pill:hover,
.wp-block-list.is-style-pills > li:has(a:hover) {
	border-color: var(--ll-ink);
	color: var(--ll-ink);
}

/* Social link as a pill with its label (footer Instagram) */
.wp-block-social-links.is-style-pill {
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 1rem;
}

.wp-block-social-links.is-style-pill .wp-social-link {
	border-radius: var(--ll-r-pill);
	background: rgb(255 255 255 / 0.12);
	color: var(--ll-white);
}

.wp-block-social-links.is-style-pill .wp-social-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px 0 12px;
	font-size: 1rem;
	font-weight: 800;
}

.wp-block-social-links.is-style-pill .wp-social-link svg {
	width: 20px;
	height: 20px;
}

.wp-block-social-links.is-style-pill .wp-social-link .wp-block-social-link-label {
	font-size: 1rem !important;
	font-weight: 800;
	line-height: 1.2;
}

/* ---------- 4. Components ---------- */

/* Multicolour chunky word: dark brand shades with pastel "sticker" shadows */
.ll-multi {
	font-family: var(--ll-font-logo);
	font-weight: 700;
	white-space: nowrap;
}

.ll-multi__letters > span:nth-child(5n + 1) {
	color: var(--ll-berry);
	text-shadow: 0.045em 0.045em 0 var(--ll-l-pink);
}

.ll-multi__letters > span:nth-child(5n + 2) {
	color: var(--ll-teal);
	text-shadow: 0.045em 0.045em 0 var(--ll-l-mint);
}

.ll-multi__letters > span:nth-child(5n + 3) {
	color: var(--ll-plum);
	text-shadow: 0.045em 0.045em 0 var(--ll-l-lilac);
}

.ll-multi__letters > span:nth-child(5n + 4) {
	color: var(--ll-cocoa);
	text-shadow: 0.045em 0.045em 0 var(--ll-l-peach);
}

.ll-multi__letters > span:nth-child(5n + 5) {
	color: var(--ll-navy);
	text-shadow: 0.045em 0.045em 0 var(--ll-l-blue);
}

/* In the editor the word can't be split into letters while you type, so it
   shows the same colours as stripes. */
.editor-styles-wrapper .ll-multi:not(:has(.ll-multi__letters)) {
	background: linear-gradient(90deg, var(--ll-berry) 0 20%, var(--ll-teal) 0 40%, var(--ll-plum) 0 60%, var(--ll-cocoa) 0 80%, var(--ll-navy) 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Badges */
.ll-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 11px;
	border-radius: var(--ll-r-pill);
	background: var(--ll-lilac);
	color: var(--ll-ink);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.45;
	white-space: nowrap;
}

.ll-badge--pdf {
	background: var(--ll-sky);
}

.ll-badge--lam {
	background: var(--ll-peach);
}

.ll-badge--mint {
	background: var(--ll-mint);
}

.ll-badge--butter {
	background: var(--ll-butter);
}

.ll-badge--blush {
	background: var(--ll-blush);
}

.ll-badge--solid {
	background: var(--ll-teal);
	color: var(--ll-white);
}

/* Sticker ("New") */
.ll-sticker {
	position: absolute;
	width: max-content;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 4px 12px;
	border-radius: var(--ll-r-pill);
	background: var(--ll-berry);
	color: var(--ll-white);
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transform: rotate(-6deg);
}

/* Section heading row */
.ll-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 18px;
}

.ll-section-head .wp-block-heading {
	margin: 0;
}

.ll-section-sub {
	max-width: 46ch;
	margin-top: 4px;
	color: var(--ll-ink-soft);
}

.ll-link-arrow,
.ll-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--ll-teal);
	font-weight: 800;
}

.ll-link-arrow a::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: var(--ll-i-arrow) center / contain no-repeat;
	mask: var(--ll-i-arrow) center / contain no-repeat;
}

/* Doodles (decorative inline SVG) */
.ll-doodle {
	position: absolute;
	margin: 0 !important;
	pointer-events: none;
}

/* Round icon chips used in small tiles */
.ll-mini-icon {
	display: grid !important;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: var(--ll-white);
	color: var(--ll-ink);
	font-size: 0;
}

.ll-mini-icon::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentcolor;
	-webkit-mask: var(--ll-icon, var(--ll-i-download)) center / contain no-repeat;
	mask: var(--ll-icon, var(--ll-i-download)) center / contain no-repeat;
}

.ll-mini-icon.is-truck {
	--ll-icon: var(--ll-i-truck);
}

.ll-arrow-dot {
	display: grid !important;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	background: var(--ll-ink);
	color: var(--ll-white);
	font-size: 0;
}

.ll-arrow-dot::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: var(--ll-i-arrow) center / contain no-repeat;
	mask: var(--ll-i-arrow) center / contain no-repeat;
}

/* Breadcrumbs (WooCommerce block): list with drawn chevrons */
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	margin: 18px 0 12px;
	font-size: 0.875rem;
	font-weight: 700;
}

.wc-block-breadcrumbs .woocommerce-breadcrumb {
	margin: 0 0 1em;
}

.ll-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-breadcrumb li {
	display: inline-flex;
	align-items: center;
}

.ll-breadcrumb li + li::before {
	content: "";
	width: 7px;
	height: 7px;
	margin: 0 11px 0 7px;
	border-top: 2px solid var(--ll-ink-soft);
	border-right: 2px solid var(--ll-ink-soft);
	transform: rotate(45deg);
}

.ll-breadcrumb a {
	display: inline-block;
	padding: 5px 2px;
	color: var(--ll-teal);
}

.ll-breadcrumb li:last-child {
	color: var(--ll-ink);
}

/* Inputs */
.ll-input,
input[type="email"].ll-input {
	width: 100%;
	min-height: 52px;
	padding: 0 20px;
	border: 2px solid var(--ll-ink-soft);
	border-radius: var(--ll-r-pill);
	background: var(--ll-white);
	font-size: 1rem;
}

.ll-input::placeholder {
	color: var(--ll-ink-soft);
	opacity: 1;
}

/* Accordions (core/details) */
.wp-block-details {
	border-radius: var(--ll-r-md);
	background: var(--ll-lilac);
}

.wp-block-details + .wp-block-details {
	margin-top: 10px;
}

/* Summary: title, then a white circle (::after) with a plus (::before) that
   turns into × */
.wp-block-details > summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 62px;
	padding: 8px 14px 8px 22px;
	border-radius: var(--ll-r-md);
	font-family: var(--ll-font-head);
	font-size: 1.25rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ll-white);
}

.wp-block-details > summary::before {
	content: "";
	position: absolute;
	top: calc(50% - 10px);
	right: 22px;
	z-index: 1;
	width: 20px;
	height: 20px;
	background: var(--ll-ink);
	-webkit-mask: var(--ll-i-plus) center / contain no-repeat;
	mask: var(--ll-i-plus) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-details[open] > summary::before {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-inline: 22px;
}

.wp-block-details > :last-child:not(summary) {
	margin-bottom: 22px;
}

/* ---------- 5. Header ---------- */
.ll-site-header {
	position: relative;
	z-index: 30;
	background: var(--ll-paper);
}

.ll-top-strip {
	padding: 0;
	color: var(--ll-ink);
	font-size: 0.8125rem;
	font-weight: 800;
}

.ll-top-strip .wp-block-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 18px;
	margin: 0 auto;
	padding: 7px 0;
	list-style: none;
}

.ll-top-strip li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ll-top-strip li::before {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--ll-plum);
	-webkit-mask: var(--ll-icon, var(--ll-i-download)) center / contain no-repeat;
	mask: var(--ll-icon, var(--ll-i-download)) center / contain no-repeat;
}

.ll-top-strip li:nth-child(2) {
	--ll-icon: var(--ll-i-sheet);
}

.ll-top-strip li:nth-child(3) {
	--ll-icon: var(--ll-i-truck);
}

.ll-header-bar {
	padding-block: 0;
}

.ll-header-bar__inner {
	position: relative;
	gap: 12px;
	min-height: 72px;
	padding-block: 10px;
}

/* Logo: 198px wide image at desktop, scaled like the mock-up on phones */
.ll-site-header .wp-block-site-logo {
	flex: none;
	margin: 0;
	line-height: 0;
}

.ll-site-header .wp-block-site-logo img {
	width: 152px;
	height: auto;
}

.wp-block-site-logo a {
	display: inline-block;
	border-radius: var(--ll-r-sm);
}

/* Header icon buttons (account, cart, menu): lilac circles with the mock-
   up's line icons */
.ll-header-actions {
	gap: 6px !important;
	margin-left: auto;
}

.ll-site-header .wp-block-woocommerce-customer-account a,
.ll-site-header .wc-block-mini-cart__button,
.ll-main-nav .wp-block-navigation__responsive-container-open {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ll-lilac);
	color: var(--ll-ink);
	text-decoration: none;
}

.ll-site-header .wp-block-woocommerce-customer-account a:hover,
.ll-site-header .wc-block-mini-cart__button:hover,
.ll-main-nav .wp-block-navigation__responsive-container-open:hover {
	background: var(--ll-l-lilac);
	color: var(--ll-ink);
}

.ll-site-header .wp-block-woocommerce-customer-account .wc-block-customer-account__visual,
.ll-site-header .wc-block-mini-cart__icon,
.ll-main-nav .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.ll-site-header .wp-block-woocommerce-customer-account a::before,
.ll-site-header .wc-block-mini-cart__button::before,
.ll-main-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	grid-area: 1 / 1;
	width: 20px;
	height: 20px;
	background: currentcolor;
	-webkit-mask: var(--ll-icon) center / contain no-repeat;
	mask: var(--ll-icon) center / contain no-repeat;
}

.ll-site-header .wp-block-woocommerce-customer-account a {
	--ll-icon: var(--ll-i-user);
}

.ll-site-header .wc-block-mini-cart__button {
	--ll-icon: var(--ll-i-cart);
}

.ll-main-nav .wp-block-navigation__responsive-container-open {
	--ll-icon: var(--ll-i-menu);
}

.ll-site-header .wc-block-mini-cart__quantity-badge {
	display: contents;
}

.ll-site-header .wc-block-mini-cart__badge {
	position: absolute;
	top: -5px;
	right: -5px;
	left: auto;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	margin: 0;
	padding: 0 5px;
	border: 2px solid var(--ll-paper);
	border-radius: var(--ll-r-pill);
	background: var(--ll-berry) !important;
	color: var(--ll-white) !important;
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 1;
	transform: none;
}

.ll-site-header .wc-block-mini-cart__badge[hidden] {
	display: none;
}

.ll-site-header .wc-block-mini-cart__amount {
	display: none;
}

.ll-shop-now {
	display: none !important;
}

/* Main navigation (core/navigation): pills on desktop, drawer card on phones */
.ll-main-nav {
	position: static;
	order: 3;
	margin-left: -6px;
	font-size: 1rem;
	font-weight: 800;
}

.ll-main-nav .wp-block-navigation-item {
	position: static;
}

.ll-main-nav .wp-block-navigation-item__content,
.ll-nav-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px !important;
	border: 2px solid transparent;
	border-radius: var(--ll-r-pill);
	background: transparent;
	color: var(--ll-ink);
	font-weight: 800;
	text-decoration: none;
}

.ll-main-nav .wp-block-navigation-item__content:hover,
.ll-nav-pill:hover {
	background: var(--ll-lilac);
	color: var(--ll-ink);
}

.ll-main-nav .current-menu-item > .wp-block-navigation-item__content,
.ll-main-nav .wp-block-navigation-item__content[aria-current="page"],
.ll-nav-pill.is-section,
.ll-nav-pill[aria-current="page"] {
	border-color: var(--ll-ink);
	background: var(--ll-butter);
}

/* Phone drawer: the core overlay, shown as a card under the header */
.ll-site-header .ll-main-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	position: absolute;
	top: calc(100% - 2px);
	right: calc(10px - var(--ll-gutter));
	bottom: auto;
	left: calc(10px - var(--ll-gutter));
	z-index: 40;
	padding: 12px;
	overflow: visible;
	border: 2px solid var(--ll-lilac);
	border-radius: var(--ll-r-lg);
	background: var(--ll-paper);
	color: var(--ll-ink);
	box-shadow: var(--ll-pop-shadow);
	animation: none;
}

.ll-main-nav .is-menu-open .wp-block-navigation__responsive-dialog,
.ll-main-nav .is-menu-open .wp-block-navigation__responsive-close {
	position: static;
	max-width: none;
	margin: 0;
}

/* The list scrolls inside the card when it is taller than the screen. */
.ll-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	max-height: calc(100dvh - 170px);
	padding-top: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: none;
}

.ll-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	order: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	width: 100%;
}

.ll-main-nav .is-menu-open .wp-block-navigation-item {
	display: block;
	width: 100%;
}

.ll-main-nav .is-menu-open .wp-block-navigation-item__content,
.ll-main-nav .is-menu-open .ll-shop__toggle {
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 0 20px !important;
	font-size: 1.125rem;
}

/* The close button sits exactly over the menu button, dark, like the mock-
   up's toggle. */
.ll-main-nav .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: -58px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: var(--ll-ink);
	color: var(--ll-white);
}

.ll-main-nav .wp-block-navigation__responsive-container-close svg {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

.ll-main-nav .ll-nav-cta {
	order: 2;
	width: 100%;
	margin-top: 10px;
}

.ll-main-nav .ll-nav-cta .wp-block-button {
	width: 100%;
}

.ll-main-nav .ll-nav-cta .wp-block-button__link {
	width: 100%;
	color: var(--ll-white);
}

html.has-modal-open:has(.ll-main-nav) {
	overflow: visible;
}

/* While the drawer is open its close button covers the menu button. Faded,
   not hidden: closing the drawer moves focus back to the menu button. */
.ll-main-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open {
	opacity: 0;
}

/* 600–899px: keep the drawer (core switches to inline at 600px) */
@media (min-width: 600px) and (max-width: 899.98px) {

	.ll-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: grid;
	}

	.ll-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.ll-main-nav .wp-block-navigation__responsive-container-close {
		display: grid;
	}
}

/* Very small phones (under 360px): a slightly smaller logo so the row fits. */
@media (max-width: 359.98px) {

	.ll-header-bar__inner {
		gap: 8px;
	}

	.ll-site-header .wp-block-site-logo img {
		width: 128px;
	}

	.ll-header-actions {
		gap: 4px !important;
	}
}

/* Mini-cart drawer (on every page). Closed, it is hidden from everyone,
   not just screen readers, so its buttons can't be reached by Tab. */
.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-mini-cart__drawer {
	visibility: hidden;
}

.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer .wc-block-mini-cart__template-part {
	background: var(--ll-paper);
}

.wc-block-mini-cart__title {
	font-family: var(--ll-font-head);
}

/* ---------- 6. Footer ---------- */
.ll-site-footer {
	margin-top: 72px;
	padding-top: 44px;
	padding-bottom: 26px;
	border-radius: 40px 40px 0 0;
	background: var(--ll-plum);
	color: var(--ll-white);
}

.ll-site-footer a {
	color: var(--ll-white);
}

.ll-site-footer a:hover {
	color: var(--ll-butter);
}

.ll-site-footer :focus-visible {
	outline-color: var(--ll-butter);
}

.ll-footer-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 20px;
}

.ll-footer-grid > * {
	margin: 0 !important;
}

.ll-footer-brand,
.ll-footer-grid > :last-child {
	grid-column: 1 / -1;
}

.ll-footer-brand .wp-block-image {
	margin: 0;
	line-height: 0;
}

.ll-footer-brand .wp-block-image img {
	width: 152px !important;
	height: auto;
	aspect-ratio: 198 / 72;
}

.ll-footer-brand p {
	max-width: 34ch;
	margin-top: 12px;
	color: var(--ll-white);
}

.ll-footer-brand .wp-block-social-links {
	margin-top: 12px;
}

.ll-site-footer h2 {
	margin: 0 0 8px;
	color: var(--ll-butter);
	font-size: 1.125rem;
}

.ll-site-footer .wp-block-navigation {
	gap: 0;
}

.ll-site-footer .wp-block-navigation .wp-block-navigation-item__content,
.ll-footer-list li {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0;
	text-decoration: none;
}

.ll-site-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

.ll-footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ll-footer-list li {
	display: flex;
}

.ll-footer-bottom {
	justify-content: space-between;
	gap: 6px 24px;
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid rgb(255 255 255 / 0.25);
	font-size: 0.875rem;
}

.ll-footer-bottom p {
	margin: 0;
}

.ll-footer-soft {
	color: var(--ll-footer-soft);
}

/* ---------- 7. Bento layouts (home) ---------- */
.ll-bento {
	display: grid !important;
	gap: var(--ll-gap);
}

.ll-bento > * {
	margin: 0 !important;
}

/* ---------- 8. Media queries ---------- */
@media (min-width: 900px) {

	.ll-top-strip .wp-block-list {
		gap: 4px 40px;
		padding-block: 8px;
	}

	.ll-header-bar__inner {
		gap: 20px;
		min-height: 88px;
	}

	.ll-site-header .wp-block-site-logo img {
		width: 198px;
	}

	.ll-header-actions {
		gap: 8px !important;
		margin-left: 0;
		order: 3;
	}

	.ll-main-nav {
		flex: 1;
		order: 2;
		margin-left: 0;
	}

	.ll-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}

	/* Let the Shop panel span the header bar, not just the menu. */
	.ll-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
	.ll-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
	.ll-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-close {
		position: static;
	}

	.ll-main-nav .wp-block-navigation__container {
		justify-content: center;
		gap: 4px;
	}

	.ll-main-nav .ll-nav-cta {
		display: none;
	}

	.ll-shop-now {
		display: flex !important;
		margin-left: 4px;
	}

	.ll-shop-now .wp-block-button__link {
		min-height: 46px;
	}

	.ll-site-footer {
		margin-top: 96px;
		padding-top: 60px;
		border-radius: 56px 56px 0 0;
	}

	.ll-footer-grid {
		grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
		gap: 32px;
	}

	.ll-footer-brand,
	.ll-footer-grid > :last-child {
		grid-column: auto;
	}

	.ll-footer-brand .wp-block-image img {
		width: 198px !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.wp-block-button__link:hover {
		transform: none;
	}
}
