/* Lesile Journal v1.0 (Ogust). Everything is scoped to .lsl-journal / .lsl-* so the theme is not affected.
   Fonts are the ones already registered on the site. */
.lsl-journal, .lsl-guide-btn, .lsl-guide-panel, .lsl-toast {
	--lsl-ink: #000;
	--lsl-ink-60: rgba(0, 0, 0, .6);
	--lsl-rule: rgba(0, 0, 0, .22);
	--lsl-site: #F2F0EF;
	--lsl-cream: #F1F1DD;
	--lsl-yellow: #F9D503;
	--lsl-green: #09D12E;
	--lsl-orange: #FF5502;
	--lsl-olive: #746433;
	--lsl-sand: #DDCDAE;
	--lsl-serif: 'STKBureauSefif', Georgia, serif;
	--lsl-mono: 'HALTimezoneMono', 'Courier New', monospace;
	--lsl-gutter: 80px;
	--lsl-sticky-top: 110px;   /* under the fixed header (40 + 50 + 20) */
	font-family: var(--lsl-serif);
	color: var(--lsl-ink);
}
.lsl-journal *, .lsl-guide-panel * { box-sizing: border-box; }
.lsl-journal a { color: inherit; text-decoration: none; }
.lsl-journal button, .lsl-guide-panel button, .lsl-guide-btn, .lsl-toast button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; padding: 0; }
.lsl-journal img { display: block; max-width: 100%; height: auto; }
.lsl-mono { font-family: var(--lsl-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; line-height: 1.3; }

.lsl-journal a.lsl-featured h2 {
    border: none;
}

.lsl-journal a.lsl-featured * {
    color: #F2F0EF;
}
button.lsl-filter:hover {
    border-radius: 0;
}

/* ---------- title (same as the other pages) ---------- */
.lsl-journal { max-width: calc(1280px + var(--lsl-gutter) * 2); margin: 0 auto; padding: 0 var(--lsl-gutter); }
.lsl-top { text-align: center; padding: 168px 0 48px; }
.lsl-top h1 { font-weight: 400; font-size: 56px; line-height: 1.02; margin: 0 auto; max-width: 15em; }
.lsl-top p { font-size: 20px; line-height: 1.45; max-width: 31em; margin: 22px auto 0; }
.lsl-eyebrow { display: inline-flex; gap: 14px; margin-bottom: 22px; }
.lsl-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- media: photo, or a drawing on a colour ---------- */
.lsl-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--lsl-sand); }
.lsl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lsl-media.is-drawing img { object-fit: contain; padding: 14%; mix-blend-mode: multiply; }
.lsl-media.is-orange { background: var(--lsl-orange); }
.lsl-media.is-green { background: var(--lsl-green); }
.lsl-media.is-olive { background: var(--lsl-olive); }
.lsl-media.is-olive img { mix-blend-mode: screen; filter: invert(1); }

/* ---------- list page: guide + list ---------- */
.lsl-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; padding-bottom: 140px; }
.lsl-guide { position: sticky; top: var(--lsl-sticky-top); max-height: calc(100vh - var(--lsl-sticky-top) - 24px); display: flex; flex-direction: column; background: var(--lsl-yellow); padding: 28px 30px 26px; }
.lsl-tree { flex: 1 1 380px; height: 0; min-height: 130px; max-height: 400px; width: 100%; object-fit: contain; }
.lsl-guide-txt { flex: none; margin-top: 18px; }
.lsl-say { font-size: 20px; line-height: 1.3; margin: 0; }
.lsl-guide-lbl { margin: 20px 0 8px; }
.lsl-filters { display: flex; flex-direction: column; border-top: 1px solid var(--lsl-ink); }
.lsl-filter { display: flex !important; justify-content: space-between; align-items: center; width: 100%; height: 38px; border: 0 !important; border-bottom: 1px solid var(--lsl-ink) !important; background: none !important; color: var(--lsl-ink) !important; padding: 0 !important; margin: 0 !important; text-align: left; font-family: var(--lsl-mono) !important; font-size: 13px !important; letter-spacing: .08em !important; text-transform: uppercase !important; box-shadow: none !important; }
.lsl-filter b { font-weight: 400; opacity: .6; }
.lsl-filter[aria-pressed="true"] span::before { content: '→ '; white-space: pre; }
.lsl-filter:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lsl-guide-nl { margin-top: 28px; text-align: center; }
@media (max-height: 760px) { .lsl-filter { height: 32px; } .lsl-guide-lbl { margin: 12px 0 6px; } .lsl-say { font-size: 18px; } }

.lsl-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--lsl-olive); color: var(--lsl-cream); margin-bottom: 56px; }
.lsl-featured .lsl-media { aspect-ratio: auto; min-height: 440px; }
.lsl-featured-txt { display: flex; flex-direction: column; padding: 36px 34px 32px; }
.lsl-featured-txt .lsl-mono { opacity: .8; }
.lsl-featured h2 { font-weight: 400; font-size: 36px; line-height: 1.05; margin: 22px 0 18px; }
.lsl-featured p { font-size: 18px; opacity: .9; margin: 0; }
.lsl-cta { margin-top: auto; align-self: flex-start; padding-top: 10px; border-top: 1px solid currentColor; min-width: 220px; text-align: center; }
.lsl-featured:hover .lsl-media img { transform: scale(1.03); }

.lsl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.lsl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lsl-card .lsl-media { margin-bottom: 16px; }
.lsl-meta { display: flex; gap: 10px; color: var(--lsl-ink-60); }
.lsl-card h3 { font-weight: 400; font-size: 25px; line-height: 1.15; margin: 10px 0 8px; }
.lsl-card p { font-size: 16px; color: var(--lsl-ink-60); line-height: 1.4; margin: 0; }
.lsl-card:hover .lsl-media img { transform: scale(1.04); }
.lsl-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lsl-card.is-hidden, .lsl-featured.is-hidden { display: none; }

/* ---------- article ---------- */
.lsl-facts { display: flex; justify-content: center; max-width: 420px; margin: 34px auto 0; border-top: 1px solid var(--lsl-ink); border-bottom: 1px solid var(--lsl-ink); }
.lsl-facts div { flex: 1; padding: 14px 10px 13px; }
.lsl-facts div + div { border-left: 1px solid var(--lsl-ink); }
.lsl-facts span { display: block; color: var(--lsl-ink-60); font-size: 11px; margin-bottom: 4px; }
.lsl-hero { margin-bottom: 80px; }
.lsl-hero .lsl-media { aspect-ratio: 2 / 1; }
.lsl-hero .lsl-media.is-drawing img { padding: 6% 30%; }
.lsl-journal h2 { font-weight: 400; font-size: 34px; line-height: 1.1; padding-bottom: 14px; margin: 0; border-bottom: 1px solid var(--lsl-ink); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lsl-recipe { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.lsl-ingredients { position: sticky; top: var(--lsl-sticky-top); }
.lsl-ingredients ul { list-style: none; margin: 0; padding: 0; }
.lsl-ing { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--lsl-rule); cursor: pointer; font-size: 19px; line-height: 1.25; }
.lsl-box { width: 18px; height: 18px; border: 1px solid var(--lsl-ink); margin-top: 3px; position: relative; }
.lsl-ing.is-done .lsl-box { background: var(--lsl-ink); }
.lsl-ing.is-done .lsl-box::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lsl-ing.is-done .lsl-ing-t { opacity: .4; text-decoration: line-through; text-decoration-thickness: 1px; }
.lsl-q { display: block; font-size: 12px; color: var(--lsl-ink-60); margin-bottom: 2px; }
.lsl-ing a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lsl-ing a:hover { text-decoration: underline; }
.lsl-go { font-size: 14px; margin-left: 4px; opacity: 0; transition: opacity .2s; }
.lsl-ing a:hover .lsl-go { opacity: 1; }
.lsl-note { color: var(--lsl-ink-60); }
/* Add to cart: same as the shop */
.lsl-add { border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; display: block !important; width: 100%; height: 50px; background: var(--lsl-green) !important; color: var(--lsl-ink) !important; font-family: var(--lsl-serif) !important; font-size: 16px !important; font-weight: 600 !important; text-align: center; }
.lsl-add:hover { filter: brightness(.95); }
.lsl-add.is-loading { opacity: .6; pointer-events: none; }
.lsl-add.is-done { background: var(--lsl-ink) !important; color: #fff !important; }
.lsl-add-all { margin-top: 26px; }
.lsl-method ol { list-style: none; counter-reset: lsl; margin: 0; padding: 0; }
.lsl-method li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 26px 0 28px; border-bottom: 1px solid var(--lsl-rule); font-size: 21px; line-height: 1.45; }
.lsl-method li::before { counter-increment: lsl; content: counter(lsl, decimal-leading-zero); font-family: var(--lsl-mono); font-size: 13px; letter-spacing: .08em; padding-top: 7px; }
.lsl-tip { margin-top: 40px; background: var(--lsl-sand); padding: 28px 32px; display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start; }
.lsl-tip img { width: 60px; }
.lsl-tip .lsl-mono { margin-bottom: 8px; }
.lsl-tip p { font-size: 19px; margin: 0; }
.lsl-story { max-width: 680px; margin: 0 auto; }
.lsl-story p { font-size: 21px; line-height: 1.55; margin: 0 0 26px; }
.lsl-story blockquote { font-size: 38px; line-height: 1.15; text-align: center; margin: 56px -120px; padding: 40px 0; border-top: 1px solid var(--lsl-ink); border-bottom: 1px solid var(--lsl-ink); border-left: 0; font-style: normal; }
.lsl-made, .lsl-more { margin-top: 120px; }
.lsl-more { margin-bottom: 140px; }
.lsl-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.lsl-prod-img { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.lsl-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.lsl-prod-n { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.lsl-prod-n a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lsl-prod .lsl-add { height: 44px; font-size: 15px !important; }
.lsl-more .lsl-grid { margin-top: 28px; }

/* ---------- added-to-cart message (as WooCommerce on staging) ---------- */
.lsl-toast { position: fixed; right: 40px; bottom: 40px; z-index: 99999; display: flex; align-items: center; gap: 14px; max-width: 420px; background: #fff; border-left: 4px solid var(--lsl-green); box-shadow: 0 0 4px rgba(0, 0, 0, .25); padding: 12px 10px 12px 16px; font-size: 14px; line-height: 1.35; transform: translateY(calc(100% + 60px)); transition: transform .35s cubic-bezier(.65, 0, .25, 1); }
.lsl-toast.is-on { transform: none; }
.lsl-toast-view { background: #000 !important; color: #fff !important; height: 32px; padding: 0 12px !important; white-space: nowrap; font-family: var(--lsl-mono) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; }
.lsl-toast-x { width: 32px; height: 32px; font-size: 20px !important; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
	.lsl-journal { --lsl-gutter: 40px; }
	.lsl-featured { grid-template-columns: minmax(0, 1fr); }
	.lsl-featured .lsl-media { min-height: 0; aspect-ratio: 4 / 3; }
	.lsl-grid { grid-template-columns: minmax(0, 1fr); }
	.lsl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lsl-recipe { gap: 56px; }
	.lsl-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lsl-story blockquote { margin-left: 0; margin-right: 0; }
}

/* ---------- phone + small tablet: the guide moves into the header as "Guide +" ---------- */
@media (max-width: 860px) {
	.lsl-wrap { grid-template-columns: minmax(0, 1fr); }
	.lsl-wrap > .lsl-guide { display: none; }
	.lsl-recipe { grid-template-columns: minmax(0, 1fr); }
	.lsl-ingredients { position: static; }
	.lsl-top { padding-top: 170px; }
}
@media (max-width: 600px) {
	.lsl-journal { --lsl-gutter: 20px; }
	.lsl-top { padding-bottom: 32px; }
	.lsl-top h1 { font-size: 40px; }
	.lsl-top p { font-size: 17px; margin-top: 16px; }
	.lsl-featured { margin: 0 calc(var(--lsl-gutter) * -1) 48px; }
	.lsl-featured-txt { padding: 28px var(--lsl-gutter) 32px; }
	.lsl-featured h2 { font-size: 32px; margin: 14px 0 12px; }
	.lsl-featured p { font-size: 17px; }
	.lsl-cta { margin-top: 28px; width: 100%; min-height: 44px; display: flex; align-items: flex-end; justify-content: center; }
	.lsl-grid, .lsl-grid-3 { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
	.lsl-card h3 { font-size: 23px; }
	.lsl-facts div { padding: 12px 6px 11px; }
	.lsl-hero { margin: 0 calc(var(--lsl-gutter) * -1) 48px; }
	.lsl-hero .lsl-media { aspect-ratio: 4 / 3; }
	.lsl-hero .lsl-media.is-drawing img { padding: 10% 22%; }
	.lsl-journal h2 { font-size: 26px; }
	.lsl-method li { grid-template-columns: 40px 1fr; font-size: 18px; padding: 20px 0 22px; }
	.lsl-tip { grid-template-columns: 1fr; padding: 24px; gap: 14px; }
	.lsl-story p { font-size: 18px; }
	.lsl-story blockquote { font-size: 28px; margin: 40px 0; padding: 28px 0; }
	.lsl-made, .lsl-more { margin-top: 80px; }
	.lsl-prods { gap: 16px; }
	.lsl-toast { left: 15px; right: 15px; bottom: 15px; max-width: none; }
}

/* "Guide +" button (placed by journal.js next to the Shop bar) and its panel */
.lsl-guide-btn { position: fixed; z-index: 98; display: none; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 6px !important; background: var(--lsl-yellow) !important; border-radius: 5px !important; box-shadow: 0 0 4px rgba(0, 0, 0, .25); font-family: var(--lsl-serif); font-size: 20px; color: var(--lsl-ink) !important; text-align: left; }
.lsl-guide-btn img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
.lsl-guide-btn span { flex: 1; font-family: var(--lsl-serif) !important; font-size: 24px !important; font-weight: 400 !important; line-height: 1; }
.lsl-guide-btn i { width: 22px; height: 22px; position: relative; flex: 0 0 22px; }
.lsl-guide-btn i::before, .lsl-guide-btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s; }
.lsl-guide-btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.lsl-guide-btn[aria-expanded="true"] i::before { transform: translate(-50%, -50%) rotate(45deg); }
.lsl-guide-btn[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(135deg); }
.lsl-guide-panel { position: fixed; left: 15px; right: 15px; z-index: 97; display: flex; flex-direction: column; overflow-y: auto; background: var(--lsl-yellow); border-radius: 5px; box-shadow: 0 0 4px rgba(0, 0, 0, .25); padding: 0 16px 18px; }
.lsl-guide-panel[hidden] { display: none; }
.lsl-gp-head { display: flex; align-items: center; justify-content: space-between; height: 50px; border-bottom: 1px solid var(--lsl-ink); font-size: 20px; flex: none; margin-bottom: 14px; }
.lsl-gp-head button { width: 44px; height: 44px; margin-right: -10px; font-size: 28px !important; }
.lsl-guide-panel .lsl-tree { flex: 1 1 auto; height: 0; min-height: 110px; max-height: 260px; margin-bottom: 14px; }
.lsl-guide-panel .lsl-say { font-size: 18px; }
.lsl-guide-panel .lsl-guide-lbl { margin: 14px 0 6px; }
.lsl-guide-panel .lsl-filter { height: 44px; }
@media (max-width: 860px) {
	html.lsl-has-guide .lsl-guide-btn.is-ready { display: flex; }
	html.lsl-guide-lock { overflow: hidden; }
}
