:root {
    --primary: #E8762E;
    --accent: #F3A15F;
    --surface: #ffffff;
    --theme-light-bg: #F6F7F9;
    --theme-light-soft: #EEF1F5;
    --theme-light-text: #202838;
    --theme-dark-bg: #090D14;
    --theme-dark-soft: #0D1520;
    --theme-dark-panel: #121821;
    --theme-dark-text: #F5F7FA;
    --bg: var(--theme-light-bg);
    --bg-soft: var(--theme-light-soft);
    --text: var(--theme-light-text);
    --muted: #6f7080;
    --line: rgba(47, 45, 68, .1);
    --card: color-mix(in srgb, var(--surface) 94%, transparent);
    --header: rgba(255, 255, 255, .86);
    --shadow: 0 22px 70px rgba(43, 37, 77, .11);
    --radius: 24px;
    --content-width: 1180px;
    --font-ui: Tahoma, Arial, "Segoe UI", sans-serif;
    --font-display: Tahoma, Arial, "Segoe UI", sans-serif;
    color-scheme: light;
    font-family: var(--font-ui);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}
html[data-theme="dark"] {
    --bg: var(--theme-dark-bg);
    --bg-soft: var(--theme-dark-soft);
    --text: var(--theme-dark-text);
    --muted: #b2afbf;
    --line: rgba(255, 255, 255, .1);
    --card: color-mix(in srgb, var(--theme-dark-panel) 94%, transparent);
    --header: color-mix(in srgb, var(--theme-dark-bg) 88%, transparent);
    --shadow: 0 22px 70px rgba(0, 0, 0, .28);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; background: var(--bg); }
body { min-width: 0; margin: 0; overflow-x: hidden; overflow-x: clip; background: var(--bg); color: var(--text); line-height: 1.75; }
body, button, input, textarea, select { font-family: inherit; }
body[data-template="aurora"] { --radius: 24px; --content-width: 1180px; }
body[data-template="minimal"] { --radius: 12px; --shadow: none; --content-width: 1080px; }
body[data-template="minimal"] .hero::before,
body[data-template="minimal"] .hero::after,
body[data-template="minimal"] .hero h1::after { display: none; }
body[data-template="minimal"] .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-template="minimal"] .brand-mark,
body[data-template="minimal"] .mini-logo { border-radius: 14px; background: #fff; box-shadow: none; }
body[data-template="minimal"] .hero { padding-block: clamp(48px, 7vw, 82px) 52px; }
body[data-template="minimal"] .hero-grid { gap: clamp(34px, 6vw, 70px); }
body[data-template="minimal"] .hero h1 { font-size: clamp(38px, 5vw, 62px); }
body[data-template="minimal"] .button { border-radius: 8px; }
body[data-template="minimal"] .button-primary { background: var(--primary); box-shadow: none; }
body[data-template="minimal"] .join-card,
body[data-template="minimal"] .answer-card,
body[data-template="minimal"] .feature-grid article,
body[data-template="minimal"] .page-card { box-shadow: none; }
body[data-template="minimal"] .join-card::before { background: var(--primary); }
body[data-template="minimal"] .answer-card { background: var(--card); }
body[data-template="minimal"] .feature-grid article,
body[data-template="minimal"] .page-card { border-radius: 10px; }
body[data-template="minimal"] .safety-section { background: color-mix(in srgb, var(--text) 92%, var(--primary)); }
body[data-template="editorial"] {
    --radius: 4px;
    --shadow: none;
    --content-width: 1120px;
    --font-ui: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", Tahoma, Arial, sans-serif;
    --font-display: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", Tahoma, Arial, sans-serif;
    font-family: var(--font-ui);
}
html[dir="ltr"] body[data-template="editorial"] {
    --font-ui: Georgia, "Times New Roman", serif;
    --font-display: Georgia, "Times New Roman", serif;
}
body[data-template="editorial"] .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-template="editorial"] .brand-mark,
body[data-template="editorial"] .mini-logo { border-radius: 14px; background: #fff; box-shadow: none; }
body[data-template="editorial"] .hero { padding-block: clamp(56px, 8vw, 92px) 58px; }
body[data-template="editorial"] .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); }
body[data-template="editorial"] .hero h1,
body[data-template="editorial"] .article-header h1,
body[data-template="editorial"] .section-head h2 { font-family: var(--font-display); letter-spacing: 0; }
body[data-template="editorial"] .hero h1::after { width: .48em; height: .08em; border-radius: 0; vertical-align: .23em; }
body[data-template="editorial"] .button { border-radius: 2px; }
body[data-template="editorial"] .button-primary { background: var(--primary); box-shadow: none; }
body[data-template="editorial"] .join-card { border-block: 4px solid var(--primary); border-inline: 0; background: transparent; }
body[data-template="editorial"] .join-card::before { display: none; }
body[data-template="editorial"] .answer-card { grid-template-columns: 1fr; border-inline: 0; border-block: 1px solid var(--line); background: transparent; }
body[data-template="editorial"] .answer-icon { width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
body[data-template="editorial"] .feature-grid article { border: 0; border-block-start: 3px solid var(--primary); border-radius: 0; background: transparent; box-shadow: none; }
body[data-template="editorial"] .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-template="editorial"] .page-card { border: 0; border-inline-start: 4px solid var(--primary); border-radius: 0; background: transparent; box-shadow: none; }
body[data-template="editorial"] .safety-section { background: color-mix(in srgb, var(--text) 92%, var(--primary)); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 9999; transform: translateY(-150%); padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand-mark, .mini-logo { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; overflow: hidden; border: 1px solid color-mix(in srgb, #2d76e8 18%, var(--line)); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(45, 118, 232, .16); }
.brand-mark img, .mini-logo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-wordmark { display: block; flex: 0 0 126px; width: 126px; min-width: 126px; max-width: 126px; height: 42px; min-height: 42px; max-height: 42px; overflow: visible; line-height: 0; }
.brand-wordmark img { display: block; width: 126px; min-width: 126px; max-width: 126px; height: 42px; min-height: 42px; max-height: 42px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(8, 20, 63, .55)) drop-shadow(0 3px 8px rgba(45, 118, 232, .18)); }
.brand-custom { display: inline-flex; align-items: center; flex: 0 1 auto; width: auto; max-width: min(180px, 45vw); height: 42px; overflow: hidden; line-height: 0; }
.brand-custom img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.brand-custom-mini img { object-fit: contain !important; padding: 3px; }
.footer-brand .brand-wordmark { flex-basis: 150px; width: 150px; min-width: 150px; max-width: 150px; height: 50px; min-height: 50px; max-height: 50px; }
.footer-brand .brand-wordmark img { width: 150px; min-width: 150px; max-width: 150px; height: 50px; min-height: 50px; max-height: 50px; }
.footer-brand .brand-custom { max-width: min(210px, 58vw); height: 50px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { max-width: 270px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-width: 0; }
.site-nav a { position: relative; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:not(.nav-cta)::after { position: absolute; inset-inline: 0; bottom: -7px; width: 0; height: 2px; margin: auto; border-radius: 10px; background: var(--primary); content: ""; transition: width .2s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-cta { padding: 9px 15px; border-radius: 10px; background: var(--primary); color: #fff; box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 25%, transparent); }
.theme-toggle, .nav-toggle { display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.theme-toggle { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.theme-icon::before { content: "☾"; font-size: 22px; line-height: 1; }
html[data-theme="dark"] .theme-icon::before { content: "☀"; font-size: 19px; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 2px auto; border-radius: 4px; background: currentColor; }
.hero { position: relative; isolation: isolate; padding: clamp(62px, 9vw, 118px) 0 70px; overflow: hidden; }
.hero::before, .hero::after { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); content: ""; pointer-events: none; }
.hero::before { inset-block-start: -260px; inset-inline-end: -160px; width: 620px; height: 620px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent), transparent 66%); }
.hero::after { inset-block-end: -260px; inset-inline-start: -180px; width: 540px; height: 540px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 17%, transparent), transparent 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: center; gap: clamp(46px, 8vw, 100px); }
.eyebrow, .section-label, .section-head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.hero h1 { max-width: 760px; margin: 17px 0 18px; font-size: clamp(40px, 6vw, 74px); line-height: 1.12; letter-spacing: -.035em; }
html[dir="rtl"] .hero h1,
html[dir="rtl"] .article-header h1 { letter-spacing: 0; }
.hero h1, .article-header h1, .section-head h2, .feature-grid h3, .page-card h3 { overflow-wrap: anywhere; }
.hero h1::after { display: inline-block; width: .75em; height: .18em; margin-inline-start: .15em; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); content: ""; vertical-align: .18em; }
.hero-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 13px; font-weight: 900; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--accent))); color: #fff; box-shadow: 0 13px 30px color-mix(in srgb, var(--primary) 29%, transparent); }
.button-ghost { border-color: var(--line); background: var(--card); color: var(--text); }
.button-light { background: #fff; color: #272138; box-shadow: 0 13px 30px rgba(0, 0, 0, .12); }
.button-block { width: 100%; }
.live-stats { display: flex; align-items: stretch; gap: 0; margin: 38px 0 0; }
.live-stats > div { min-width: 120px; padding-inline: 22px; border-inline-start: 1px solid var(--line); }
.live-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.live-stats dt { font-size: 25px; font-weight: 900; line-height: 1.2; }
.live-stats dd { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #1dca84; box-shadow: 0 0 0 4px rgba(29, 202, 132, .12); }
.join-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.join-card::before { position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); content: ""; }
.join-card-head { display: flex; align-items: center; gap: 13px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.mini-logo { width: 46px; height: 46px; }
.join-card-head div, .join-steps li div { display: flex; flex-direction: column; }
.join-card-head small, .join-steps small { color: var(--muted); font-size: 11px; }
.join-steps { display: flex; flex-direction: column; gap: 17px; margin: 24px 0; padding: 0; list-style: none; }
.join-steps li { display: flex; align-items: center; gap: 13px; }
.join-steps li > span { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 10px; background: var(--bg-soft); color: var(--primary); font-size: 12px; font-weight: 900; }
.join-note { margin: 13px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.answer-section, .quick-start-section, .trust-section, .features-section, .guides-section { padding-block: 50px; }
.answer-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: clamp(24px, 4vw, 38px); border: 1px solid color-mix(in srgb, var(--primary) 17%, var(--line)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--card)), color-mix(in srgb, var(--accent) 5%, var(--card))); box-shadow: var(--shadow); }
.answer-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--primary); color: #fff; font-size: 26px; font-weight: 900; }
.answer-icon::before { content: "؟"; }
.answer-card h2 { margin: 4px 0 8px; font-size: clamp(24px, 4vw, 34px); }
.answer-card p { max-width: 900px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.quick-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 0; list-style: none; }
.quick-start-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.quick-start-grid li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); font-weight: 900; }
.quick-start-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.trust-grid article { min-width: 0; padding: clamp(23px, 4vw, 34px); border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line)); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 5%, var(--card)), var(--card)); }
.trust-grid h2 { margin: 6px 0 10px; font-size: clamp(23px, 3vw, 31px); line-height: 1.35; overflow-wrap: anywhere; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.trust-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.trust-links a { color: var(--primary); font-size: 11px; font-weight: 900; text-underline-offset: 4px; }
.content-review { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin: 14px 2px 0; color: var(--muted); font-size: 10px; }
.section-head { display: flex; flex-direction: column; margin-bottom: 26px; }
.section-head.centered { align-items: center; text-align: center; }
.section-head h2 { margin: 5px 0 0; font-size: clamp(25px, 4vw, 38px); line-height: 1.3; }
.feature-grid, .page-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.page-cards[data-esp-card-count="1"] { max-width: 390px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
.page-cards[data-esp-card-count="2"] { max-width: 797px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid article, .page-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); box-shadow: 0 12px 35px rgba(39, 34, 69, .055); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--primary) 11%, var(--card)); color: var(--primary); font-size: 23px; font-weight: 900; }
.feature-icon-link::before { content: "⌁"; }
.feature-icon-community::before { content: "◇"; }
.feature-icon-check::before { content: "✓"; }
.feature-grid h3, .page-card h3 { margin: 15px 0 7px; font-size: 18px; }
.feature-grid p, .page-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.page-card { display: flex; flex-direction: column; }
.page-card h3 a { text-decoration: none; }
.page-card p { display: -webkit-box; min-height: 70px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-tag { align-self: flex-start; display: inline-flex; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-size: 10px; font-weight: 900; }
.text-link { align-self: flex-start; margin-top: 15px; color: var(--primary); font-size: 12px; font-weight: 900; text-decoration: none; }
.text-link span { display: inline-block; }
html[dir="ltr"] .text-link span { transform: scaleX(-1); }
.safety-section { margin-top: 50px; padding: 62px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, #171329), color-mix(in srgb, var(--primary) 57%, #151326)); color: #fff; }
.safety-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.safety-grid h2 { margin: 7px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.safety-grid p { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .76); }
.safety-grid .section-label { color: #bdf8e7; }
.site-footer { padding-top: 60px; background: color-mix(in srgb, var(--bg) 76%, #0d0c14); }
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(150px, .65fr)); gap: 50px; padding-bottom: 42px; }
.footer-brand p { max-width: 460px; color: var(--muted); font-size: 12px; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid nav strong { margin-bottom: 5px; }
.footer-nav-label { margin-top: 8px; color: var(--text); font-size: 11px; font-weight: 900; }
.footer-grid nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-grid nav a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.esp-support-actions { display: flex; flex-direction: column; gap: 10px; }
.esp-support-actions .button { margin: 0; }
.esp-support-register { display: inline-flex; align-items: center; justify-content: center; align-self: center; min-height: 44px; padding: 8px 12px; color: var(--primary); font-size: 12px; font-weight: 900; text-align: center; text-decoration: none; }
.esp-support-register:hover { text-decoration: underline; }
.esp-support-register:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cookie-consent { position: fixed; z-index: 1000; inset-inline: 18px; inset-block-end: max(18px, env(safe-area-inset-bottom)); width: min(760px, calc(100% - 36px)); margin-inline: auto; padding: 18px; border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--card) 96%, transparent); box-shadow: 0 24px 70px rgba(20, 17, 38, .24); backdrop-filter: blur(18px); transition: opacity .2s ease, transform .2s ease; }
.cookie-consent.is-closing { opacity: 0; transform: translateY(16px); }
.cookie-consent-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.cookie-consent-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--primary) 11%, var(--card)); color: var(--primary); font-size: 23px; }
.cookie-consent-icon::before { content: "◉"; }
.cookie-consent-copy { min-width: 0; }
.cookie-consent-copy strong { display: block; margin-bottom: 3px; font-size: 14px; }
.cookie-consent-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.cookie-consent-copy a { color: var(--primary); font-weight: 900; text-underline-offset: 3px; }
.cookie-consent form { margin: 0; }
.cookie-consent button { min-width: 105px; border: 0; cursor: pointer; }
.cookie-consent button:disabled { cursor: wait; opacity: .72; }
.preview-banner { padding: 10px 20px; background: #9b6100; color: #fff; font-size: 12px; font-weight: 900; text-align: center; }
.article-shell { padding-block: 34px 80px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs span:last-child { max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article { max-width: 880px; margin-inline: auto; }
.article-header { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 13px 0 14px; font-size: clamp(36px, 6vw, 62px); line-height: 1.2; letter-spacing: -.025em; }
.article-summary { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.95; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 19px; color: var(--muted); font-size: 10px; }
.direct-answer { margin: 28px 0; padding: 22px 24px; border-inline-start: 4px solid var(--accent); border-radius: 15px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.direct-answer strong { color: color-mix(in srgb, var(--accent) 78%, var(--text)); font-size: 13px; }
.direct-answer p { margin: 7px 0 0; font-size: 16px; line-height: 1.95; }
.article-body { font-size: 16px; line-height: 2.05; }
.article-body h2 { margin: 48px 0 14px; font-size: clamp(25px, 4vw, 35px); line-height: 1.35; }
.article-body h3 { margin: 32px 0 10px; font-size: 22px; }
.article-body p, .article-body li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.article-body a { color: var(--primary); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-body blockquote { margin: 28px 0; padding: 18px 22px; border-inline-start: 4px solid var(--primary); background: var(--bg-soft); color: var(--muted); }
.article-body ul, .article-body ol { padding-inline-start: 24px; }
.article-body li + li { margin-top: 9px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.article-cta div { display: flex; flex-direction: column; }
.article-cta span { color: var(--muted); font-size: 12px; }
.related-section { padding-top: 75px; }
.not-found { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: var(--bg); color: var(--text); text-align: center; }
.not-found > div { max-width: 520px; }
.not-found span { color: var(--primary); font-size: clamp(80px, 20vw, 160px); font-weight: 900; line-height: 1; opacity: .16; }
.not-found h1 { margin: -20px 0 8px; font-size: 34px; }
.not-found p { margin: 0 0 20px; color: var(--muted); }
.not-found-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.faq-section { padding-block: 50px 70px; }
.faq-list { width: min(100%, 880px); margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 10px 28px rgba(39, 34, 69, .04); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { position: relative; min-height: 52px; padding-block: 15px; padding-inline: 18px 52px; cursor: pointer; font-weight: 900; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; inset-inline-end: 18px; inset-block-start: 50%; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--primary); content: "+"; line-height: 28px; text-align: center; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.legal-shell { width: min(100%, 1020px); }
.legal-article { max-width: none; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.legal-header h1 { font-size: clamp(36px, 6vw, 60px); }
.legal-content { max-width: 840px; }
.legal-content h2:first-child { margin-top: 34px; }
.contact-form { position: relative; display: grid; gap: 18px; max-width: 720px; margin-top: 30px; }
.contact-form label { display: grid; gap: 7px; font-weight: 800; }
.contact-form label > span { font-size: 13px; }
.contact-form input, .contact-form textarea { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input { min-height: 50px; padding: 10px 13px; }
.contact-form textarea { min-height: 190px; padding: 13px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.contact-form small { color: var(--muted); font-size: 10px; font-weight: 400; }
.contact-form .button { justify-self: start; min-width: 160px; cursor: pointer; }
.contact-honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { max-width: 720px; margin-top: 26px; padding: 16px 18px; border-radius: 14px; }
.form-message ul { margin: 8px 0 0; padding-inline-start: 20px; }
.form-success { border: 1px solid rgba(16, 140, 93, .28); background: rgba(16, 140, 93, .1); color: color-mix(in srgb, #0c8c5d 78%, var(--text)); }
.form-error { border: 1px solid rgba(201, 48, 76, .28); background: rgba(201, 48, 76, .1); color: color-mix(in srgb, #c9304c 78%, var(--text)); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; }
@supports not (color: color-mix(in srgb, white, black)) {
    :root { --card: var(--surface); }
    html[data-theme="dark"] { --card: #1e1d2b; }
    .site-nav .nav-cta, .button-primary { background: var(--primary); }
    .answer-card, .feature-icon, .join-steps li > span, .direct-answer { background: var(--bg-soft); }
}
@media (max-width: 980px) {
    .nav-toggle { display: grid; }
    .site-nav { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 20px; display: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 10px 12px; border-radius: 9px; }
    .site-nav a:hover { background: var(--bg-soft); }
    .site-nav a::after { display: none; }
    .site-nav .nav-cta { margin-top: 5px; text-align: center; }
    .theme-toggle { position: static; align-self: flex-end; margin: 5px; }
    .hero-grid { grid-template-columns: 1fr; }
    body[data-template="editorial"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .join-card { width: min(100%, 560px); }
    .feature-grid, .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-template="editorial"] .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .shell { width: min(100% - 28px, var(--content-width)); }
    .header-inner { min-height: 68px; }
    .brand-copy small { max-width: 180px; }
    .hero { padding-top: 48px; }
    .hero h1 { font-size: clamp(38px, 13vw, 58px); }
    .live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .live-stats > div { min-width: 0; padding-inline: 10px; }
    .live-stats dt { font-size: 21px; }
    .live-stats dd { font-size: 9px; }
    .feature-grid, .page-cards { grid-template-columns: 1fr; }
    .page-cards[data-esp-card-count] { max-width: none; grid-template-columns: minmax(0, 1fr); }
    .quick-start-grid, .trust-grid { grid-template-columns: 1fr; }
    body[data-template="editorial"] .page-cards { grid-template-columns: minmax(0, 1fr); }
    .answer-card { grid-template-columns: 1fr; }
    .safety-grid, .article-cta { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .article-shell { padding-top: 22px; }
    .article-header h1 { font-size: clamp(35px, 11vw, 52px); }
    .article-cta .button { width: 100%; }
    .cookie-consent { inset-inline: 10px; inset-block-end: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 15px; border-radius: 17px; }
    .cookie-consent-inner { grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
    .cookie-consent form { grid-column: 1 / -1; width: 100%; }
    .cookie-consent button { width: 100%; }
    .legal-article { padding: 22px; border-radius: min(var(--radius), 18px); }
    .contact-form .button { width: 100%; }
    .not-found-actions, .not-found-actions .button { width: 100%; }
}
@media (max-width: 420px) {
    .shell { width: min(100% - 22px, var(--content-width)); }
    .brand-mark { width: 38px; height: 38px; }
    .brand-copy small { max-width: 130px; }
    .hero-actions .button { width: 100%; }
    .join-card { padding: 21px; border-radius: 19px; }
    body[data-template="minimal"] .join-card { border-radius: 10px; }
    body[data-template="editorial"] .join-card { border-radius: 0; }
    .live-stats { margin-top: 30px; }
    .live-stats dt { font-size: 18px; }
    .answer-section, .quick-start-section, .trust-section, .features-section, .guides-section { padding-block: 36px; }
    .quick-start-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .breadcrumbs span:last-child { max-width: 55vw; }
    .direct-answer, .article-cta { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
    .site-header, .site-footer, .article-cta, .related-section, .preview-banner, .cookie-consent { display: none !important; }
    body { background: #fff; color: #000; }
    .article { max-width: none; }
    a { color: #000; text-decoration: none; }
}

/* Theme Studio 7.8.0: compact wordmark, standalone theme control and clean hero. */
body[data-template="sham-orange"],
body[data-template="damascus-blue"],
body[data-template="emerald-chat"],
body[data-template="royal-purple"],
body[data-template="ruby-night"],
body[data-template="turquoise-wave"] { background: var(--bg); }
.site-header { position: sticky; top: 0; border: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header-inner { position: relative; display: grid; grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr); column-gap: 6px; height: 64px; min-height: 64px; max-height: 64px; }
.header-inner > .brand { grid-column: 2; justify-self: center; gap: 8px; width: auto; max-width: 100%; height: 42px; max-height: 42px; }
.header-inner > .brand .brand-copy small { display: none; }
.header-inner > .nav-toggle { grid-column: 3; display: grid; justify-self: end; }
.header-theme-control { grid-column: 3; display: flex; justify-self: end; align-items: center; }
.header-theme-control .theme-toggle { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 12%, transparent); }
.site-nav { position: absolute; inset-block-start: calc(100% + 7px); inset-inline-start: auto; inset-inline-end: 0; display: none; width: min(320px, calc(100vw - 32px)); max-height: min(72vh, 620px); padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); overflow-y: auto; }
.site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.site-nav a { padding: 10px 12px; border-radius: 9px; }
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a::after { display: none; }
.site-nav .nav-cta { margin-top: 4px; text-align: center; }
.site-nav .theme-toggle { align-self: flex-end; margin-top: 5px; }
.locale-badge { display: inline-grid; place-items: center; align-self: flex-end; width: 38px; height: 38px; margin-top: 4px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 10px; font-weight: 900; }
.hero { padding-block: clamp(34px, 6vw, 76px) 52px; }
.hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; }
.hero-copy { width: min(100%, 860px); text-align: center; }
.eyebrow { justify-content: center; }
.hero-title-compact { width: fit-content; max-width: 100%; margin: 0 auto; color: var(--primary); font-family: var(--font-ui); font-size: clamp(14px, 2.4vw, 18px); font-weight: 900; line-height: 1.5; letter-spacing: 0; }
.hero-title-compact::after { display: none; }
.hero h1 { max-width: 820px; margin-inline: auto; font-size: clamp(42px, 6.5vw, 76px); }
.hero h1.hero-title-compact { font-size: clamp(14px, 2.4vw, 18px); }
.hero-lead { margin-inline: auto; }
.hero-actions, .live-stats { justify-content: center; }
.join-card { width: min(100%, 416px); margin-inline: auto; padding: 28px; }
.answer-section { padding-top: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: clamp(28px, 4vw, 54px); }
.article-layout .article { width: 100%; max-width: none; margin: 0; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.article-header h1 { font-size: clamp(34px, 5vw, 58px); }
.article-sidebar { position: sticky; top: 92px; display: grid; gap: 14px; min-width: 0; }
.article-toc, .article-related { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.article-toc > strong, .article-related > strong { margin-bottom: 5px; color: var(--text); font-size: 13px; }
.article-toc a, .article-related a { color: var(--muted); font-size: 11px; line-height: 1.65; text-decoration: none; overflow-wrap: anywhere; }
.article-toc a:hover, .article-related a:hover { color: var(--primary); }
.article-toc .toc-level-3 { padding-inline-start: 12px; font-size: 10px; }
.article-related a { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.article-body h2, .article-body h3 { scroll-margin-top: 100px; }
html[data-density="compact"] .hero { padding-block: 28px 38px; }
html[data-density="compact"] .answer-section,
html[data-density="compact"] .quick-start-section,
html[data-density="compact"] .trust-section,
html[data-density="compact"] .features-section,
html[data-density="compact"] .guides-section { padding-block: 34px; }
html[data-density="compact"] .join-card,
html[data-density="compact"] .feature-grid article,
html[data-density="compact"] .page-card { padding: 20px; }
html[data-radius="soft"] .button,
html[data-radius="soft"] .feature-grid article,
html[data-radius="soft"] .page-card { border-radius: 12px; }
html[data-radius="square"] .button,
html[data-radius="square"] .feature-grid article,
html[data-radius="square"] .page-card { border-radius: 6px; }
@media (max-width: 1023px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .header-inner { height: 58px; min-height: 58px; max-height: 58px; }
    .header-inner > .brand { gap: 7px; height: 36px; max-height: 36px; }
    .header-inner .brand-mark { width: 36px; height: 36px; }
    .header-inner .brand-wordmark { flex-basis: 108px; width: 108px; min-width: 108px; max-width: 108px; height: 36px; min-height: 36px; max-height: 36px; }
    .header-inner .brand-wordmark img { width: 108px; min-width: 108px; max-width: 108px; height: 36px; min-height: 36px; max-height: 36px; }
    .header-inner .brand-custom { max-width: min(154px, 44vw); height: 36px; }
    .header-theme-control .theme-toggle { width: 42px; height: 42px; border-radius: 13px; }
    .footer-brand .brand-wordmark { flex-basis: 138px; width: 138px; min-width: 138px; max-width: 138px; height: 46px; min-height: 46px; max-height: 46px; }
    .footer-brand .brand-wordmark img { width: 138px; min-width: 138px; max-width: 138px; height: 46px; min-height: 46px; max-height: 46px; }
    .hero { padding-top: 34px; }
    .hero h1 { font-size: clamp(38px, 12vw, 58px); }
    .hero-actions { width: 100%; }
    .article-layout .article { padding: 20px; border-radius: min(var(--radius), 18px); }
    .article-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .header-inner { grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); height: 54px; min-height: 54px; max-height: 54px; }
    .header-inner > .brand { gap: 6px; height: 32px; max-height: 32px; }
    .header-inner .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
    .header-inner .brand-wordmark { flex-basis: 96px; width: 96px; min-width: 96px; max-width: 96px; height: 32px; min-height: 32px; max-height: 32px; }
    .header-inner .brand-wordmark img { width: 96px; min-width: 96px; max-width: 96px; height: 32px; min-height: 32px; max-height: 32px; }
    .header-inner .brand-custom { max-width: min(138px, 42vw); height: 32px; }
    .header-theme-control .theme-toggle { width: 40px; height: 40px; border-radius: 12px; }
    .footer-brand .brand-wordmark { flex-basis: 126px; width: 126px; min-width: 126px; max-width: 126px; height: 42px; min-height: 42px; max-height: 42px; }
    .footer-brand .brand-wordmark img { width: 126px; min-width: 126px; max-width: 126px; height: 42px; min-height: 42px; max-height: 42px; }
    .header-inner > .brand .brand-copy { display: none; }
    .join-card { padding: 21px; }
}
@media print {
    .article-sidebar { display: none !important; }
    .article-layout { display: block; }
    .article-layout .article { padding: 0; border: 0; box-shadow: none; }
}

/* Readable small accent text in dark mode; button backgrounds retain the brand color. */
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-label,
html[data-theme="dark"] .section-head > span,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .trust-links a,
html[data-theme="dark"] .esp-register-link,
html[data-theme="dark"] .esp-language-link,
html[data-theme="dark"] .cookie-consent a {
    color: #b9d9ff;
    color: color-mix(in srgb, var(--accent) 55%, white);
}

/* The optional domain link shares the quick links' spacing, size and alignment. */
.site-footer .esp-site-footer-link { min-width: 0; overflow-wrap: break-word; unicode-bidi: isolate; }
.site-footer .esp-site-footer-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Contextual directory: inherit every theme's colors and typography. */
.esp-directory-links{display:grid;grid-template-columns:minmax(0,1fr);gap:8px 16px}
.esp-directory-links a,.esp-directory-all{min-width:0;overflow-wrap:anywhere}
.esp-directory-page{padding-block:36px;min-height:45vh}
.esp-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.esp-directory-grid a{display:block;min-width:0;overflow-wrap:anywhere;padding:16px;text-decoration:none;color:var(--text)}
.esp-directory-grid h2{font-size:1.15rem}
.esp-directory-pagination{display:flex;flex-wrap:wrap;gap:24px;margin-block:24px}
@media(max-width:760px){.esp-directory-links,.esp-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.esp-directory-grid a{padding:12px}}

/* EhkiPortal integration layer for CodyChat 11 login rendering. */
html, body { min-width: 0; min-height: 100%; overflow-x: hidden; }
body { height: auto !important; overflow-y: auto !important; background: var(--bg) !important; color: var(--text) !important; }
body.esp-login-theme { --esp-control-radius: clamp(3px, calc(var(--radius) * .55), 13px); font-family: var(--font-ui); }
body.esp-login-theme.modal_open { overflow: hidden !important; }
#login_wrap.esp-login-portal { width: 100%; min-width: 0; min-height: 100vh; height: auto !important; overflow: visible; background: var(--bg) !important; color: var(--text) !important; }
.esp-login-portal button { font-family: inherit; }
.esp-login-portal .site-header { z-index: 200; }
.esp-login-portal .site-nav .esp-login-nav { padding: 9px 15px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 25%, transparent); cursor: pointer; font-size: 13px; font-weight: 900; white-space: nowrap; }
.esp-login-portal .hero-actions button,
.esp-login-portal .safety-grid button { cursor: pointer; }
.esp-login-choice { scroll-margin-top: 96px; }
.esp-cody-actions { display: flex; flex-direction: column; gap: 11px; margin-top: 23px; }
.esp-register-link, .esp-language-link, .esp-footer-action { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-weight: 900; text-decoration: none; }
.esp-register-link { padding: 8px; font-size: 12px; }
.esp-language-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 7px; padding: 8px; font-size: 11px; }
.esp-footer-action { padding: 0; color: var(--muted); font-size: 12px; text-align: start; }
.esp-footer-action:hover { color: var(--primary); }
.esp-login-portal ~ .cookie_wrap { z-index: 1200; }
.esp-login-portal .boom_request { touch-action: manipulation; }

/* CodyChat dialogs opened above EhkiPortal inherit the selected Ehki palette.
   The body scope keeps these overrides out of the authenticated chat UI. */
body.esp-login-theme .small_modal_out,
body.esp-login-theme .large_modal_out,
body.esp-login-theme .over_modal_out,
body.esp-login-theme .over_emodal_out,
body.esp-login-theme .top_modal_out {
    z-index: 5000;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    background-color: rgba(20, 17, 38, .56);
    background-image: linear-gradient(145deg, color-mix(in srgb, var(--primary) 16%, transparent), rgba(20, 17, 38, .46));
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
body.esp-login-theme .over_modal_out,
body.esp-login-theme .over_emodal_out { z-index: 5010; }
body.esp-login-theme .top_modal_out { z-index: 5020; }
body.esp-login-theme .tab_error_out {
    z-index: 5030;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    background-color: rgba(20, 17, 38, .62);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
body.esp-login-theme .small_modal_in,
body.esp-login-theme .large_modal_in,
body.esp-login-theme .over_modal_in,
body.esp-login-theme .over_emodal_in,
body.esp-login-theme .top_modal_in {
    width: min(100%, 460px);
    margin: clamp(12px, 5vh, 54px) auto;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: var(--radius) !important;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow), 0 28px 90px rgba(20, 17, 38, .25);
    cursor: default;
}
body.esp-login-theme .tab_error_in {
    width: min(100%, 430px);
    margin: clamp(12px, 5vh, 54px) auto;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #d94b64 34%, var(--line));
    border-radius: var(--radius) !important;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: default;
}
body.esp-login-theme .modal_pad { padding: 48px clamp(18px, 5vw, 28px) 24px; }
body.esp-login-theme .modal_title {
    margin: 0;
    padding: 0 0 17px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(17px, 4vw, 21px);
    line-height: 1.5;
}
body.esp-login-theme .modal_close {
    inset-block-start: 11px;
    inset-inline-end: 11px;
    right: auto;
    left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--esp-control-radius) !important;
    background: var(--bg-soft);
    color: var(--muted);
    line-height: 40px;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
body.esp-login-theme .modal_close:hover,
body.esp-login-theme .modal_close:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
    color: var(--primary);
    transform: rotate(4deg);
}
body.esp-login-theme .small_modal_content,
body.esp-login-theme .large_modal_content,
body.esp-login-theme .over_modal_content,
body.esp-login-theme .over_emodal_content,
body.esp-login-theme .top_modal_content { direction: inherit; color: var(--text); }
body.esp-login-theme .modal_in .full_input,
body.esp-login-theme .modal_in .full_textarea,
body.esp-login-theme .modal_in input[type="text"],
body.esp-login-theme .modal_in input[type="email"],
body.esp-login-theme .modal_in input[type="password"],
body.esp-login-theme .modal_in input[type="date"],
body.esp-login-theme .modal_in select,
body.esp-login-theme .modal_in textarea,
body.esp-login-theme .modal_in .selectboxit-container .selectboxit {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--esp-control-radius) !important;
    outline: 0;
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: none;
}
body.esp-login-theme .modal_in input::placeholder,
body.esp-login-theme .modal_in textarea::placeholder { color: var(--muted); opacity: .86; }
body.esp-login-theme .modal_in .full_input:focus,
body.esp-login-theme .modal_in .full_textarea:focus,
body.esp-login-theme .modal_in select:focus,
body.esp-login-theme .modal_in .selectboxit-container .selectboxit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
body.esp-login-theme .modal_in .theme_btn,
body.esp-login-theme .modal_in .back_theme {
    min-height: 46px;
    border: 0;
    border-radius: var(--esp-control-radius) !important;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 68%, var(--accent)));
    color: #fff;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 27%, transparent);
    font-weight: 800;
}
body.esp-login-theme .modal_in .default_btn,
body.esp-login-theme .modal_in .back_default {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--esp-control-radius) !important;
    background: var(--bg-soft);
    color: var(--text);
}
body.esp-login-theme .modal_in .sub_text,
body.esp-login-theme .modal_in .forgot_password,
body.esp-login-theme .modal_in .rules_text { color: var(--muted); }
body.esp-login-theme .modal_in .forgot_password:hover,
body.esp-login-theme .modal_in .rules_click,
body.esp-login-theme .modal_in a { color: var(--primary); }
body.esp-login-theme .modal_control { padding-block: 16px 8px; }
body.esp-login-theme .modal_in .list_element {
    min-height: 48px;
    border-block-end: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    transition: background-color .16s ease, color .16s ease;
}
body.esp-login-theme .modal_in .list_element:last-child { border-block-end: 0; }
body.esp-login-theme .modal_in .list_element:hover,
body.esp-login-theme .modal_in .list_element:focus-within {
    background: color-mix(in srgb, var(--primary) 10%, var(--card));
    color: var(--primary);
}
body.esp-login-theme .modal_in .lang_flag_box { width: 48px; }
body.esp-login-theme .modal_in .lang_flag { width: 28px; border-radius: 5px; }
body.esp-login-theme .modal_in .lang_lang { padding: 11px 8px; font-weight: 700; }
body.esp-login-theme .modal_in .selectboxit-options {
    border: 1px solid var(--line);
    border-radius: var(--esp-control-radius) !important;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
}
body.esp-login-theme .modal_in .selectboxit-option-anchor { color: var(--text); }
body.esp-login-theme .modal_in .selectboxit-focus > .selectboxit-option-anchor {
    background: color-mix(in srgb, var(--primary) 12%, var(--card));
    color: var(--primary);
}
body.esp-login-theme #top_notify {
    inset-block-start: max(12px, env(safe-area-inset-top));
    inset-inline-start: 12px;
    right: auto;
    left: auto;
    width: min(360px, calc(100% - 24px));
    max-width: none;
    z-index: 7000;
}
body.esp-login-theme #top_notify .top_notify {
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
    border-radius: var(--esp-control-radius) !important;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
}
body.esp-login-theme #top_notify .top_notify_btn { color: var(--muted); }
body.esp-login-theme .cookie_wrap {
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
    border-radius: var(--radius) !important;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
}
@supports not (color: color-mix(in srgb, white, black)) {
    .esp-login-portal .site-nav .esp-login-nav { background: var(--primary); }
    body.esp-login-theme .small_modal_out,
    body.esp-login-theme .large_modal_out,
    body.esp-login-theme .over_modal_out,
    body.esp-login-theme .over_emodal_out,
    body.esp-login-theme .top_modal_out { background: rgba(20, 17, 38, .62); }
    body.esp-login-theme .modal_in .theme_btn,
    body.esp-login-theme .modal_in .back_theme { background: var(--primary); }
}
@media (max-width: 980px) {
    .esp-login-portal .site-nav .esp-login-nav { width: 100%; margin-top: 5px; text-align: center; }
}

/* CodyChat loads additional responsive/theme sheets after login.css. These high-specificity
   caps preserve the horizontal wordmark without using global overrides. */
body.esp-login-theme .esp-login-portal .site-header .header-inner {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
}
body.esp-login-theme .esp-login-portal .site-header .brand-wordmark,
body.esp-login-theme .esp-login-portal .site-header .brand-wordmark > img {
    width: 126px;
    min-width: 126px;
    max-width: 126px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    object-fit: contain;
}
@media (max-width: 700px) {
    body.esp-login-theme .esp-login-portal .site-header .header-inner {
        height: 58px;
        min-height: 58px;
        max-height: 58px;
    }
    body.esp-login-theme .esp-login-portal .site-header .brand-wordmark,
    body.esp-login-theme .esp-login-portal .site-header .brand-wordmark > img {
        width: 108px;
        min-width: 108px;
        max-width: 108px;
        height: 36px;
        min-height: 36px;
        max-height: 36px;
    }
    .esp-login-portal .hero { padding-top: 42px; }
    .esp-login-choice { width: 100%; }
    body.esp-login-theme .small_modal_in,
    body.esp-login-theme .large_modal_in,
    body.esp-login-theme .over_modal_in,
    body.esp-login-theme .over_emodal_in,
    body.esp-login-theme .top_modal_in {
        width: min(100%, 430px);
        margin: max(8px, env(safe-area-inset-top)) auto;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - max(32px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
        overflow-y: auto;
    }
    body.esp-login-theme .modal_pad { padding: 48px 17px 20px; }
    body.esp-login-theme .modal_in .theme_btn,
    body.esp-login-theme .modal_in .default_btn { width: 100%; }
}
@media (max-width: 420px) {
    body.esp-login-theme .esp-login-portal .site-header .header-inner {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
    }
    body.esp-login-theme .esp-login-portal .site-header .brand-wordmark,
    body.esp-login-theme .esp-login-portal .site-header .brand-wordmark > img {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
    }
}
@media print {
    .esp-cody-actions, .esp-language-link { display: none !important; }
}
