/*
Theme Name: Learn Lucid Dreaming
Theme URI: https://learnluciddreaming.com
Author: Learn Lucid Dreaming
Description: Custom dark "night sky" block theme for learnluciddreaming.com.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.0
License: GPL-2.0-or-later
Text Domain: learnluciddreaming
*/

/* Most styling lives in theme.json. This file only holds what theme.json can't express. */

/* The sky lives on a fixed pseudo-element painted once on its own layer. Using
   background-attachment: fixed on body instead forces a full repaint and was very slow on phones. */
body {
	background-color: var(--wp--preset--color--night);
	-webkit-font-smoothing: antialiased;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	will-change: transform;
	background-image:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
		radial-gradient(1px 1px at 78% 9%, rgba(255,255,255,.45) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 42% 32%, rgba(255,255,255,.35) 50%, transparent 51%),
		radial-gradient(1px 1px at 90% 44%, rgba(255,255,255,.4) 50%, transparent 51%),
		radial-gradient(1px 1px at 24% 62%, rgba(255,255,255,.3) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 66% 74%, rgba(255,255,255,.3) 50%, transparent 51%),
		radial-gradient(1200px 600px at 80% -10%, rgba(139,92,246,.18), transparent 60%),
		radial-gradient(900px 500px at -10% 10%, rgba(56,78,180,.18), transparent 60%);
	background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--moon);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Skip link */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--moon);
	color: var(--wp--preset--color--night);
	padding: .75rem 1rem;
	z-index: 100000;
}

/* Header */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the
   mobile menu overlay (position: fixed) inside the header bar. */
/* Sticky goes on the template part's <header> wrapper: the inner group has no room to stick. */
.wp-site-blocks > header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.llr-header { position: relative; border-bottom: 1px solid var(--wp--preset--color--line); }
.llr-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,16,38,.94); }
/* Blur only where it's cheap: larger screens with a fine pointer (not phones). */
@media (min-width: 782px) and (pointer: fine) {
	.llr-header::before { background: rgba(11,16,38,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.llr-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.llr-brand img { width: 36px; height: 36px; display: block; }
.llr-brand span em { font-style: normal; color: var(--wp--preset--color--violet); }

/* Cards */
.is-style-llr-card {
	background: linear-gradient(180deg, rgba(28,37,80,.75), rgba(19,26,58,.75));
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	transition: border-color .2s ease, transform .2s ease;
}
.is-style-llr-card:hover { border-color: rgba(167,139,250,.55); }
@media (prefers-reduced-motion: no-preference) {
	.is-style-llr-card:hover { transform: translateY(-2px); }
}
.is-style-llr-card a { text-decoration: none; }
.is-style-llr-card a::after { content: ""; position: absolute; inset: 0; }
.is-style-llr-card { position: relative; }

/* Card thumbnails (homepage technique cards). Image bleeds to the card edges at the top. */
/* The card sets its own padding (no top padding) so the image sits flush with the top edge;
   overflow + the card's 18px radius round the image's top corners to match. */
.llr-card-has-thumb { --llr-pad: 1.25rem; overflow: hidden; padding: 0 var(--llr-pad) var(--llr-pad) !important; }
.llr-card-thumb { display: block; width: calc(100% + 2 * var(--llr-pad)); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
	margin: 0 calc(-1 * var(--llr-pad)) .9rem !important; border-bottom: 1px solid var(--wp--preset--color--line); transition: transform .4s ease; }
/* Post listing grids: every card the same height (all rows match the tallest card), with the
   date pinned to the bottom so cards line up even when titles or excerpts differ in length. */
.wp-block-post-template.is-layout-grid { grid-auto-rows: 1fr; }
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .is-style-llr-card { flex: 1; display: flex; flex-direction: column; }
.wp-block-post-template.is-layout-grid > li > .is-style-llr-card > .wp-block-post-date { margin-top: auto; padding-top: .4rem; }

/* Blog cards use the core Featured Image block for the same flush-top look. */
.llr-card-has-thumb > .wp-block-post-featured-image { width: calc(100% + 2 * var(--llr-pad)); max-width: none; margin: 0 calc(-1 * var(--llr-pad)) .9rem !important;
	overflow: hidden; border-bottom: 1px solid var(--wp--preset--color--line); }
.llr-card-has-thumb > .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Cards whose post has no image keep normal top padding. */
.llr-card-has-thumb:not(:has(> .wp-block-post-featured-image, > .llr-card-thumb)) { padding-top: var(--llr-pad) !important; }
@media (prefers-reduced-motion: no-preference) {
	.llr-card-has-thumb:hover .llr-card-thumb,
	.llr-card-has-thumb:hover > .wp-block-post-featured-image img { transform: scale(1.03); }
}

/* Glow panel for CTAs */
.is-style-llr-glow {
	background:
		radial-gradient(600px 240px at 100% 0%, rgba(139,92,246,.28), transparent 70%),
		radial-gradient(500px 220px at 0% 100%, rgba(245,194,107,.12), transparent 70%),
		var(--wp--preset--color--surface);
	border: 1px solid rgba(167,139,250,.35);
	border-radius: 22px;
}

/* Eyebrow label */
.is-style-llr-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem !important; font-weight: 600; color: var(--wp--preset--color--violet) !important; }

/* Step numbers */
.llr-step-num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(167,139,250,.15); color: var(--wp--preset--color--violet); font-weight: 700; border: 1px solid rgba(167,139,250,.4); }

/* Difficulty pill */
.llr-pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }

/* Outline button style */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--violet); }

/* Signup form placeholder (replaced by MailerLite embed later) */
.llr-signup { display: flex; flex-wrap: wrap; gap: .6rem; }
.llr-signup input[type="email"] { flex: 1 1 220px; min-width: 0; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--wp--preset--color--line); background: rgba(11,16,38,.6); color: var(--wp--preset--color--ink); font: inherit; }
.llr-signup input[type="email"]::placeholder { color: var(--wp--preset--color--muted); }
.llr-signup button { padding: .85rem 1.3rem; border: 0; border-radius: 12px; background: var(--wp--preset--color--moon); color: var(--wp--preset--color--night); font: inherit; font-weight: 700; cursor: pointer; }
.llr-signup button:hover { background: #ffd58a; }
.llr-fineprint { font-size: .8rem; color: var(--wp--preset--color--muted); }

/* No gap between header, main and footer (heroes should sit right under the header) */
.wp-site-blocks > * { margin-block-start: 0; }

/* ---------- Image heroes ----------
   Background images sit behind the text, fading into the page colour at the bottom.
   Paths are relative to this stylesheet. */
.llr-hero { position: relative; isolation: isolate; background-color: var(--wp--preset--color--night); background-repeat: no-repeat; background-size: cover; }
.llr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(11,16,38,.15) 0%, rgba(11,16,38,0) 55%, var(--wp--preset--color--night) 100%); }
.llr-hero--lake { background-image: url(assets/images/hero-lake-1774.webp); background-position: center 60%; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.llr-hero--door { background-image: url(assets/images/start-here-door-1672.webp); background-position: right center; min-height: min(70vh, 620px); display: flex; flex-direction: column; justify-content: center; }
.llr-hero--door::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(11,16,38,.85) 0%, rgba(11,16,38,.55) 40%, rgba(11,16,38,0) 70%); }
/* Left-text image heroes: image on the right, a dark fade on the left behind the text. */
.llr-hero--left { min-height: min(70vh, 620px); display: flex; flex-direction: column; justify-content: center; background-position: right center; }
.llr-hero--left::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(11,16,38,.85) 0%, rgba(11,16,38,.55) 40%, rgba(11,16,38,0) 70%); }
.llr-hero--stones { background-image: url(assets/images/hero-stones-1672.webp); }
.llr-hero--stairs { background-image: url(assets/images/hero-stairs-1672.webp); }
.llr-hero--tools  { background-image: url(assets/images/hero-tools-1672.webp); background-position: center 60%; }
.llr-hero--tools::before { background: linear-gradient(90deg, rgba(11,16,38,.92) 0%, rgba(11,16,38,.75) 45%, rgba(11,16,38,.15) 80%); }
.llr-hero--404    { background-image: url(assets/images/hero-404-1672.webp); background-position: 65% center; }
.llr-hero--techniques { background-image: url(assets/images/hero-techniques-1672.webp); }
.llr-hero--blog       { background-image: url(assets/images/hero-blog-1672.webp); }
.llr-hero--quiz       { background-image: url(assets/images/hero-quiz-1670.webp); }
.llr-hero--reminders  { background-image: url(assets/images/hero-reminders-1670.webp); }
.llr-hero--about      { background-image: url(assets/images/hero-about-1670.webp); }
.llr-hero--contact    { background-image: url(assets/images/hero-contact-1670.webp); }
.llr-hero--404::before { background: linear-gradient(90deg, rgba(11,16,38,.9) 0%, rgba(11,16,38,.65) 40%, rgba(11,16,38,0) 65%); }
.llr-hero--404 .wp-block-search { max-width: 420px; }
/* Search box (404 + search page) in the site's dark style */
.wp-block-search__input { background: rgba(11,16,38,.7); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: .7rem .9rem; }
.wp-block-search__input::placeholder { color: var(--wp--preset--color--muted); }
.wp-block-search__button { border-radius: 10px; }
@media (max-width: 781px) {
	.llr-hero--left::before, .llr-hero--tools::before, .llr-hero--404::before { background: rgba(11,16,38,.7); }
	.llr-hero--stones { background-image: url(assets/images/hero-stones-900.webp); background-position: 80% center; }
	.llr-hero--stairs { background-image: url(assets/images/hero-stairs-900.webp); background-position: 85% center; }
	.llr-hero--tools  { background-image: url(assets/images/hero-tools-900.webp); background-position: 60% center; }
	.llr-hero--404    { background-image: url(assets/images/hero-404-900.webp); background-position: 60% center; }
	.llr-hero--techniques { background-image: url(assets/images/hero-techniques-900.webp); background-position: 75% center; }
	.llr-hero--blog       { background-image: url(assets/images/hero-blog-900.webp); background-position: 80% center; }
	.llr-hero--quiz       { background-image: url(assets/images/hero-quiz-900.webp); background-position: 70% center; }
	.llr-hero--reminders  { background-image: url(assets/images/hero-reminders-900.webp); background-position: 75% center; }
	.llr-hero--about      { background-image: url(assets/images/hero-about-900.webp); background-position: 70% center; }
	.llr-hero--contact    { background-image: url(assets/images/hero-contact-900.webp); background-position: 75% center; }
}
@media (max-width: 781px) {
	.llr-hero--lake { background-image: url(assets/images/hero-lake-900.webp); background-position: 70% center; }
	.llr-hero--door { background-image: url(assets/images/start-here-door-900.webp); background-position: 78% center; }
	.llr-hero--door::before { background: rgba(11,16,38,.7); }
}

/* Hero text that lines up with the page's left content edge, kept to a readable width. */
.llr-hero > .alignwide { width: 100%; } /* heroes are flex columns; without this, auto margins shrink-wrap and centre the block */
.llr-hero-text > * { max-width: 520px; margin-left: 0 !important; margin-right: auto !important; text-align: left; }

/* Featured image on technique / article pages */
.llr-article-main .wp-block-post-featured-image img { border-radius: 18px; border: 1px solid var(--wp--preset--color--line); }

/* About page author card */
.llr-author-card { gap: 1.25rem !important; margin-bottom: var(--wp--preset--spacing--40); }
.llr-author-card p { margin: 0; }
.llr-avatar { margin: 0; flex: none; }
.llr-avatar img { border-radius: 50%; box-shadow: 0 0 0 3px rgba(185,162,255,.35), 0 10px 30px rgba(0,0,0,.4); }

/* ---------- Blog comments ---------- */
.llr-comments { margin-top: var(--wp--preset--spacing--60); padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--line); max-width: 760px; }
.llr-comments .wp-block-comments-title { font-size: var(--wp--preset--font-size--large); }
.llr-comments ol.wp-block-comment-template { list-style: none; padding: 0; margin: 0 0 var(--wp--preset--spacing--50); }
.llr-comments ol.wp-block-comment-template ol { list-style: none; padding-left: clamp(1rem, 4vw, 2rem); border-left: 1px solid var(--wp--preset--color--line); }
.llr-comment { background: rgba(19,26,58,.6); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.llr-comment .wp-block-comment-author-name { font-weight: 700; }
.llr-comment .wp-block-comment-author-name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.llr-comment .wp-block-comment-date, .llr-comment .wp-block-comment-date a { color: var(--wp--preset--color--muted); text-decoration: none; }
.llr-comment .wp-block-comment-content p { margin-block: .4rem; }
.llr-comment .wp-block-comment-reply-link a { text-decoration: none; font-weight: 600; }
.llr-comments .comment-reply-title { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--large); }
.llr-comments .comment-form label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--violet); margin-bottom: .35rem; }
.llr-comments .comment-form input[type="text"], .llr-comments .comment-form input[type="email"], .llr-comments .comment-form input[type="url"], .llr-comments .comment-form textarea {
	width: 100%; box-sizing: border-box; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); background: rgba(11,16,38,.6); color: var(--wp--preset--color--ink); font: inherit; }
.llr-comments .comment-form input:focus, .llr-comments .comment-form textarea:focus { outline: 2px solid var(--wp--preset--color--moon); outline-offset: 1px; }
.llr-comments .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.llr-comments .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--wp--preset--color--muted); }
.llr-comments .comment-form-cookies-consent input { accent-color: var(--wp--preset--color--moon); margin-top: .25rem; }
.llr-comments .comment-notes, .llr-comments .logged-in-as { font-size: .85rem; color: var(--wp--preset--color--muted); }
.llr-comments .form-submit .submit { appearance: none; border: 0; border-radius: 12px; padding: .85rem 1.4rem; background: var(--wp--preset--color--moon); color: var(--wp--preset--color--night); font: inherit; font-weight: 700; cursor: pointer; }
.llr-comments .form-submit .submit:hover { background: #ffd58a; }
/* ---------- Footer ---------- */
.llr-footer a { text-decoration: none; color: var(--wp--preset--color--muted); }
.llr-footer a:hover { color: var(--wp--preset--color--violet); }
.llr-footer .llr-brand { color: var(--wp--preset--color--ink); }
.llr-footer ul li { margin-bottom: .35rem; }
.llr-social .wp-social-link { transition: color .15s ease, transform .15s ease; }
.llr-social .wp-social-link:hover { color: var(--wp--preset--color--moon) !important; transform: translateY(-1px); }
.llr-social .wp-social-link svg { width: 22px; height: 22px; }

/* ---------- Header nav ---------- */
.llr-header .wp-block-navigation a { text-decoration: none; transition: color .15s ease; }
.llr-header .wp-block-navigation .wp-block-navigation-item > a:hover,
.llr-header .wp-block-navigation .wp-block-navigation-item > a:focus-visible { color: var(--wp--preset--color--violet); }
/* Current page / section: colour only */
.llr-header .wp-block-navigation .current-menu-item > a,
.llr-header .wp-block-navigation .current-menu-ancestor > a,
.llr-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-submenu__toggle { color: var(--wp--preset--color--moon); }

/* Dropdown (desktop) */
.llr-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 14px;
	padding: .5rem !important;
	min-width: 220px !important;
	box-shadow: 0 18px 40px rgba(0,0,0,.45);
	margin-top: .4rem;
}
.llr-header .wp-block-navigation .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; } /* hover bridge */
.llr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem .75rem !important; border-radius: 9px; color: var(--wp--preset--color--ink); white-space: nowrap; }
.llr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(167,139,250,.12); color: var(--wp--preset--color--violet); }
.llr-header .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > a { color: var(--wp--preset--color--moon); }
.llr-nav-divider { border-top: 1px solid var(--wp--preset--color--line); margin-top: .35rem; padding-top: .35rem; }
.wp-block-navigation__submenu-icon { color: currentColor; }

/* Standout paid-programme link */
.llr-header .wp-block-navigation .llr-nav-cta > a {
	padding: .45rem .95rem; border-radius: 999px;
	background: var(--wp--preset--color--moon); color: var(--wp--preset--color--night) !important; font-weight: 700;
}
.llr-header .wp-block-navigation .llr-nav-cta > a:hover { background: #ffd58a; color: var(--wp--preset--color--night) !important; }

/* Mobile overlay */
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a { color: var(--wp--preset--color--ink) !important; }
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > a,
.wp-block-navigation__responsive-container.is-menu-open .current-menu-ancestor > a { color: var(--wp--preset--color--moon) !important; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--night) !important;
	padding: 1.25rem 1.5rem 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; gap: .25rem !important; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem !important; align-items: stretch !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; font-weight: 600; padding: .45rem 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important; border: 0 !important; box-shadow: none; padding: 0 0 .5rem 1rem !important; margin: 0; min-width: 0 !important;
	border-left: 1px solid var(--wp--preset--color--line) !important; border-radius: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--sans) !important; font-size: 1rem !important; font-weight: 500 !important; color: var(--wp--preset--color--muted) !important; padding: .3rem 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .llr-nav-divider { border-top: 0; margin: 0; padding: 0; }
.wp-block-navigation__responsive-container.is-menu-open .llr-nav-cta { margin-top: 1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .current-menu-item > a { color: var(--wp--preset--color--moon) !important; }
.wp-block-navigation__responsive-container.is-menu-open .llr-nav-cta > a { color: var(--wp--preset--color--night) !important; display: block; text-align: center; font-family: var(--wp--preset--font-family--sans) !important; font-size: 1.05rem !important; padding: .85rem 1rem !important; border-radius: 12px; }

/* Article + sidebar layout */
.llr-article-layout { align-items: stretch !important; } /* column must be full height for the sticky sidebar */
.llr-article-main { min-width: 0; }
.llr-article-main .wp-block-post-content > * { max-width: 760px; }
.llr-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 782px) {
	.llr-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 1rem; }
}
.llr-side-title { margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--wp--preset--color--violet); }
.llr-side-card { padding: 1.25rem; }
.llr-side-card p { margin-block: 0 .6rem; }
.llr-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--wp--preset--color--line); }
.llr-toc li { margin: 0; }
.llr-toc a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--wp--preset--color--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.llr-toc a:hover, .llr-toc a.is-active { color: var(--wp--preset--color--ink); border-left-color: var(--wp--preset--color--moon); }
.llr-side-list .wp-block-page-list { list-style: none; margin: 0; padding: 0; }
.llr-side-list .wp-block-page-list a { display: block; padding: .3rem 0; color: var(--wp--preset--color--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.llr-side-list .wp-block-page-list a:hover, .llr-side-list .current-menu-item > a { color: var(--wp--preset--color--moon); }
h2[id] { scroll-margin-top: 90px; }
@media (max-width: 781px) {
	.llr-article-aside { order: 2; }
	.llr-toc { display: none; }
	.llr-side-card { display: none; } /* the full signup box already sits right above it */
}

/* Quick facts box on technique pages */
.llr-facts { padding: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--50); }
.llr-facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem 1.5rem; }
.llr-facts li { font-size: .95rem; line-height: 1.45; }
.llr-facts li strong { display: block; margin-bottom: .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--violet); }

/* Callout (safety notes, tips) */
.llr-note { border-left: 3px solid var(--wp--preset--color--moon); background: rgba(245,194,107,.07); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.llr-note p { margin: 0; }

/* Article body rhythm */
.wp-block-post-content h2 { margin-top: var(--wp--preset--spacing--60); }
.wp-block-post-content h3 { margin-top: var(--wp--preset--spacing--50); }
.wp-block-post-content ol li, .wp-block-post-content ul li { margin-bottom: .5rem; }

/* Details / FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 1rem; }
.wp-block-details summary { cursor: pointer; font-weight: 600; }

/* Post meta & tables */
.wp-block-post-terms a { text-decoration: none; }
.wp-block-table td, .wp-block-table th { border-color: var(--wp--preset--color--line); text-align: left; vertical-align: top; padding: .7rem .8rem; }
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--line); }
.wp-block-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--violet); }

