/*
 * Loaded only on `/guides/*` and `/vi/guides/*`.
 * Separate from stylesheet `application`: esbuild emits `application.css` into
 * `app/assets/builds/`, which shares the basename and can win Propshaft resolution—
 * so guide rules must live here and be linked explicitly.
 */

/* Reinforce typography/background when the esbuild bundle is the lone `application` stylesheet */
body.ecliptica-guide-lite {
  font-family: "DM Sans", sans-serif;
  background: #050818;
  color: #e8e6f0;
}

/* Marketing / SEO guide pages — aligns with GlassCard + default teal-blue accents */
.guide-page {
  --guide-p: #5ef0d8;
  --guide-s: #7fb4ff;
  --guide-t: #a378ff;
  --guide-txt: #edeaf8;
  --guide-txt-sec: #9590b8;
  --guide-txt-muted: #5c5880;
  --guide-deep: #050818;
  --guide-glass-fill: rgba(255, 255, 255, 0.045);
  --guide-glass-border: rgba(255, 255, 255, 0.09);
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
}

.guide-page__ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 50% at 50% -5%, rgba(94, 240, 216, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 42% 45% at 100% 25%, rgba(163, 120, 255, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(127, 180, 255, 0.06) 0%, transparent 45%);
}

.guide-sheet {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 20px 100px;
  position: relative;
  z-index: 1;
}

.guide-sheet__panel {
  background: var(--guide-glass-fill);
  border: 1px solid var(--guide-glass-border);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

.guide-sheet__panel--masthead {
  padding: 28px 26px;
  border-color: rgba(94, 240, 216, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(94, 240, 216, 0.08);
}

.guide-sheet__panel--article {
  padding: 28px 26px 32px;
  border-color: rgba(127, 180, 255, 0.11);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.guide-sheet__panel--rail {
  padding: 24px 22px;
  border-color: rgba(163, 120, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.guide-sheet__masthead {
  margin-bottom: 0;
}

.guide-sheet__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--guide-p);
  margin-bottom: 16px;
}

.guide-sheet__eyebrow-brand {
  flex: 0 1 auto;
  min-width: 0;
}

.guide-sheet__eyebrow-tools {
  flex: 0 0 auto;
  margin-left: auto;
  line-height: 0;
}

.guide-sheet__crumb-link {
  color: var(--guide-txt);
  text-decoration: none;
  font-weight: 500;
}

.guide-sheet__crumb-link:hover {
  color: var(--guide-p);
}

.guide-sheet__crumb-mark {
  color: var(--guide-p);
  margin-right: 4px;
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(94, 240, 216, 0.45);
}

/* Guide language control: mirror app shell LanguageSwitcher (no React flicker) */
.guide-lang-switcher.guide-sheet__lang-switcher-mount {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-height: 36px;
}

.guide-lang-switcher > .guide-lang-switcher__summary {
  position: relative;
  list-style: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(94, 240, 216, 0.27);
  background: linear-gradient(135deg, rgba(94, 240, 216, 0.14), rgba(10, 14, 34, 0.86));
  box-shadow: 0 0 20px rgba(94, 240, 216, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--guide-txt);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 34px 0 10px;
  cursor: pointer;
}

.guide-lang-switcher > .guide-lang-switcher__summary::-webkit-details-marker {
  display: none;
}

.guide-lang-switcher__mark {
  margin-right: 8px;
  color: var(--guide-p);
  font-size: 12px;
  opacity: 0.95;
  pointer-events: none;
}

.guide-lang-switcher__active {
  pointer-events: none;
}

.guide-lang-switcher__caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--guide-p);
  font-size: 10px;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.guide-lang-switcher[open] > .guide-lang-switcher__summary .guide-lang-switcher__caret {
  transform: translateY(-50%) rotate(180deg);
}

.guide-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(94, 240, 216, 0.27);
  background: rgba(12, 18, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(94, 240, 216, 0.2);
}

.guide-lang-switcher__opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guide-txt-sec);
  transition: background 0.15s ease, color 0.15s ease;
}

.guide-lang-switcher__opt:last-child {
  margin-bottom: 0;
}

.guide-lang-switcher__opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--guide-txt);
}

.guide-lang-switcher__opt.is-active {
  background: rgba(94, 240, 216, 0.22);
  color: var(--guide-txt);
  font-weight: 600;
}

@media (max-width: 900px) {
  .guide-sheet {
    padding: 32px 16px 72px;
  }

  .guide-sheet__panel--masthead,
  .guide-sheet__panel--article,
  .guide-sheet__panel--rail {
    padding: 20px 16px;
  }

  .guide-sheet__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}

@media (max-width: 520px) {
  .guide-sheet__eyebrow-tools {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
  }
}

.guide-sheet__eyebrow-sep {
  margin: 0;
  opacity: 0.4;
  color: var(--guide-txt-muted);
}

.guide-sheet__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--guide-txt);
  margin-bottom: 14px;
}

.guide-sheet__lede {
  font-size: 17px;
  line-height: 1.72;
  color: var(--guide-txt-sec);
  max-width: 50rem;
}

.guide-sheet__cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.guide-sheet__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: "DM Sans", sans-serif;
}

.guide-sheet__cta--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(94, 240, 216, 0.8), rgba(163, 120, 255, 0.82));
  box-shadow: 0 6px 22px rgba(94, 240, 216, 0.22);
}

.guide-sheet__cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(94, 240, 216, 0.28);
}

.guide-sheet__cta--ghost {
  border: 1px solid rgba(94, 240, 216, 0.45);
  color: var(--guide-p);
  background: transparent;
}

.guide-sheet__cta--ghost:hover {
  background: rgba(94, 240, 216, 0.1);
  border-color: rgba(94, 240, 216, 0.65);
}

.guide-sheet__body {
  padding-bottom: 0;
}

.guide-section {
  padding-bottom: 4px;
}

.guide-section:last-child {
  padding-bottom: 0;
}

.guide-h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  margin: 26px 0 12px;
  color: var(--guide-txt);
}

.guide-h2:first-child {
  margin-top: 0;
}

.guide-prose,
.guide-list {
  font-size: 16px;
  line-height: 1.78;
  color: var(--guide-txt-sec);
}

.guide-prose strong {
  color: var(--guide-txt);
  font-weight: 600;
}

.guide-prose {
  margin-bottom: 16px;
}

.guide-prose a,
.guide-list a {
  color: var(--guide-s);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 180, 255, 0.4);
  padding-bottom: 1px;
}

.guide-prose a:hover,
.guide-list a:hover {
  color: var(--guide-p);
  border-bottom-color: var(--guide-p);
}

.guide-list {
  margin: 14px 0 22px 0;
  padding-left: 1.35rem;
}

.guide-list li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.guide-list li::marker {
  color: rgba(127, 180, 255, 0.85);
  font-weight: 600;
}

.guide-list--ol {
  list-style: decimal;
}

.guide-sheet__rail-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--guide-t);
  margin-bottom: 14px;
}

.guide-sheet__rail-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-sheet__rail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--guide-txt);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.guide-sheet__rail-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(163, 120, 255, 0.35);
}

.guide-sheet__rail-row.is-current {
  border-color: rgba(127, 180, 255, 0.42);
  background: rgba(127, 180, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(127, 180, 255, 0.07);
}

.guide-sheet__rail-row--accent {
  border-color: rgba(94, 240, 216, 0.28);
  background: rgba(94, 240, 216, 0.05);
}

.guide-sheet__rail-row--accent:hover {
  border-color: rgba(94, 240, 216, 0.45);
  background: rgba(94, 240, 216, 0.09);
}

.guide-sheet__rail-row-mark {
  flex-shrink: 0;
  color: var(--guide-p);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
  text-shadow: 0 0 10px rgba(94, 240, 216, 0.35);
}

.guide-sheet__rail-row--accent .guide-sheet__rail-row-mark {
  font-size: 14px;
}

.guide-sheet__rail-row-label {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(237, 234, 248, 0.96);
  font-weight: 500;
}

.guide-sheet__rail-row:not(.guide-sheet__rail-row--accent) .guide-sheet__rail-row-mark {
  opacity: 0.9;
}

.guide-sheet__disclaimer {
  font-size: 12px;
  line-height: 1.65;
  color: var(--guide-txt-muted);
  margin: 18px 0 0;
  max-width: 40rem;
}
