/* Lareen site pages: policies, blog, single post, search, 404. Uses the tokens from lareen-globals.css. */
.ls, .lw-site {
  --ls-ink: #1E1538;
  --ls-soft: #EEEAF8;
  --ls-bg: #F4F3F8;
  --ls-line: #E3E5EB;
  --ls-r: 24px;
}
.lw-site { width: 100%; }
.lw-site h1, .lw-site h2, .lw-site h3 { color: var(--ls-ink); }
.ls {
  display: block;
  padding-block: 28px 72px;
  background: var(--ls-bg);
  color: var(--text);
}
.ls-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ls-stack { display: flex; flex-direction: column; gap: 28px; }
.ls-stack-s { display: flex; flex-direction: column; gap: 16px; }
.ls-narrow { max-width: 900px; }
.ls-mid { max-width: 1000px; }
.ls h1, .ls h2, .ls h3 { color: var(--ls-ink); letter-spacing: -.01em; }
.ls :focus-visible, .lw-site :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Buttons and chips */
.ls-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.3; text-decoration: none; transition: background-color .2s, transform .2s; }
.ls-btn:hover { background: var(--accent); color: #fff; }
.ls-btn-lg { min-height: 54px; padding: 0 28px; border-radius: 14px; font-size: 1rem; }
.ls-btn-soft { background: var(--purple-bg); color: #3E2491; }
.ls-btn-soft:hover { background: #E4DBFF; color: #3E2491; }
.ls-tag, .ls-chip { align-self: flex-start; display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; background: #fff; color: var(--primary); font-size: .8rem; font-weight: 800; line-height: 1.5; text-decoration: none; min-height: 0; }
.ls-chip { background: var(--purple-bg); color: #3E2491; }
.ls-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.ls-more { color: var(--primary); font-weight: 800; text-decoration: none; }
.ls-more:hover { color: var(--accent); }

/* Hero */
.ls-hero { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 5vw, 52px) clamp(22px, 4.5vw, 48px); border-radius: 28px; background: var(--ls-soft); }
.ls-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.3; font-weight: 900; }
.ls-hero h1 span, .ls-post-head h1 span { color: var(--primary); }
.ls-lead { max-width: 720px; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.9; color: var(--muted); }
.ls-hero-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.ls-hero-split > div { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.ls-hero-split .ls-search { flex: 1 1 320px; max-width: 420px; }
.ls-hero-center { align-items: center; text-align: center; }
.ls-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.ls-crumbs a { color: var(--muted); text-decoration: none; min-height: 0; }
.ls-crumbs a:hover { color: var(--primary); }
.ls-crumbs [aria-current] { color: #3E2491; font-weight: 700; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ls-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: #3E2491; }

/* Search box */
.ls-search { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--ls-line); border-radius: 16px; background: #fff; }
.ls-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 0; outline: none; background: transparent; font: inherit; font-size: .95rem; color: var(--text); }
.ls-search button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; }
.ls-search button:hover { background: var(--accent); }
.ls-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ls-soft); }
.ls-search.is-big { border: 1.5px solid var(--primary); box-shadow: 0 0 0 4px var(--ls-soft); border-radius: 18px; }
.ls-search.is-big input { min-height: 54px; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; color: var(--ls-ink); }
.ls-search.is-big button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ls-search.is-big button { width: 54px; min-height: 54px; padding: 0; justify-content: center; border-radius: 14px; }
.ls-hero-center .ls-search { width: 100%; max-width: 520px; }

/* Pills (tabs, categories) */
.ls-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.ls-pills a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ls-line); border-radius: 12px; background: #fff; color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .2s, color .2s; }
.ls-pills a:hover { border-color: var(--primary); color: var(--primary); }
.ls-pills a[aria-current] { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
.ls-pills-s { flex-wrap: wrap; align-items: center; overflow: visible; }
.ls-pills-s a { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: .88rem; }
.ls-count { font-size: .88rem; color: var(--muted); margin-inline-end: 4px; }

/* Two columns: side box + content */
.ls-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ls-aside { flex: 1 1 250px; display: flex; flex-direction: column; gap: 16px; }
.ls-split > article { flex: 999 1 560px; min-width: 0; }
.ls-box { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--ls-line); border-radius: 20px; background: #fff; }
.ls-box h2 { font-size: .88rem; font-weight: 800; color: var(--muted); }
.ls-box-dark { border: 0; background: var(--ls-ink); color: #fff; }
.ls-box-dark h2 { font-size: 1.05rem; color: #fff; }
.ls-box-dark p { font-size: .9rem; line-height: 1.8; color: #CFC7EA; }
.ls-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ls-toc a { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 10px; color: var(--text); font-size: .9rem; line-height: 1.5; text-decoration: none; }
.ls-toc a b { font-size: .75rem; color: var(--muted); }
.ls-toc a:hover { background: var(--ls-bg); }
.ls-toc a[aria-current] { background: var(--purple-bg); color: #3E2491; font-weight: 700; }
.ls-toc a[aria-current] b { color: var(--primary); }

/* Long-form content */
.ls-doc { padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px); border: 1px solid var(--ls-line); border-radius: var(--ls-r); background: #fff; }
.ls-prose { font-size: 1.05rem; line-height: 2; color: #2C2D33; overflow-wrap: anywhere; }
.ls-prose > * + * { margin-top: 1.1em; }
.ls-prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.5; font-weight: 900; scroll-margin-top: 110px; }
.ls-prose h3 { margin-top: 1.4em; font-size: 1.2rem; font-weight: 800; scroll-margin-top: 110px; }
.ls-prose > h2:first-child, .ls-prose > h3:first-child { margin-top: 0; }
.ls-prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline; min-height: 0; }
.ls-prose ul, .ls-prose ol { padding-inline-start: 1.4em; }
.ls-prose li + li { margin-top: .35em; }
.ls-prose img, .ls-prose video, .ls-prose iframe { max-width: 100%; height: auto; border-radius: 16px; }
.ls-prose figure { margin-inline: 0; }
.ls-prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.ls-prose blockquote { padding: 22px 26px; border: 1px solid var(--ls-line); border-radius: 20px; background: #fff; color: #3E2491; font-size: 1.2rem; font-weight: 800; line-height: 1.8; }
.ls-prose blockquote::before { content: "\201D"; display: block; height: .6em; color: var(--primary); font-size: 3rem; line-height: 1; font-family: Georgia, serif; }
.ls-prose blockquote p { margin: 0; }
.ls-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.ls-prose th, .ls-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ls-line); text-align: start; }
.ls-prose th { color: var(--muted); font-size: .85rem; }
.ls-prose code { padding: 2px 6px; border-radius: 6px; background: var(--ls-bg); font-size: .9em; }
.ls-prose pre { padding: 16px; border-radius: 14px; background: var(--ls-ink); color: #fff; overflow-x: auto; direction: ltr; text-align: left; }
.ls-prose pre code { background: none; padding: 0; }
.ls-prose hr { border: 0; border-top: 1px solid var(--ls-line); }
.ls-prose .has-background, .ls-prose .wp-block-group.has-background { padding: 20px 24px; border-radius: 18px; }
.ls-doc > p:first-child, .ls-prose .is-style-lead { font-size: 1.12rem; color: var(--ls-ink); font-weight: 600; }
/* Policy pages: numbered sections */
.is-policy .ls-doc { counter-reset: lsec; }
.is-policy .ls-doc h2 { counter-increment: lsec; display: flex; gap: 12px; align-items: baseline; }
.is-policy .ls-doc h2::before { content: counter(lsec, decimal-leading-zero); font-size: .9rem; color: var(--primary); }
.is-policy .ls-doc > ul:first-child, .is-policy .ls-doc > .wp-block-list:first-child { padding: 20px 44px 20px 24px; border-radius: 18px; background: var(--purple-bg); color: #3E2491; font-size: .98rem; }

/* Wide pages (account, purchase) */
.ls-wide { padding-block: 32px 80px; }

/* Blog */
.ls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ls-headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.ls-headrow h2, .ls-h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); font-weight: 900; }
.ls-headrow span { font-size: .88rem; color: var(--muted); }
.ls-h3 { font-size: 1.2rem; font-weight: 800; }
.ls-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--purple-bg); color: var(--primary); }
.ls-featured { display: flex; flex-wrap: wrap; overflow: hidden; border: 1px solid var(--ls-line); border-radius: 28px; background: #fff; color: var(--text); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.ls-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ls-featured-img { flex: 1 1 420px; min-height: 320px; background: var(--primary); }
.ls-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-featured-img .ls-ph { min-height: 320px; background: var(--primary); color: #fff; }
.ls-featured-body { flex: 1 1 420px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.ls-featured-body h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.45; font-weight: 900; }
.ls-featured-body p { color: var(--muted); line-height: 1.95; }
.ls-featured-body .ls-more { margin-inline-start: auto; }
.ls-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ls-ink); color: #fff; font-size: .8rem; font-weight: 800; }
.ls-avatar-img { width: 44px; height: 44px; border-radius: 50%; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.ls-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ls-line); border-radius: 22px; background: #fff; color: var(--text); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.ls-card a:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.ls-card-img { height: 190px; overflow: hidden; }
.ls-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.ls-card-body h3 { font-size: 1.15rem; line-height: 1.6; font-weight: 800; }
.ls-card-body p { font-size: .9rem; line-height: 1.9; color: var(--muted); }
.ls-card-body .ls-meta { margin-top: auto; padding-top: 6px; }
.ls-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ls-pages .page-numbers, .ls-pages a, .ls-pages > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--ls-line); border-radius: 12px; background: #fff; color: var(--text); font-weight: 700; text-decoration: none; }
.ls-pages .current { border-color: var(--primary); background: var(--primary); color: #fff; }
.ls-pages .dots { border: 0; background: none; }
.ls-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; border: 1.5px dashed #D5D7DE; border-radius: 22px; background: #fff; text-align: center; color: var(--muted); }
.ls-empty svg { color: var(--primary); }
.ls-empty h2, .ls-empty h3 { font-size: 1.2rem; font-weight: 800; }
.ls-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 44px); border-radius: 28px; background: var(--ls-ink); }
.ls-cta > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.ls-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 900; color: #fff; }
.ls-cta p { color: #CFC7EA; line-height: 1.9; }

/* Single post */
.ls-readbar { position: sticky; top: 0; z-index: 30; height: 4px; background: var(--ls-line); }
.ls-readbar i { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .ls-readbar i { transform-origin: left; }
.ls-post-head { max-width: 860px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ls-post-head .ls-crumbs { justify-content: center; }
.ls-post-head .ls-tag { align-self: center; background: var(--purple-bg); color: #3E2491; }
.ls-post-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.4; font-weight: 900; }
.ls-byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.ls-byline b { color: var(--text); }
.ls-byline .ls-avatar { width: 44px; height: 44px; }
.ls-cover { margin: 0; overflow: hidden; border-radius: 28px; background: var(--purple-bg); }
.ls-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.ls-article { max-width: 780px; font-size: 1.12rem; line-height: 2.05; }
.ls-article > p:first-child { font-size: 1.22rem; color: var(--ls-ink); font-weight: 600; }
.ls-share { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-share a, .ls-share button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ls-bg); color: #3E2491; transition: background-color .2s, color .2s; }
.ls-share a:hover, .ls-share button:hover, .ls-share .is-done { background: var(--primary); color: #fff; }
.ls-share svg { width: 20px; height: 20px; }
.ls-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ls-line); }
.ls-prose .ls-tags a { padding: 4px 14px; border: 1px solid var(--ls-line); border-radius: 999px; background: #fff; color: #3E2491; font-size: .88rem; font-weight: 700; text-decoration: none; }
.ls-author { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 26px; border: 1px solid var(--ls-line); border-radius: 24px; background: #fff; line-height: 1.8; }
.ls-author > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.ls-author > div > span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.ls-author b { font-size: 1.2rem; color: var(--ls-ink); }
.ls-author p { margin: 0; font-size: .95rem; color: var(--muted); }
.ls-author-badge, .ls-author-img { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 22px; background: var(--primary); color: #fff; font-size: 1.35rem; font-weight: 900; object-fit: cover; }
.ls-prose a.ls-btn { display: inline-flex; min-height: 44px; text-decoration: none; }
.ls-prose .ls-author a.ls-btn { color: #3E2491; font-size: .9rem; }
.ls-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ls-prose .ls-postnav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--ls-line); border-radius: 18px; background: #fff; color: var(--text); text-decoration: none; font-weight: 400; line-height: 1.7; }
.ls-postnav a:hover { border-color: var(--primary); }
.ls-postnav span { font-size: .82rem; color: var(--muted); }
.ls-postnav b { font-size: 1rem; color: var(--ls-ink); }
.ls-postnav .is-next { text-align: left; }
.ls-mini { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--ls-line); border-radius: 20px; background: #fff; color: var(--text); text-decoration: none; }
.ls-mini:hover { border-color: var(--primary); }
.ls-mini-img { flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 14px; }
.ls-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-mini-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ls-mini-body em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--primary); }
.ls-mini-body b { font-size: 1rem; line-height: 1.6; color: var(--ls-ink); }
.ls-mini-body small { font-size: .8rem; color: var(--muted); }

/* Search */
.ls-kicker { font-size: .9rem !important; font-weight: 600 !important; color: var(--muted) !important; }
.ls-results { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ls-results a { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--ls-line); border-radius: 20px; background: #fff; color: var(--text); text-decoration: none; min-height: 0; }
.ls-results a:hover { border-color: var(--primary); }
.ls-result-img { flex: none; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; overflow: hidden; border-radius: 14px; background: var(--purple-bg); color: var(--primary); }
.ls-result-img.is-page { background: var(--ls-ink); color: #fff; }
.ls-result-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-result-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ls-result-body em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--primary); }
.ls-result-body b { font-size: 1.12rem; line-height: 1.6; color: var(--ls-ink); }
.ls-result-body span { font-size: .9rem; line-height: 1.8; color: var(--muted); }
.ls mark, .lw-site mark { padding: 0; background: #E4DBFF; color: var(--ls-ink); }
.ls-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: 20px; background: var(--ls-soft); color: #3E2491; font-weight: 600; }

/* 404 */
.ls-404-num { font-size: clamp(6rem, 18vw, 9.5rem); line-height: 1; font-weight: 900; color: var(--primary); letter-spacing: -4px; }
.ls-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.ls-tiles a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--ls-line); border-radius: 20px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.ls-tiles a:hover { border-color: var(--primary); transform: translateY(-2px); }
.ls-tiles b { font-size: 1rem; color: var(--ls-ink); }
.ls-tiles small { font-size: .88rem; color: var(--muted); }
.ls-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--purple-bg); color: var(--primary); }

@media (max-width: 640px) {
  .ls { padding-block: 16px 56px; }
  .ls-hero { border-radius: 22px; }
  .ls-featured-img, .ls-featured-img .ls-ph { min-height: 220px; }
  .ls-results a { padding: 14px; gap: 14px; }
  .ls-result-img { width: 64px; height: 64px; }
  .ls-mini-img { width: 76px; height: 76px; }
  .ls-search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ls-featured, .ls-card a, .ls-tiles a { transition: none; }
  .ls-featured:hover, .ls-card a:hover, .ls-tiles a:hover { transform: none; }
}
@media (max-width: 820px) {
  .ls-page .ls-box-dark { display: none; }
}
.lw-site .ls-readbar { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 9990; }
