/* EasyLang — shared styles
   Tokens are layered over a Tailwind CDN base. */

:root {
  --ink: #0A0A0B;
  --ink-2: #16161A;
  --ink-3: #232329;
  --bone: #FAFAF7;
  --paper: #FFFFFF;
  --line: #E7E5E0;
  --line-2: #1F1F24;
  --mute: #6B6B73;
  --mute-2: #A1A1AA;
  --accent: #2D54F0;
  --accent-2: #1FA9FF;
  --accent-soft: #ECF0FF;
  --success: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { background: var(--bone); color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; }
body { font-feature-settings: "ss01", "cv11"; }
::selection { background: var(--ink); color: var(--bone); }

.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.02em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Editorial display sizing */
.h-display { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; overflow-wrap: break-word; word-wrap: break-word; }
.hd-1 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: break-word; word-wrap: break-word; }
.hd-2 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 640px) {
  .h-display { font-size: 48px !important; line-height: 1.1 !important; }
  .hd-1 { font-size: 36px !important; line-height: 1.2 !important; }
  .hd-2 { font-size: 28px !important; line-height: 1.3 !important; }
}

@media (max-width: 400px) {
  .h-display { font-size: 38px !important; line-height: 1.15 !important; }
  .hd-1 { font-size: 32px !important; line-height: 1.2 !important; }
  .hd-2 { font-size: 24px !important; line-height: 1.3 !important; }
}

@media (max-width: 360px) {
  .h-display { font-size: 34px !important; }
  .hd-1 { font-size: 28px !important; }
}

/* Custom Select Positioning */
[data-custom-select] [data-select-options] {
  top: calc(100% + 4px);
  transform-origin: top right;
  animation: dropdownFade 0.2s ease-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Force word wrap on all display titles for safety */
.h-display, .hd-1, .hd-2 {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
}

body { overflow-x: hidden; width: 100%; position: relative; }

/* Responsive Table Wrapper */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  min-width: 600px;
}
.comp-table {
  min-width: 520px;
}
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.eyebrow-light { color: rgba(255,255,255,0.6); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .15s ease; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #2244D8; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { background: white; color: var(--ink); }
.btn-on-dark:hover { background: var(--accent); color: white; }
.btn-ghost-dark { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.04); }

/* Pill / chip */
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); background: white; color: var(--ink); }
.chip-dark { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: white; }
.chip-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-success { background: #DCFCE7; color: #166534; border-color: transparent; }
.chip-warn { background: #FEF3C7; color: #92400E; border-color: transparent; }
.chip-danger { background: #FEE2E2; color: #991B1B; border-color: transparent; }

/* Section wrapper */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
}

.container-x { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container-x { padding: 0 24px; } }

/* Decorative grid background */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-grid-light {
  background-image:
    linear-gradient(to right, rgba(10,10,11,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,11,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Card */
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card-flat { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.card-dark { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 28px; color: white; }

/* Divider */
.hr { height: 1px; background: var(--line); width: 100%; }
.hr-dark { height: 1px; background: var(--line-2); width: 100%; }

/* Mono ticker */
.ticker { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mute); }

/* Caret blink */
.caret::after {
  content: '';
  display: inline-block;
  width: 2px; height: 0.95em;
  background: currentColor;
  margin-left: 4px;
  transform: translateY(2px);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Accordion Component */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; gap: 1rem; }
.faq-q .icon { transition: transform .25s ease; flex: 0 0 auto; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 500px;
  opacity: 1;
  margin-top: 4px;
  padding-bottom: 22px;
}
.faq-item .v-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.faq-item.open .v-line {
  opacity: 0;
}
.faq-item .h-line {
  transition: transform 0.3s ease;
  transform-origin: center;
}
.faq-item.open .icon svg {
  transform: rotate(180deg);
}

/* Pricing table */
.pricing-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; padding: 18px 24px; border-top: 1px solid var(--line); }
.pricing-row:first-child { border-top: 0; }
.pricing-row .label { font-weight: 600; }
.pricing-row .val { text-align: center; color: var(--ink); }
.pricing-row .val.muted { color: var(--mute-2); }
.pricing-row .val.accent { color: var(--accent); font-weight: 600; }
@media (max-width: 700px) {
  .pricing-row { grid-template-columns: 1fr 70px 70px; padding: 16px 16px; gap: 8px; }
  .pricing-row .label { font-size: 14px; }
}

/* Check / dash icons */
.icn-check { width: 20px; height: 20px; color: var(--success); margin: 0 auto; display: block; }
.icn-dash { width: 20px; height: 1.5px; background: var(--mute-2); margin: 0 auto; display: block; border-radius: 2px; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 60px; animation: marquee 30s linear infinite; width: max-content; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Shimmer for translation demo */
.shimmer { background: linear-gradient(90deg, transparent, rgba(45,84,240,0.18), transparent); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position: 200% 0;} 100%{background-position: -200% 0;} }

/* Mock Editor Improvements */
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .mock-nav-links {
    display: none; /* Hide minor mock links on very small screens to prevent overlap */
  }
}

/* Custom underline link */
.link-u { position: relative; color: var(--ink); }
.link-u::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .25s ease; }
.link-u:hover::after { transform: scaleX(1.05); }

/* Mobile Nav (Multi-level Slide-in) */
[data-mobile-nav] {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.35s;
  display: flex !important;
  flex-direction: column;
  will-change: transform;
}
[data-mobile-nav].open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

/* Header stability */
header[data-site-header] {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 40;
}
body.overflow-hidden header[data-site-header] {
  position: fixed;
  top: 0;
}

.menu-panels {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.menu-panel {
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

/* Main panel is default */
[data-panel="main"] {
  z-index: 10;
}

/* Sub panels start off-screen to the right (any panel that isn't "main") */
.menu-panel:not([data-panel="main"]) {
  transform: translateX(100%);
  z-index: 20;
}

/* When a sub-panel is open: main slides out, the active sub slides in */
[data-mobile-nav].sub-open [data-panel="main"] {
  transform: translateX(-100%);
}
.menu-panel.is-active,
[data-mobile-nav].sub-open [data-panel="features"] {
  transform: translateX(0);
}

.menu-panel nav {
  flex: 1;
  overflow-y: auto;
}

/* ── Header Navigation widget — index.html-style desktop + mobile ── */
.eln-nav { display: contents; }
.eln-desk { display: none; align-items: center; gap: 28px; }
.eln-desk a, .eln-desk button {
  color: inherit; text-decoration: none; background: none; border: 0; padding: 0;
  cursor: pointer; font: inherit; font-size: 14px;
  transition: color .15s ease, opacity .15s ease;
}
.eln-nav--auto .eln-desk a, .eln-nav--auto .eln-desk button { opacity: .82; }
.eln-nav--auto .eln-desk a:hover, .eln-nav--auto .eln-desk button:hover { opacity: 1; }
.eln-nav--light .eln-desk { color: rgba(255,255,255,.8); }
.eln-nav--light .eln-desk a:hover, .eln-nav--light .eln-desk button:hover { color: #fff; }
.eln-nav--dark .eln-desk { color: rgba(10,10,11,.75); }
.eln-nav--dark .eln-desk a:hover, .eln-nav--dark .eln-desk button:hover { color: var(--ink); }
.eln-dropcard { width: 300px; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.eln-dropcard a { color: var(--ink); opacity: 1; font-size: 14px; }
/* Hover dropdown (also works without Tailwind's group-hover) */
.eln-desk .group { position: relative; }
.eln-desk .group > div { display: none; position: absolute; left: 0; top: 100%; padding-top: 12px; z-index: 50; }
.eln-desk .group:hover > div { display: block; }

.eln-burger {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 6px; color: inherit;
}
.eln-aside {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 16px; box-sizing: border-box;
}
.eln-aside-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px;
}
.eln-aside-logo { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.eln-x, .eln-back {
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px;
}
.eln-x:hover, .eln-back:hover { color: #fff; }
.eln-aside-list { display: flex; flex-direction: column; }
.eln-aside-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 18px; color: inherit; text-decoration: none;
}
.eln-aside-eyebrow {
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin: 18px 0 8px;
}
.eln-aside-cta { margin-top: 32px; }
.eln-cta-btn {
  display: block; text-align: center; padding: 16px; border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none;
}
@media (min-width: 1024px) {
  .eln-desk { display: flex; }
  .eln-burger, .eln-aside { display: none !important; }
}

/* Header scroll effects */
header[data-site-header] {
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
header[data-site-header][data-theme="dark"].scrolled {
  background: rgba(10,10,11,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header[data-site-header][data-theme="light"].scrolled {
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Logo variants — CSS controls which is visible based on header theme + sticky state */
[data-logo-variant] { display: none; }

header[data-site-header][data-theme="light"]:not(.scrolled) [data-logo-variant="normal-light"],
header[data-site-header][data-theme="dark"]:not(.scrolled)  [data-logo-variant="normal-dark"],
header[data-site-header][data-theme="light"].scrolled        [data-logo-variant="sticky-light"],
header[data-site-header][data-theme="dark"].scrolled         [data-logo-variant="sticky-dark"] {
  display: inline-flex;
}

/* Editor demo */
.editor-target { outline: 0 dashed transparent; transition: outline .15s ease; cursor: pointer; position: relative; }
.editor-target:hover { outline: 2px dashed var(--accent); outline-offset: 4px; }
.editor-target.active { outline: 2px solid var(--accent); outline-offset: 4px; background: rgba(45,84,240,0.04); }

/* Scrollbar (light) */
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { scrollbar-width: none; }

/* Number stepper for hero */
.lang-flag { width: 22px; height: 16px; border-radius: 2px; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }

/* Workflow timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-step { position: relative; padding-left: 56px; padding-bottom: 32px; }
.timeline-step .dot { position: absolute; left: 12px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: white; border: 2px solid var(--ink); }
.timeline-step.done .dot { background: var(--success); border-color: var(--success); }
.timeline-step.active .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45,84,240,0.18); }

/* Hero gradient ring */
.glow-ring {
  background: radial-gradient(60% 60% at 50% 50%, rgba(45,84,240,0.35), rgba(31,169,255,0.08) 60%, transparent 80%);
  filter: blur(40px);
}

/* Code block */
.code { background: var(--ink); color: #E2E8F0; border-radius: var(--radius); padding: 18px 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.code .k { color: #81B7FF; }
.code .s { color: #B6E29A; }
.code .c { color: #6B7280; font-style: italic; }
.code .n { color: #F4B860; }

/* Tab pills */
.tab { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mute); border: 1px solid var(--line); background: white; cursor: pointer; transition: all .15s ease; text-decoration: none; }
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.tab:hover:not(.active) { color: var(--ink); border-color: var(--ink); }

/* Docs sidebar nav */
[data-tab].active, [data-tab]:hover { background: var(--ink); color: white; border-radius: 6px; }

/* Docs badges */
.pro-badge { background: var(--accent-soft); color: var(--accent); font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.free-badge { background: #F3F4F6; color: #4B5563; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-left: 6px; vertical-align: middle; }

/* Docs content blocks */
.step-card { border: 1px solid var(--line); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; }
.code-block { background: #16161A; color: #A5B4FC; padding: 1rem 1.25rem; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; margin: 1rem 0; overflow-x: auto; white-space: pre; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease-out both; }

/* Country flag SVG (simple emoji-free flags via gradients) */
.flag { width: 22px; height: 16px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.flag-en { background: linear-gradient(45deg, #012169 33%, white 33% 66%, #C8102E 66%); }
.flag-es { background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25% 75%, #AA151B 75%); }
.flag-fr { background: linear-gradient(to right, #002395 33%, white 33% 66%, #ED2939 66%); }
.flag-de { background: linear-gradient(to bottom, #000 33%, #DD0000 33% 66%, #FFCE00 66%); }
.flag-jp { background: white; position: relative; }
.flag-jp::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at center, #BC002D 30%, transparent 31%); }
.flag-it { background: linear-gradient(to right, #009246 33%, white 33% 66%, #CE2B37 66%); }
.flag-pt { background: linear-gradient(to right, #006600 40%, #FF0000 40%); }
.flag-cn { background: #DE2910; position: relative; }
.flag-cn::after { content: '★'; color: #FFDE00; font-size: 9px; position: absolute; top: 1px; left: 3px; line-height: 1; }
.flag-ar { background: linear-gradient(to bottom, #000 33%, white 33% 66%, #007A3D 66%); }
.flag-ru { background: linear-gradient(to bottom, white 33%, #0039A6 33% 66%, #D52B1E 66%); }
.flag-kr { background: white; position: relative; }
.flag-kr::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 50% 50%, #CD2E3A 0 25%, #0047A0 25% 28%, transparent 28%); }
.flag-nl { background: linear-gradient(to bottom, #AE1C28 33%, white 33% 66%, #21468B 66%); }
.flag-tr { background: #E30A17; }
.flag-pl { background: linear-gradient(to bottom, white 50%, #DC143C 50%); }
.flag-sv { background: linear-gradient(to bottom, #006AA7 40%, #FECC00 40% 60%, #006AA7 60%); }

[data-carousel-dot].active-dot { background: var(--ink); opacity: 1; }

/* ── Reading progress bar ──────────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width .08s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ── Back to top ───────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, background .15s ease;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent); }

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal][data-reveal-delay="150"] { transition-delay: .15s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal][data-reveal-delay="300"] { transition-delay: .3s; }
[data-reveal][data-reveal-delay="400"] { transition-delay: .4s; }

/* ─── Header / Footer chrome widgets ───────────────────────────────────────
   Drop-in styles for the widgets that live in Builder › Header / Footer:
   Site Logo, Header Navigation, Header CTA, Social Links, Footer Nav Column.
*/

/* Site Logo wrapper — just a flex container in case it sits next to other widgets. */
.easylang-site-logo { display: inline-flex; align-items: center; }

/* Header Navigation */
.easylang-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.easylang-nav--vertical ul { flex-direction: column; align-items: flex-start; gap: 14px; }
.easylang-nav a {
    text-decoration: none;
    font-size: 14px;
    transition: color .15s ease, opacity .15s ease;
}
.easylang-nav--auto a  { color: inherit; opacity: .8; }
.easylang-nav--auto a:hover { opacity: 1; }
.easylang-nav--dark a  { color: var(--ink); opacity: .75; }
.easylang-nav--dark a:hover { color: var(--ink); opacity: 1; }
.easylang-nav--light a { color: rgba(255,255,255,.8); }
.easylang-nav--light a:hover { color: #fff; }

/* Header Navigation — mobile menu (hamburger + dropdown/drawer) */
.easylang-nav--has-mobile { position: relative; }
.easylang-nav-toggle,
.easylang-nav-close,
.easylang-nav-overlay { display: none; }
.easylang-nav-toggle {
    align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer; padding: 8px;
    color: var(--eln-icon, currentColor);
}
.easylang-nav-bars { display: block; width: 24px; height: 16px; position: relative; }
.easylang-nav-bars span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.easylang-nav-bars span:nth-child(1) { top: 0; }
.easylang-nav-bars span:nth-child(2) { top: 7px; }
.easylang-nav-bars span:nth-child(3) { top: 14px; }
.easylang-nav.is-open .easylang-nav-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.easylang-nav.is-open .easylang-nav-bars span:nth-child(2) { opacity: 0; }
.easylang-nav.is-open .easylang-nav-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.easylang-nav-close {
    position: absolute; top: 14px; right: 16px;
    background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
    color: inherit;
}
.easylang-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 998;
}

/* When the instance's breakpoint is active (JS toggles .is-mobile) */
.easylang-nav--has-mobile.is-mobile .easylang-nav-toggle { display: inline-flex; }
.easylang-nav--has-mobile.is-mobile > ul { display: none; }
.easylang-nav--has-mobile.is-mobile .easylang-nav-panel { display: none; }
.easylang-nav--has-mobile.is-mobile .easylang-nav-panel a {
    color: var(--eln-drawer-text, inherit); opacity: 1;
}

/* Dropdown style */
.easylang-nav--m-dropdown.is-mobile.is-open .easylang-nav-panel {
    display: block; position: absolute; left: 0; right: 0; top: 100%; margin-top: 10px;
    background: var(--eln-drawer-bg, #fff); color: var(--eln-drawer-text, var(--ink));
    padding: 16px 18px; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14);
    z-index: 999;
}
.easylang-nav--m-dropdown.is-mobile.is-open .easylang-nav-panel ul {
    flex-direction: column; align-items: flex-start; gap: 14px;
}

/* Drawer style */
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel {
    display: block; position: fixed; top: 0; right: 0; height: 100%;
    width: min(320px, 82vw); transform: translateX(100%); transition: transform .3s ease;
    background: var(--eln-drawer-bg, #fff); color: var(--eln-drawer-text, var(--ink));
    padding: 64px 24px 24px; box-shadow: -12px 0 30px rgba(0,0,0,.18);
    z-index: 999; overflow: auto;
}
.easylang-nav--m-drawer.is-mobile.is-open .easylang-nav-panel { transform: translateX(0); }
.easylang-nav--m-drawer.is-mobile .easylang-nav-close { display: block; }
.easylang-nav--m-drawer.is-mobile.is-open .easylang-nav-overlay { display: block; }
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel ul {
    flex-direction: column; align-items: flex-start; gap: 18px;
}

/* Full-screen style (matches index.html's <aside data-mobile-nav>) */
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    width: 100%; height: 100%; transform: translateX(100%); transition: transform .3s ease;
    background: var(--eln-drawer-bg, var(--ink)); color: var(--eln-drawer-text, #fff);
    padding: 64px 20px 24px; z-index: 999; overflow: auto;
}
.easylang-nav--m-fullscreen.is-mobile.is-open .easylang-nav-panel { transform: translateX(0); }
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-close { display: block; }
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel > ul {
    flex-direction: column; align-items: stretch; gap: 0;
}
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel > ul > li > a {
    display: flex; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 18px;
}

/* Desktop dropdown / mega-menu — nested sub-menus appear on hover */
.easylang-nav--horizontal > ul > li { position: relative; }
.easylang-nav--horizontal li > a { display: inline-flex; align-items: center; gap: 5px; }
.easylang-nav--horizontal .menu-item-has-children > a::after,
.easylang-nav--horizontal .easylang-has-children > a::after {
    content: ''; width: 6px; height: 6px; margin-left: 2px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity: .55;
}
.easylang-nav--horizontal ul ul {
    display: none; position: absolute; left: 0; top: 100%; margin: 0;
    min-width: 244px; padding: 8px; gap: 2px;
    background: #fff; color: var(--ink);
    border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14);
    flex-direction: column; align-items: stretch; z-index: 50;
}
.easylang-nav--horizontal li:hover > ul,
.easylang-nav--horizontal li:focus-within > ul { display: flex; }
.easylang-nav--horizontal ul ul li { width: 100%; }
.easylang-nav--horizontal ul ul a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: var(--ink); opacity: 1; font-size: 14px; font-weight: 600;
}
.easylang-nav--horizontal ul ul a:hover { background: #f6f7f8; }
.easylang-nav__desc { display: block; font-size: 12px; font-weight: 400; color: #6b7280; margin-top: 1px; }

/* Mobile drawer / full screen — slide sub-panels (matches index.html mobile menu) */
.easylang-nav--m-drawer.is-mobile .easylang-nav-close,
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-close { z-index: 3; }
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel ul ul,
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel ul ul {
    position: absolute; inset: 0; margin: 0; padding: 64px 24px 24px;
    background: var(--eln-drawer-bg, var(--ink));
    transform: translateX(100%); transition: transform .3s ease;
    overflow: auto; z-index: 2; gap: 0;
}
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel ul ul { background: var(--eln-drawer-bg, var(--ink)); }
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel ul ul { background: var(--eln-drawer-bg, #fff); }
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel ul ul.is-active-sub,
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel ul ul.is-active-sub { transform: translateX(0); }
.easylang-nav--m-drawer.is-mobile .easylang-nav-panel ul ul a,
.easylang-nav--m-fullscreen.is-mobile .easylang-nav-panel ul ul a { font-size: 17px; padding: 12px 0; display: block; width: 100%; }
.easylang-nav-parent { justify-content: space-between; width: 100%; cursor: pointer; }
.easylang-nav-parent::after {
    content: ''; width: 8px; height: 8px; flex: 0 0 auto;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); opacity: .5;
}
.easylang-nav-back {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
    opacity: .6; margin-bottom: 14px; padding: 4px 0;
}
.easylang-nav-back:hover { opacity: 1; }

/* Mobile CTA button at the bottom of the panel */
.easylang-nav-cta { margin-top: 26px; }
.easylang-nav-cta__btn {
    display: block; text-align: center; padding: 14px 18px; border-radius: 12px;
    background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
}

/* Header CTA */
.easylang-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.easylang-cta__signin {
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
}
.easylang-cta--auto  .easylang-cta__signin { color: inherit; opacity: .8; }
.easylang-cta--auto  .easylang-cta__signin:hover { opacity: 1; }
.easylang-cta--dark  .easylang-cta__signin { color: var(--ink); opacity: .75; }
.easylang-cta--light .easylang-cta__signin { color: rgba(255,255,255,.8); }
.easylang-cta--light .easylang-cta__signin:hover { color: #fff; }
.easylang-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.easylang-cta--auto  .easylang-cta__btn,
.easylang-cta--dark  .easylang-cta__btn { background: var(--ink); color: #fff; }
.easylang-cta--auto  .easylang-cta__btn:hover,
.easylang-cta--dark  .easylang-cta__btn:hover { background: var(--ink-2); }
.easylang-cta--light .easylang-cta__btn { background: #fff; color: var(--ink); }
.easylang-cta--light .easylang-cta__btn:hover { background: rgba(255,255,255,.9); }

/* Social Links (icon row) */
.easylang-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.easylang-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    transition: border-color .15s ease, color .15s ease;
}
.easylang-social a:hover {
    border-color: rgba(255,255,255,.4);
    color: #fff;
}
/* When dropped on a light background, the wrapper should opt in via a CSS
   class on the column/widget — we provide an alternate `.on-light` variant. */
.easylang-social.on-light a {
    border-color: rgba(0,0,0,.1);
    color: rgba(0,0,0,.6);
}
.easylang-social.on-light a:hover {
    border-color: rgba(0,0,0,.3);
    color: var(--ink);
}

/* Footer Navigation Column */
.easylang-foot-nav__heading {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 16px;
}
.easylang-foot-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.easylang-foot-nav a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 14px;
    transition: color .15s ease;
}
.easylang-foot-nav a:hover { color: #fff; }
/* Light-background variant. */
.easylang-foot-nav.on-light .easylang-foot-nav__heading { color: rgba(0,0,0,.5); }
.easylang-foot-nav.on-light a { color: rgba(0,0,0,.65); }
.easylang-foot-nav.on-light a:hover { color: var(--ink); }
