/*
Theme Name: GORGY LuminaPath
Theme URI: https://gorgy.net/
Author: Peter GORGY
Author URI: https://gorgy.net/
Description: Block theme for gorgy.net, the home of LuminaPath — Faith, Mind & Meaning, built on the LuminaPath Sunrise identity. Includes full-page patterns for LuminaPath (home, app, 2027 journey, approach, about, closed testing, support, privacy policy), a guided page setup screen, a Night style variation and bundled fonts.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gorgy-luminapath
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, wide-blocks, style-variations, translation-ready, rtl-language-support
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--wp--preset--color--sun); outline-offset: 3px; border-radius: 6px; }
:lang(ar) body, :lang(ar) :where(h1, h2, h3, h4, p, li, a, button) { font-family: var(--wp--preset--font-family--arabic); letter-spacing: 0; }

/* Shared helpers */
.lp-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--teal); font-weight: 500; }
.lp-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 58ch; }
.lp-measure { max-width: 65ch; }
.lp-mono { font-family: var(--wp--preset--font-family--mono); }
.lp-band { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.lp-time { font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--wp--preset--color--sun); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

/* Buttons: outline style */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--on-contrast); }
.lp-btn-sm .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.lp-header { position: sticky; top: 0; z-index: 30; background: transparent; border-bottom: 1px solid var(--wp--preset--color--line); }
/* 2.4: the frosted background is a layer behind the header, not on the header itself. A backdrop-filter (or
   will-change: transform) on .lp-header made it the containing block of the full-screen mobile menu, which was
   then cut to the header's 68 px height on phones. Same colour and blur as before. */
.lp-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.admin-bar .lp-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .lp-header { top: 0; } }
.lp-header .wp-block-site-logo img { border-radius: 50%; }
.lp-brand-text { gap: 0 !important; }
.lp-brand-text .wp-block-site-title, .lp-brand-text .wp-block-site-tagline { margin: 0; line-height: 1.2; }
.lp-header .wp-block-navigation a { padding: 0.45rem 0.75rem; border-radius: 999px; }
.lp-header .wp-block-navigation a:hover { background: var(--wp--preset--color--sunk); }
.lp-header .wp-block-navigation .current-menu-item > a,
.lp-header .wp-block-navigation a[aria-current="page"] { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--on-contrast); }
@media (max-width: 1100px) { .wp-block-buttons.lp-header-cta { display: none !important; } }
.lp-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 0.15rem; }
.lp-header .wp-block-navigation-item__label, .lp-header-cta .wp-block-button__link { white-space: nowrap; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding-top: var(--wp--preset--spacing--60); padding-bottom: calc(var(--wp--preset--spacing--60) + 150px); }
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 190px; background: url("assets/images/hills.svg") center bottom / 100% 100% no-repeat; pointer-events: none; }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero h1 em { color: var(--wp--preset--color--deep); }
.lp-hero .lp-eyebrow { color: var(--wp--preset--color--contrast); }
.lp-hero .lp-lede { color: var(--wp--preset--color--contrast); opacity: 0.88; }
.lp-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.92rem; }
.lp-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.lp-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--sea); }

/* Phone mockup */
.lp-phone { width: min(330px, 100%); margin-inline: auto; background: var(--wp--preset--color--surface); border-radius: 38px; padding: 14px; border: 1px solid var(--wp--preset--color--line); box-shadow: var(--wp--custom--shadow-phone); }
.lp-screen { border-radius: 28px; overflow: hidden; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); gap: 0 !important; }
.lp-scr-top { padding: 20px 18px 18px; gap: 6px !important; color: #F7F3EA; }
.lp-scr-top p { margin: 0; }
.lp-scr-top .lp-scr-date { font-family: var(--wp--preset--font-family--mono); font-size: 0.7rem; letter-spacing: 0.08em; opacity: 0.85; }
.lp-scr-top .lp-scr-feast { font-family: var(--wp--preset--font-family--display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.lp-scr-top .lp-chip { display: inline-block; width: fit-content; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.lp-scr-body { padding: 14px; gap: 10px !important; }
.lp-scr-body p { margin: 0; }
.lp-verse { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 0.9rem; line-height: 1.45; border-left: 3px solid var(--wp--preset--color--gold); padding-left: 10px; }
.lp-verse cite { display: block; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 0.68rem; color: var(--wp--preset--color--muted); margin-top: 4px; }
.lp-task { position: relative; font-size: 0.8rem; line-height: 1.4; padding: 9px 10px 9px 38px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.lp-task::before { content: ""; position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--wp--preset--color--teal); }
.lp-task.lp-done::before { background: var(--wp--preset--color--teal); }
.lp-task strong { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--teal); }
.lp-tabbar { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; justify-content: space-around; padding: 10px 6px 12px; margin: 0; border-top: 1px solid var(--wp--preset--color--line); font-size: 0.68rem; color: var(--wp--preset--color--muted); }
.lp-tabbar strong { color: var(--wp--preset--color--sea); }

/* ---------- Rhythm ---------- */
.lp-rhythm > .wp-block-group { border-top: 2px solid var(--wp--preset--color--contrast); padding-top: 1.4rem; }
.lp-rhythm ul { color: var(--wp--preset--color--muted); padding-left: 1.1rem; margin: 0; }

/* ---------- Promise strip ---------- */
.lp-promise { border-radius: var(--wp--custom--radius); overflow: hidden; gap: 0 !important; }
.lp-promise.has-background { padding: 0 !important; gap: 1px !important; background-color: color-mix(in srgb, var(--wp--preset--color--on-contrast) 18%, var(--wp--preset--color--contrast)) !important; margin-bottom: var(--wp--preset--spacing--60); }
.lp-promise > .wp-block-group { padding: 1.5rem; gap: 0.35rem; margin: 0 !important; background: var(--wp--preset--color--contrast); }
.lp-promise p { margin: 0; }
.lp-promise .lp-promise-title { font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; font-weight: 600; }
.lp-promise .lp-promise-text { font-size: 0.92rem; opacity: 0.82; }

/* ---------- Liturgical year bar ---------- */
.lp-yearbar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); }
.lp-yearbar span { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.lp-s-christmas { background: #C9A227; color: #2A1E00 !important; }
.lp-s-ordinary { background: #2E7D4F; }
.lp-s-lent { background: #6B3FA0; }
.lp-s-triduum { background: #8E1B1B; }
.lp-s-easter { background: #D9B44A; color: #2A1E00 !important; }
.lp-s-advent { background: #4B3A8C; }
.lp-yearticks { display: flex; justify-content: space-between; font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; color: var(--wp--preset--color--muted); margin-top: 6px; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--wp--preset--color--muted); margin-top: 1rem; }
.lp-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.lp-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Months ---------- */
.lp-month { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.4rem; padding-bottom: 0.6rem; gap: 0.5rem !important; }
.lp-month h3, .lp-month h2 { margin: 0; }
h2.lp-h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); }
.lp-month .lp-month-no { font-family: var(--wp--preset--font-family--mono); color: var(--wp--preset--color--sun); font-weight: 500; margin: 0; }
.lp-month .lp-season { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--teal); margin: 0; }
.lp-month ol { margin: 0; padding-left: 1.2rem; color: var(--wp--preset--color--muted); font-size: 0.95rem; }

/* ---------- Features ---------- */
.lp-feature { border-bottom: 1px solid var(--wp--preset--color--line); padding-top: 1.3rem; padding-bottom: 1.3rem; align-items: flex-start !important; }
.lp-feature .wp-block-html, .lp-feature svg { flex: 0 0 44px; width: 44px; height: 44px; }
.lp-feature h3 { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.25rem; }
.lp-feature p { color: var(--wp--preset--color--muted); margin: 0; font-size: 0.98rem; }
.lp-feature > .wp-block-group { flex: 1 1 0; min-width: 0; gap: 0 !important; }

/* Modes */
.lp-modes p { margin: 0; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--wp--preset--color--mist); font-weight: 500; font-size: 0.92rem; }

/* ---------- Panels & notices ---------- */
.is-style-lp-panel { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 1.75rem; }
.is-style-lp-panel p:not(.lp-eyebrow) { color: var(--wp--preset--color--muted); }
.is-style-lp-notice { background: var(--wp--preset--color--dawn); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 1.4rem 1.5rem; }
.is-style-lp-notice > * { margin-top: 0; margin-bottom: 0; }
a.lp-card-link, .lp-card-link a { text-decoration: none; color: inherit; }
.lp-card-link:hover { border-color: var(--wp--preset--color--sea); }

/* ---------- Tables ---------- */
.lp-table { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); background: var(--wp--preset--color--surface); overflow-x: auto; }
.lp-table table { border-collapse: collapse; width: 100%; }
.lp-table td, .lp-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table thead { border-bottom: 0; }
.lp-table th, .lp-table td:first-child { font-weight: 600; }
.lp-table th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

/* ---------- Steps ---------- */
ol.lp-steps { list-style: none; padding: 0; margin: 0; counter-reset: lpstep; }
ol.lp-steps > li { counter-increment: lpstep; display: grid; grid-template-columns: 52px 1fr; gap: 0 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
ol.lp-steps > li::before { content: counter(lpstep); grid-row: span 2; font-family: var(--wp--preset--font-family--display); font-size: 2rem; font-weight: 600; color: var(--wp--preset--color--sun); line-height: 1; }
ol.lp-steps > li strong { display: block; color: var(--wp--preset--color--contrast); font-size: 1.08rem; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--mono); color: var(--wp--preset--color--sea); font-size: 1.3rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > p { color: var(--wp--preset--color--muted); max-width: 68ch; }

/* ---------- Page head ---------- */
.lp-pagehead { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--50); border-bottom: 1px solid var(--wp--preset--color--line); }
.lp-draft { display: inline-block; width: fit-content; font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--wp--preset--color--dawn); color: var(--wp--preset--color--sun); }

/* ---------- Founder ---------- */
.lp-portrait img { border-radius: var(--wp--custom--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.lp-portrait-placeholder { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--wp--custom--radius); display: flex; align-items: flex-end; padding: 1.1rem; color: #fff; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.06em; }

/* ---------- Legal ---------- */
.lp-legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.lp-legal p, .lp-legal li { color: var(--wp--preset--color--muted); }

/* ---------- Footer ---------- */
.lp-footer a { color: inherit; opacity: 0.85; text-decoration: none; }
.lp-footer a:hover { opacity: 1; text-decoration: underline; }
.lp-footer h4, .lp-footer .lp-footer-h { font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; font-weight: 600; color: inherit; margin: 0; }
.lp-footer .wp-block-site-title a, .lp-footer .wp-block-site-tagline { color: inherit; }
.lp-footer .wp-block-site-logo img { border-radius: 50%; }
.lp-footer-links p { margin: 0; }
.lp-footer-note { border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-contrast) 18%, transparent); padding-top: 1.25rem; font-size: 0.85rem; opacity: 0.78; }

/* ---------- Blog ---------- */
.lp-post-card { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: 1.6rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Quote ---------- */
.wp-block-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--wp--preset--color--muted); }

/* ---------- Template seams ---------- */
.wp-site-blocks > .lp-main, .wp-site-blocks > .lp-footer, .wp-site-blocks > main { margin-block-start: 0; }
.lp-landing > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.lp-landing > .alignfull + .alignfull { margin-block-start: 0; }
.lp-header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.lp-footer > .wp-block-group { margin-block-start: 0; }

/* ---------- v1.1 Home ---------- */
.lp-front > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.lp-hero { padding-bottom: calc(var(--wp--preset--spacing--60) + 130px); }

/* Promise band continues the deep-sea hill */
.lp-promise-band { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--50); }
.lp-promise-row { gap: 0 !important; }
.lp-promise-row > .wp-block-group { padding: 1rem 1.5rem 1rem 0; gap: 0.35rem; margin: 0 !important; }
.lp-promise-row > .wp-block-group + .wp-block-group { padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--on-contrast) 22%, transparent); }
.lp-promise-row p { margin: 0; }
.lp-promise-row .lp-promise-title { font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; font-weight: 600; }
.lp-promise-row .lp-promise-text { font-size: 0.92rem; opacity: 0.82; }
@media (max-width: 900px) {
	.lp-promise-row > .wp-block-group, .lp-promise-row > .wp-block-group + .wp-block-group { padding: 1rem 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-contrast) 22%, transparent); }
	.lp-promise-row > .wp-block-group:first-child { border-top: 0; }
}

/* Compact features */
.lp-feature-mini { border-bottom: 0; padding: 0; }
.lp-feature-mini h3 { font-size: 1.02rem; }
.lp-feature-mini p { font-size: 0.93rem; }

/* Example worksheet card */
.lp-worksheet { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 1.4rem 1.5rem 1.1rem; box-shadow: var(--wp--custom--shadow-phone); gap: 0 !important; max-width: 470px; margin-inline: auto; }
.lp-worksheet p { margin: 0; }
.lp-ws-head { padding-bottom: 0.9rem; border-bottom: 2px solid var(--wp--preset--color--contrast); margin-bottom: 0.2rem !important; align-items: center !important; }
.lp-ws-kicker { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.1rem; }
.lp-ws-tag { font-family: var(--wp--preset--font-family--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--sea); white-space: nowrap; }
.lp-ws-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 0.93rem; line-height: 1.45; }
.lp-ws-row:last-child { border-bottom: 0; }
.lp-ws-row strong { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--teal); padding-top: 0.15rem; }
.lp-ws-key { background: var(--wp--preset--color--dawn); margin-inline: -0.75rem !important; padding-inline: 0.75rem; border-radius: 10px; border-bottom: 0; font-weight: 600; }
.lp-ws-meter { display: inline-flex; white-space: nowrap; vertical-align: middle; align-items: center; gap: 0.5rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.82rem; }
.lp-ws-meter::before { content: ""; width: 64px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--wp--preset--color--sun) calc(var(--v) * 1%), var(--wp--preset--color--line) 0); }
@media (max-width: 480px) { .lp-ws-row { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Sample themes beside the year bar */
.lp-theme-samples { margin-top: 1.4rem !important; gap: 0.9rem 1.5rem !important; }
.lp-theme-samples p { margin: 0; display: flex; flex-direction: column; font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; line-height: 1.35; }
.lp-theme-samples .lp-mono { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--wp--preset--color--sun); margin-bottom: 0.15rem; }

/* Founder strip */
.lp-founder-emblem { display: block; width: min(160px, 40vw); height: auto; border-radius: 50%; margin-inline: auto; box-shadow: 0 18px 40px -20px rgba(14,35,70,.45); }

/* Call to action */
.lp-cta { text-align: left; }
.lp-cta .lp-eyebrow { color: var(--wp--preset--color--gold); }
.lp-cta h2, .lp-cta .lp-lede { color: inherit; }
.lp-cta .lp-lede { opacity: 0.9; }
.lp-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: #0E2346; }
.lp-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #FFFFFF; border-color: #FFFFFF; }
.lp-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: inherit; border-color: currentColor; }
.lp-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,0.12); color: inherit; }

/* ---------- v1.3 Real screenshots ---------- */
.lp-devices { position: relative; max-width: 420px; margin-inline: auto; aspect-ratio: 420 / 560; }
.lp-device { margin: 0 !important; position: absolute; width: 62%; }
.lp-device img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; border: 8px solid #10223f; background: #10223f; box-shadow: var(--wp--custom--shadow-phone); }
.lp-device-front { left: 0; top: 0; z-index: 2; }
.lp-device-back { right: 0; top: 9%; transform: rotate(4deg); opacity: 0.96; }
@media (max-width: 781px) { .lp-devices { max-width: 360px; } }

.lp-shots { gap: 1.5rem 1.25rem !important; margin-top: var(--wp--preset--spacing--40); }
.lp-shot { margin: 0 !important; }
.lp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 14px 30px -18px rgba(14, 35, 70, 0.45); }
.lp-shot figcaption { margin-top: 0.6rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--teal); text-align: left; }
@media (max-width: 600px) {
	.lp-shots { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; }
	.lp-shot { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ---------- v1.3 404 and lede alignment ---------- */
.is-layout-constrained > .lp-lede { max-width: var(--wp--style--global--content-size); }
.lp-404 .lp-lede { max-width: 58ch; margin-left: 0 !important; }
.lp-404 > .alignwide { gap: var(--wp--preset--spacing--50); }
.lp-404 h1 { margin-top: 0.4rem; }
.lp-search { max-width: 640px; }
.lp-search .wp-block-search__input { border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 0.7rem 1.1rem; background: var(--wp--preset--color--surface); }
.lp-admin-note { position: relative; z-index: 40; background: #FFF4D6; color: #3B2A00; border-bottom: 1px solid #E8C66B; padding: 0.75rem max(16px, 4vw); font-size: 0.92rem; }
.lp-admin-note a { color: #0B3A75; font-weight: 600; }

/* ---------- v1.4 Language switcher ---------- */
.lp-lang { position: relative; }
.lp-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.7rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--surface); }
.lp-lang summary::-webkit-details-marker { display: none; }
.lp-lang summary:hover { border-color: var(--wp--preset--color--sea); }
.lp-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 50; list-style: none; margin: 0; padding: 0.4rem; min-width: 13rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(14, 35, 70, 0.45); }
.lp-lang li a { display: block; padding: 0.55rem 0.75rem; border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--contrast); font-size: 0.95rem; }
.lp-lang li a:hover { background: var(--wp--preset--color--sunk); }
.lp-lang li a[aria-current="true"] { background: var(--wp--preset--color--mist); font-weight: 600; }
.lp-lang li a[lang^="ar"] { font-family: var(--wp--preset--font-family--arabic); }

/* ---------- v1.4 Right-to-left (Arabic, Egyptian Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .lp-eyebrow, [dir="rtl"] .lp-time, [dir="rtl"] .lp-season, [dir="rtl"] .lp-shot figcaption, [dir="rtl"] .lp-ws-row strong, [dir="rtl"] .lp-ws-tag { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .lp-eyebrow, [dir="rtl"] .lp-time { font-size: 0.9rem; font-weight: 600; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .lp-hero h1 em { font-style: normal; }
[dir="rtl"] .wp-block-list, [dir="rtl"] .lp-rhythm ul, [dir="rtl"] .lp-month ol { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .lp-facts { padding: 0; }
[dir="rtl"] .wp-block-quote { border-left: 0; border-right: 3px solid var(--wp--preset--color--sun); padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] .lp-verse { border-left: 0; border-right: 3px solid var(--wp--preset--color--gold); padding-left: 0; padding-right: 10px; }
[dir="rtl"] .lp-promise-row > .wp-block-group { padding: 1rem 0 1rem 1.5rem; }
[dir="rtl"] .lp-promise-row > .wp-block-group + .wp-block-group { padding-left: 1.5rem; padding-right: 1.5rem; border-left: 0; border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--on-contrast) 22%, transparent); }
@media (max-width: 900px) { [dir="rtl"] .lp-promise-row > .wp-block-group, [dir="rtl"] .lp-promise-row > .wp-block-group + .wp-block-group { padding: 1rem 0; border-right: 0; } }
[dir="rtl"] .lp-table td, [dir="rtl"] .lp-table th { text-align: right; }
[dir="rtl"] .lp-shot figcaption { text-align: right; }
[dir="rtl"] ol.lp-steps > li { grid-template-columns: 52px 1fr; }
[dir="rtl"] .lp-device-front { left: auto; right: 0; }
[dir="rtl"] .lp-device-back { right: auto; left: 0; transform: rotate(-4deg); }
[dir="rtl"] .lp-ws-meter::before { background: linear-gradient(270deg, var(--wp--preset--color--sun) calc(var(--v) * 1%), var(--wp--preset--color--line) 0); }

[dir="rtl"] .lp-yearbar span { font-family: var(--wp--preset--font-family--arabic); }
[dir="rtl"] .lp-theme-samples p { font-family: var(--wp--preset--font-family--arabic); }
[dir="rtl"] .lp-admin-note { text-align: right; }
:lang(ar) .lp-mono, :lang(ar) .lp-scr-date, :lang(ar) .lp-month-no { font-family: var(--wp--preset--font-family--mono); }
[dir="rtl"] .lp-eyebrow, [dir="rtl"] .lp-time, [dir="rtl"] .lp-season, [dir="rtl"] .wp-element-caption, [dir="rtl"] .lp-shot figcaption, [dir="rtl"] .lp-ws-row strong, [dir="rtl"] .lp-ws-tag, [dir="rtl"] .lp-ws-kicker, [dir="rtl"] .lp-promise-title, [dir="rtl"] .wp-block-quote, [dir="rtl"] .wp-block-quote p, [dir="rtl"] .wp-block-quote cite, [dir="rtl"] summary, [dir="rtl"] td, [dir="rtl"] th, [dir="rtl"] input, [dir="rtl"] .wp-block-button__link, [dir="rtl"] .wp-block-navigation-item__label, [dir="rtl"] .lp-yearbar span, [dir="rtl"] .lp-yearticks, [dir="rtl"] .lp-legend, [dir="rtl"] .lp-theme-samples .lp-mono, [dir="rtl"] .lp-draft, [dir="rtl"] .lp-footer h4, [dir="rtl"] .lp-footer .lp-footer-h, [dir="rtl"] .lp-brand-text .wp-block-site-tagline { font-family: var(--wp--preset--font-family--arabic); letter-spacing: 0; text-transform: none; }
:lang(ar) .lp-lede, :lang(ar) p { line-height: 1.85; }

/* ---------- v1.6 Tester request form ---------- */
.lp-form { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.lp-form p { margin: 0; }
.lp-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.lp-field label { font-weight: 600; font-size: 0.92rem; color: var(--wp--preset--color--contrast); }
.lp-opt { font-weight: 400; color: var(--wp--preset--color--muted); }
.lp-form input[type="text"], .lp-form input[type="email"], .lp-form select, .lp-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--wp--preset--color--sea) 35%, transparent); border-color: var(--wp--preset--color--sea); }
.lp-form textarea { resize: vertical; min-height: 5.5rem; }
.lp-help { font-size: 0.82rem; color: var(--wp--preset--color--muted); line-height: 1.45; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .lp-row { grid-template-columns: 1fr; } }
.lp-check { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start; font-size: 0.92rem; color: var(--wp--preset--color--muted); }
.lp-check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--wp--preset--color--contrast); }
.lp-submit button { cursor: pointer; width: 100%; }
.lp-submit button[disabled] { opacity: 0.7; cursor: progress; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lp-form-wrap { position: relative; }
.lp-form-msg { border-radius: 12px; padding: 1rem 1.1rem; margin: 0.4rem 0 0.8rem; font-size: 0.95rem; }
.lp-form-ok { background: color-mix(in srgb, #1E7F4F 12%, var(--wp--preset--color--surface)); border: 1px solid color-mix(in srgb, #1E7F4F 40%, transparent); color: var(--wp--preset--color--contrast); }
.lp-form-ok p { margin: 0.3rem 0 0; color: var(--wp--preset--color--muted); }
.lp-form-err { background: color-mix(in srgb, #B3261E 10%, var(--wp--preset--color--surface)); border: 1px solid color-mix(in srgb, #B3261E 40%, transparent); color: var(--wp--preset--color--contrast); }
[dir="rtl"] .lp-form label, [dir="rtl"] .lp-form input, [dir="rtl"] .lp-form select, [dir="rtl"] .lp-form textarea, [dir="rtl"] .lp-form button, [dir="rtl"] .lp-help, [dir="rtl"] .lp-form-msg { font-family: var(--wp--preset--font-family--arabic); }
[dir="rtl"] .lp-form input[type="email"] { text-align: left; }
[dir="rtl"] .lp-hp { left: auto !important; right: -9999px !important; }
.lp-form-wrap *, .lp-form-wrap *::before, .lp-form-wrap *::after { box-sizing: border-box; }
.lp-form-wrap [hidden] { display: none !important; }
#lp-tester-form { scroll-margin-top: 110px; }

/* ---------- v1.7 Header: hamburger menu below 1024px (7 menu items) ---------- */
@media (max-width: 1023px) {
	.lp-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.lp-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
	.lp-header .wp-block-navigation a { padding: 0.45rem 0.5rem; }
	.lp-header .wp-block-navigation { font-size: 0.9rem; }
}
/* 2.4: with four menu items the tagline fits from 1200 px (it was hidden up to 1499 px to make room for seven). */
@media (min-width: 1200px) { .lp-header .wp-block-site-tagline { white-space: nowrap; } }
@media (min-width: 1024px) and (max-width: 1199px) { .lp-header .wp-block-site-tagline { display: none; } }

/* ---------- v1.8 Store buttons ---------- */
.lp-stores { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.lp-store { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 54px; padding: 0.5rem 1.1rem 0.5rem 0.9rem; border-radius: 12px; text-decoration: none !important; line-height: 1.1; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.lp-store svg { flex: 0 0 auto; }
.lp-store-txt { display: flex; flex-direction: column; gap: 0.15rem; }
.lp-store-txt small { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; font-weight: 500; }
.lp-store-txt b { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.005em; }
.lp-store-play, .lp-store-live { background: #000; color: #fff !important; border: 1px solid #000; }
.lp-store-play:hover, .lp-store-live:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6); color: #fff; }
.lp-store-soon { background: transparent; color: var(--wp--preset--color--contrast) !important; border: 1.5px dashed color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent); }
.lp-store-soon:hover { background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent); border-style: solid; }
.lp-store:focus-visible { outline: 3px solid var(--wp--preset--color--sun); outline-offset: 3px; }
.lp-stores-test { margin: 0.75rem 0 0 !important; font-size: 0.95rem; }
.lp-stores-test a { font-weight: 600; color: var(--wp--preset--color--contrast); text-underline-offset: 3px; }
.lp-stores-slot { display: contents; }
/* On the gradient call-to-action band */
.lp-cta .lp-store-play, .lp-cta .lp-store-live { background: #fff; color: #000 !important; border-color: #fff; }
.lp-cta .lp-store-soon { color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.lp-cta .lp-store-soon:hover { background: rgba(255, 255, 255, 0.12); }
.lp-cta .lp-stores-test a { color: #fff; }
/* Right-to-left */
[dir="rtl"] .lp-store { padding: 0.5rem 0.9rem 0.5rem 1.1rem; }
[dir="rtl"] .lp-store-txt small { letter-spacing: 0; text-transform: none; font-family: var(--wp--preset--font-family--arabic); font-size: 0.78rem; }
[dir="rtl"] .lp-stores-test a { font-family: var(--wp--preset--font-family--arabic); }
.lp-store-txt b { font-family: var(--wp--preset--font-family--body); }
@media (max-width: 480px) { .lp-store { flex: 1 1 100%; justify-content: flex-start; } }

/* Hero facts: room above the line */
.lp-hero .lp-facts { margin-top: 1.5rem !important; }
