/* =========================================================================
 * FAQ — block 2, the question catalogue.
 *
 * A dark catalogue in the Integrations/service tokens: a graphite background
 * with a grid and a teal glow, a large search field, sticky topic navigation
 * on the left and the topics with their accordions on the right (thin
 * dividers, a +/− sign, the answer with a teal line). The section is marked
 * data-tall (--ms-scale = 1) and sizes are in px and clamp(). Animation only
 * on an event: the panel height transition on click (catalog.js sets .is-anim
 * and height) and the hover highlight; nothing spins at rest.
 * prefers-reduced-motion means no transitions.
 *
 * Important for the sticky navigation: no ancestor of .lmx-fc-nav has
 * overflow:hidden — the decorative background lives in .lmx-fc-bg with its own
 * overflow.
 * ====================================================================== */

.lmx-fc-inner{position:relative;width:100%;min-height:100vh;background:#050708 !important;color:#fff;font-family:var(--lmx-ms-font,'Hanken Grotesk',Helvetica,Arial,sans-serif);padding:0 var(--lmx-section-padding-x);box-sizing:border-box;--fc-accent:#52C7C6;--fc-accent-hi:#83DAD9;--fc-on-accent:#04211F;--fc-line:rgba(255,255,255,.10);--fc-line-hi:rgba(255,255,255,.18);--fc-surface:rgba(255,255,255,.035);--fc-surface-hi:rgba(255,255,255,.065);--fc-muted:rgba(255,255,255,.58);--fc-text:rgba(255,255,255,.86);--fc-sticky-top:calc(var(--fc-header-h,var(--lmx-header-h,68px)) + 24px)}
.lmx-fc-inner *{box-sizing:border-box;min-width:0}

/* --- background -------------------------------------------------------------- */
.lmx-fc-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:radial-gradient(60% 34% at 50% 0%,rgba(82,199,198,.14),transparent 70%),radial-gradient(40% 30% at 85% 60%,rgba(82,199,198,.05),transparent 70%)}
.lmx-fc-bg::before{content:'';position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(70% 55% at 50% 22%,#000 20%,transparent 100%);mask-image:radial-gradient(70% 55% at 50% 22%,#000 20%,transparent 100%)}
.lmx-fc-bg::after{content:'';position:absolute;left:50%;top:0;width:min(720px,80%);height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(82,199,198,.55),transparent)}

.lmx-fc-wrap{position:relative;z-index:1;max-width:1400px;margin:0 auto;padding:clamp(56px,7vw,96px) 0 clamp(64px,8vw,104px)}

/* --- catalogue header --------------------------------------------------------- */
.lmx-fc-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px 32px;margin-bottom:28px}
.lmx-fc-eyebrow{margin:0 0 12px !important;font-family:var(--lmx-ms-font) !important;font-weight:600;font-size:13px !important;letter-spacing:.34em;text-transform:uppercase;color:var(--fc-accent) !important;line-height:1.4 !important}
.lmx-fc-title{margin:0 !important;font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif) !important;font-weight:300 !important;font-size:clamp(36px,4.6vw,64px) !important;line-height:1.05 !important;letter-spacing:-.02em;color:#fff !important;text-wrap:balance}
.lmx-fc-intro{margin:14px 0 0 !important;max-width:620px;font-family:var(--lmx-ms-font) !important;font-size:17px !important;line-height:1.55 !important;font-weight:300;color:var(--fc-muted) !important}
.lmx-fc-count{align-self:end;margin:0 0 6px !important;padding:8px 14px;border:1px solid var(--fc-line);border-radius:999px;background:var(--fc-surface);font-family:var(--lmx-ms-font) !important;font-size:14px !important;letter-spacing:.04em;color:var(--fc-text) !important;white-space:nowrap;font-variant-numeric:tabular-nums}

/* --- search ------------------------------------------------------------------- */
.lmx-fc-search{position:relative;display:block;width:100%;max-width:760px;margin:0}
.lmx-fc-inner .lmx-fc-search__input{box-sizing:border-box !important;width:100% !important;min-width:0 !important;max-width:100% !important}
.lmx-fc-search__icon{position:absolute;left:20px;top:50%;width:22px;height:22px;transform:translateY(-50%);color:var(--fc-accent);pointer-events:none}
.lmx-fc-search__input{display:block;width:100%;height:60px;margin:0;padding:0 56px 0 56px;border:1px solid var(--fc-line-hi);border-radius:14px;background:rgba(255,255,255,.045);color:#fff;font-family:var(--lmx-ms-font);font-size:17px;line-height:1.2;letter-spacing:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);-webkit-appearance:none;appearance:none;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.lmx-fc-search__input::placeholder{color:var(--fc-muted);opacity:1}
.lmx-fc-search__input::-webkit-search-cancel-button,.lmx-fc-search__input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.lmx-fc-search__input:hover{border-color:rgba(255,255,255,.28)}
.lmx-fc-search__input:focus{outline:none;border-color:var(--fc-accent);background:rgba(82,199,198,.06);box-shadow:0 0 0 3px rgba(82,199,198,.18),0 0 28px rgba(82,199,198,.16)}
.lmx-fc-search__clear{position:absolute;right:10px;top:50%;width:40px;height:40px;margin-top:-20px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--fc-muted);display:grid;place-items:center;cursor:pointer;transition:color .2s ease,background .2s ease}
.lmx-fc-search__clear svg{width:16px;height:16px}
.lmx-fc-search__clear:hover{color:#fff;background:rgba(255,255,255,.08)}
.lmx-fc-search__clear:focus-visible{outline:2px solid var(--fc-accent);outline-offset:2px}
.lmx-fc-search__clear[hidden]{display:none}
.lmx-fc-results{min-height:22px;margin:14px 0 0 !important;font-family:var(--lmx-ms-font) !important;font-size:14px !important;letter-spacing:.04em;color:var(--fc-accent) !important;font-variant-numeric:tabular-nums}
.lmx-fc-results:empty{margin:0 !important;min-height:0}

/* Arriving through /faq/?topic=…#faq-results: the anchor of the results line
   and the chosen-topic chip with a cross (it clears the filter and shows every
   topic again). */
.lmx-fc-anchor{display:block;height:0;overflow:hidden;scroll-margin-top:24px}
.lmx-fc-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 0 !important;font-family:var(--lmx-ms-font) !important;font-size:13px !important;letter-spacing:.06em;text-transform:uppercase;color:var(--fc-muted,rgba(255,255,255,.6)) !important}
.lmx-fc-filter[hidden]{display:none !important}
.lmx-fc-filter__chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid var(--fc-accent);border-radius:999px;background:rgba(82,199,198,.12);color:var(--fc-accent);font:inherit;letter-spacing:.06em;text-transform:none;cursor:pointer}
.lmx-fc-filter__chip svg{width:14px;height:14px;flex:0 0 auto}
.lmx-fc-filter__chip:hover,.lmx-fc-filter__chip:focus-visible{background:rgba(82,199,198,.22);color:#fff;border-color:#fff}

/* --- body: navigation plus topics --------------------------------------------- */
.lmx-fc-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:40px clamp(32px,4vw,64px);margin-top:36px;align-items:start}

.lmx-fc-nav{position:sticky;top:var(--fc-sticky-top);max-height:calc(100vh - var(--fc-sticky-top) - 24px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(82,199,198,.35) transparent;padding-right:6px}
.lmx-fc-nav__label{margin:0 0 12px !important;font-family:var(--lmx-ms-font) !important;font-size:12px !important;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--fc-muted) !important}
.lmx-fc-nav__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;border-left:1px solid var(--fc-line)}
.lmx-fc-nav__item{flex:0 0 auto}
.lmx-fc-nav__item[hidden]{display:none}
.lmx-fc-nav__link{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 10px 8px 16px;margin-left:-1px;border-left:2px solid transparent;color:var(--fc-text) !important;text-decoration:none !important;font-family:var(--lmx-ms-font);font-size:14px;line-height:1.35;transition:color .2s ease,border-color .2s ease,background .2s ease}
.lmx-fc-nav__link:hover{color:#fff !important;background:var(--fc-surface)}
.lmx-fc-nav__link:focus-visible{outline:2px solid var(--fc-accent);outline-offset:-2px}
.lmx-fc-nav__link[aria-current="true"]{color:#fff !important;border-left-color:var(--fc-accent)}
.lmx-fc-nav__name{flex:1 1 auto}
.lmx-fc-nav__n{flex:0 0 auto;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.07);font-size:11px;line-height:1.4;color:var(--fc-muted);font-variant-numeric:tabular-nums}
.lmx-fc-nav__link[aria-current="true"] .lmx-fc-nav__n{background:rgba(82,199,198,.2);color:#c7f2f1}

.lmx-fc-topics{display:flex;flex-direction:column;gap:44px}
.lmx-fc-topic{scroll-margin-top:calc(var(--lmx-header-h,68px) + 20px)}
.lmx-fc-topic[hidden]{display:none}
.lmx-fc-topic__title{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin:0 0 6px !important;padding:0 0 14px;border-bottom:1px solid var(--fc-line-hi);font-family:var(--lmx-ms-display,'Outfit','Poppins',sans-serif) !important;font-weight:400 !important;font-size:clamp(24px,2.4vw,32px) !important;line-height:1.15 !important;letter-spacing:-.01em;color:#fff !important}
.lmx-fc-topic__n{font-family:var(--lmx-ms-font);font-size:13px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--fc-accent);font-variant-numeric:tabular-nums}

/* --- accordion ---------------------------------------------------------------- */
.lmx-fc-acc{display:block}
/* content-visibility:auto was tried here so that the browser would not lay out
   all 331 rows at once (Style & Layout dropped from 696 to 421 ms). It did not
   work: the height of the invisible questions comes from
   contain-intrinsic-size, the questions wrap onto different numbers of lines,
   and the accumulated error broke jumping to a topic from the navigation (off
   by ~3000px) and the measuring of images inside answers. The ordinary layout
   stayed: a correct jump matters more. */
.lmx-fc-item{border-bottom:1px solid var(--fc-line)}
.lmx-fc-item[hidden]{display:none}
.lmx-fc-q{margin:0 !important;padding:0 !important;font:inherit !important;line-height:inherit !important;letter-spacing:0}
.lmx-fc-btn{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;width:100%;min-height:44px;margin:0;padding:18px 6px 18px 0;background:none;border:0;border-radius:0;box-shadow:none;color:#fff;font-family:var(--lmx-ms-font);font-weight:400;font-size:19px;line-height:1.35;letter-spacing:0;text-align:left;text-transform:none;cursor:pointer;-webkit-appearance:none;appearance:none;transition:color .2s ease}
.lmx-fc-btn:hover{color:var(--fc-accent-hi)}
.lmx-fc-btn:focus{outline:none}
.lmx-fc-btn:focus-visible{outline:2px solid var(--fc-accent);outline-offset:-2px}
.lmx-fc-btn-text{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.lmx-fc-icon{position:relative;flex:0 0 auto;width:22px;height:22px;margin-top:2px;color:var(--fc-accent)}
.lmx-fc-icon-h,.lmx-fc-icon-v{position:absolute;left:0;top:50%;width:100%;height:1.5px;margin-top:-.75px;background:currentColor;transition:transform .3s ease,opacity .3s ease}
.lmx-fc-icon-v{transform:rotate(90deg)}
.lmx-fc-item.is-open .lmx-fc-icon-v{transform:rotate(0deg);opacity:0}

.lmx-fc-panel{overflow:hidden}
.lmx-fc-panel[hidden]{display:none}
.lmx-fc-panel.is-anim{transition:height .36s cubic-bezier(.4,0,.2,1);will-change:height}
.lmx-fc-panel-in{padding:0 0 26px;opacity:0;transform:translateY(-4px);transition:opacity .3s ease,transform .3s ease}
.lmx-fc-item.is-open .lmx-fc-panel-in{opacity:1;transform:none;transition-delay:.06s}

/* --- answer: typography ------------------------------------------------------- */
.lmx-fc-answer{padding-left:22px;border-left:1px solid var(--fc-accent);max-width:78ch;font-family:var(--lmx-ms-font);font-size:17px;line-height:1.65;font-weight:300;color:rgba(255,255,255,.78)}
.lmx-fc-answer>:first-child{margin-top:0 !important}
.lmx-fc-answer>:last-child{margin-bottom:0 !important}
.lmx-fc-answer p{margin:0 0 1em !important;font:inherit !important;color:inherit !important}
.lmx-fc-answer strong,.lmx-fc-answer b{font-weight:600;color:#fff}
.lmx-fc-answer em{font-style:italic}
.lmx-fc-answer u{text-decoration:underline;text-underline-offset:3px}
.lmx-fc-answer sup{font-size:.7em;line-height:0}
.lmx-fc-answer a{color:var(--fc-accent) !important;text-decoration:underline !important;text-decoration-color:rgba(82,199,198,.5);text-underline-offset:3px;transition:color .2s ease,text-decoration-color .2s ease}
.lmx-fc-answer a:hover{color:var(--fc-accent-hi) !important;text-decoration-color:currentColor}
.lmx-fc-answer ul,.lmx-fc-answer ol{margin:0 0 1.1em !important;padding:0 0 0 1.4em !important;list-style-position:outside}
.lmx-fc-answer ul{list-style:disc}
.lmx-fc-answer ol{list-style:decimal}
.lmx-fc-answer ul ul{list-style:circle;margin:.4em 0 .2em !important}
.lmx-fc-answer li{margin:0 0 .45em !important;padding:0 !important;font:inherit !important;color:inherit !important}
.lmx-fc-answer li::marker{color:var(--fc-accent)}
.lmx-fc-answer h5,.lmx-fc-answer h6{margin:1.4em 0 .5em !important;font-family:var(--lmx-ms-font) !important;font-size:17px !important;font-weight:600 !important;line-height:1.4 !important;letter-spacing:0;color:#fff !important}
.lmx-fc-answer blockquote{margin:0 0 1.1em !important;padding:0 0 0 18px !important;border-left:2px solid rgba(82,199,198,.5);font-style:italic;color:rgba(255,255,255,.7)}
.lmx-fc-answer figure{margin:1.2em 0 !important;padding:0 !important}
/* width/height from the attributes stay (the space for the image is known before loading — no layout shift), height:auto keeps the ratio. */
.lmx-fc-answer img{display:block;max-width:100%;height:auto;margin:1.2em 0;border:1px solid var(--fc-line);border-radius:10px;background:#0b0f10}
.lmx-fc-answer figure img{margin:0}
.lmx-fc-answer figcaption{margin-top:8px;font-size:13px;color:var(--fc-muted)}
.lmx-fc-table{margin:1.2em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--fc-line);border-radius:10px;background:rgba(255,255,255,.02)}
/* border:0 removes the parent theme's frame (phlox-pro/css/base.css:
   table{border:1px solid #EAEAEA}): on a dark answer it reads as a white frame
   inside a wrapper that is already outlined. */
.lmx-fc-table table{width:100%;min-width:520px;margin:0 !important;border:0;border-collapse:collapse;font-size:15px;line-height:1.45}
.lmx-fc-table th,.lmx-fc-table td{padding:10px 14px !important;border:0 !important;border-bottom:1px solid var(--fc-line) !important;text-align:left;vertical-align:top;color:rgba(255,255,255,.82);background:transparent !important}
.lmx-fc-table tr:first-child td,.lmx-fc-table th{font-weight:600;color:#fff;background:rgba(82,199,198,.08) !important}
.lmx-fc-table tr:last-child td{border-bottom:0 !important}
.lmx-fc-answer code,.lmx-fc-answer pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}
.lmx-fc-answer pre{margin:0 0 1.1em !important;padding:14px 16px !important;overflow-x:auto;background:#0b0f10 !important;border:1px solid var(--fc-line);border-radius:10px;color:#dfe7e7}
.lmx-fc-answer hr{margin:1.4em 0;border:0;border-top:1px solid var(--fc-line)}
.lmx-fc-answer .lmx-fc-mark,.lmx-fc-btn-text .lmx-fc-mark{padding:0 .08em;margin:0 -.04em;background:rgba(82,199,198,.28);color:#fff;border-radius:3px;box-shadow:0 0 0 1px rgba(82,199,198,.35)}

/* --- empty state -------------------------------------------------------------- */
.lmx-fc-empty{display:flex;flex-direction:column;align-items:center;gap:18px;margin-top:36px;padding:56px 24px;border:1px dashed rgba(82,199,198,.35);border-radius:18px;background:rgba(82,199,198,.04);text-align:center}
.lmx-fc-empty[hidden]{display:none}
.lmx-fc-empty__icon{width:56px;height:56px;color:var(--fc-accent);opacity:.85}
.lmx-fc-empty__text{max-width:520px;margin:0 !important;font-family:var(--lmx-ms-font) !important;font-size:17px !important;line-height:1.55 !important;color:var(--fc-text) !important}
.lmx-fc-inner .lmx-fc-empty__btn{min-height:44px}
.lmx-fc-none{margin:0 !important;color:var(--fc-muted) !important}

/* A search is running — topics and navigation without matches are hidden; an empty body is not printed. */
.lmx-fc-inner.is-searching .lmx-fc-body.is-empty{display:none}

/* --- layout by width ---------------------------------------------------------- */
@media (max-width:1180px){
.lmx-fc-body{grid-template-columns:240px minmax(0,1fr)}
}
@media (max-width:1024px){
.lmx-fc-inner{min-height:0;padding:84px var(--lmx-section-padding-x) 64px}
.lmx-fc-wrap{padding:0}
.lmx-fc-head{grid-template-columns:minmax(0,1fr);gap:14px}
.lmx-fc-count{justify-self:start;margin:0 !important}
/* Not a grid: in one column the navigation cell would be as tall as the
   navigation itself and sticky would not work; block flow gives it the full
   height of the catalogue body. */
.lmx-fc-body{display:block;margin-top:28px}
.lmx-fc-topics{margin-top:28px}
/* The navigation becomes a horizontal strip of chips under the search; it sticks to the top. */
.lmx-fc-nav{position:sticky;top:var(--fc-header-h,var(--lmx-header-h,68px));z-index:2;max-height:none;overflow:visible;padding:12px 0 10px;margin:0 calc(-1 * var(--lmx-section-padding-x));padding-left:var(--lmx-section-padding-x);padding-right:var(--lmx-section-padding-x);background:rgba(5,7,8,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.lmx-fc-nav__label{margin-bottom:8px !important}
.lmx-fc-nav__list{flex-direction:row;flex-wrap:nowrap;gap:8px;border-left:0;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.lmx-fc-nav__list::-webkit-scrollbar{display:none}
.lmx-fc-nav__link{flex:0 0 auto;margin:0;padding:8px 12px;border:1px solid var(--fc-line);border-left-width:1px;border-radius:999px;background:var(--fc-surface);white-space:nowrap;font-size:13px}
.lmx-fc-nav__link[aria-current="true"]{border-color:rgba(82,199,198,.75);background:rgba(82,199,198,.14)}
.lmx-fc-topic{scroll-margin-top:calc(var(--fc-header-h,var(--lmx-header-h,68px)) + 92px)}
.lmx-fc-topics{gap:36px}
.lmx-fc-btn{font-size:17px;padding:16px 4px 16px 0;gap:14px}
.lmx-fc-answer{padding-left:16px;font-size:16px;max-width:none}
}
@media (max-width:640px){
.lmx-fc-title{font-size:34px !important}
.lmx-fc-intro{font-size:15px !important}
.lmx-fc-search__input{height:54px;padding-left:50px;font-size:16px}
.lmx-fc-search__icon{left:16px;width:20px;height:20px}
.lmx-fc-topic__title{font-size:22px !important}
.lmx-fc-btn{font-size:16px}
.lmx-fc-answer{font-size:15px}
.lmx-fc-table table{font-size:14px}
.lmx-fc-empty{padding:40px 18px}
}

/* --- less motion -------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
.lmx-fc-inner *{transition:none !important;animation:none !important}
.lmx-fc-panel-in{transform:none}
}
