/* Easy Lucid Dream — branded public site (homepage, guides, archives). */
:root {
	--eld-midnight-navy: #0B1026;
	--eld-deep-purple: #352063;
	--eld-dream-lavender: #AC8BE8;
	--eld-soft-blue: #7DA8FF;
	--eld-soft-white: #F8F7FF;
	--eld-muted: #c9c2e6;
	--eld-subtle: #a39cc4;
	--eld-border: rgba(172, 139, 232, .22);
	--eld-surface: rgba(248, 247, 255, .045);
	--eld-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--eld-display: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", var(--eld-font);
}
body.eldt-site {
	margin: 0;
	background: var(--eld-midnight-navy);
	color: var(--eld-soft-white);
	font-family: var(--eld-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.eldt-site *, .eldt-site *::before, .eldt-site *::after { box-sizing: border-box; }
.eldt-site a { color: var(--eld-soft-blue); }
.eldt-site a:hover { color: #a9c4ff; }
.eldt-site :focus-visible { outline: 3px solid var(--eld-soft-blue); outline-offset: 2px; border-radius: 6px; }
.eldt-site h1, .eldt-site h2, .eldt-site h3, .eldt-site h4 { font-family: var(--eld-display); color: var(--eld-soft-white); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.eldt-site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.eldt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eldt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--eld-dream-lavender); color: var(--eld-midnight-navy) !important; padding: 8px 14px; border-radius: 8px; }
.eldt-skip:focus { left: 8px; }

/* Brand */
.eldt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--eld-soft-white) !important; }
.eldt-brand-icon { width: 40px; height: 40px; flex: none; }
.eldt-wordmark { white-space: nowrap; font-family: var(--eld-display); font-weight: 700; font-size: 1.15rem; text-transform: lowercase; color: var(--eld-soft-white); }
.eldt-wordmark b { color: var(--eld-dream-lavender); font-weight: 800; }

/* Header */
.eldt-site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 38, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--eld-border); }
.admin-bar .eldt-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .eldt-site-header { top: 46px; } }
.eldt-site-bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.eldt-site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.eldt-site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.eldt-site-nav ul a { display: block; white-space: nowrap; padding: 8px 10px; border-radius: 999px; color: var(--eld-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.eldt-site-nav ul a:hover { color: var(--eld-soft-white); background: rgba(248, 247, 255, .08); }
.eldt-site-account { display: flex; align-items: center; gap: 14px; }
.eldt-site-signin { white-space: nowrap; color: var(--eld-soft-white) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.eldt-site-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--eld-border); background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.eldt-site-toggle span[aria-hidden] { display: block; height: 2px; border-radius: 2px; background: var(--eld-soft-white); }
@media (max-width: 1120px) {
	.eldt-site-toggle { display: flex; }
	.eldt-site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px clamp(16px, 4vw, 32px) 22px; background: #0f1531; border-bottom: 1px solid var(--eld-border); }
	.eldt-site-header.is-open .eldt-site-nav { display: flex; }
	.eldt-site-nav ul { flex-direction: column; }
	.eldt-site-nav ul a { padding: 12px 10px; font-size: 1.05rem; }
	.eldt-site-account { justify-content: space-between; }
}

/* Buttons */
.eldt-site-btn, .eldt-site-btn-ghost {
	white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
	border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none !important; line-height: 1.2;
	transition: background-color .15s ease, border-color .15s ease;
}
.eldt-site-btn { background: var(--eld-dream-lavender); color: var(--eld-midnight-navy) !important; }
.eldt-site-btn:hover { background: #c0a6f0; }
.eldt-site-btn-ghost { border: 1px solid rgba(172, 139, 232, .5); color: var(--eld-soft-white) !important; }
.eldt-site-btn-ghost:hover { background: rgba(248, 247, 255, .08); }
.eldt-site-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.02rem; }

/* Shared */
.eldt-site-main { outline: none; }
.eldt-site-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--eld-dream-lavender); margin: 0 0 8px; }
.eldt-site-eyebrow a { color: inherit !important; text-decoration: none; }
.eldt-site-meta { color: var(--eld-subtle); font-size: .88rem; margin: 0; }
.eldt-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.eldt-site-card { background: var(--eld-surface); border: 1px solid var(--eld-border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease; }
.eldt-site-card:hover { border-color: rgba(172, 139, 232, .55); }
.eldt-site-card h3 { margin: 0; font-size: 1.12rem; }
.eldt-site-card h3 a { color: var(--eld-soft-white) !important; text-decoration: none; }
.eldt-site-card h3 a:hover { text-decoration: underline; }
.eldt-site-card p { margin: 0; color: var(--eld-muted); font-size: .95rem; }
.eldt-site-card .eldt-site-eyebrow { margin: 0; }
.eldt-site-card .eldt-site-meta { margin-top: auto; padding-top: 6px; }
.eldt-card-thumb img { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 6px; }

/* Article */
.eldt-article-head {
	padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
	background: radial-gradient(900px 400px at 85% -20%, rgba(53, 32, 99, .95), transparent 70%), radial-gradient(700px 300px at -10% 0%, rgba(125, 168, 255, .12), transparent 70%);
}
.eldt-article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0 0 14px; }
.eldt-article-wrap { max-width: 760px; }
.eldt-article-dek { font-size: 1.15rem; color: var(--eld-muted); margin: 0 0 14px; max-width: 62ch; }
.eldt-article-hero img { width: 100%; height: auto; border-radius: 18px; }
.eldt-article-body { padding-bottom: 48px; font-size: 1.09rem; line-height: 1.8; color: #ece9fb; }
.eldt-article-body h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.eldt-article-body h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.eldt-article-body p, .eldt-article-body ul, .eldt-article-body ol { margin: 0 0 1.1em; }
.eldt-article-body ul, .eldt-article-body ol { padding-left: 1.4em; }
.eldt-article-body li { margin-bottom: .45em; }
.eldt-article-body li::marker { color: var(--eld-dream-lavender); }
.eldt-article-body strong { color: #fff; }
.eldt-article-body a { text-decoration-color: rgba(125, 168, 255, .5); text-underline-offset: 3px; }
.eldt-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.eldt-article-body blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--eld-dream-lavender); color: var(--eld-muted); }
.eldt-site .eldt-article-note { color: var(--eld-muted); }
.eldt-site-related { padding: 48px 0; background: rgba(53, 32, 99, .25); border-top: 1px solid var(--eld-border); }
.eldt-site-related h2 { margin: 0 0 20px; }
.eldt-site-page { padding-bottom: 56px; }
.eldt-site-comments { padding-bottom: 48px; }
.eldt-site-pager ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 32px 0 0; flex-wrap: wrap; }
.eldt-site-pager a, .eldt-site-pager span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--eld-border); color: var(--eld-soft-white); text-decoration: none; }
.eldt-site-pager .current { background: var(--eld-dream-lavender); color: var(--eld-midnight-navy); }

/* Guides hub on the branded template */
.eldt-site .eldt-library-section h2 { font-size: 1.5rem; }
.eldt-site .eldt-library-card { background: var(--eld-surface); border-color: var(--eld-border); }
.eldt-site .eldt-library-card h3 a { color: var(--eld-soft-white); text-decoration: none; }
.eldt-site .eldt-library-card h3 a:hover { text-decoration: underline; }
.eldt-site .eldt-library-card p { color: var(--eld-muted); opacity: 1; }

/* Homepage */
.eldt-home-hero {
	text-align: center;
	padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
	background: radial-gradient(1000px 500px at 50% -10%, rgba(53, 32, 99, .95), transparent 70%), radial-gradient(600px 300px at 90% 30%, rgba(125, 168, 255, .12), transparent 70%);
}
.eldt-home-icon { width: 110px; height: 110px; margin-bottom: 10px; }
.eldt-home-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; margin: 0 auto 18px; }
.eldt-home-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--eld-muted); max-width: 60ch; margin: 0 auto 28px; }
.eldt-home-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eldt-home-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; color: var(--eld-muted); font-size: .95rem; }
.eldt-home-points li::before { content: "✦"; color: var(--eld-dream-lavender); margin-right: 8px; }
.eldt-home-section { padding: clamp(48px, 8vw, 88px) 0; }
.eldt-home-section > .eldt-site-wrap > h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; margin: 0 0 10px; }
.eldt-home-sub { text-align: center; color: var(--eld-muted); max-width: 60ch; margin: 0 auto 36px; }
.eldt-home-alt { background: rgba(53, 32, 99, .28); border-top: 1px solid var(--eld-border); border-bottom: 1px solid var(--eld-border); }
.eldt-home-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.eldt-home-steps li { background: var(--eld-surface); border: 1px solid var(--eld-border); border-radius: 18px; padding: 24px; }
.eldt-home-steps h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.eldt-home-steps p { margin: 0; color: var(--eld-muted); font-size: .96rem; }
.eldt-home-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--eld-dream-lavender); color: var(--eld-midnight-navy); font: 800 1.05rem var(--eld-display); }
.eldt-home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.eldt-home-feature { padding: 24px; border-radius: 18px; background: rgba(11, 16, 38, .55); border: 1px solid var(--eld-border); }
.eldt-home-feature .eldt-ico { width: 30px; height: 30px; color: var(--eld-dream-lavender); }
.eldt-home-feature h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.eldt-home-feature p { margin: 0; color: var(--eld-muted); font-size: .96rem; }
.eldt-home-center { text-align: center; margin: 36px 0 0; }
.eldt-home-final { text-align: center; background: linear-gradient(135deg, #352063, #0B1026); }
.eldt-home-final h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; }
.eldt-home-final p { color: var(--eld-muted); margin: 0 0 24px; }
@media (max-width: 960px) {
	.eldt-home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eldt-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.eldt-home-steps, .eldt-home-features { grid-template-columns: 1fr; }
}

/* Footer */
.eldt-site-footer { border-top: 1px solid var(--eld-border); padding: 48px 0 24px; background: #080c1e; }
.eldt-site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.eldt-site-footer p { color: var(--eld-subtle); font-size: .92rem; max-width: 42ch; }
.eldt-site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--eld-dream-lavender); margin: 0 0 12px; }
.eldt-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eldt-site-footer ul a { color: var(--eld-muted); text-decoration: none; font-size: .95rem; }
.eldt-site-footer ul a:hover { color: var(--eld-soft-white); }
.eldt-site-legal { margin-top: 32px; border-top: 1px solid var(--eld-border); padding-top: 18px; }
.eldt-site-legal p { margin: 0; font-size: .85rem; max-width: none; }
@media (max-width: 960px) { .eldt-site-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eldt-site-footer-grid { grid-template-columns: 1fr; } }

/* Homepage FAQ */
.eldt-home-faq { max-width: 820px; }
.eldt-home-faq details { border: 1px solid var(--eld-border); border-radius: 14px; background: var(--eld-surface); margin-bottom: 10px; }
.eldt-home-faq summary { cursor: pointer; padding: 16px 20px; list-style: none; }
.eldt-home-faq summary::-webkit-details-marker { display: none; }
.eldt-home-faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.eldt-home-faq summary::after { content: "+"; float: right; color: var(--eld-dream-lavender); font-weight: 700; }
.eldt-home-faq details[open] summary::after { content: "–"; }
.eldt-home-faq details p { margin: 0; padding: 0 20px 18px; color: var(--eld-muted); }
.eldt-breadcrumbs { font-size: .85rem; color: var(--eld-subtle); margin: 0 0 14px; }
.eldt-breadcrumbs a { color: var(--eld-muted) !important; text-decoration: none; }
.eldt-breadcrumbs a:hover { text-decoration: underline; }
.eldt-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.eldt-article-body th, .eldt-article-body td { border: 1px solid var(--eld-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.eldt-article-body th { background: rgba(53, 32, 99, .5); color: var(--eld-soft-white); }

/* Community forum */
.eldt-forum-notice { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(143, 227, 192, .45); background: rgba(143, 227, 192, .08); margin: 0 0 18px; }
.eldt-forum-notice.is-error { border-color: rgba(255, 155, 176, .6); background: rgba(255, 155, 176, .1); }
.eldt-forum-top { margin: 0 0 28px; }
.eldt-forum-new > summary { list-style: none; cursor: pointer; display: inline-flex; }
.eldt-forum-new > summary::-webkit-details-marker { display: none; }
.eldt-forum-form, .eldt-forum-join { margin-top: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--eld-border); background: var(--eld-surface); display: grid; gap: 14px; max-width: 760px; }
.eldt-forum-join p { margin: 0; }
.eldt-forum-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.eldt-forum-form small { font-weight: 400; color: var(--eld-subtle); }
.eldt-site input[type="text"], .eldt-site select, .eldt-site textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(172, 139, 232, .45);
	background: rgba(11, 16, 38, .6); color: var(--eld-soft-white); font: 400 1rem/1.5 var(--eld-font); color-scheme: dark;
}
.eldt-site textarea { min-height: 140px; resize: vertical; }
.eldt-site input:focus, .eldt-site select:focus, .eldt-site textarea:focus { outline: none; border-color: var(--eld-dream-lavender); box-shadow: 0 0 0 3px rgba(172, 139, 232, .3); }
.eldt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.eldt-forum-h { font-size: 1.35rem; margin: 32px 0 14px; }
.eldt-forum-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.eldt-forum-cat { display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--eld-border); background: var(--eld-surface); text-decoration: none; color: var(--eld-soft-white) !important; }
.eldt-forum-cat:hover { border-color: rgba(172, 139, 232, .55); }
.eldt-forum-cat span { color: var(--eld-muted); font-size: .92rem; }
.eldt-forum-cat em { font-style: normal; color: var(--eld-dream-lavender); font-size: .85rem; font-weight: 600; }
.eldt-topic-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--eld-border); border-radius: 16px; overflow: hidden; }
.eldt-topic-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--eld-border); background: var(--eld-surface); }
.eldt-topic-row:last-child { border-bottom: 0; }
.eldt-topic-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.eldt-topic-row h3 a { color: var(--eld-soft-white) !important; text-decoration: none; }
.eldt-topic-row h3 a:hover { text-decoration: underline; }
.eldt-topic-row .eldt-site-meta a { color: var(--eld-muted) !important; }
.eldt-topic-count { flex: none; color: var(--eld-subtle); font-size: .88rem; }
.eldt-team-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--eld-dream-lavender); color: var(--eld-midnight-navy); font-size: .72rem; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; }
.eldt-pin { color: var(--eld-soft-blue); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.eldt-topic { padding: 24px; border-radius: 18px; border: 1px solid var(--eld-border); background: var(--eld-surface); margin-bottom: 28px; }
.eldt-topic-author { color: var(--eld-subtle); font-size: .9rem; margin-bottom: 12px; }
.eldt-topic-author strong { color: var(--eld-soft-white); }
.eldt-topic-body { font-size: 1.05rem; line-height: 1.75; color: #ece9fb; }
.eldt-topic-body ul { padding-left: 1.3em; }
.eldt-replies h2 { font-size: 1.3rem; }
.eldt-reply-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.eldt-reply { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--eld-border); background: rgba(11, 16, 38, .5); }
.eldt-reply-head { font-size: .9rem; color: var(--eld-subtle); margin-bottom: 6px; }
.eldt-reply-head strong { color: var(--eld-soft-white); }
.eldt-reply-body p { margin: 0 0 .8em; }
.eldt-report { margin-top: 8px; }
.eldt-report button { background: none; border: 0; color: var(--eld-subtle); font-size: .8rem; cursor: pointer; padding: 0; text-decoration: underline; }
.eldt-site .comment-respond { padding: 22px; border-radius: 18px; border: 1px solid var(--eld-border); background: var(--eld-surface); }
.eldt-site .comment-reply-title { font-family: var(--eld-display); font-size: 1.2rem; margin: 0 0 6px; }
.eldt-site .comment-form-comment label { display: block; font-weight: 600; margin-bottom: 6px; }
.eldt-site .form-submit input[type="submit"] { appearance: none; border: 0 !important; cursor: pointer; background: #AC8BE8 !important; color: #0B1026 !important; font: 700 .95rem/1.2 var(--eld-font) !important; padding: 12px 24px !important; border-radius: 999px !important; min-height: 44px; }
.eldt-site .form-submit input[type="submit"]:hover { background: #c0a6f0 !important; }
.eldt-discuss { padding-bottom: 40px; }
.eldt-discuss h2 { font-size: 1.35rem; }
@media (max-width: 600px) { .eldt-topic-row { flex-direction: column; align-items: flex-start; gap: 6px; } }

@media (prefers-reduced-motion: reduce) { .eldt-site * { transition: none !important; } }
