/* ==========================================================================
   15Five Help Center — Design System v2
   Clean, minimal, professional. Built for humans and AI.
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS — Inter (body + display)
   Inter is purpose-built for screen readability and long-form documentation.
   Used by Linear, Vercel, Stripe docs, and Notion. Consistent Inter across
   headings and body for a clean, unified typographic voice.
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --ff-brand:        #FF4B11;
  --ff-brand-hover:  #E03D08;
  --ff-brand-light:  #FFF2EE;
  --ff-brand-mid:    #FF6B3B;

  /* Ink scale — anchored to 15Five's Tide (navy) palette */
  --ff-ink:          #1A0D3F;   /* Tide — primary text */
  --ff-ink-dark:     #1A0D3F;   /* Tide — headings */
  --ff-ink-mid:      #4B3A7A;   /* Tide lightened — secondary text */
  --ff-ink-muted:    #8B7AAC;   /* Tide muted — captions, labels */
  --ff-ink-light:    #C4B8DC;   /* Tide very light — dividers, placeholders */

  /* Surfaces */
  --ff-surface:      #FFFFFF;
  --ff-surface-soft: #F8F7FC;
  --ff-surface-mid:  #F0EEF8;

  /* Borders */
  --ff-border:       #E8E5F2;
  --ff-border-mid:   #D4D0E8;

  /* Typography */
  --ff-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --ff-radius:       10px;
  --ff-radius-lg:    16px;
  --ff-radius-sm:    6px;
  --ff-shadow-sm:    0 1px 4px rgba(15,10,30,0.06);
  --ff-shadow:       0 4px 16px rgba(15,10,30,0.08);
  --ff-shadow-lg:    0 8px 32px rgba(15,10,30,0.12);
  --ff-max-width:    1200px;

  /* Article sidenav */
  --ff-sidenav-collapsed: 36px;
  --ff-sidenav-expanded:  220px;
  --ff-sidenav-transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   BASE — Font override
   style.css sets Phantom Sans at 18px on body with !important in places.
   We use !important here specifically to win that specificity war.
   -------------------------------------------------------------------------- */

body,
body * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
input,
button,
select,
textarea {
  font-family: var(--ff-font) !important;
  font-size: 15px !important;
  line-height: 1.6;
}

/* Headings — Inter, consistent with body */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ff-font) !important;
}

/* Article body — Inter at comfortable reading size */
.article__body,
.article__body p,
.article__body li {
  font-family: var(--ff-font) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body {
  color: var(--ff-ink);
  background: var(--ff-surface);
}

a {
  color: var(--ff-brand);
  transition: color 120ms ease;
}

a:hover {
  color: var(--ff-brand-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   HEADER / TOPBAR
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ff-surface) !important;
  border-bottom: 1px solid var(--ff-border);
  box-shadow: var(--ff-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
}

.topbar__logo img.logo {
  height: 28px;
  width: auto;
}

.topbar__link,
.topbar__controls a {
  color: var(--ff-ink-mid) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 120ms ease;
  padding: 4px 0;
}

.topbar__link__deprecated {
  display: none !important;
}

.topbar__link:hover,
.topbar__controls a:hover {
  color: var(--ff-ink) !important;
}

.btn-contact-us,
a.btn-contact-us {
  background: var(--ff-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  transition: background 120ms ease, transform 100ms ease;
}

.btn-contact-us:hover,
a.btn-contact-us:hover {
  background: var(--ff-brand-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn--topbar { color: var(--ff-ink-mid); }
.btn--topbar:hover { color: var(--ff-brand); }

/* --------------------------------------------------------------------------
   BREADCRUMBS
   -------------------------------------------------------------------------- */

.breadcrumbs ol,
.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--ff-ink-muted);
}

.breadcrumbs a {
  color: var(--ff-ink-muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.breadcrumbs a:hover { color: var(--ff-brand); }

.breadcrumbs .separator {
  margin: 0 0.375rem;
  color: var(--ff-ink-light);
}

/* --------------------------------------------------------------------------
   HOMEPAGE — HERO
   -------------------------------------------------------------------------- */

.ff-hero {
  background-color: #16123A;
  background-image:
    radial-gradient(ellipse 55% 80% at 0% 50%,  #4B3BC4 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 5%  20%,  #2563EB 0%, transparent 50%),
    radial-gradient(ellipse 45% 70% at 100% 60%, #FF4B11 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 90%  80%, #D946A8 0%, transparent 50%),
    radial-gradient(ellipse 35% 50% at 75%  95%, #9B1DDB 0%, transparent 45%);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ff-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ff-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ff-hero__title {
  color: #fff;
  font-family: var(--ff-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ff-hero__subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.ff-hero .ff-search-box,
.ff-hero .search-box,
.ff-hero .search {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.ff-hero .search-box input[type="search"],
.ff-hero .search-box .search-box__input,
.ff-hero .search input[type="search"] {
  width: 100%;
  padding: 18px 28px 18px 56px;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--ff-font) !important;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25);
}

.ff-hero .search-box input[type="search"]::placeholder,
.ff-hero .search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.ff-hero .search-box input[type="search"]:focus,
.ff-hero .search input[type="search"]:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}

/* Hide submit — instant search, icon-only */
.ff-hero .search-box__submit,
.ff-hero button[type="submit"],
.ff-hero input[type="submit"],
.ff-hero .clear-button {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   HOMEPAGE — WHAT'S NEW BANNER
   -------------------------------------------------------------------------- */

.ff-whats-new-banner {
  background: var(--ff-surface-soft);
  border-bottom: 1px solid var(--ff-border, #E8E5F0);
}

.ff-whats-new-banner__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  text-align: center;
}

.ff-whats-new-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ff-ink-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ff-whats-new-banner__link:hover {
  color: var(--ff-brand);
}

.ff-whats-new-banner__badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ff-brand);
  border-radius: 999px;
  line-height: 1.5;
}

.ff-whats-new-banner__text {
  line-height: 1.4;
}

.ff-whats-new-banner__arrow {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.ff-whats-new-banner__link:hover .ff-whats-new-banner__arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   HOMEPAGE — HC LAUNCH CALLOUT
   -------------------------------------------------------------------------- */

.ff-launch-callout {
  background: var(--ff-brand-light);
  border-bottom: 1px solid rgba(255, 75, 17, 0.15);
}

.ff-launch-callout__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  justify-content: center;
}

.ff-launch-callout__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.ff-launch-callout__body {
  min-width: 0;
  text-align: center;
}

.ff-launch-callout__heading {
  margin: 0 0 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ff-ink-dark);
  line-height: 1.3;
}

.ff-launch-callout__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ff-ink-mid);
  line-height: 1.4;
}

.ff-launch-callout__text a {
  color: var(--ff-brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ff-launch-callout__text a:hover {
  text-decoration: underline;
}

.ff-launch-callout__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ff-ink-muted);
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.ff-launch-callout__close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ff-launch-callout__close:hover {
  color: var(--ff-ink);
  background: rgba(255, 75, 17, 0.08);
}

@media (max-width: 600px) {
  .ff-launch-callout__inner {
    padding: 0.75rem 1rem;
    gap: 0.625rem;
  }
  .ff-launch-callout__icon {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — CATEGORY GRID
   -------------------------------------------------------------------------- */

.ff-section-wrap {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.ff-section-heading {
  font-family: var(--ff-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-ink-muted);
  margin: 0 0 1.25rem;
}

.ff-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ff-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem 1.25rem;
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  text-decoration: none;
  color: var(--ff-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  position: relative;
}

.ff-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--ff-brand);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.ff-cat-card:hover {
  border-color: var(--ff-border-mid);
  box-shadow: var(--ff-shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ff-ink);
}

.ff-cat-card:hover::after { transform: scaleX(1); }

.ff-cat-card__icon { font-size: 1.625rem; line-height: 1; margin-bottom: 0.25rem; }

.ff-cat-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ff-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ff-cat-card:hover .ff-cat-card__name { color: var(--ff-brand); }

.ff-cat-card__desc {
  font-size: 0.8125rem;
  color: var(--ff-ink-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   HOMEPAGE — ROLE PATHS STRIP
   -------------------------------------------------------------------------- */

.ff-role-strip {
  background: var(--ff-surface-soft);
  border-top: 1.5px solid var(--ff-border);
  padding: 2rem 1.5rem;
}

.ff-role-strip__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ff-role-strip__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ff-ink-muted);
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.ff-role-paths { display: flex; gap: 0.75rem; flex: 1; flex-wrap: wrap; }

.ff-role-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.125rem;
  background: var(--ff-surface);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  text-decoration: none;
  color: var(--ff-ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ff-role-card:hover {
  border-color: var(--ff-brand);
  box-shadow: 0 3px 12px rgba(255,75,17,0.08);
  text-decoration: none;
  color: var(--ff-ink);
}

.ff-role-card__avatar {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--ff-surface-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-role-card__body { display: flex; flex-direction: column; gap: 0.125rem; flex: 1; }

.ff-role-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ff-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ff-role-card:hover .ff-role-card__title { color: var(--ff-brand); }

.ff-role-card__desc { font-size: 0.8125rem; color: var(--ff-ink-muted); line-height: 1.3; }

.ff-role-card__arrow {
  font-size: 0.875rem;
  color: var(--ff-ink-light);
  flex-shrink: 0;
  transition: color 150ms ease, transform 150ms ease;
}

.ff-role-card:hover .ff-role-card__arrow { color: var(--ff-brand); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   HERO UNITS (section + category pages — NOT article, handled separately)
   -------------------------------------------------------------------------- */

.hero-unit {
  background: var(--ff-surface-soft) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--ff-border);
  padding: 2.5rem 0;
}

[data-hero-unit],
.category-page .hero-unit,
.section-page .hero-unit {
  background: var(--ff-surface-soft) !important;
  background-image: none !important;
  background-color: var(--ff-surface-soft) !important;
}

.hero-unit[style*="background"],
[data-hero-unit][style*="background"] {
  background: var(--ff-surface-soft) !important;
  background-image: none !important;
}

.hero-unit__title {
  font-family: var(--ff-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ff-ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.hero-unit__desc {
  font-size: 1rem;
  color: var(--ff-ink-mid);
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
}

.hero-unit .search-box input[type="search"],
.hero-unit .search-box .search-box__input {
  border: 1.5px solid var(--ff-border);
  border-radius: 50px;
  padding: 11px 20px;
  font-size: 0.9375rem;
  font-family: var(--ff-font);
  transition: border-color 150ms ease;
}

.hero-unit .search-box input[type="search"]:focus,
.hero-unit .search-box .search-box__input:focus {
  outline: none;
  border-color: var(--ff-brand);
  box-shadow: 0 0 0 3px rgba(255,75,17,0.1);
}

/* --------------------------------------------------------------------------
   CATEGORY PAGE
   -------------------------------------------------------------------------- */

.category-page { padding: 2.5rem 0 4rem; }
.category-page .container-inner { max-width: var(--ff-max-width); }

.section-tree__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-tree-item > h2 {
  font-family: var(--ff-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ff-ink);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1.5px solid var(--ff-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tree-item > h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--ff-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-list__items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.section-list-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--ff-radius);
  border: 1.5px solid var(--ff-border);
  color: var(--ff-ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease;
  background: var(--ff-surface);
  gap: 0.5rem;
}

.section-list-item__link::after {
  content: '→';
  color: var(--ff-ink-light);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.section-list-item__link:hover {
  border-color: var(--ff-brand);
  color: var(--ff-brand);
  box-shadow: var(--ff-shadow-sm);
  text-decoration: none;
}

.section-list-item__link:hover::after { color: var(--ff-brand); transform: translateX(3px); }
.section-list-item__title { font-weight: 500; font-size: 0.875rem; margin: 0; line-height: 1.3; }

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list-item { border-bottom: 1px solid var(--ff-border); }
.article-list-item:last-child { border-bottom: none; }

.article-list-item a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  color: var(--ff-ink-mid);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 120ms ease;
}

.article-list-item a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ff-ink-light);
  flex-shrink: 0;
  transition: background 120ms ease;
}

.article-list-item a:hover { color: var(--ff-brand); }
.article-list-item a:hover::before { background: var(--ff-brand); }

/* --------------------------------------------------------------------------
   SECTION PAGE
   -------------------------------------------------------------------------- */

.section-page { padding: 2rem 0 4rem; }

.section-articles-list { list-style: none; margin: 0; padding: 0; }
.section-articles-list li { border-bottom: 1px solid var(--ff-border); }
.section-articles-list li:last-child { border-bottom: none; }

.section-articles-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--ff-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 120ms ease;
  gap: 1rem;
}

.section-articles-list a:hover { color: var(--ff-brand); text-decoration: none; }

.section-articles-list a::after {
  content: '→';
  color: var(--ff-ink-light);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.section-articles-list a:hover::after { color: var(--ff-brand); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   ARTICLE PAGE — Layout
   Lotus/style.css owns .article-page (flex) and the .toc-enabled /
   .sidenav-enabled responsive width system. We do NOT override display,
   flex, or width on any of those classes.
   We only: hide the sidenav column (replaced by drawer) and zero the
   extra top padding the base theme adds.
   -------------------------------------------------------------------------- */

/* Hide the sidenav column — replaced by the left-edge drawer */
.article-page__sidenav,
.article-page__column.article-page__sidenav {
  display: none !important;
}

/* Remove Lotus's top padding — hero already provides visual separation */
[dir] .article-page {
  padding-top: 0 !important;
}

/* Hide Lotus sidenav controls — we render our own drawer tab */
.sidenav-btn,
.sidenav-overlay,
[data-sidenav] .sidenav-toggle,
[data-sidenav] > .sidenav-container > .sidenav-btn {
  display: none !important;
}

/* Keep [data-sidenav] hidden — we read ApiData directly */
[data-sidenav] { display: none !important; }

/* --------------------------------------------------------------------------
   ARTICLE PAGE — Section drawer (left-edge tab + slide-in panel)
   Floats independently of the layout grid.
   -------------------------------------------------------------------------- */

/* Tab: sticks to the left edge of the viewport, vertically centered */
.ff-drawer-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  padding: 14px 0;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  box-shadow: 2px 0 8px rgba(15,10,30,0.08);
  transition: background 120ms ease, box-shadow 120ms ease;
  color: var(--ff-ink-muted);
  /* Ensure nothing clips this */
  overflow: visible;
}

.ff-drawer-tab:hover {
  background: var(--ff-surface-soft);
  box-shadow: 2px 0 12px rgba(15,10,30,0.1);
  color: var(--ff-ink);
}

/* Rotated label text */
.ff-drawer-tab__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ff-ink-muted);
  white-space: nowrap;
  line-height: 1;
  font-family: var(--ff-font);
}

.ff-drawer-tab:hover .ff-drawer-tab__label {
  color: var(--ff-brand);
}

/* Chevron icon */
.ff-drawer-tab__icon {
  width: 12px;
  height: 12px;
  transition: transform 240ms cubic-bezier(0.4,0,0.2,1), color 120ms ease;
  flex-shrink: 0;
}

.ff-drawer-tab.is-open .ff-drawer-tab__icon {
  transform: rotate(180deg);
}
.ff-drawer-tab.is-open .ff-drawer-tab__label {
  color: var(--ff-brand);
}

/* Backdrop — click to close */
.ff-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8998;
  background: rgba(15,10,30,0.2);
}

.ff-drawer-backdrop.is-visible {
  display: block;
}

/* Drawer panel */
.ff-drawer-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  z-index: 8999;
  background: var(--ff-surface);
  border-right: 1px solid var(--ff-border);
  box-shadow: 4px 0 24px rgba(15,10,30,0.1);
  transform: translateX(-100%);
  transition: transform 240ms cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding: 0 0 2rem;
}

.ff-drawer-panel.is-open {
  transform: translateX(0);
}

/* Drawer header */
.ff-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--ff-border);
  position: sticky;
  top: 0;
  background: var(--ff-surface);
  z-index: 1;
}

.ff-drawer-header__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ff-ink-muted);
  margin: 0;
}

.ff-drawer-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ff-ink-muted);
  border-radius: 6px;
  transition: background 120ms ease, color 120ms ease;
  font-size: 18px;
  line-height: 1;
}

.ff-drawer-close:hover {
  background: var(--ff-surface-soft);
  color: var(--ff-ink);
}

/* Drawer section title */
.ff-drawer-section {
  padding: 14px 16px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ff-ink-muted);
}

/* Drawer article links */
.ff-drawer-link {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ff-ink-mid);
  text-decoration: none;
  line-height: 1.45;
  transition: background 100ms ease, color 100ms ease;
  border-left: 2px solid transparent;
}

.ff-drawer-link:hover {
  background: var(--ff-surface-soft);
  color: var(--ff-ink);
  text-decoration: none;
  border-left-color: var(--ff-border-mid);
}

.ff-drawer-link.is-active {
  background: var(--ff-brand-light);
  color: var(--ff-brand);
  font-weight: 500;
  border-left-color: var(--ff-brand);
}

/* Hide tab entirely on small screens — drawer doesn't make sense there */
@media (max-width: 768px) {
  .ff-drawer-tab { display: none; }
  .ff-drawer-panel { display: none; }
  .ff-drawer-backdrop { display: none !important; }
}

/* --------------------------------------------------------------------------
   ARTICLE PAGE — Hero / title area
   -------------------------------------------------------------------------- */

/* Compact the hero — base theme adds too much whitespace */
.article-page .hero-unit,
[data-hero-unit] {
  background: var(--ff-surface-soft) !important;
  background-image: none !important;
  border-bottom: 1.5px solid var(--ff-border);
  padding: 1.5rem 0 1.25rem !important;
  min-height: 0 !important;
}

/* Constrain hero content to max-width */
.article-page .hero-unit .container-inner,
.article-page [data-hero-unit] .container-inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
}

.article-page .hero-unit__title {
  font-family: var(--ff-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ff-ink-dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.875rem;
  padding-top: 0;
}

/* Article meta row */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.875rem;
}

.article-meta .entry-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-meta .author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ff-ink);
}

.article-meta .meta {
  font-size: 0.8125rem;
  color: var(--ff-ink-muted);
}

/* Article type badge — added via HBS template */
.ff-article-type {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  line-height: 1;
}

.ff-article-type--how-to        { background: #EEF4FF; color: #3B7BFF; }
.ff-article-type--faq           { background: #F0FDF4; color: #16A34A; }
.ff-article-type--overview      { background: var(--ff-surface-mid); color: var(--ff-ink-mid); }
.ff-article-type--troubleshooting { background: #FFF8EE; color: #D97706; }
.ff-article-type--release       { background: #F5F3FF; color: #7C3AED; }

/* Role pill */
.ff-role-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--ff-surface-mid);
  color: var(--ff-ink-mid);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   ARTICLE BODY — Typography
   -------------------------------------------------------------------------- */

.article__body {
  font-size: 0.9875rem;
  line-height: 1.75;
  color: var(--ff-ink-mid);
  max-width: 100%;
}

.article__body h2 {
  font-family: var(--ff-font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ff-ink-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ff-border);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: visible;
}

.article__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ff-ink-dark);
  margin-top: 1.875rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  overflow: visible;
  line-height: 1.35;
}

.article__body h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ff-ink-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: visible;
  line-height: 1.35;
}

.article__body p {
  margin-bottom: 1.125rem;
  color: var(--ff-ink-mid);
}

/* Callout / note blockquote */
.article__body blockquote,
.article__body .note,
.article__body [class*="note-"] {
  position: relative;
  background: #EEF4FF;
  border-left: 3px solid #4B8BFF;
  padding: 1rem 1.125rem 1rem 1.25rem;
  border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
  margin: 1.5rem 0;
  color: var(--ff-ink);
  font-size: 0.9375rem;
}

.article__body .warning,
.article__body [class*="warning"] {
  background: #FFF8EE;
  border-left-color: #F59E0B;
}

.article__body .tip,
.article__body [class*="tip"] {
  background: var(--ff-brand-light);
  border-left-color: var(--ff-brand);
}

.article__body .success,
.article__body [class*="success"] {
  background: #EDFAF4;
  border-left-color: #10B981;
}

/* ── Ordered list ─────────────────────────────────────────────────
   Numbering continuity across Zendesk's broken sibling-ol output
   is handled by JS in article_page.hbs (ol-continuity fix).
   ─────────────────────────────────────────────────────────────── */
.article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: decimal;
}

.article__body ol > li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article__body ol li strong,
.article__body ol li b {
  color: var(--ff-ink-dark);
  font-weight: 600;
}

/* Unordered list */
.article__body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.article__body ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.article__body ul li::marker { color: var(--ff-brand); }

/* Inline code / UI element chip */
.article__body code,
.article__body li code,
.article__body p code,
.article__body td code {
  display: inline !important;
  background: var(--ff-surface-mid);
  color: var(--ff-ink-dark);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  font-weight: 500;
  line-height: inherit;
  white-space: normal;
  word-break: normal;
  border: 1px solid var(--ff-border);
}

/* Code block */
.article__body pre {
  background: var(--ff-ink);
  color: #F0F0FF;
  padding: 1.375rem 1.5rem;
  border-radius: var(--ff-radius);
  overflow-x: auto;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.article__body pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* Tables */
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.375rem;
  font-size: 0.9rem;
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  overflow: hidden;
}

.article__body th {
  background: var(--ff-surface-soft);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1.5px solid var(--ff-border);
  font-size: 0.8125rem;
  color: var(--ff-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article__body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ff-border);
  vertical-align: top;
  font-size: 0.9375rem;
}

.article__body tr:last-child td { border-bottom: none; }
.article__body tr:nth-child(even) td { background: var(--ff-surface-soft); }

/* Images */
.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ff-radius);
  border: 1.5px solid var(--ff-border);
  display: block;
  margin: 1.25rem 0;
  box-shadow: var(--ff-shadow-sm);
}

/* --------------------------------------------------------------------------
   ARTICLE PAGE — TOC
   -------------------------------------------------------------------------- */

.article-page__toc .toc-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ff-ink-muted);
  margin-bottom: 12px;
}

/* Lotus renders [data-toc] — we override its styles */
[data-toc] ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-toc] ol li { margin-bottom: 2px; }

[data-toc] ol li a {
  display: block;
  font-size: 12px;
  color: var(--ff-ink-muted);
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--ff-border);
  line-height: 1.35;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}

[data-toc] ol li a:hover {
  color: var(--ff-ink);
  border-left-color: var(--ff-border-mid);
}

[data-toc] ol li.is-active a {
  color: var(--ff-brand);
  border-left-color: var(--ff-brand);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   ARTICLE PAGE — Voting / feedback
   -------------------------------------------------------------------------- */

.article-votes {
  background: var(--ff-surface-soft);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.article-votes__question {
  font-weight: 600;
  color: var(--ff-ink);
  font-size: 0.9375rem;
  margin: 0;
  flex: 1;
  min-width: 140px;
}

.article-votes__controls { display: flex; gap: 0.5rem; }

.article-vote.btn {
  border: 1.5px solid var(--ff-border-mid);
  border-radius: var(--ff-radius-sm);
  background: var(--ff-surface);
  color: var(--ff-ink-mid);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 7px 16px;
  transition: all 150ms ease;
}

.article-vote.btn:hover {
  border-color: var(--ff-brand);
  color: var(--ff-brand);
  background: var(--ff-brand-light);
}

.article-vote--voted.btn {
  border-color: var(--ff-brand);
  color: var(--ff-brand);
  background: var(--ff-brand-light);
}

/* Downvote message */
.downvote-message {
  display: none;
  width: 100%;
  font-size: 0.875rem;
  color: var(--ff-ink-mid);
}

.downvote-message p { margin: 0.25rem 0 0; }

/* --------------------------------------------------------------------------
   ARTICLE PAGE — Related articles
   -------------------------------------------------------------------------- */

.section-articles {
  margin-top: 2.5rem;
  border-top: 1.5px solid var(--ff-border);
  padding-top: 1.5rem;
}

.section-articles__title {
  font-family: var(--ff-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ff-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.section-articles__list { list-style: none; padding: 0; margin: 0; }
.section-articles__item { border-bottom: 1px solid var(--ff-border); }
.section-articles__item:last-child { border-bottom: none; }

.section-articles__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  color: var(--ff-ink-mid);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 120ms ease;
}

.section-articles__link:hover { color: var(--ff-brand); }
.section-articles__link.is-active { color: var(--ff-brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   SEARCH RESULTS
   -------------------------------------------------------------------------- */

.search-results__title {
  font-family: var(--ff-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ff-ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.search-result-item,
.search-results .article-list-item {
  border-bottom: 1px solid var(--ff-border);
  padding: 1.125rem 0;
}

.search-results a {
  color: var(--ff-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 120ms ease;
}

.search-results a:hover { color: var(--ff-brand); }

.search-results .meta,
.search-result-item .meta {
  font-size: 0.8125rem;
  color: var(--ff-ink-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.search-results-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.search-results-filter__link {
  color: var(--ff-ink-mid);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1.5px solid var(--ff-border);
  text-decoration: none;
  transition: all 150ms ease;
}

.search-results-filter__link:hover { border-color: var(--ff-brand); color: var(--ff-brand); }

.search-results-filter__item.is-active .search-results-filter__link {
  background: var(--ff-brand);
  color: #fff;
  border-color: var(--ff-brand);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   BUTTONS (GLOBAL)
   -------------------------------------------------------------------------- */

.btn--primary {
  background: var(--ff-brand) !important;
  border-color: var(--ff-brand) !important;
  color: #fff !important;
  border-radius: var(--ff-radius);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 120ms ease;
}

.btn--primary:hover {
  background: var(--ff-brand-hover) !important;
  border-color: var(--ff-brand-hover) !important;
}

.btn--default {
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  color: var(--ff-ink-mid);
  background: var(--ff-surface);
  font-weight: 500;
  transition: all 150ms ease;
}

.btn--default:hover { border-color: var(--ff-brand); color: var(--ff-brand); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

footer.footer {
  background: var(--ff-ink) !important;
  color: rgba(255,255,255,0.6);
  border-top: none;
  padding: 2.5rem 0;
}

footer.footer .container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box;
}

footer.footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 120ms ease; }
footer.footer a:hover { color: #fff; }

.footer__copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.4); margin: 0; }

.footer__inner p:last-child:has(a[href*="lotusthemes"]) { display: none; }

.footer-social-icons { display: flex; gap: 0.875rem; align-items: center; }

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: background 150ms ease;
}

.footer-social-icons a:hover { background: var(--ff-brand); }

.footer-social-icons img {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-social-icons a:hover img { opacity: 1; }

/* Facebook uses brand color — don't invert it */
.footer-social-icons a[href*="facebook"] img {
  filter: none;
  opacity: 1;
}
.footer-social-icons a[href*="facebook"]:hover {
  background: #1877F2;
}

/* --------------------------------------------------------------------------
   NOTIFICATION BOX
   -------------------------------------------------------------------------- */

.c-notifbox {
  background: var(--ff-ink-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  text-align: center;
}

.c-notifbox__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.c-notifbox__text {
  flex: 1;
  text-align: center;
}

.c-notifbox a { color: var(--ff-brand-mid); font-weight: 600; }

.c-notifbox__close {
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 120ms ease;
}

.c-notifbox__close:hover { color: #fff; }

.c-notifbox[hidden] { display: none; }

/* --------------------------------------------------------------------------
   CHAT LAUNCHER
   -------------------------------------------------------------------------- */

#custom-chat-launcher {
  background-color: var(--ff-ink-dark) !important;
  border-color: var(--ff-ink-dark) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background-color 150ms ease, transform 150ms ease;
}

#custom-chat-launcher:hover {
  background-color: var(--ff-brand) !important;
  border-color: var(--ff-brand) !important;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   COMMUNITY PAGES
   -------------------------------------------------------------------------- */

.btn-new-post { background: var(--ff-brand); color: #fff; border-radius: var(--ff-radius); font-weight: 600; transition: background 120ms ease; }
.btn-new-post:hover { background: var(--ff-brand-hover); color: #fff; }

.community-section h2 a,
.topic-list a { color: var(--ff-ink); text-decoration: none; transition: color 120ms ease; }

.community-section h2 a:hover,
.topic-list a:hover { color: var(--ff-brand); }

/* --------------------------------------------------------------------------
   REQUEST / ACTIVITIES PAGES
   -------------------------------------------------------------------------- */

.my-activities-menu__link { color: var(--ff-ink-mid); font-weight: 500; transition: color 120ms ease; }

.my-activities-menu__item.is-active .my-activities-menu__link,
.my-activities-menu__link:hover { color: var(--ff-brand); }

.my-activities-menu__item.is-active .my-activities-menu__link {
  border-bottom-color: var(--ff-brand);
}

.status-label { border-radius: 50px; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; }

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */

.pagination { display: flex; gap: 0.375rem; justify-content: center; margin-top: 2rem; }

.pagination .page-link,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: var(--ff-radius-sm);
  border: 1.5px solid var(--ff-border);
  color: var(--ff-ink-mid);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
}

.pagination a:hover { border-color: var(--ff-brand); color: var(--ff-brand); }
.pagination .current-page { background: var(--ff-brand); border-color: var(--ff-brand); color: #fff; }

/* --------------------------------------------------------------------------
   CATEGORY PAGE — ff-prefixed (isolated from Lotus)
   -------------------------------------------------------------------------- */

.ff-cat-hero {
  background: var(--ff-ink-dark);
  padding: 3rem 0 2.5rem;
}

.ff-cat-hero__inner { max-width: var(--ff-max-width); margin: 0 auto; padding: 0 2rem; }
.ff-cat-hero__breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; color: var(--ff-ink-light); }
.ff-cat-hero__breadcrumb a { color: var(--ff-ink-light); text-decoration: none; }
.ff-cat-hero__breadcrumb a:hover { color: var(--ff-brand); }

.ff-cat-hero__title {
  font-family: var(--ff-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.ff-cat-hero__desc { color: var(--ff-ink-light); font-size: 1.05rem; margin: 0; max-width: 56ch; }

.ff-cat-main { background: var(--ff-surface-soft); min-height: 60vh; padding: 2.5rem 0 4rem; }
.ff-cat-main__inner { max-width: var(--ff-max-width); margin: 0 auto; padding: 0 2rem; }

.ff-cat-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ff-cat-section-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--ff-ink);
  box-shadow: var(--ff-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ff-cat-section-card:hover {
  border-color: var(--ff-brand);
  box-shadow: var(--ff-shadow);
  transform: translateY(-1px);
  color: var(--ff-ink);
}

.ff-cat-section-card__body { flex: 1; min-width: 0; }

.ff-cat-section-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ff-ink-mid);
  margin: 0 0 0.2rem;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.ff-cat-section-card:hover .ff-cat-section-card__name { color: var(--ff-brand); }
.ff-cat-section-card__desc { font-size: 0.825rem; color: var(--ff-ink-muted); margin: 0; line-height: 1.45; }

.ff-cat-section-card__arrow {
  font-size: 1.1rem;
  color: var(--ff-ink-light);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ff-cat-section-card:hover .ff-cat-section-card__arrow { color: var(--ff-brand); transform: translateX(3px); }
.ff-cat-empty { color: var(--ff-ink-muted); font-style: italic; padding: 2rem 0; }

/* --------------------------------------------------------------------------
   HIDE OVERVIEW SECTION FROM SIDENAV
   -------------------------------------------------------------------------- */

a[href*="/sections/48460647580955"],
li:has(> a[href*="/sections/48460647580955"]) {
  display: none !important;
}

/* --------------------------------------------------------------------------
   UTILITY — Focus rings (accessibility)
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ff-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   ARTICLE LIST — Section page overrides (keep flat, not card)
   -------------------------------------------------------------------------- */

.article-list--section .article-list-item {
  border: none !important;
  border-bottom: 1px solid var(--ff-border) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.article-list--section .article-list-item:last-child { border-bottom: none !important; }

.article-list--section .article-list-item a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  color: var(--ff-ink-mid);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 120ms ease;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.article-list--section .article-list-item a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ff-ink-light);
  flex-shrink: 0;
  transition: background 120ms ease;
}

.article-list--section .article-list-item a:hover { color: var(--ff-brand); background: none !important; }
.article-list--section .article-list-item a:hover::before { background: var(--ff-brand); }

.section-tree-item > h2 a { color: var(--ff-ink); text-decoration: none; transition: color 120ms ease; }
.section-tree-item > h2 a:hover { color: var(--ff-brand); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .article-page__toc { display: none; }
}

@media (max-width: 900px) {
  .ff-categories { grid-template-columns: repeat(3, 1fr); }
  .section-list__items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ff-hero { padding: 3rem 1.25rem; }
  .ff-hero__title { font-size: 2rem; }
  .hero-unit__title { font-size: 1.625rem; }

  .article-page,
  .article-page.sidenav-open {
    grid-template-columns: 1fr !important;
  }

  .article-page__sidenav { display: none; }
  .article-page__article { padding: 1.5rem 1.25rem 3rem; }

  .ff-role-strip__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ff-role-paths { flex-direction: column; width: 100%; }
  .ff-role-card { min-width: unset; }
}

@media (max-width: 640px) {
  .ff-categories { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .ff-cat-card { padding: 0.875rem; }
  .section-list__items { grid-template-columns: 1fr; }
  .article-votes { flex-direction: column; align-items: flex-start; }

  .ff-cat-sections { grid-template-columns: 1fr; }
  .ff-cat-hero { padding: 2rem 0 1.75rem; }
}


/* ==========================================================================
   ARTICLE PAGE — Copenhagen base layout override
   ========================================================================== */

/* --------------------------------------------------------------------------
   Article header — full width soft band above the layout
   -------------------------------------------------------------------------- */

.ff-article-header {
  background: var(--ff-surface-soft);
  border-bottom: 1px solid var(--ff-border);
  padding: 1.75rem 0 1.5rem;
}

.ff-article-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ff-breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ff-ink-muted);
}

.ff-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ff-breadcrumb a {
  color: var(--ff-ink-muted);
  text-decoration: none;
  transition: color 120ms;
}

.ff-breadcrumb a:hover { color: var(--ff-brand); }

.ff-article-title {
  font-family: var(--ff-font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #1D2939;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.875rem;
}

.ff-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #68737D;
}

.ff-article-meta__sep { opacity: 0.4; }

/* --------------------------------------------------------------------------
   Article layout — sidebar + body
   -------------------------------------------------------------------------- */

.ff-article-layout-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.ff-article-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   Sidebar — native section.articles, no JS
   -------------------------------------------------------------------------- */

.ff-article-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.ff-sidebar-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #68737D;
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--ff-border);
}

.ff-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.ff-sidebar-item { margin-bottom: 1px; }

.ff-sidebar-link {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: #68737D;
  text-decoration: none;
  border-radius: var(--ff-radius-sm);
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: background 100ms, color 100ms, border-color 100ms;
}

.ff-sidebar-link:hover {
  background: var(--ff-surface-soft);
  color: #1D2939;
  text-decoration: none;
}

.ff-sidebar-link.is-active {
  background: var(--ff-brand-light);
  color: var(--ff-brand);
  font-weight: 500;
  border-left-color: var(--ff-brand);
}

.ff-sidebar-more {
  font-size: 12px;
  color: var(--ff-brand);
  text-decoration: none;
  padding: 4px 8px;
  display: inline-block;
}

.ff-sidebar-more:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Article body — typography with best-practice colors
   -------------------------------------------------------------------------- */

.ff-article__body {
  font-family: var(--ff-font) !important;
  font-size: 15px;
  line-height: 1.75;
  color: #2F3941;
  max-width: 100%;
  width: 100%;
}

.ff-article__body p { margin: 0 0 1.125rem; color: #2F3941; }

.ff-article__body h2 {
  font-family: var(--ff-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1D2939;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ff-border);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ff-article__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ff-article__body h3 {
  font-family: var(--ff-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #1D2939;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.ff-article__body h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #68737D;
  margin: 1.5rem 0 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Links — medium blue, not purple. Blue signals "clickable" without
   demanding attention. Matches Atlassian, Zendesk, Stripe docs. */
.ff-article__body a {
  color: #4C0E9A;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 120ms;
}

.ff-article__body a:hover { color: #3A0A75; }
.ff-article__body a:visited { color: #6C00DB; }

.ff-article__body ul,
.ff-article__body ol {
  padding-left: 1.375rem;
  margin: 0 0 1.125rem;
}

.ff-article__body li { margin-bottom: 0.4rem; line-height: 1.7; }
.ff-article__body ul li::marker { color: var(--ff-brand); }

/* Ordered steps */
.ff-article__body ol {
  padding-left: 1.5rem;
  list-style: decimal;
  margin-bottom: 1.25rem;
}

.ff-article__body ol li {
  display: list-item;
  margin-bottom: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.7;
}

.ff-article__body ol li::before {
  display: none;
}

.ff-article__body ol li::marker {
  color: var(--ff-brand);
  font-weight: 600;
}

.ff-article__body ol li strong,
.ff-article__body ol li b {
  font-weight: 600;
  color: #1D2939;
}

.ff-article__body ol li code {
  display: inline !important;
  vertical-align: baseline;
}

.ff-article__body strong { color: #1D2939; font-weight: 600; }

/* Inline code */
.ff-article__body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: var(--ff-surface-mid);
  color: #1D2939;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--ff-border);
}

/* Code block */
.ff-article__body pre {
  background: #1D2939;
  color: #E8E5F2;
  padding: 1.25rem 1.5rem;
  border-radius: var(--ff-radius);
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.ff-article__body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Blockquote / callout */
.ff-article__body blockquote {
  border-left: 3px solid var(--ff-brand);
  background: #EFF6FF;
  padding: 0.875rem 1rem;
  border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
  margin: 1.25rem 0;
  color: #2F3941;
  font-size: 0.9375rem;
}

/* Tables */
.ff-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  overflow: hidden;
}

.ff-article__body th {
  background: var(--ff-surface-soft);
  font-weight: 600;
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--ff-border);
  font-size: 0.75rem;
  color: #1D2939;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ff-article__body td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--ff-border);
  vertical-align: top;
  color: #2F3941;
}

.ff-article__body tr:last-child td { border-bottom: none; }
.ff-article__body tr:nth-child(even) td { background: var(--ff-surface-soft); }

/* Images */
.ff-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ff-radius);
  border: 1px solid var(--ff-border);
  display: block;
  margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   Vote bar
   -------------------------------------------------------------------------- */

.ff-vote-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--ff-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.ff-vote-bar__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1D2939;
  flex: 1;
  min-width: 140px;
}

.ff-vote-btn {
  border: 1.5px solid var(--ff-border-mid);
  background: var(--ff-surface);
  border-radius: var(--ff-radius-sm);
  color: #68737D;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 16px;
  cursor: pointer;
  font-family: var(--ff-font);
  transition: border-color 120ms, color 120ms, background 120ms;
}

.ff-vote-btn:hover,
.ff-vote-btn.is-voted {
  border-color: var(--ff-brand);
  color: var(--ff-brand);
  background: var(--ff-brand-light);
}

.ff-vote-bar__downmsg {
  display: none;
  width: 100%;
  font-size: 0.875rem;
  color: #68737D;
}

.ff-vote-bar__downmsg a { color: var(--ff-brand); }
.ff-vote-bar__downmsg p { margin: 0; }

/* --------------------------------------------------------------------------
   Attachments
   -------------------------------------------------------------------------- */

.ff-attachments {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--ff-border);
  padding-top: 1rem;
}

.ff-attachment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #2F3941;
}

.ff-attachment a { color: #4C0E9A; }
.ff-attachment__size { color: #68737D; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .ff-article-layout {
    grid-template-columns: 1fr;
  }

  .ff-article-sidebar {
    position: static;
    border-bottom: 1px solid var(--ff-border);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .ff-article-layout-wrap { padding: 0 1rem 3rem; }
  .ff-article-header__inner { padding: 0 1rem; }
}


/* ==========================================================================
   TOPBAR — clean rebuild
   Logo | search | nav links | CTA
   ========================================================================== */

.ff-topbar {
  background: var(--ff-surface);
  border-bottom: 1px solid var(--ff-border);
  box-shadow: 0 1px 3px rgba(15,10,30,0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}

.ff-topbar__inner {
  max-width: var(--ff-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Brand */
.ff-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.ff-topbar__logo-link {
  display: flex;
  align-items: center;
}

.ff-topbar__logo {
  height: 26px;
  width: auto;
}

.ff-topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--ff-border-mid);
  display: block;
}

.ff-topbar__wordmark {
  font-family: var(--ff-font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ff-ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Search — takes up available space in the middle */
.ff-topbar__search {
  flex: 1;
  max-width: 400px;
  min-width: 0;
  position: relative;
}

/* Copenhagen .search wrapper */
.ff-topbar__search .search {
  border: 1.5px solid var(--ff-border);
  border-radius: 50px;
  background: var(--ff-surface-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  height: 36px;
}

.ff-topbar__search .search:focus-within {
  border-color: var(--ff-brand);
  background: var(--ff-surface);
  box-shadow: 0 0 0 3px rgba(255,75,17,0.1);
}

/* Input — both Braden (.search-box__input) and Copenhagen patterns */
.ff-topbar__search .search input[type="search"],
.ff-topbar__search .search-box__input,
.ff-topbar__search input[type="search"] {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 36px;
  font-size: 0.875rem;
  font-family: var(--ff-font) !important;
  border: 1.5px solid var(--ff-border);
  border-radius: 50px;
  background: var(--ff-surface-soft);
  color: var(--ff-ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.ff-topbar__search .search input[type="search"] {
  border: none;
  background: transparent;
  height: 32px;
  box-shadow: none;
}

.ff-topbar__search .search input[type="search"]:focus {
  box-shadow: none;
  outline: none;
}

.ff-topbar__search input[type="search"]:focus,
.ff-topbar__search .search-box__input:focus {
  border-color: var(--ff-brand);
  background: var(--ff-surface);
  box-shadow: 0 0 0 3px rgba(255,75,17,0.1);
}

/* Search icon — injected by JS below */
.ff-topbar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ff-ink-muted);
  pointer-events: none;
  width: 14px;
  height: 14px;
  z-index: 1;
}

/* Hide submit button — we use instant search, no button needed */
.ff-topbar__search .search-box__submit,
.ff-topbar__search button[type="submit"],
.ff-topbar__search input[type="submit"],
.ff-topbar__search .search__submit {
  display: none !important;
}

/* Hide the clear button that appears inside .search */
.ff-topbar__search .clear-button {
  display: none !important;
}

/* Copenhagen's search-icon (the magnifier inside .search) */
.ff-topbar__search .search-icon {
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--ff-ink-muted);
}

/* Nav */
.ff-topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.ff-topbar__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ff-ink-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms;
}

.ff-topbar__link:hover { color: var(--ff-ink); text-decoration: none; }

.ff-topbar__cta {
  background: var(--ff-brand);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease;
  flex-shrink: 0;
}

.ff-topbar__cta:hover { background: var(--ff-brand-hover); color: #fff !important; text-decoration: none; }

/* User dropdown */
.ff-topbar__user { position: relative; }

.ff-topbar__user-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  color: var(--ff-ink-mid);
}

.ff-topbar__user-btn .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Mobile toggle — hidden on desktop */
.ff-topbar__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ff-ink-mid);
  padding: 4px;
  margin-left: auto;
}

/* Mobile drawer */
.ff-topbar__mobile-drawer {
  display: none;
  border-top: 1px solid var(--ff-border);
  background: var(--ff-surface);
  padding: 1rem 1.5rem;
}

.ff-topbar__mobile-drawer.is-open { display: block; }

.ff-topbar__mobile-search { margin-bottom: 1rem; }

.ff-topbar__mobile-search input[type="search"] {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font-family: var(--ff-font) !important;
  font-size: 0.9rem;
  border: 1.5px solid var(--ff-border);
  border-radius: 50px;
  background: var(--ff-surface-soft);
  outline: none;
}

.ff-topbar__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ff-topbar__mobile-link {
  display: block;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--ff-ink-mid);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ff-border);
}

.ff-topbar__mobile-link:last-child { border-bottom: none; }

.ff-topbar__mobile-cta {
  color: var(--ff-brand) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ff-topbar__search,
  .ff-topbar__nav { display: none; }
  .ff-topbar__mobile-toggle { display: flex; }
}

/* Hide old topbar classes that might bleed through */
.topbar { display: none !important; }


/* ==========================================================================
   ARTICLE LAYOUT — two columns: sidebar | body
   ========================================================================== */

.ff-article-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 1.75rem;
}

/* ==========================================================================
   TOC — right column, sticky
   ========================================================================== */

.ff-toc {
  display: none !important;
}

.ff-toc__inner {
  padding-left: 1rem;
  border-left: 1px solid var(--ff-border);
}

.ff-toc__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #68737D;
  margin-bottom: 0.625rem;
}

.ff-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ff-toc__item { margin-bottom: 2px; }

.ff-toc__link {
  display: block;
  font-size: 12px;
  color: #68737D;
  text-decoration: none;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  margin-left: -1rem;
  line-height: 1.4;
  transition: color 120ms, border-color 120ms;
}

.ff-toc__link:hover {
  color: var(--ff-ink);
  text-decoration: none;
}

.ff-toc__link.is-active {
  color: var(--ff-brand);
  border-left-color: var(--ff-brand);
  font-weight: 500;
}

/* Responsive: drop TOC at 1100px, sidebar at 768px */
@media (max-width: 1100px) {
  .ff-article-layout {
    grid-template-columns: 200px 1fr;
  }
  .ff-toc { display: none; }
}

@media (max-width: 768px) {
  .ff-article-layout {
    grid-template-columns: 1fr;
  }
  .ff-article-sidebar {
    position: static;
    border-bottom: 1px solid var(--ff-border);
    padding-bottom: 1.25rem;
    margin-bottom: 0;
    max-height: none;
    overflow: visible;
  }
}


/* ==========================================================================
   LANDING PAGE LAYOUT
   Applied when .is-landing-page is detected (sidebar has only 1 article).
   Wider content, tighter spacing, reduced whitespace for better readability.
   ========================================================================== */

.ff-article-layout.is-landing-page {
  display: block;
  padding-top: 1.25rem;
}

/* Full-width content — no sidebar, no centering constraint */
.ff-article-layout.is-landing-page .ff-article {
  max-width: 900px;
  margin: 0;
}

/* Landing page header — tighter top spacing */
.ff-article-layout-wrap:has(.is-landing-page) {
  padding-top: 0;
}

.ff-article-header {
  padding-bottom: 0.75rem;
}

/* Landing page body — tighter type, less vertical breathing room */
.ff-article-layout.is-landing-page .ff-article__body {
  max-width: 100%;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Headings — tighter margins, compact visual rhythm */
.ff-article-layout.is-landing-page .ff-article__body h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.375rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ff-border);
}

.ff-article-layout.is-landing-page .ff-article__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ff-article-layout.is-landing-page .ff-article__body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Paragraphs — tighter */
.ff-article-layout.is-landing-page .ff-article__body p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Links — clear task-link style */
.ff-article-layout.is-landing-page .ff-article__body a {
  font-weight: 500;
}

/* Lists — compact link list, no decoration noise */
.ff-article-layout.is-landing-page .ff-article__body ul {
  padding-left: 0;
  list-style: none;
  margin: 0.25rem 0 0.75rem;
}

.ff-article-layout.is-landing-page .ff-article__body ul li {
  padding: 0.2rem 0;
  margin-bottom: 0.125rem;
  line-height: 1.5;
}

.ff-article-layout.is-landing-page .ff-article__body ul li::before {
  content: '→';
  margin-right: 0.5rem;
  color: var(--ff-brand);
  font-size: 0.75rem;
}

.ff-article-layout.is-landing-page .ff-article__body ol {
  padding-left: 0;
  list-style: none;
}

.ff-article-layout.is-landing-page .ff-article__body ol li {
  display: block;
  padding: 0.2rem 0;
  margin-bottom: 0.125rem;
  line-height: 1.5;
}

.ff-article-layout.is-landing-page .ff-article__body ol li::before {
  display: none;
}

.ff-article-layout.is-landing-page .ff-article__body ol li::marker {
  display: none;
}

/* Horizontal rules — subtle dividers between sections */
.ff-article-layout.is-landing-page .ff-article__body hr {
  display: none;
}

/* Hide vote bar — not useful for navigation hubs */
.ff-article-layout.is-landing-page ~ .ff-vote-bar,
.ff-article-layout.is-landing-page .ff-vote-bar {
  display: none;
}

/* --------------------------------------------------------------------------
   ARTICLE AUTHOR — real name + avatar from Zendesk
   -------------------------------------------------------------------------- */

.ff-article-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ff-article-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ff-border);
  flex-shrink: 0;
}

.ff-article-author__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1D2939;
}

/* --------------------------------------------------------------------------
   CATEGORY CARDS — refinements + featured variants for Amaya & Kona
   -------------------------------------------------------------------------- */

/* Tighter, more refined card grid */
.ff-cat-card {
  padding: 1.125rem 1rem;
  gap: 0.375rem;
}

.ff-cat-card__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.ff-cat-card__desc {
  font-size: 0.75rem;
  color: var(--ff-ink-muted);
  line-height: 1.4;
}

/* Featured cards — Amaya and Kona get accent treatment */
.ff-cat-card--featured {
  border-color: var(--ff-brand);
  background: linear-gradient(135deg, #fff 60%, #FFF2EE 100%);
  position: relative;
}

.ff-cat-card--featured .ff-cat-card__name {
  color: var(--ff-brand);
}

.ff-cat-card--featured::before {
  content: 'AI';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ff-brand);
  background: var(--ff-brand-light);
  padding: 2px 6px;
  border-radius: 50px;
}

/* --------------------------------------------------------------------------
   [NEEDS VERIFICATION] — hide or badge internal-only articles
   -------------------------------------------------------------------------- */

/* Hide article title text that starts with [NEEDS VERIFICATION] from public */
.article-title[data-needs-verification],
h1.ff-article-title[data-needs-verification] {
  display: none;
}

/* JS will add this class; also handle via CSS attr selector as fallback */
/* Applied by the script below to any h1 starting with that prefix */
.ff-needs-verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #FFF8EE;
  color: #D97706;
  border: 1px solid #F59E0B;
  padding: 3px 9px;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  display: block;
  width: fit-content;
}

/* Hero search wrapper — force pill shape on the Zendesk .search container */
.ff-hero .search {
  border-radius: 50px !important;
  border: none !important;
  background: transparent !important;
  overflow: visible;
}

/* Placeholder text — "Search the Help Center…" */
.ff-hero .search-box input[type="search"]::placeholder,
.ff-hero .search input[type="search"]::placeholder,
.ff-hero input[type="search"]::placeholder {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

/* ==========================================================================
   ROLE TABLE — "Start here by role" card treatment
   Applies only on landing pages. Transforms the standard 3-col role table
   into visually distinct role cards with clear headers and action links.
   Scoped to .is-landing-page to avoid affecting regular article tables.
   ========================================================================== */

/* Override table chrome */
.ff-article-layout.is-landing-page .ff-article__body table,
.ff-article-layout.is-landing-page .article__body table {
  border: 1px solid var(--ff-border);
  border-collapse: collapse;
  border-radius: 10px;
  background: none;
  margin: 0.5rem 0 1.5rem;
  width: 100%;
  overflow: hidden;
}

/* Each td is a clean column */
.ff-article-layout.is-landing-page .ff-article__body td,
.ff-article-layout.is-landing-page .article__body td {
  background: var(--ff-surface-soft);
  border: none;
  border-right: 1px solid var(--ff-border);
  padding: 1rem 1.125rem;
  vertical-align: top;
  width: 33.333%;
}

.ff-article-layout.is-landing-page .ff-article__body td:last-child,
.ff-article-layout.is-landing-page .article__body td:last-child {
  border-right: none;
}

/* Remove zebra striping */
.ff-article-layout.is-landing-page .ff-article__body tr:nth-child(even) td,
.ff-article-layout.is-landing-page .article__body tr:nth-child(even) td {
  background: var(--ff-surface-soft);
}
.ff-article-layout.is-landing-page .ff-article__body tr:last-child td,
.ff-article-layout.is-landing-page .article__body tr:last-child td {
  border-bottom: 1px solid var(--ff-border);
}

/* th header cells */
.ff-article-layout.is-landing-page .ff-article__body th,
.ff-article-layout.is-landing-page .article__body th {
  background: var(--ff-ink);
  color: #fff;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Role column headers — <strong> unwrapped from <p> by JS, direct td child */
.ff-article-layout.is-landing-page .ff-article__body td > strong,
.ff-article-layout.is-landing-page .article__body td > strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ff-ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ff-brand);
}

/* Links — clean block links, no arrows */
.ff-article-layout.is-landing-page .ff-article__body td a,
.ff-article-layout.is-landing-page .article__body td a {
  display: block;
  color: #4C0E9A;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.45;
  padding: 0.3125rem 0;
  border-bottom: none;
}

.ff-article-layout.is-landing-page .ff-article__body td a:hover,
.ff-article-layout.is-landing-page .article__body td a:hover {
  color: var(--ff-brand);
  text-decoration: underline;
}

/* Hide empty p tags and bare-text p tags (the stray → arrows).
   p:not(:has(*)) = paragraph with no child elements = pure text = arrow character */
.ff-article-layout.is-landing-page .ff-article__body td p:empty,
.ff-article-layout.is-landing-page .article__body td p:empty,
.ff-article-layout.is-landing-page .ff-article__body td p:not(:has(*)),
.ff-article-layout.is-landing-page .article__body td p:not(:has(*)) {
  display: none;
}

/* Tighten p tags that wrap links */
.ff-article-layout.is-landing-page .ff-article__body td p,
.ff-article-layout.is-landing-page .article__body td p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Hide empty rows */
.ff-article-layout.is-landing-page .ff-article__body tr:has(td:empty),
.ff-article-layout.is-landing-page .article__body tr:has(td:empty) {
  display: none;
}

/* --------------------------------------------------------------------------
   ARTICLE BODY — interrupted ordered lists
   When a <ul> appears between <ol> items, the ol counter resets.
   This is a content structure issue from the pipeline. Until fixed at source,
   style intervening <ul> items as subordinate definition-style content.
   -------------------------------------------------------------------------- */

/* Unordered lists that are siblings of ol (the broken pattern) */
.ff-article__body ol + ul,
.article__body ol + ul {
  margin: 0 0 0.5rem 0;
  padding-left: 0;
  list-style: none;
  background: var(--ff-surface-soft);
  border-left: 3px solid var(--ff-border);
  border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
  padding: 0.5rem 0.875rem;
}

.ff-article__body ol + ul li,
.article__body ol + ul li {
  padding: 0.1875rem 0;
  font-size: 0.9rem;
  color: var(--ff-ink-mid);
  margin-bottom: 0;
}

.ff-article__body ol + ul li::before,
.article__body ol + ul li::before {
  display: none;
}

/* ──────────────────────────────────────────────────────────────────
   ARTICLE-BODY LIST MARKER FIX
   ──────────────────────────────────────────────────────────────────
   Context:
     style.css line ~309 globally resets `ul { list-style: none }`.
     Earlier rules in this file restore `list-style: decimal` for
     `<ol>` inside articles, but never restored `list-style: disc`
     for `<ul>`, so bullets disappeared in article bodies.

   Scope:
     All selectors are anchored to the article body container
     (`.ff-article__body`, plus the legacy `.article__body` and
     `.markdown` classes the same element also carries). Navigation
     menus, sidebars, TOCs, footer lists, and other `<ul>` lists
     elsewhere in the theme are NOT touched.

   Specificity / inline styles:
     No `!important` is used, so any element with an inline
     `style="list-style: …"` attribute will continue to win on
     specificity and keep its author-supplied marker.
   ────────────────────────────────────────────────────────────── */

/* 1 — Restore default markers on top-level lists in article bodies */
.ff-article__body > ul,
.ff-article__body ul,
.article__body ul,
.ff-article__body.markdown ul {
  list-style: disc;
  padding-left: 20px;
}

.ff-article__body > ol,
.ff-article__body ol,
.article__body ol,
.ff-article__body.markdown ol {
  list-style: decimal;
  padding-left: 20px;
}

/* 2 — Nested unordered lists: disc → circle → square (browser default) */
.ff-article__body ul ul,
.article__body ul ul {
  list-style: circle;
}

.ff-article__body ul ul ul,
.article__body ul ul ul {
  list-style: square;
}

/* 3 — Nested ordered lists: decimal → lower-alpha → lower-roman
   (Not in the original spec but a natural counterpart to the
   ul nesting rules above; remove if you prefer plain decimal.) */
.ff-article__body ol ol,
.article__body ol ol {
  list-style: lower-alpha;
}

.ff-article__body ol ol ol,
.article__body ol ol ol {
  list-style: lower-roman;
}

/* 4 — Lists inside styled callout blocks (e.g. <div data-callout="note">).
   The descendant rules in section 1 already cover these, but this
   explicit rule documents the intent and guards against future
   callout markup that might add its own `list-style: none` reset. */
.ff-article__body [data-callout] ul,
.article__body [data-callout] ul {
  list-style: disc;
  padding-left: 20px;
}

.ff-article__body [data-callout] ol,
.article__body [data-callout] ol {
  list-style: decimal;
  padding-left: 20px;
}

.ff-article__body [data-callout] ul ul,
.article__body [data-callout] ul ul {
  list-style: circle;
}

.ff-article__body [data-callout] ul ul ul,
.article__body [data-callout] ul ul ul {
  list-style: square;
}

/* End of ARTICLE-BODY LIST MARKER FIX ─────────────────────────── */
