@charset "UTF-8";

/* ============================================================
   FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* Avenir kept for fallback compatibility with existing asset references */
@font-face {
    font-family: 'Avenir';
    src: url('/hc/theming_assets/01J2KK2TTZ18BR4GMVTPDS5R0B') format('woff2'),
         url('/hc/theming_assets/01J2KK2Q8JP1AX866VM0886TF8') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   BRAND TOKENS
   ============================================================ */

:root {
  --bone:         #F7F3F0;
  --black:        #000000;
  --cobalt:       #0129F1;
  --lime:         #DCEC5A;
  --aero:         #88A7F1;
  --melon:        #FDB19F;
  --rose:         #EF6376;
  --text:         #1a1a1a;
  --text-muted:   #666666;
  --border:       #e5e1dd;
  --bg:           #F7F3F0;
  --header-bg:    #000000;
  --header-text:  #FFFFFF;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --header-height: 60px;
  --sidebar-width: 300px;
  --toc-width:     240px;
  --container-max: 1280px;
  --radius:        6px;
}

/* ============================================================
   CATEGORY ICONS (kept from original)
   ============================================================ */

/* Current category IDs (as of 2026-05) */
#cat-icon-40642290929559 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7455M5D4HRW87MM2DJ); }   /* Getting started */
#cat-icon-40641109592727 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KSJFHG5QBJQY399EM670HFM8); }              /* Products & subscriptions */
#cat-icon-40641205509015 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z2PGHD5W2SMB98PKPEY); }         /* Customer experience */
#cat-icon-40641565558551 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z47WCEP7A3J5PHYPWXM); }      /* Customer & order management */
#cat-icon-40641757314327 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4YJVYR7DXKPSQHE52N9G); }    /* Automation */
#cat-icon-40642378929559 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z5RM3CNFGTNSAP4X4T9); }           /* Analytics */
#cat-icon-40641627571223 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7E8FN0RQQZ0S3ZJTYN); }            /* Marketing & growth */
#cat-icon-40642429690775 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KSJFHG919B0BXE8D5F3TDNP2); }            /* Tools & Integrations */
#cat-icon-40642403542551 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z5RM3CNFGTNSAP4X4T9); }           /* Store settings */
/* Legacy IDs kept as fallback */
#cat-icon-360000413333 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7455M5D4HRW87MM2DJ); }
#cat-icon-360000575873 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z47WCEP7A3J5PHYPWXM); }
#cat-icon-360000578374 .topic-icon-wrap,
#cat-icon-22035571863063 .topic-icon-wrap,
#cat-icon-22036705082647 .topic-icon-wrap,
#cat-icon-22036718555927 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z2PGHD5W2SMB98PKPEY); }
#cat-icon-360000578474 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4YJVYR7DXKPSQHE52N9G); }
#cat-icon-4402890631959 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7E8FN0RQQZ0S3ZJTYN); }
#cat-icon-360001620733 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z5RM3CNFGTNSAP4X4T9); }
#cat-icon-16480419177623 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7455M5D4HRW87MM2DJ); }
#cat-icon-16480405538327 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z47WCEP7A3J5PHYPWXM); }
#cat-icon-16480383553047 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z2PGHD5W2SMB98PKPEY); }
#cat-icon-16480429539223 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4YJVYR7DXKPSQHE52N9G); }
#cat-icon-16480415011479 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z7E8FN0RQQZ0S3ZJTYN); }
#cat-icon-16480426245271 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4Z5RM3CNFGTNSAP4X4T9); }
#cat-icon-24259429635607 .topic-icon-wrap { background-image: url(/hc/theming_assets/01KS5V4YJVYR7DXKPSQHE52N9G); }

.icon-shopify, .icon-shopify_int   { background-image: url(/hc/theming_assets/01KS2ZR0STMA9DPKPW3FGNRX7V); }
.icon-migrated_int                 { background-image: url(/hc/theming_assets/01KSNDNWJZVC3XWHGS467N3SWG); }
.icon-recharge, .icon-rc_shopify   { background-image: url(/hc/theming_assets/01KS2ZR0SKS68WS9Q7DQRJ3CZY); }
.icon-bigcommerce_int, .icon-bc_int { background-image: url(/hc/theming_assets/01KS2ZR0TKY010TMFTGWM1F9JV); }
.icon-bigcommerce, .icon-rc_bigcommerce { background-image: url(/hc/theming_assets/01KS2ZR0K640X47KXZHMV54GRT); }
.icon-recharge-api, .icon-rc_api   { background-image: url(/hc/theming_assets/01KS2ZR0V6B71AZ513N3PPFCPC); }
.icon-identify-platform             { background-image: url(/hc/theming_assets/01KS2ZR099XX68S62KRJABP59C); }

.filters-in-section i {
  width: 21px; height: 21px;
  display: inline-block;
  margin-right: 5px;
  background-repeat: no-repeat;
  background-size: 22px;
}

.article-labels i.icon-rc_shopify,
.article-labels i.icon-shopify_int,
.article-labels i.icon-migrated_int,
.article-labels i.icon-rc_bigcommerce,
.article-labels i.icon-bc_int,
.article-labels i.icon-rc_api { display: block; }

.breadcrumbs li + li::before { background-image: url(/hc/theming_assets/01KS2ZR0PYH0E0R16JQWV928Y7); }

/* ============================================================
   NORMALIZE
   ============================================================ */

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template, [hidden] { display: none; }

/* ============================================================
   BASE
   ============================================================ */

* { box-sizing: border-box; }

body {
  background-color: var(--bone);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body > main { min-height: 65vh; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-top: 0;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; font-weight: 500; }
h4 { font-size: 16px; font-weight: 500; }

a { color: var(--cobalt); text-decoration: none; }
a:hover, a:active, a:focus { text-decoration: underline; }

input, textarea { color: var(--black); font-size: 14px; }
input { font-weight: 400; max-width: 100%; box-sizing: border-box; transition: border .12s ease-in-out; }
input:not([type="checkbox"]) { outline: none; }
input:not([type="checkbox"]):focus { border: 1px solid var(--cobalt); }
input[disabled] { background-color: #ddd; }

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23CCC' d='M0 0h10L5 6 0 0z'/%3E%3C/svg%3E") no-repeat #fff;
  background-position: right 10px center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 30px 8px 10px;
  outline: none;
  color: var(--text);
  width: 100%;
}
select:focus { border: 1px solid var(--cobalt); }
select::-ms-expand { display: none; }

textarea { border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; width: 100%; outline: none; padding: 10px; }
textarea:focus { border: 1px solid var(--cobalt); }

.container {
  margin: 0 auto;
  max-width: var(--container-max);
  padding: 0 24px;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.skip-navigation {
  position: fixed;
  top: -100px;
  left: 8px;
  background: var(--cobalt);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  font-size: 14px;
  transition: top .2s;
}
.skip-navigation:focus { top: 8px; }

.visibility-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */

.alertbox { width: 100%; }

.header {
  background-color: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  width: 100%;
  left: 0;
  right: 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 32px;
}

.header .logo a { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 24px; width: auto; display: block; }
.homepage-hero ~ * .homepage-logo { display: none; }

.header .nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .user-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .user-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.header .user-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.header .user-nav a.button {
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.header .user-nav a.button:hover { background: #0222cc; color: #fff; text-decoration: none; }

/* User dropdown */
.user-info .dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-chevron-icon { vertical-align: middle; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 200;
}
.dropdown-menu { display: none; }
.dropdown-menu[aria-expanded="true"] { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a:hover { background: var(--bone); }

/* Mobile burger */
.menu-button {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
}

/* Interior header modifier */
.interior-header { background-color: var(--black); }

/* ============================================================
   SUB-HEADER BAR — breadcrumbs (left) + search (right), full width
   sits between main header and 3-column layout. Skio-style.
   ============================================================ */
.sub-header-bar {
  background: #faf7f5;
  border-bottom: 1px solid var(--border);
  width: 100%;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
}
.sub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 32px;
  width: 100%;
}
.sub-header-breadcrumbs {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sub-header-breadcrumbs .breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-header-breadcrumbs .breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.sub-header-breadcrumbs .breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.sub-header-breadcrumbs .breadcrumbs a:hover { color: var(--cobalt); }

.sub-header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sub-header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
.sub-header-search input[type="search"],
.sub-header-search input[type="text"] {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 7px 12px 7px 34px;
  border-radius: var(--radius);
  width: 280px;
  height: 34px;
  outline: none;
  transition: border-color .15s;
}
.sub-header-search input::placeholder { color: var(--text-muted); }
.sub-header-search input:focus { border-color: var(--cobalt); }

/* Hide sub-header bar on the homepage (hero has the big search and no breadcrumbs) */
body:has(.homepage-hero) .sub-header-bar { display: none; }

@media (max-width: 767px) {
  .menu-button { display: flex; align-items: center; justify-content: center; }
  .hide-mobile { display: none !important; }
  .header .user-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 99;
  }
  .header .user-nav[aria-expanded="true"] { display: flex; }
  .header .user-nav a { width: 100%; padding: 12px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .header .user-nav a.button { margin-top: 12px; border-radius: var(--radius); text-align: center; }

  /* Mobile: hide breadcrumbs in sub-header (mobile-article-bar handles nav), show only search */
  .sub-header-bar { padding: 0; margin: 0; }
  .sub-header-inner {
    padding: 8px 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sub-header-breadcrumbs { display: none; }
  .sub-header-search {
    display: block;
    width: 100%;
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
  }
  .sub-header-search form,
  .sub-header-search .search,
  .sub-header-search form.search {
    display: block !important;
    width: 100% !important;
    margin: 0;
  }
  .sub-header-search input[type="search"],
  .sub-header-search input[type="text"] {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    border-radius: var(--radius);
  }
}

/* ============================================================
   HERO (homepage) — compact so topics are visible below fold
   ============================================================ */

.homepage-hero {
  background-color: var(--black);
  padding: 48px 24px 52px;
  text-align: center;
}

.homepage-hero .hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.home_page_h1_font {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.homepage-hero .search-container {
  position: relative;
  width: 100%;
}

.homepage-hero .search-container .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}

.homepage-hero .search-container input[type="search"],
.homepage-hero .search-container input[type="text"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.homepage-hero .search-container input:focus { border-color: var(--cobalt); }

@media (max-width: 767px) {
  .homepage-hero { padding: 36px 16px 40px; }
  .home_page_h1_font { font-size: 28px; }
}

/* ============================================================
   ALT BACKGROUND
   ============================================================ */

.alt-bg {
  background-color: #fff;
  padding: 48px 0;
}
.alt-bg .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 80px;
}

/* ============================================================
   BROWSE BY TOPIC (topic grid)
   ============================================================ */


.knowledge-base h2 {
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  text-align: center;
}

.promoted-selector h2 {
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: center;
}

.knowledge-base {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.topic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}


.topic-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.topic-name {
  font-size: 19px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.topic-name a {
  color: var(--black);
  text-decoration: none;
}
.topic-name a:hover { color: var(--cobalt); }

.topic-sections {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.topic-sections li:nth-child(n+4) { display: none; }

.topic-sections li a {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}
.topic-sections li a:hover { color: var(--cobalt); }

.topic-see-all {
  font-size: 16px;
  font-weight: 500;
  color: var(--cobalt);
  text-decoration: none;
  margin-top: auto;
}
.topic-see-all:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topic-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROMOTED ARTICLES
   ============================================================ */

.promoted-selector {
  padding: 0 0 32px 0 !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.promoted-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 8px;
}

.promoted-articles-item {
  margin-bottom: 4px;
  text-align: center;
  break-inside: avoid;
}

.promoted-articles-item a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  font-family: var(--font-body);
  padding: 6px 0;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .15s, text-decoration-color .15s, text-decoration-thickness .15s;
}
.promoted-articles-item a::after {
  content: '→';
  color: var(--text-muted);
  transition: transform .2s, color .15s;
  display: inline-block;
}
.promoted-articles-item a:hover {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
}
.promoted-articles-item a:hover::after {
  color: var(--cobalt);
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .promoted-articles { columns: 1; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  gap: 4px;
  align-items: center;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.4;
}

/* ============================================================
   SUB-NAV (interior pages)
   ============================================================ */

.sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.sub-nav .search-container {
  position: relative;
  width: 280px;
}
.sub-nav .search-container .search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.sub-nav .search-container input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff;
}
.sub-nav .search-container input:focus { border-color: var(--cobalt); outline: none; }

/* ============================================================
   3-COLUMN ARTICLE LAYOUT
   ============================================================ */

.interior-with-sidebar {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-height));
}

/* Left nav — shared by all interior pages */
.sidebar,
.article-left-nav {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--bone);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar,
.article-left-nav::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track,
.article-left-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb,
.article-left-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Article TOC (right) */
.article-toc {
  width: var(--toc-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 60px); /* below sub-header bar */
  height: calc(100vh - var(--header-height) - 60px);
  overflow: visible; /* allow toggle button to stick out left */
  border-left: 1px solid var(--border);
  background: #FCFAF9;
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.article-toc .toc-sticky {
  position: relative;
  max-height: calc(100vh - var(--header-height) - 60px - 48px);
  overflow-y: auto;
  padding: 0 20px;
}
.article-toc::-webkit-scrollbar { width: 4px; }
.article-toc::-webkit-scrollbar-track { background: transparent; }
.article-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* TOC collapse toggle — always fixed so it stays visible even when TOC is hidden */
.toc-toggle-btn {
  position: absolute;
  top: 20px; /* align with the "In this article" heading */
  left: -12px; /* straddle the TOC's left border */
  width: 24px;
  height: 24px;
  z-index: 5;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  transition: color .15s, border-color .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.toc-toggle-btn:hover { color: var(--black); border-color: var(--black); }

.article-layout.toc-collapsed .article-toc {
  width: 0;
  overflow: visible;
  border-left: none;
  background: transparent;
  padding: 0;
}
.article-layout.toc-collapsed .article-toc .toc-sticky { display: none; }
.article-layout.toc-collapsed .toc-toggle-btn { left: -12px; }

/* (.toc-sticky styles consolidated above with overflow scroll) */

.toc-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 400;
}

#toc-nav { display: flex; flex-direction: column; gap: 2px; }

#toc-nav a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: color .1s, border-color .1s, background .1s;
}
#toc-nav a:hover { color: var(--black); background: var(--border); }
#toc-nav a.toc-active { color: var(--cobalt); border-left-color: var(--cobalt); background: rgba(1,41,241,.05); }

#toc-nav a.toc-h3 { padding-left: 20px; font-size: 12px; }

/* Main content area */
.interior-content {
  flex: 1;
  min-width: 0;
  background: #fff;
}

.interior-content .container {
  max-width: 820px;
  padding: 40px 48px;
  margin: 0;
}

/* Article pages: content fills space between nav and TOC */
.article-layout .interior-content .container {
  max-width: none;
}

/* ============================================================
   DYNAMIC MENU (left sidebar nav)
   ============================================================ */

#dynamic-menu-container { padding: 4px 0; }

#menu ul { list-style: none; margin: 0; padding: 0; }

/* Collapse all nested lists by default — only show when parent li is open */
#menu ul ul { display: none; }
#menu li.open > ul { display: block; }

/* Category header label */
#menu .cat-menu-list > span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--black);
  font-weight: 700;
  padding: 12px 16px 6px;
  cursor: default;
  user-select: none;
}
#menu > ul > .cat-menu-list:first-child > span {
  padding-top: 4px;
}

/* Section title row (clickable) */
#menu .sect-menu-list > span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  padding: 6px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .1s;
  user-select: none;
}
#menu .sect-menu-list > span:hover { background: rgba(0,0,0,.04); }
#menu .sect-menu-list.open > span { color: var(--black); }

/* Article list under an open section — vertical connector line */
#menu .sect-menu-list.open > ul {
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

/* Article links */
#menu a,
#menu .art-link {
  display: block;
  font-size: 13px;
  padding: 5px 10px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  line-height: 1.4;
  transition: background .1s, color .1s;
}
#menu a:hover,
#menu .art-link:hover {
  color: var(--black);
  background: rgba(0,0,0,.04);
  text-decoration: none;
}

/* Active article — blue dot + highlight */
#menu .current-article-li > .art-link,
#menu .current-article-li > a {
  color: var(--cobalt);
  font-weight: 500;
  background: rgba(1,41,241,.06);
  border-left: 2px solid var(--cobalt);
  margin-left: -14px;
  padding-left: 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Subsection title */
#menu .sub_sect-menu-list > span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  padding: 5px 10px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .1s;
  user-select: none;
}
#menu .sub_sect-menu-list > span:hover { background: rgba(0,0,0,.04); }

/* Article list under an open subsection */
#menu .sub_sect-menu-list.open > ul {
  margin-left: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
}

/* ============================================================
   ARTICLE PAGE HEADER & CONTENT
   ============================================================ */

.page-header { margin-bottom: 32px; }

.article-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 300;
  color: var(--black);
  margin: 0 0 12px;
  line-height: 1.2;
}

/* Article body typography */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  color: var(--black);
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.article-body h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.article-body h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; }
.article-body h4 { font-size: 15px; font-weight: 500; margin-top: 20px; }
.article-body h5 { font-size: 14px; font-weight: 600; margin-top: 16px; }
.article-body h6 { font-size: 13px; font-weight: 600; margin-top: 14px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--cobalt); }
.article-body a:hover { text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bone);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.article-body pre {
  background: var(--black);
  color: var(--lime);
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 20px;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 13px;
}
.article-body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--lime);
  background: var(--bone);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; border: 1px solid var(--black); }
.article-body th,
.article-body td { padding: 10px 14px; border: 1px solid var(--black); text-align: left; vertical-align: top; line-height: 1.5; }
/* <th> anywhere, plus <td> inside <thead> — both get header treatment */
.article-body th,
.article-body thead td { background: #f0ede9; font-weight: 600; font-size: 14px; color: var(--black); }
/* Row-header <th> in the body — bold text but no background tint */
.article-body tbody th { background: none; }
.article-body tr:nth-child(even) td { background: var(--bone); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Temporary article-page notice banner */
.article-banner-notice {
  background: #CCD4FC;
  color: var(--black);
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin: 0 0 24px;
  font-family: var(--font-body);
}
.article-banner-notice strong { font-weight: 600; }

/* Platform labels */
.article-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.article-labels-prefix {
  display: inline-block !important;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-right: 4px;
}
.article-labels i {
  display: none;
  position: relative;
  width: 28px; height: 28px;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: default;
}
/* Custom hover tooltip using the inline <span> */
.article-labels i span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-body);
  font-style: normal;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 50;
}
.article-labels i span::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--black);
}
.article-labels i:hover span { opacity: 1; }

/* ============================================================
   ARTICLE CALLOUT BOXES
   ============================================================ */

.article-body .callout,
.article-body .callout-grey {
  background: #f5f5f5;
  border: 1px dashed #cfcfcf;
  border-left: 5px solid #cfcfcf;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-yellow {
  background: #FFFBF6;
  border: 1px solid #FEE5C5;
  border-left: 5px solid #F6A623;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-blue {
  background: #EBF9F8;
  border: 1px solid #BDE0EA;
  border-left: 5px solid #0129F1;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-green {
  background: #E9F6F1;
  border: 1px solid #D3E8E5;
  border-left: 5px solid #1A9C6E;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-red {
  background: #FFF2F5;
  border: 1px solid #FFDDE5;
  border-left: 5px solid #EF6376;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-purple {
  background: #F0EDFB;
  border: 1px solid #C3C6E7;
  border-left: 5px solid #6B5CE7;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
}
.article-body .callout-banner {
  background: var(--cobalt);
  border-left: none;
  border-radius: var(--radius);
  margin: 20px 0;
  padding: 14px 20px;
  clear: both;
  color: #fff;
}
.article-body .callout-banner a { color: var(--lime); }

/* Note/warning/tip shorthand classes */
.article-body .note  { background:#EBF9F8; border-left:5px solid #0129F1; border-radius:0 var(--radius) var(--radius) 0; padding:14px 20px; margin:20px 0; }
.article-body .tip   { background:#E9F6F1; border-left:5px solid #1A9C6E; border-radius:0 var(--radius) var(--radius) 0; padding:14px 20px; margin:20px 0; }
.article-body .warning { background:#FFF2F5; border-left:5px solid #EF6376; border-radius:0 var(--radius) var(--radius) 0; padding:14px 20px; margin:20px 0; }

/* Article votes */
.article-votes {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-votes-question { font-size: 14px; font-weight: 500; color: var(--text); }
.article-votes-controls { display: flex; gap: 8px; }

.article-vote {
  background: var(--bone);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 400;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, background .15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-vote:hover,
.button-primary.article-vote {
  background: var(--cobalt) !important;
  border-color: var(--cobalt) !important;
  color: #fff !important;
}
.article-vote:hover *,
.button-primary.article-vote * { color: #fff !important; }

.article-votes-count { font-size: 12px; color: var(--text-muted); }

/* Related / recent articles */
.article-relatives {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 48px;
}
.article-relatives section {
  flex: 1;
  min-width: 0;
}
.article-relatives h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 14px;
}
.article-relatives ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-relatives li {
  padding: 5px 0;
  font-size: 14px;
}
.article-relatives a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}
.article-relatives a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .article-relatives { flex-direction: column; gap: 28px; }
}

/* ============================================================
   SECTION PAGE
   ============================================================ */

.section-content { padding: 0; }

/* Section/category page: extend the white-ish background down to fill the page */
.interior-with-sidebar:has(.section-content),
.interior-with-sidebar:has(.section-tree) {
  background: #FCFAF9;
  min-height: calc(100vh - var(--header-height) - 100px);
}
.interior-with-sidebar:has(.section-content) .interior-content,
.interior-with-sidebar:has(.section-tree) .interior-content {
  background: #FCFAF9;
  min-height: calc(100vh - var(--header-height) - 100px);
}

.page-header-description {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 640px;
}

/* Subsection cards */
.section-list { list-style: none; margin: 0 0 24px; padding: 0; }
.section-list-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color .15s;
}
.section-list-item:first-child a { border-top: 1px solid var(--border); }
.section-list-item a:hover { color: var(--cobalt); }
.section-list-item a:hover .section-folder-icon { color: var(--cobalt); opacity: 1; }
.section-list-item a span { flex: 1; }
.section-folder-icon { flex-shrink: 0; color: var(--text-muted); opacity: 0.7; }

/* Article list — used on both section and category pages */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-link {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}
.article-list-link::after { display: none; } /* remove old chevron */
.article-list-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
  opacity: 0.6;
}
.article-list-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.article-list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.article-list-link:hover .article-list-title { color: var(--cobalt); text-decoration: underline; }
.article-list-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-list-item.article-promoted .article-list-title { font-weight: 600; }
.icon-star { color: var(--lime); flex-shrink: 0; margin-left: 6px; }
.icon-lock { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-results-header {
  background: var(--black);
  padding: 24px 0;
}

.search-results-header .page-header h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  margin: 8px 0 0;
}

.search-results-header .breadcrumbs,
.search-results-header .breadcrumbs li,
.search-results-header .breadcrumbs span { color: rgba(255,255,255,.85); }
.search-results-header .breadcrumbs a { color: rgba(255,255,255,.7); }
.search-results-header .breadcrumbs a:hover { color: #fff; }
.search-results-header .breadcrumbs li + li::before { filter: invert(1); opacity: .5; }

/* Search box on the results page — matches homepage style */
.search-results-search {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-top: 20px;
}
.search-results-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}
.search-results-search input[type="search"],
.search-results-search input[type="text"] {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.search-results-search input:focus { border-color: var(--cobalt); }

/* Search page: full-width layout. Sidebar bone, results #FCFAF9, nothing else. */
body:has(.search-results-header) {
  background: #FCFAF9;
}
.search-results-header + .container,
body:has(.search-results-header) > .container {
  background: #FCFAF9;
  max-width: none;
  width: 100%;
  padding: 0;
}

.search-results {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 200px);
}

.search-results-sidebar {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  background: var(--bone);
  position: relative;
  top: auto;
  min-height: 100%;
}

.search-results-column {
  padding: 32px 48px;
  min-width: 0;
  background: #FCFAF9;
}

/* Search result items */
.search-results-list { list-style: none; margin: 0; padding: 0; max-width: 920px; }
.search-result-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.search-result-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 6px;
}
.search-result-title a { color: var(--black); text-decoration: none; }
.search-result-title a:hover { color: var(--cobalt); text-decoration: underline; }
.search-results-description { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }
.search-result-breadcrumbs { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 4px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.search-result-breadcrumbs a { color: var(--text-muted); }
.meta-group { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--text-muted); }
.meta-data { color: var(--text-muted); }

/* Sidebar filters */
.sidenav-title {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 400;
}

.filters-in-section { margin-bottom: 24px; }
.multibrand-filter-list { list-style: none; margin: 0; padding: 0; }
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text);
  cursor: pointer;
}
.sidenav-item a { color: var(--text); text-decoration: none; }
.sidenav-item a:hover { color: var(--cobalt); }
.sidenav-item.current a { color: var(--cobalt); font-weight: 500; }

.collapsible-sidebar-toggle { display: none; }
.dev-docs-link a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cobalt);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
}
.dev-docs-link a:hover { text-decoration: underline; }

.multibrand-filter-list--collapsed .see-all-filters {
  display: none;
  background: none;
  border: none;
  color: var(--cobalt);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
}

@media (max-width: 767px) {
  .search-results { grid-template-columns: 1fr; }
  .search-results-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 24px; margin-bottom: 24px; position: static; }
  .search-results-column { padding-left: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.button:hover { border-color: var(--cobalt); color: var(--cobalt); text-decoration: none; }

.button-primary, .button.button-primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}
.button-primary:hover { background: #0222cc; border-color: #0222cc; color: #fff; }

.button-large { padding: 10px 24px; font-size: 12px; }

/* ============================================================
   FOOTER CALLOUT
   ============================================================ */

.request-callout {
  background: var(--black);
  padding: 32px 0;
  text-align: center;
}
.request-callout p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  margin: 0 0 12px;
}
.request-callout a {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.request-callout a:hover { background: #0222cc; text-decoration: none; }

.footer { display: none; }

/* ============================================================
   MODAL (contact us)
   ============================================================ */

#modal-container { display: none; }
#modal-container.show-modal { display: block; }
body.modal-open { height: 100vh; overflow-y: hidden; }

#modal-overlay {
  content: "";
  background: rgba(0,0,0,0.6);
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
}

.modal {
  z-index: 999;
  width: 85%;
  max-width: 680px;
  overflow: auto;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  position: relative;
}

.modal-content h2 { text-align: center; font-size: 22px; margin-bottom: 20px; }

.close-alert {
  position: absolute;
  right: 20px; top: 16px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.close-alert:hover { color: var(--black); }

.details-container { display: flex; gap: 24px; }
.details-container-text { font-size: 14px; flex: 1; line-height: 1.6; }
.details-container-text li { margin-bottom: 8px; }
.details-container-imagen img { width: 280px; border-radius: var(--radius); }

.action-mobile { display: none; }

@media (max-width: 768px) {
  .close-alert { display: none; }
  .details-container { flex-direction: column; }
  .details-container-imagen { text-align: center; }
  .details-container-imagen img { width: 100%; }
  .action-mobile {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    color: var(--cobalt);
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
  }
}

/* ============================================================
   COMMUNITY (kept minimal)
   ============================================================ */

.community-post-list { list-style: none; margin: 0; padding: 0; }
.community-topic-link { color: var(--cobalt); font-size: 14px; }

/* ============================================================
   FORMS (new request, profile, etc.)
   ============================================================ */

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--cobalt);
  outline: none;
}

/* ============================================================
   ATTACHMENTS
   ============================================================ */

.article-attachments { display: none; }
.attachments { list-style: none; margin: 0; padding: 0; }
.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.attachment-icon { color: var(--text-muted); flex-shrink: 0; }
.attachment-meta { display: flex; gap: 8px; margin-left: auto; }
.attachment-meta-item { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   USER PROFILE / REQUESTS
   ============================================================ */

.user-profile-container, .requests-container, .request-container { max-width: 780px; }
.user-profile-info { display: flex; gap: 16px; align-items: center; margin-bottom: 32px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination,
.pagination ul,
nav.pagination,
nav.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 32px 0;
  list-style: none !important;
  padding: 0;
}
.pagination li,
nav.pagination li {
  list-style: none !important;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.pagination li::marker,
nav.pagination li::marker { content: ''; }

.pagination a,
.pagination span,
nav.pagination a,
nav.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent !important;
  color: var(--cobalt) !important;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--cobalt);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-indent: 0;
}
/* Ensure nested elements (icon spans inside links) inherit color */
.pagination a *,
.pagination span *,
nav.pagination a *,
nav.pagination span * {
  color: inherit !important;
  background: transparent !important;
}
.pagination a:hover,
nav.pagination a:hover {
  background: var(--cobalt) !important;
  color: #fff !important;
  text-decoration: none;
}
.pagination a:hover *,
nav.pagination a:hover * { color: #fff !important; }

.pagination .current,
.pagination .active,
nav.pagination .current,
nav.pagination .active {
  font-weight: 600;
}
.pagination .disabled a,
.pagination .disabled span,
nav.pagination .disabled a,
nav.pagination .disabled span {
  border-color: #d4d4d4;
  color: #999 !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* "Page X of Y" indicator (injected by JS on search page) */
.pagination-page-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 32px 0 12px;
}

/* Skio-style numeric pagination (replaces Zendesk's default pagination) */
.rc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 32px;
}
.rc-pagination-num,
.rc-pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--cobalt);
  text-decoration: none;
  background: transparent;
  border: none;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.rc-pagination-num:hover,
.rc-pagination-arrow:not(.disabled):hover {
  background: rgba(4, 56, 227, 0.08);
  color: var(--cobalt);
  text-decoration: none;
}
.rc-pagination-num.current {
  background: var(--cobalt);
  color: #fff !important;
  cursor: default;
}
.rc-pagination-arrow {
  font-size: 18px;
  line-height: 1;
  padding: 0 8px;
}
.rc-pagination-arrow.disabled {
  color: #c4c4c4;
  cursor: not-allowed;
  pointer-events: none;
}
.rc-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--text-muted);
  font-size: 14px;
}
/* Hide platform label icons that leak into search result snippets */
.search-results-description i[class^="icon-"],
.search-results-description i[class*=" icon-"] { display: none; }

/* ============================================================
   RESPONSIVE — hide TOC and left nav on small screens
   ============================================================ */

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

@media (max-width: 767px) {
  .sidebar, .article-left-nav { display: none; }
  .nav-toggle-btn { display: none; }
  .interior-content .container { padding: 24px 20px; }
  .article-title { font-size: 24px; }
  .article-body h2 { font-size: 18px; }
}

/* ============================================================
   MOBILE TOP BAR (article pages) — nav + TOC toggles
   ============================================================ */

.mobile-article-bar {
  display: none;
}
.mobile-article-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .mobile-article-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f2f8;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
  }

  /* Hide nav button on tablet where sidebar is still visible */
  @media (min-width: 768px) {
    #mob-nav-btn { display: none; }
  }

  .mobile-article-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1;
    transition: color 0.15s;
  }
  .mobile-article-btn svg { color: var(--text); flex-shrink: 0; transition: color 0.15s; }
  .mobile-article-btn.active,
  .mobile-article-btn:hover { color: var(--cobalt); }
  .mobile-article-btn.active svg,
  .mobile-article-btn:hover svg { color: var(--cobalt); }

  /* Drawer: left nav */
  .article-left-nav.mobile-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 85%;
    max-width: 320px;
    z-index: 500;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    overflow-y: auto;
    padding: 24px 16px 40px;
    flex-direction: column;
  }

  /* Drawer: TOC */
  .article-toc.mobile-open {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85%;
    max-width: 300px;
    z-index: 500;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    overflow-y: auto;
    padding: 24px 20px 40px;
  }
  .article-toc.mobile-open .toc-sticky { position: static; }

  /* Overlay backdrop */
  .mobile-article-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 450;
  }

  body.mobile-drawer-open { overflow: hidden; }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

/* Remove the narrow width cap so content fills the column */
.category-content .section-container { max-width: none; }

/* Section group headings (h2) within the category tree — plain link rows, no boxes */
.section-tree { }
.section-tree .section { margin-bottom: 0; }
.section-tree-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  border: none;
}
.section-tree-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.section-tree-title a span { flex: 1; }
.section-tree .section:first-child .section-tree-title a { border-top: 1px solid var(--border); }
.section-tree-title a:hover { color: var(--cobalt); }
.section-tree-title a:hover .section-folder-icon { color: var(--cobalt); opacity: 1; }

/* When a section on the category page also has articles, add spacing below the title link */
.section-tree .section .article-list { margin-top: 4px; margin-bottom: 24px; }

/* "Show all X articles" link below each section's article list */
.see-all-articles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--cobalt);
  text-decoration: none;
}
.see-all-articles:hover { text-decoration: underline; }
.see-all-articles::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.section { margin-bottom: 40px; }
.icon-menu { display: block; }
.share a { color: var(--cobalt); font-size: 13px; }
.notification-error { color: var(--rose); font-size: 13px; margin-top: 4px; }

/* ============================================================
   ERROR (404) PAGE
   ============================================================ */
.error-page-wrap {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  min-height: calc(100vh - var(--header-height));
  background: var(--bone);
}
.error-page-side {
  background: var(--bone);
}
.error-page-center {
  background: #fff;
  padding: 64px 32px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-404 {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 300;
  color: var(--cobalt);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.error-page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--black);
}
.error-page-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 auto 56px;
  max-width: 520px;
  line-height: 1.5;
}
.error-quick-section { width: 100%; max-width: 720px; }
.error-quick-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 24px;
  font-weight: 400;
}
.error-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.error-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-align: center;
}
.error-card:hover {
  border-color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(4, 56, 227, .1);
  text-decoration: none;
}
.error-card-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
}
.error-card-icon svg { width: 100%; height: 100%; }
.error-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--black);
}
.error-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.error-back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--cobalt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.error-back-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .error-page-wrap { grid-template-columns: 1fr; }
  .error-page-side { display: none; }
  .error-cards { grid-template-columns: 1fr; gap: 12px; }
  .error-page-center { padding: 40px 20px 60px; }
  .error-404 { font-size: 72px; }
}

/* ============================================================
   SIDEBAR FILTER — "Filter by name" input + collapse/hamburger
   ============================================================ */
.sidebar-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 16px 16px;
  padding: 0;
}
.sidebar-filter-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.sidebar-filter-input:focus { border-color: var(--cobalt); }
.sidebar-filter-input::placeholder { color: var(--text-muted); }

.sidebar-filter-clear,
.sidebar-filter-show {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-filter-clear:hover,
.sidebar-filter-show:hover { color: var(--text); background: rgba(0,0,0,.05); }

/* "Explore articles" label — only visible when collapsed */
.sidebar-filter-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}

/* Collapsed state: hide the input + clear button, show hamburger + label */
.sidebar-filter-wrap[data-collapsed="false"] .sidebar-filter-show,
.sidebar-filter-wrap[data-collapsed="false"] .sidebar-filter-label { display: none; }
.sidebar-filter-wrap[data-collapsed="true"] .sidebar-filter-input,
.sidebar-filter-wrap[data-collapsed="true"] .sidebar-filter-clear { display: none; }
.sidebar-filter-wrap[data-collapsed="true"] {
  justify-content: space-between;
}
.sidebar-filter-wrap[data-collapsed="true"] .sidebar-filter-label { display: block; }
.sidebar-filter-wrap[data-collapsed="true"] .sidebar-filter-show {
  position: static;
  transform: none;
}

/* ============================================================
   CUSTOM SEARCH MODAL — popout overlay with predictive results
   ============================================================ */
body.rc-search-modal-open { overflow: hidden; }

.rc-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.rc-search-modal[hidden] { display: none; }
.rc-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.rc-search-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rc-search-modal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.rc-search-modal-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.rc-search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  padding: 6px 0;
}
.rc-search-modal-input::placeholder { color: var(--text-muted); }
.rc-search-modal-clear {
  background: var(--bone);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.rc-search-modal-clear:hover { background: #efe9e3; }

.rc-search-modal-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.rc-search-modal-empty {
  padding: 24px 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.rc-search-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rc-search-modal-item a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid rgba(0,0,0,.04);
  transition: background .12s;
}
.rc-search-modal-item:first-child a { border-top: none; }
.rc-search-modal-item a:hover { background: var(--bone); }
.rc-search-modal-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--cobalt);
  margin-bottom: 4px;
}
.rc-search-modal-item-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-left: 22px;
}
.rc-search-modal-results mark {
  background: #fff5b1;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.rc-search-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  text-align: right;
  background: var(--bone);
}
.rc-search-modal-advanced {
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.rc-search-modal-advanced:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .rc-search-modal { padding: 60px 12px 12px; }
  .rc-search-modal-panel { max-height: calc(100vh - 80px); }
}
