/* ============================================================
   editorial.css
   Shared logged-out chrome for the landing-page family:
   FAQ, glossary, features, and /about (React shell).

   Tokens and type match public/legacy/landing.html.
   All selectors are namespaced (.ed- / .cp-) so this file
   can load on the React app without restyling product pages.
   ============================================================ */

:root {
  --ed-ink: #06080f;
  --ed-ink-2: #0d1117;
  --ed-ink-3: #131a24;
  --ed-ink-4: #1a2330;
  --ed-tx: #f0f2f8;
  --ed-tx-2: #a3adbe;
  --ed-tx-3: #7a8494;
  --ed-green: #0e8345;
  --ed-green-dk: #0a6835;
  --ed-green-mid: #45a06e;
  --ed-acc: #5cc98a;
  --ed-green-wash: rgba(14, 131, 69, .09);
  --ed-line: rgba(240, 242, 248, .11);
  --ed-line-2: rgba(240, 242, 248, .06);
  --ed-nav-bg: rgba(6, 8, 15, .9);
  --ed-dock-bg: rgba(6, 8, 15, .96);
  --ed-btn-hover-border: rgba(240, 242, 248, .42);
  --ed-btn-hover-bg: rgba(240, 242, 248, .05);
  --ed-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ed-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  --ed-pad: clamp(1rem, 3.6vw, 1.85rem);
  --ed-r: 6px;
}

html:has(.ed-shell) {
  color-scheme: dark;
}

html:has(.ed-shell),
body:has(.ed-shell),
#gabsocial:has(.ed-shell) {
  background: var(--ed-ink) !important;
}

.ed-shell,
.ed-shell *,
.ed-shell *::before,
.ed-shell *::after {
  box-sizing: border-box;
}

.ed-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ed-ink);
  color: var(--ed-tx);
  font-family: var(--ed-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ed-shell a {
  color: inherit;
  text-decoration: none;
}

.ed-shell :focus-visible {
  outline: 2px solid var(--ed-acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.ed-shell ::selection {
  background: var(--ed-green);
  color: #fff;
}

.ed-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--ed-pad);
}

.ed-skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--ed-green);
  color: #fff;
  padding: .7rem 1.1rem;
  font-weight: 700;
}

.ed-skip:focus {
  left: 0;
}

/* ---------- BUTTONS ---------- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 670;
  line-height: 1.2;
  min-height: 46px;
  padding: .6rem 1.2rem;
  border-radius: var(--ed-r);
  border: 1px solid var(--ed-line);
  background: none;
  color: var(--ed-tx);
  cursor: pointer;
  white-space: nowrap;
  transition: background .17s, border-color .17s, transform .17s, box-shadow .17s;
}

.ed-btn:hover {
  border-color: var(--ed-btn-hover-border);
  background: var(--ed-btn-hover-bg);
}

.ed-btn-primary,
.ed-shell a.ed-btn-primary {
  background: var(--ed-green);
  border-color: var(--ed-green);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(14, 131, 69, .95);
}

.ed-btn-primary:hover,
.ed-shell a.ed-btn-primary:hover {
  background: var(--ed-green-mid);
  border-color: var(--ed-green-mid);
  color: #04220f;
  transform: translateY(-1px);
}

/* ---------- NAV ---------- */
.ed-nav {
  background: var(--ed-nav-bg);
  overflow: visible;
}

.ed-nav-in {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 1.9rem);
  min-height: 66px;
  overflow: visible;
}

.ed-brand {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-shrink: 0;
}

.ed-brand b {
  font-family: var(--ed-serif);
  font-size: clamp(1.5rem, 3.4vw, 1.78rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.ed-brand i {
  font-style: normal;
  font-size: .56rem;
  font-weight: 780;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ed-acc);
}

.ed-nav-links {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 1120px) {
  .ed-nav-links {
    flex: none;
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
  }
}

.ed-nav-links > ul {
  display: flex;
  gap: clamp(.85rem, 1.8vw, 1.3rem);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.ed-nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-nav-links > ul > li > .ed-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .66rem 0;
  font-size: .775rem;
  font-weight: 660;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--ed-tx-2);
  white-space: nowrap;
  transition: color .17s;
  text-decoration: none;
}

.ed-nav-links > ul > li > .ed-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .28rem;
  height: 1.5px;
  background: var(--ed-acc);
  transition: right .24s cubic-bezier(.22, .9, .3, 1);
}

.ed-nav-links > ul > li > .ed-nav-link:hover,
.ed-nav-item.is-open > .ed-nav-link {
  color: var(--ed-tx);
}

.ed-nav-links > ul > li > .ed-nav-link:hover::after,
.ed-nav-item.is-open > .ed-nav-link::after {
  right: 0;
}

.ed-nav-cta {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 1120px) {
  .ed-nav-in {
    flex-wrap: nowrap;
    min-height: 66px;
    padding-top: 0;
    row-gap: 0;
  }

  .ed-brand { margin-right: auto; }
}

@media (max-width: 420px) {
  .ed-nav-cta .ed-btn { padding-inline: .8rem; font-size: .84rem; }
}

/* ---------- PAGE GRID ---------- */
.ed-page {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.6rem, 3.4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.8rem, 4vw, 2.8rem) clamp(3rem, 6vw, 4.5rem);
}

.ed-main {
  min-width: 0;
}

@media (max-width: 860px) {
  .ed-page {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ---------- SIDEBAR ---------- */
.ed-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  background: var(--ed-ink-3);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-r);
  padding: 0;
  box-shadow: 0 1px 0 rgba(240, 242, 248, .05) inset;
  max-height: calc(100vh - 110px);
  overflow: auto;
  scrollbar-width: thin;
}

.ed-sidebar::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--ed-green), var(--ed-acc), var(--ed-green));
}

@media (max-width: 860px) {
  .ed-sidebar {
    position: static;
    max-height: none;
  }
}

.ed-sidebar-title {
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ed-acc);
  margin: 0;
  padding: 1rem 1rem .55rem;
}

.ed-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0 0 .65rem;
}

.ed-sidebar-list a,
.ed-sidebar-link {
  display: block;
  padding: .48rem 1rem;
  font-size: .9rem;
  color: var(--ed-tx-2);
  line-height: 1.35;
  transition: color .15s, background .15s;
}

.ed-sidebar-list a:hover,
.ed-sidebar-link:hover {
  color: var(--ed-tx);
  background: rgba(240, 242, 248, .04);
}

.ed-sidebar-list a.is-active,
.ed-sidebar-link.is-active,
.ed-sidebar-link.active {
  color: var(--ed-tx);
  background: var(--ed-green-wash);
  font-weight: 650;
  box-shadow: inset 2px 0 0 var(--ed-acc);
}

/* ---------- CHIPS ---------- */
.ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  padding: .3rem .82rem;
  border: 1px solid var(--ed-line);
  border-radius: 100px;
  font-size: .86rem;
  color: var(--ed-tx-2);
  background: rgba(240, 242, 248, .02);
  transition: color .16s, border-color .16s, background .16s;
}

.ed-chip:hover {
  color: var(--ed-tx);
  border-color: var(--ed-green-mid);
  background: var(--ed-green-wash);
}

/* ---------- FOOTER ---------- */
.ed-footer {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(2.2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--ed-line);
}

.ed-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
  gap: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: clamp(1.9rem, 3.6vw, 2.7rem);
}

@media (min-width: 1100px) {
  .ed-fgrid { grid-template-columns: repeat(5, 1fr); }
}

.ed-fgrid h2 {
  margin: 0 0 .8rem;
  font-size: .68rem;
  font-weight: 790;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-acc);
}

.ed-fgrid ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-fgrid a {
  font-size: .85rem;
  color: var(--ed-tx-2);
  transition: color .16s;
}

.ed-fgrid a:hover { color: var(--ed-tx); }

.ed-fbot {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ed-line-2);
}

.ed-flinks {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .8rem;
  color: var(--ed-tx-3);
}

.ed-flinks a:hover { color: var(--ed-tx-2); }

.ed-fmeta {
  font-size: .78rem;
  color: var(--ed-tx-3);
  margin: 0;
}

/* ---------- ABOUT ARTICLE (React Block / Heading / Text) ---------- */
.ed-article {
  min-width: 0;
  background: var(--ed-ink-3);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-r);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(240, 242, 248, .05) inset;
  position: relative;
}

.ed-article::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: var(--ed-r) var(--ed-r) 0 0;
  background: linear-gradient(90deg, var(--ed-green), var(--ed-acc), var(--ed-green));
}

.ed-article .boxShadowBlock,
.ed-article .bgPrimary {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.ed-article .px15 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ed-article h1 {
  font-family: var(--ed-serif) !important;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  color: var(--ed-tx) !important;
  font-weight: 700 !important;
  margin: 0 0 .7rem !important;
  text-wrap: balance;
}

.ed-article h1 + h1 {
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
  margin-top: -.15rem !important;
}

.ed-article h2 {
  font-family: var(--ed-serif) !important;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  color: var(--ed-tx) !important;
  font-weight: 700 !important;
  margin: 1.8rem 0 .65rem !important;
}

.ed-article h3,
.ed-article h4,
.ed-article h5 {
  font-family: var(--ed-sans) !important;
  color: var(--ed-tx) !important;
  font-weight: 650 !important;
  margin: 1.4rem 0 .45rem !important;
}

.ed-article h4 {
  font-size: .82rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ed-tx-3) !important;
  font-weight: 720 !important;
}

.ed-article p {
  color: var(--ed-tx-2) !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  margin: 0 0 1rem !important;
  max-width: 72ch;
}

.ed-article a,
.ed-article button.displayInline {
  color: var(--ed-acc) !important;
}

.ed-article a:hover,
.ed-article button.displayInline:hover {
  color: var(--ed-tx) !important;
}

.ed-article .borderBottom1PX.borderColorSecondary {
  border-color: var(--ed-line-2) !important;
}

.ed-article ul,
.ed-article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ed-tx-2);
}

.ed-article li { margin: 0 0 .4rem; }

@media (prefers-reduced-motion: reduce) {
  .ed-shell *,
  .ed-shell *::before,
  .ed-shell *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
