/* =====================================================================
   Get WorkGear Help Center: modern SaaS-style homepage  (v2)
   Paste into Help Scout Docs > Custom Code (stylesheet).
   Keep the Google Fonts <link> (Manrope + Montserrat) that is already in your site.
   ===================================================================== */
:root {
  --gw-primary: #00a3c4;
  --gw-primary-dark: #0086a2;
  --gw-ink: #1b2430;
  --gw-muted: #667085;
  --gw-border: #e6eaf0;
  --gw-bg: #f6f8fb;
  --gw-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;   /* same as your page text */
  --gw-head: "Manrope", "Montserrat", -apple-system, "Segoe UI", sans-serif;
}
/* ---------- Header: same font as the page, no hover/active boxes ---------- */
#mainNav .brand,
#mainNav .nav li a { font-family: var(--gw-body); }
#mainNav .nav li a,
#mainNav .nav li a:hover,
#mainNav .nav li a:focus,
#mainNav .nav li.active a,
#mainNav .nav li.active a:hover,
#mainNav .nav li.active a:focus { background: none !important; box-shadow: none !important; text-shadow: none; }
#mainNav .nav li a { transition: color .15s; }
@media (min-width: 980px) {
  #mainNav .navbar-inner .container-fluid { display: flex; align-items: center; gap: 28px; }
  #mainNav .brand { float: none; display: flex; align-items: center; padding: 10px 0; margin: 0; }
  #mainNav .brand img { max-height: 40px; width: auto; }
  #mainNav .nav-collapse { flex: 1; }
  #mainNav .nav { float: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin: 0; }
  #mainNav .nav li a { padding: 10px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
  #mainNav .nav .caret { display: none; }
}

/* ---------- Align the logo with the left edge of the category boxes ---------- */
body:has(#docsSearch) #mainNav .navbar-inner .container-fluid { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
body:has(#docsSearch) #mainNav .brand { margin-left: 0; padding-left: 0; }

/* ---------- Homepage background ---------- */
body:has(#docsSearch) { background: var(--gw-bg); }

/* ---------- Hero search ---------- */
html body #docsSearch {
  padding: 72px 20px 84px;
  text-align: center;
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(0, 163, 196, .38), transparent 62%),
    linear-gradient(135deg, #222936 0%, #2c323d 100%);
}
html body #docsSearch h1 {
  margin: 0 0 26px;
  color: #fff;
  font: 700 40px/1.15 var(--gw-head);
  letter-spacing: -.02em;
}
#docsSearch h1::after {
  content: "Guides for setting up and managing your Get WorkGear stores";
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .72);
  font: 400 17px/1.5 var(--gw-body);
  letter-spacing: 0;
}
/* the form carries the shadow and has NO background of its own (that was leaving white corner wedges) */
html body #docsSearch #searchBar {
  display: flex; max-width: 680px; margin: 0 auto; padding: 0; position: relative; text-align: left;
  background: transparent !important; border: 0 !important; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
html body #docsSearch #searchBar::before,
html body #docsSearch #searchBar::after,
html body #docsSearch #searchBar button::before,
html body #docsSearch #searchBar button::after,
html body #docsSearch #searchBar button i { display: none !important; }
html body #docsSearch #searchBar input.search-query {
  flex: 1; min-width: 0; height: 58px; margin: 0; padding: 0 64px 0 22px;
  border: 0; border-radius: 14px; background: #fff; box-shadow: none; outline: none;
  color: var(--gw-ink); font: 400 16px var(--gw-body);
}
html body #docsSearch #searchBar input.search-query::placeholder { color: #98a2b3; }
/* magnifying glass sits inside the field (no separate Search button) */
html body #docsSearch #searchBar button {
  position: absolute; top: 0; right: 0; width: 60px; height: 58px; margin: 0; padding: 0;
  border: 0; border-radius: 0 14px 14px 0; box-shadow: none; outline: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  font-size: 0; color: transparent; text-shadow: none; transition: opacity .15s;
}
html body #docsSearch #searchBar button span { display: none; }
html body #docsSearch #searchBar button:hover { opacity: .65; }
#docsSearch #serp-dd { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; border-radius: 12px; overflow: hidden; }

/* ---------- Page layout ---------- */
body:has(#docsSearch) #contentArea { max-width: 1120px; margin: 0 auto; padding: 52px 24px 12px; }

/* ---------- Collection headings ---------- */
html body .collection-category { margin: 0 0 46px; text-align: left; }
html body .collection-category h2 { margin: 0 0 18px; font: 700 22px/1.3 var(--gw-head); letter-spacing: -.01em; text-align: left; }
html body .collection-category h2 a { color: var(--gw-ink); }
html body .collection-category h2 a:hover { color: var(--gw-primary); text-decoration: none; }

/* ---------- Category cards: identical size, everything left-aligned ---------- */
html body .collection-category .category-list.category-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr;
  gap: 16px; margin: 0; padding: 0; text-align: left;
}
@media (max-width: 1000px) { html body .collection-category .category-list.category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { html body .collection-category .category-list.category-list { grid-template-columns: 1fr; } }

a.category { --gw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2.5h6.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z'/%3E%3C/svg%3E"); }
@property --gw-divider { syntax: '<color>'; inherits: false; initial-value: #e6eaf0; }
html body .collection-category .category-list.category-list a.category {
  box-sizing: border-box; --gw-divider: var(--gw-border);
  position: relative; display: flex !important; flex-direction: column; align-items: stretch;
  float: none !important; width: auto !important; max-width: none !important; margin: 0 !important;
  padding: 22px; text-align: left;
  /* thin divider between the icon and the text, edge to edge */
  background: linear-gradient(var(--gw-divider), var(--gw-divider)) 0 86px / 100% 1px no-repeat, #fff;
  border: 1px solid var(--gw-border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, --gw-divider .18s ease;
}
/* icon tile + icon */
html body .collection-category .category-list.category-list a.category::before {
  content: ""; flex: none; align-self: flex-start; width: 48px; height: 48px; margin-bottom: 33px;
  border-radius: 13px; background: rgba(0, 163, 196, .10); transition: background-color .18s;
}
html body .collection-category .category-list.category-list a.category::after {
  content: ""; position: absolute; top: 22px; left: 22px; width: 48px; height: 48px;
  background-color: var(--gw-primary);
  -webkit-mask: var(--gw-icon) center / 24px 24px no-repeat;
          mask: var(--gw-icon) center / 24px 24px no-repeat;
  transition: background-color .18s;
}
html body .collection-category .category-list.category-list a.category:hover {
  transform: translateY(-3px); border-color: rgba(0, 163, 196, .5); --gw-divider: rgba(0, 163, 196, .5);
  box-shadow: 0 16px 32px -10px rgba(16, 24, 40, .18);
}
html body .collection-category .category-list.category-list a.category:hover::before { background: var(--gw-primary); }
html body .collection-category .category-list.category-list a.category:hover::after { background-color: #fff; }
/* text: always left, count pinned to the bottom so rows line up */
html body .collection-category .category-list.category-list a.category h3 { min-height: 2.7em; margin: 0 0 4px; color: var(--gw-ink); font: 700 17px/1.35 var(--gw-head); text-align: left; }
html body .collection-category .category-list.category-list a.category p { margin: 0; text-align: left; }
/* short description under each name: always reserves two lines so every card lines up */
html body .collection-category .category-list.category-list a.category p:not(.article-count) {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 3em; margin: 0; color: var(--gw-muted); font: 400 14px/1.5 var(--gw-body);
}
html body .collection-category .category-list.category-list a.category .article-count { margin-top: 0; padding-top: 10px; color: var(--gw-muted); font: 500 13.5px var(--gw-body); }
html body .collection-category .category-list.category-list a.category .article-count::after {
  content: "\2192"; margin-left: 6px; display: inline-block; opacity: 0; transform: translateX(-4px);
  color: var(--gw-primary); transition: opacity .18s, transform .18s;
}
html body .collection-category .category-list.category-list a.category:hover .article-count { color: var(--gw-primary); }
html body .collection-category .category-list.category-list a.category:hover .article-count::after { opacity: 1; transform: none; }

/* ---------- One icon per category (numbers are Help Scout's own category numbers) ---------- */
/* Storefront Creation */
#category-5{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5 5 4.5h14l1.5 5'/%3E%3Cpath d='M3.5 9.5a2.8 2.8 0 0 0 5.5 0 2.8 2.8 0 0 0 6 0 2.8 2.8 0 0 0 5.5 0'/%3E%3Cpath d='M5 12.5V20h14v-7.5'/%3E%3Cpath d='M10 20v-4.5h4V20'/%3E%3C/svg%3E")}
/* Products & Catalogues */
#category-4{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7.2v9.6L12 21l8-4.2V7.2z'/%3E%3Cpath d='m4 7.2 8 4.3 8-4.3'/%3E%3Cpath d='M12 11.5V21'/%3E%3C/svg%3E")}
/* Custom Pricing & Embroidery */
#category-30{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 3.5h7.6a2 2 0 0 1 1.4.6l8 8a2 2 0 0 1 0 2.8l-5.6 5.6a2 2 0 0 1-2.8 0l-8-8a2 2 0 0 1-.6-1.4z'/%3E%3Ccircle cx='7.6' cy='7.6' r='1.3'/%3E%3C/svg%3E")}
/* Store Settings */
#category-76{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M18 7h2M4 17h3M12 17h8'/%3E%3Ccircle cx='15.5' cy='7' r='2.3'/%3E%3Ccircle cx='9.5' cy='17' r='2.3'/%3E%3C/svg%3E")}
/* User Accounts & Staff Permissions */
#category-11{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M15.8 5.2a3.3 3.3 0 0 1 0 5.6'/%3E%3Cpath d='M18 14.4c1.8.9 3 2.7 3 4.8'/%3E%3C/svg%3E")}
/* Order Processing & Approvals */
#category-10{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='16' rx='2.2'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='m9 14 2 2 4-4.2'/%3E%3C/svg%3E")}
/* Uniform Spend & Allowances */
#category-15{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H18v4'/%3E%3Cpath d='M3 7.5V18a2 2 0 0 0 2 2h14.2a.8.8 0 0 0 .8-.8V10a1 1 0 0 0-1-1H5.5A2.5 2.5 0 0 1 3 7.5z'/%3E%3Ccircle cx='16.2' cy='14.6' r='1.2'/%3E%3C/svg%3E")}
/* Reports & Data Export */
#category-31{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 20v-7M12 20V5M17 20v-10'/%3E%3C/svg%3E")}
/* Branches & Delivery */
#category-35{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7h10.5v9.5H2.5z'/%3E%3Cpath d='M13 10h4.2l3.8 3.6v2.9h-8z'/%3E%3Ccircle cx='7' cy='17.6' r='1.9'/%3E%3Ccircle cx='17' cy='17.6' r='1.9'/%3E%3C/svg%3E")}
/* Order Notification & Statuses */
#category-36{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.6 2H4.4z'/%3E%3Cpath d='M10 21.2h4'/%3E%3C/svg%3E")}
/* Login & SSO Troubleshooting */
#category-40{--gw-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.3'/%3E%3C/svg%3E")}

/* ---------- Homepage card descriptions ----------
   These phrases only show while a category has NO description in Help Scout (the <p> is empty),
   so any description you type into Help Scout automatically replaces them. Edit the text freely. */
#category-5 p:empty::before { content: "Create, brand and preview company stores for your customers"; } /* Storefront Creation */
#category-4 p:empty::before { content: "Add products, sizes and images, and build catalogues by role"; } /* Products & Catalogues */
#category-30 p:empty::before { content: "Set company-specific pricing and embroidery options"; } /* Custom Pricing & Embroidery */
#category-76 p:empty::before { content: "Configure payments, admins, content and store policies"; } /* Store Settings */
#category-11 p:empty::before { content: "Add staff, create managers and control what they can do"; } /* User Accounts & Staff Permissions */
#category-10 p:empty::before { content: "Approve, place, find and export orders for your teams"; } /* Order Processing & Approvals */
#category-15 p:empty::before { content: "Manage staff allocations and reset notifications"; } /* Uniform Spend & Allowances */
#category-31 p:empty::before { content: "Track uniform spend and export your data"; } /* Reports & Data Export */
#category-35 p:empty::before { content: "Set up branches, pickup points and delivery addresses"; } /* Branches & Delivery */
#category-36 p:empty::before { content: "Understand order statuses and the notifications sent"; } /* Order Notification & Statuses */
#category-40 p:empty::before { content: "Update your profile, password and account access"; } /* Login & SSO Troubleshooting */

/* =====================================================================
   SITEWIDE: same header position on every page
   ===================================================================== */
html { overflow-y: scroll; }   /* always reserve the scrollbar, so pages never jump sideways */
#mainNav .navbar-inner .container-fluid { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
#mainNav .brand { margin-left: 0; padding-left: 0; }

/* =====================================================================
   CATEGORY, COLLECTION, SEARCH AND ARTICLE PAGES (any page with a sidebar,
   i.e. everything except the homepage). Same frame as the homepage look.
   ===================================================================== */
body:has(#sidebar):not(:has(#docsSearch)) { background: var(--gw-bg); font-family: var(--gw-body); }
body:has(#sidebar):not(:has(#docsSearch)) input, body:has(#sidebar):not(:has(#docsSearch)) select, body:has(#sidebar):not(:has(#docsSearch)) button { font-family: var(--gw-body); }

/* page frame: one shared width, sidebar on the left, content on the right */
body:has(#sidebar):not(:has(#docsSearch)) #contentArea { max-width: 1120px; margin: 0 auto; padding: 40px 24px 16px; background: transparent !important; }
body:has(#sidebar):not(:has(#docsSearch)) #contentArea .row-fluid { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 32px; background: transparent !important; }
body:has(#sidebar):not(:has(#docsSearch)) #contentArea .row-fluid::before,
body:has(#sidebar):not(:has(#docsSearch)) #contentArea .row-fluid::after { display: none; }
/* no white layer behind the rounded card (this was the white corner at the top left) */
body:has(#sidebar):not(:has(#docsSearch)) #main-content {
  flex: 1 1 0; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body:has(#sidebar):not(:has(#docsSearch)) #main-content::before,
body:has(#sidebar):not(:has(#docsSearch)) #main-content::after { display: none; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar { flex: 0 0 280px; width: 280px !important; float: none !important; margin: 0 !important; position: sticky; top: 24px; background: transparent !important; }

/* content card: shrinks to fit */
body:has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper {
  min-height: 0 !important; height: auto; padding: 32px; margin: 0;
  background: #fff; border: 1px solid var(--gw-border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* collection pages: heading above the list */
body:has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper > h1,
body:has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper > h2,
body:has(#sidebar):not(:has(#docsSearch)) #main-content .most-pop-articles > h1,
body:has(#sidebar):not(:has(#docsSearch)) #main-content .most-pop-articles > h2,
body:has(#sidebar):not(:has(#docsSearch)) #main-content .most-pop-articles > h3 {
  margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid var(--gw-border);
  color: var(--gw-ink); font: 700 28px/1.25 var(--gw-head); letter-spacing: -.01em;
}
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles { margin: 0; padding: 0; }

/* category pages: header with the same icon as the homepage card */
body:has(#categoryHead) #categoryHead {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid var(--gw-border);
}
body:has(#categoryHead) #categoryHead::before {
  content: ""; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: var(--gw-tile) center / 26px 26px no-repeat, rgba(0, 163, 196, .10);
}
body:has(#categoryHead) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2.5h6.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z'/%3E%3C/svg%3E"); }
body:has(#categoryHead) #categoryHead h1 { flex: 1; min-width: 0; margin: 0; color: var(--gw-ink); font: 700 28px/1.25 var(--gw-head); letter-spacing: -.01em; }
body:has(#categoryHead) #categoryHead .descrip { flex-basis: 100%; margin: 0; color: var(--gw-muted); font-size: 15px; line-height: 1.6; }
body:has(#categoryHead) #categoryHead .descrip:empty { display: none; }
body:has(#categoryHead) #categoryHead .sort { margin-left: auto; }
body:has(#categoryHead) #categoryHead .sort form { margin: 0; }
body:has(#categoryHead) #sortBy {
  width: auto; min-width: 190px; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--gw-border); border-radius: 10px;
  background: #fff; color: var(--gw-muted); font: 500 13px var(--gw-body); cursor: pointer;
}
/* to hide the sort dropdown completely, uncomment the next line:
body:has(#categoryHead) #categoryHead .sort { display: none; } */

/* article rows (category pages and collection pages): grey icon, teal on hover */
body:has(#sidebar):not(:has(#docsSearch)) .articleList,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
body:has(#sidebar):not(:has(#docsSearch)) .articleList li,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li { margin: 0; padding: 0; list-style: none; }
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--gw-border); border-radius: 12px;
  color: var(--gw-ink); font: 600 15.5px/1.4 var(--gw-body); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a .icon-article-doc,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a .icon-article-doc,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a .icon-article-doc { display: none; }
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a span,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a span,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a span { flex: 1; min-width: 0; color: inherit !important; }
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a::before,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a::before,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a::before {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 20px 20px no-repeat, #f2f4f7;
  transition: background-color .15s;
}
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a::after,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a::after,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 20px 20px no-repeat; transition: transform .15s;
}
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a:hover,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a:hover,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a:hover {
  color: var(--gw-primary-dark); border-color: rgba(0, 163, 196, .5);
  box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .18); transform: translateY(-1px);
}
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a:hover::before,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a:hover::before,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a:hover::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 20px 20px no-repeat, rgba(0, 163, 196, .10); }
body:has(#sidebar):not(:has(#docsSearch)) .articleList li a:hover::after,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles li a:hover::after,
body:has(#sidebar):not(:has(#docsSearch)) .most-pop-articles .popArticles > a:hover::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); transform: translateX(3px); }

/* sidebar: search + category pills */
body:has(#sidebar):not(:has(#docsSearch)) #sidebar #searchBar { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar #searchBar::before,
body:has(#sidebar):not(:has(#docsSearch)) #sidebar #searchBar::after { display: none; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar #searchBar input.search-query {
  height: 44px; border: 1px solid var(--gw-border); border-radius: 12px; background: #fff;
  box-shadow: none; font: 400 14px var(--gw-body);
}
body:has(#sidebar):not(:has(#docsSearch)) #sidebar h3 { margin: 28px 0 10px; color: var(--gw-muted); font: 700 12px/1 var(--gw-body); letter-spacing: .08em; text-transform: uppercase; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar .nav-list { margin: 0; padding: 0; list-style: none; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar .nav-list li a {
  display: block; margin: 0 0 4px; padding: 10px 14px; border-radius: 10px;
  color: var(--gw-ink); font: 500 14.5px/1.4 var(--gw-body); text-shadow: none; background: none; box-shadow: none;
  transition: background-color .15s, color .15s;
}
body:has(#sidebar):not(:has(#docsSearch)) #sidebar .nav-list li a i { display: none; }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar .nav-list li a:hover { background: rgba(0, 163, 196, .08); color: var(--gw-primary-dark); }
body:has(#sidebar):not(:has(#docsSearch)) #sidebar .nav-list li.active a {
  background: rgba(0, 163, 196, .12); color: var(--gw-primary-dark); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gw-primary);
}

/* footer */
body:has(#sidebar):not(:has(#docsSearch)) footer { padding: 28px 0 8px; color: var(--gw-muted); font-size: 12.5px; text-align: center; }
body:has(#sidebar):not(:has(#docsSearch)) footer a { color: var(--gw-muted); }

/* small screens: sidebar goes on top, full width */
@media (max-width: 860px) {
  body:has(#sidebar):not(:has(#docsSearch)) #contentArea .row-fluid { flex-direction: column-reverse; gap: 20px; }
  body:has(#sidebar):not(:has(#docsSearch)) #sidebar { flex: none; width: 100% !important; position: static; }
  body:has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper { padding: 20px; }
}

/* icon shown beside each category title (matches the homepage cards) */
/* Storefront Creation */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/5-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5 5 4.5h14l1.5 5'/%3E%3Cpath d='M3.5 9.5a2.8 2.8 0 0 0 5.5 0 2.8 2.8 0 0 0 6 0 2.8 2.8 0 0 0 5.5 0'/%3E%3Cpath d='M5 12.5V20h14v-7.5'/%3E%3Cpath d='M10 20v-4.5h4V20'/%3E%3C/svg%3E"); }
/* Products & Catalogues */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/4-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7.2v9.6L12 21l8-4.2V7.2z'/%3E%3Cpath d='m4 7.2 8 4.3 8-4.3'/%3E%3Cpath d='M12 11.5V21'/%3E%3C/svg%3E"); }
/* Custom Pricing & Embroidery */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/30-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 3.5h7.6a2 2 0 0 1 1.4.6l8 8a2 2 0 0 1 0 2.8l-5.6 5.6a2 2 0 0 1-2.8 0l-8-8a2 2 0 0 1-.6-1.4z'/%3E%3Ccircle cx='7.6' cy='7.6' r='1.3'/%3E%3C/svg%3E"); }
/* Store Settings */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/76-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M18 7h2M4 17h3M12 17h8'/%3E%3Ccircle cx='15.5' cy='7' r='2.3'/%3E%3Ccircle cx='9.5' cy='17' r='2.3'/%3E%3C/svg%3E"); }
/* User Accounts & Staff Permissions */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/11-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M15.8 5.2a3.3 3.3 0 0 1 0 5.6'/%3E%3Cpath d='M18 14.4c1.8.9 3 2.7 3 4.8'/%3E%3C/svg%3E"); }
/* Order Processing & Approvals */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/10-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='16' rx='2.2'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='m9 14 2 2 4-4.2'/%3E%3C/svg%3E"); }
/* Uniform Spend & Allowances */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/15-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H18v4'/%3E%3Cpath d='M3 7.5V18a2 2 0 0 0 2 2h14.2a.8.8 0 0 0 .8-.8V10a1 1 0 0 0-1-1H5.5A2.5 2.5 0 0 1 3 7.5z'/%3E%3Ccircle cx='16.2' cy='14.6' r='1.2'/%3E%3C/svg%3E"); }
/* Reports & Data Export */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/31-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 20v-7M12 20V5M17 20v-10'/%3E%3C/svg%3E"); }
/* Branches & Delivery */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/35-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7h10.5v9.5H2.5z'/%3E%3Cpath d='M13 10h4.2l3.8 3.6v2.9h-8z'/%3E%3Ccircle cx='7' cy='17.6' r='1.9'/%3E%3Ccircle cx='17' cy='17.6' r='1.9'/%3E%3C/svg%3E"); }
/* Order Notification & Statuses */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/36-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.5V11a6 6 0 0 1 12 0v5.5l1.6 2H4.4z'/%3E%3Cpath d='M10 21.2h4'/%3E%3C/svg%3E"); }
/* Login & SSO Troubleshooting */
body:has(#categoryHead):has(.nav-list li.active a[href^="/category/40-"]) #categoryHead { --gw-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.3'/%3E%3C/svg%3E"); }

/* =====================================================================
   ARTICLE PAGES
   ===================================================================== */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper { padding: 40px 44px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle { position: relative; max-width: none; }

/* title + admin / print buttons */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle h1.title {
  margin: 0 0 14px; padding-right: 48px; color: var(--gw-ink);
  font: 700 32px/1.25 var(--gw-head); letter-spacing: -.015em;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle .admin-edit.btn {
  display: inline-flex; align-items: center; margin: 0 0 22px; padding: 6px 12px;
  border: 1px solid var(--gw-border); border-radius: 8px; background: #f6f8fb none;
  box-shadow: none; text-shadow: none; color: var(--gw-muted); font: 600 12px/1.2 var(--gw-body);
  text-decoration: none; transition: border-color .15s, color .15s;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle .admin-edit.btn:hover { border-color: rgba(0, 163, 196, .5); color: var(--gw-primary-dark); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle .printArticle { color: var(--gw-muted); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle .printArticle:hover { color: var(--gw-primary-dark); }

/* body text */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle p,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle li,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle td,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle dd { color: #3b4452; font-size: 16px; line-height: 1.75; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle p { margin: 0 0 16px; }
/* intro paragraph */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle > p:first-of-type:not(:has(> img)) {
  margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gw-border);
  color: var(--gw-ink); font-size: 18px; line-height: 1.7; font-weight: 500;
}

/* numbered steps */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ol { margin: 26px 0 14px; padding-left: 28px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ol > li { margin: 0 0 8px; padding-left: 8px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ol > li::marker { color: #3b4452; font-weight: 400; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ul { margin: 16px 0 20px; padding-left: 26px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ul > li { margin: 0 0 6px; padding-left: 4px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle ul > li::marker { color: #3b4452; }

/* screenshots */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle p > img:only-child {
  display: block; max-width: 100%; height: auto; margin: 14px 0 34px;
  border: 1px solid var(--gw-border); border-radius: 12px;
  box-shadow: 0 10px 28px -16px rgba(16, 24, 40, .30);
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle p:has(> img:only-child) { margin: 0; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle img { max-width: 100%; height: auto; }

/* headings */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle h2 {
  margin: 42px 0 16px; padding-top: 28px; border-top: 1px solid var(--gw-border);
  color: var(--gw-ink); font: 700 22px/1.3 var(--gw-head); letter-spacing: -.01em;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle h3 { margin: 28px 0 10px; color: var(--gw-ink); font: 700 18px/1.35 var(--gw-head); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle h4 { margin: 22px 0 8px; color: var(--gw-ink); font: 700 16px/1.4 var(--gw-head); }

/* video / embeds */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle iframe {
  display: block; width: 100%; border: 0; border-radius: 12px; background: #f2f4f7;
  box-shadow: 0 10px 28px -16px rgba(16, 24, 40, .30);
}

/* links */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle a:not(.admin-edit):not(.printArticle) {
  color: var(--gw-primary-dark); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(0, 163, 196, .35); text-underline-offset: 3px;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle a:not(.admin-edit):not(.printArticle):hover { text-decoration-color: var(--gw-primary); }

/* code, quotes, tables */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle code { padding: 2px 6px; border-radius: 6px; background: #f2f4f7; color: var(--gw-ink); font-size: .9em; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle pre { margin: 18px 0; padding: 16px 18px; border: 0; border-radius: 12px; background: #1f2733; color: #e6edf3; overflow: auto; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle pre code { padding: 0; background: none; color: inherit; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle blockquote { margin: 20px 0; padding: 14px 18px; border: 0; border-left: 4px solid var(--gw-primary); border-radius: 0 12px 12px 0; background: rgba(0, 163, 196, .06); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle blockquote p { margin: 0; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle table { width: 100%; margin: 18px 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--gw-border); border-radius: 12px; overflow: hidden; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle th, body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--gw-border); text-align: left; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle th { background: #f6f8fb; color: var(--gw-ink); font-weight: 700; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle tr:last-child td { border-bottom: 0; }

/* "Did this answer your question?" */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin: 36px 0 0; padding: 18px 22px;
  background: #f6f8fb; border: 1px solid var(--gw-border); border-radius: 14px;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings-question { margin: 0; color: var(--gw-ink); font: 600 15px var(--gw-body); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings-actions {
  display: flex; align-items: center; gap: 10px; flex: none; position: static !important; float: none !important;
  width: auto !important; height: auto !important; margin: 0 0 0 auto !important; padding: 0;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction {
  float: none; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--gw-border); border-radius: 50%; background: #fff; box-shadow: none; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction::before,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction::after,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction .rating-face::before,
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction .rating-face::after { display: none; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction .rating-face {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction svg { display: block; flex: none; width: 24px; height: 24px; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction--positive svg { transform: translateY(-.5px); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction--negative svg { transform: translateY(-2.5px); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction svg path { fill: var(--gw-muted); transition: fill .15s; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction:hover { border-color: rgba(0, 163, 196, .5); background: rgba(0, 163, 196, .06); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings .rateAction:hover svg path { fill: var(--gw-primary); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings-feedback-message { color: var(--gw-muted); font: 500 14px var(--gw-body); }

/* "Still need help?" + last updated */
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--gw-border); text-align: center;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot .icon-contact { display: none; }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot .help {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 0; color: var(--gw-ink); font: 600 15px var(--gw-body); text-align: center;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot .help a {
  margin: 0; padding: 10px 22px; border-radius: 10px; background: var(--gw-primary);
  color: #fff; font-weight: 600; text-decoration: none; transition: background-color .15s;
}
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot .help a:hover { background: var(--gw-primary-dark); }
body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleFoot .lu { margin: 0; color: var(--gw-muted); font: 400 12.5px var(--gw-body); font-style: normal; }

/* small screens */
@media (max-width: 860px) {
  body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper { padding: 24px 20px; }
  body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) #fullArticle h1.title { font-size: 26px; }
  body:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings-actions { margin-left: 0 !important; }
}

/* printing an article: just the article */
@media print {
  #mainNav, #sidebar, .articleRatings, .articleFoot .help, footer, .admin-edit, .printArticle { display: none !important; }
  body, body:has(#sidebar):not(:has(#docsSearch)) { background: #fff !important; }
  body:has(#sidebar):not(:has(#docsSearch)) #main-content .contentWrapper { padding: 0 !important; border: 0; box-shadow: none; }
}

/* =====================================================================
   FOOTER (built by the script in Custom Code > Headers)
   Same dark banner colouring as the homepage hero.
   ===================================================================== */
body.gw-footer-on #contentArea > footer { display: none; }   /* Help Scout's original one-line footer */

#gwFooter {
  margin-top: 56px; color: #c8cfd9; font-family: var(--gw-body);
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(0, 163, 196, .38), transparent 62%),
    linear-gradient(135deg, #222936 0%, #2c323d 100%);
}
#gwFooter a { color: inherit; text-decoration: none; transition: color .15s, opacity .15s; }
#gwFooter ul { margin: 0; padding: 0; list-style: none; }

#gwFooter .gwf-inner {
  display: grid; grid-template-columns: 1fr auto auto; column-gap: 96px; align-items: start;
  max-width: 1120px; margin: 0 auto; padding: 64px 24px 56px;
}
/* left block: logo, social icons, Help Scout, privacy */
#gwFooter .gwf-logo { display: inline-block; }
#gwFooter .gwf-logo img { display: block; height: 44px; width: auto; }
#gwFooter .gwf-social { display: flex; align-items: center; gap: 22px; margin: 30px 0 0; }
#gwFooter .gwf-social a { display: flex; align-items: center; height: 20px; color: #e6eaf0; }
#gwFooter .gwf-social a:hover { color: var(--gw-primary); }
#gwFooter .gwf-social svg { display: block; height: 20px; width: auto; }   /* every icon exactly the same height */
#gwFooter .gwf-hs,
#gwFooter .gwf-privacy { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: #e6eaf0; }
#gwFooter .gwf-hs { margin-top: 34px; }
#gwFooter .gwf-hs img { display: block; width: 20px; height: 20px; border-radius: 5px; }
#gwFooter .gwf-privacy { margin-top: 16px; }
#gwFooter .gwf-privacy svg { display: block; flex: none; }
#gwFooter .gwf-hs:hover,
#gwFooter .gwf-privacy:hover { color: #fff; }

/* link columns */
#gwFooter .gwf-col { min-width: 150px; }
#gwFooter .gwf-col h4 { margin: 4px 0 20px; color: #fff; font: 700 14px/1.2 var(--gw-head); letter-spacing: 0; }
#gwFooter .gwf-col li { margin: 0 0 14px; }
#gwFooter .gwf-col a { font-size: 13.5px; line-height: 1.4; color: #c8cfd9; }
#gwFooter .gwf-col a:hover { color: #fff; }

#gwFooter a:focus-visible { outline: 2px solid var(--gw-primary); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 860px) {
  #gwFooter .gwf-inner { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 44px; padding: 48px 24px 44px; }
  #gwFooter .gwf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  #gwFooter .gwf-inner { grid-template-columns: 1fr; }
}
@media print { #gwFooter { display: none !important; } }

/* =====================================================================
   FULL-WIDTH LAYOUT (v3) – added on top of everything above
   Top bar, nav search, lighter hero + tags, left menu, lighter footer.
   The left menu / tags / nav search are built by the Headers script.
   ===================================================================== */

/* ---------- Top bar: full width, white, sticky ---------- */
html body #mainNav { position: sticky; top: 0; z-index: 30; }
html body #mainNav .navbar-inner { background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--gw-border) !important; box-shadow: none !important; min-height: 64px; }
html body #mainNav .navbar-inner .container-fluid { max-width: none !important; margin: 0 !important; padding: 0 40px !important; display: flex; align-items: center; gap: 28px; min-height: 64px; }
html body #mainNav .nav li a, html body #mainNav .nav li a:hover { color: var(--gw-ink) !important; background: none !important; }
html body #mainNav .nav li a:hover { color: var(--gw-primary) !important; }
html body #mainNav .nav li a { padding: 10px 0; margin-left: 26px; font-size: 14px; font-weight: 500; }
html body #mainNav .nav li:first-child a { margin-left: 0; }
html body #mainNav .nav li.active a { color: var(--gw-ink) !important; }
html body #mainNav .brand img { max-height: 36px; }

/* small search at the far right of the bar */
.gw-nav-search { position: relative; flex: none; width: 200px; margin: 0; transition: width .2s; }
.gw-nav-search:focus-within { width: 290px; }
.gw-nav-search input { width: 100%; height: 38px; margin: 0; padding: 0 56px 0 36px; box-sizing: border-box; border: 1px solid var(--gw-border); border-radius: 10px; background: var(--gw-bg); box-shadow: none; outline: 0; color: var(--gw-ink); font: 400 13px var(--gw-body); }
.gw-nav-search input:focus { background: #fff; border-color: var(--gw-primary); box-shadow: 0 0 0 3px rgba(0, 163, 196, .15); }
.gw-nav-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--gw-muted); pointer-events: none; }
.gw-nav-search kbd { position: absolute; right: 9px; top: 9px; padding: 2px 6px; border: 1px solid var(--gw-border); border-radius: 5px; background: #fff; color: var(--gw-muted); font: 500 11px var(--gw-body); box-shadow: none; }
.gw-nav-search:focus-within kbd { display: none; }

/* ---------- Hero: lighter teal, taller, full width ---------- */
html body #docsSearch {
  padding: 96px 24px 88px;
  background: linear-gradient(135deg, #006f89 0%, #00a3c4 60%, #2fc3dd 100%);
}
html body #docsSearch h1 { margin-bottom: 26px; font-size: 40px; font-weight: 800; }
html body #docsSearch h1::after { display: none; }              /* no sub-line under the heading */
html body #docsSearch #searchBar { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.gw-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 32px auto 0; }
.gw-tags a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font: 500 12.5px var(--gw-body); text-decoration: none; transition: background .15s; }
.gw-tags a:hover { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }

/* ---------- Left menu + content (homepage) ---------- */
.gw-shell { display: flex; align-items: flex-start; }
.gw-left { flex: none; width: 300px; box-sizing: border-box; align-self: stretch; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 22px 14px 40px; background: #fff; border-right: 1px solid var(--gw-border); font-family: var(--gw-body); }
.gw-left h6 { margin: 0 10px 10px; color: var(--gw-muted); font: 600 11px var(--gw-body); letter-spacing: .08em; text-transform: uppercase; }
.gw-tg { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 9px 10px; border: 0; border-radius: 9px; background: none; box-shadow: none; color: var(--gw-ink); font: 600 14px var(--gw-head); text-align: left; text-decoration: none; cursor: pointer; }
.gw-tg:hover { background: var(--gw-bg); color: var(--gw-ink); text-decoration: none; }
.gw-cico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(0, 163, 196, .1); color: var(--gw-primary); }
.gw-cico svg { width: 16px; height: 16px; }
.gw-chev { width: 15px; height: 15px; margin-left: auto; color: var(--gw-muted); transition: transform .2s; }
.gw-open > .gw-tg .gw-chev { transform: rotate(90deg); }
.gw-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s; }
.gw-open > .gw-sub { grid-template-rows: 1fr; }
.gw-sub > div { overflow: hidden; }
.gw-sub a { display: block; margin: 1px 0 1px 8px; padding: 7px 10px 7px 36px; border-radius: 8px; color: #3b4452; font: 400 13px/1.4 var(--gw-body); text-decoration: none; }
.gw-sub a:hover { background: var(--gw-bg); color: var(--gw-ink); }
.gw-sub a.gw-cur { background: rgba(0, 163, 196, .1); color: var(--gw-primary-dark); font-weight: 600; }

html body.gw-home .gw-shell #contentArea { flex: 1; min-width: 0; max-width: none !important; margin: 0 !important; padding: 40px 48px 12px !important; }
html body.gw-home .collection-category:first-of-type { margin-top: 0; }
html body.gw-home .collection-category h2 { font-size: 19px; font-weight: 800; }
html body.gw-home .collection-category .category-list.category-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* card divider: short line inside the padding, not edge to edge */
html body .collection-category .category-list.category-list a.category {
  background: linear-gradient(var(--gw-divider), var(--gw-divider)) 22px 86px / calc(100% - 44px) 1px no-repeat, #fff;
}

@media (max-width: 860px) {
  html body #mainNav .navbar-inner .container-fluid { padding: 0 16px !important; }
  .gw-nav-search { display: none; }
  .gw-shell { display: block; }
  .gw-left { display: none; }
  html body.gw-home .gw-shell #contentArea { padding: 28px 20px 12px !important; }
}

/* ---------- Footer: lighter teal, full-width colour, narrower content ---------- */
#gwFooter { margin-top: 0; color: rgba(255, 255, 255, .92); background: linear-gradient(135deg, #006f89 0%, #00a3c4 100%); }
body:not(.gw-home) #gwFooter { margin-top: 56px; }
#gwFooter .gwf-inner { max-width: 900px; padding: 84px 24px 96px; grid-template-columns: 2fr 1fr 1fr; column-gap: 40px; }
#gwFooter .gwf-logo img { height: 34px; border-radius: 7px; }
#gwFooter .gwf-social { gap: 22px; margin: 24px 0 28px; }
#gwFooter .gwf-social a { color: #fff; opacity: .92; }
#gwFooter .gwf-social a:hover { color: #fff; opacity: 1; }
#gwFooter .gwf-hs { margin-top: 0; }
#gwFooter .gwf-privacy { margin-top: 18px; }
#gwFooter .gwf-hs, #gwFooter .gwf-privacy { font-size: 12px; color: #fff; }
#gwFooter .gwf-col h4 { margin: 4px 0 20px; }
#gwFooter .gwf-col li { margin: 0 0 16px; }
#gwFooter .gwf-col a { color: rgba(255, 255, 255, .9); }
#gwFooter .gwf-col a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { #gwFooter .gwf-inner { grid-template-columns: 1fr 1fr; padding: 56px 24px 64px; } }
@media (max-width: 520px) { #gwFooter .gwf-inner { grid-template-columns: 1fr; } }

/* ---------- Top links (built by the script, replaces Help Scout's own menu) ---------- */
html body #mainNav.gw-custom .nav-collapse, html body #mainNav.gw-custom .btn-navbar { display: none !important; }
html body #mainNav .gw-toplinks { display: flex; align-items: center; gap: 26px; margin-left: auto; }
html body #mainNav .gw-toplinks a { color: var(--gw-ink) !important; font: 500 14px var(--gw-body); text-decoration: none; white-space: nowrap; }
html body #mainNav .gw-toplinks a:hover { color: var(--gw-primary) !important; }
@media (max-width: 560px) { html body #mainNav .gw-toplinks { gap: 14px; } html body #mainNav .gw-toplinks a { font-size: 13px; } }

/* ---------- No gap between the banner and the left menu panel ---------- */
html body.gw-home #docsSearch { margin-bottom: 0 !important; }
html body.gw-home .gw-shell { margin-top: 0 !important; padding-top: 0 !important; }
html body.gw-home .gw-left { margin-top: 0 !important; }

/* =====================================================================
   INNER PAGES (collection, category, article, search results)
   Same left menu as the homepage, with the search at the top of it.
   Help Scout's own sidebar is only HIDDEN (delete the rule marked
   "hide native sidebar" to bring it back). It returns on phones.
   ===================================================================== */
.gw-side-search { position: relative; margin: 0 6px 18px; }
.gw-side-search input { width: 100%; height: 40px; margin: 0; padding: 0 12px 0 36px; box-sizing: border-box; border: 1px solid var(--gw-border); border-radius: 10px; background: var(--gw-bg); box-shadow: none; outline: 0; color: var(--gw-ink); font: 400 13.5px var(--gw-body); }
.gw-side-search input:focus { background: #fff; border-color: var(--gw-primary); box-shadow: 0 0 0 3px rgba(0, 163, 196, .15); }
.gw-side-search svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: var(--gw-muted); pointer-events: none; }

html body.gw-inner { background: var(--gw-bg); }
html body.gw-inner .gw-shell #contentArea { flex: 1; min-width: 0; max-width: none !important; margin: 0 !important; padding: 40px 48px 12px !important; }
html body.gw-inner .gw-shell #contentArea .row-fluid { display: block !important; }
html body.gw-inner #main-content { float: none !important; width: auto !important; max-width: 820px; margin: 0 !important; }
/* hide native sidebar (search + category list) - the left menu replaces it */
html body.gw-inner #sidebar { display: none !important; }
body.gw-inner #gwFooter { margin-top: 0; }

/* article page: no "last updated" line */
html body time.lu { display: none !important; }

@media (max-width: 860px) {
  html body.gw-inner #sidebar { display: block !important; }
  html body.gw-inner .gw-shell #contentArea { padding: 28px 20px 12px !important; }
}

/* ---------- Refinements: logo position, smaller headings, no outer card on list pages ---------- */
html body #mainNav .navbar-inner .container-fluid { padding: 0 32px 0 24px !important; }

/* headings a little smaller */
html body.gw-inner #categoryHead h1,
html body.gw-inner #main-content .contentWrapper > h1,
html body.gw-inner #main-content .contentWrapper > h2,
html body.gw-inner #main-content .most-pop-articles > h1,
html body.gw-inner #main-content .most-pop-articles > h2,
html body.gw-inner #main-content .most-pop-articles > h3 { font-size: 24px !important; }
html body.gw-inner #fullArticle h1.title { font-size: 24px !important; }
html body.gw-inner #categoryHead::before { width: 44px; height: 44px; background-size: 22px 22px, auto; }

/* category and collection pages: rows sit straight on the page, no big white box around them */
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
}

/* ---------- Alignment: heading, divider and rows share the same left and right edge ---------- */
html body.gw-inner #main-content .contentWrapper,
html body.gw-inner #main-content .contentWrapper > section,
html body.gw-inner #main-content .contentWrapper > ul,
html body.gw-inner #main-content .most-pop-articles,
html body.gw-inner #categoryHead,
html body.gw-inner .articleList {
  margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
  box-sizing: border-box; width: 100%; max-width: none;
}
html body.gw-inner .articleList li { margin-left: 0 !important; padding-left: 0 !important; }

/* ---------- Article list: one white card, rows divided by thin lines (matches the mockup) ---------- */
html body.gw-inner #categoryHead { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 22px !important; }
html body.gw-inner #categoryHead::before { display: none !important; }                 /* no icon tile beside the title */
html body.gw-inner #categoryHead h1 { font-size: 24px !important; font-weight: 800 !important; }

html body.gw-inner .articleList,
html body.gw-inner .most-pop-articles .popArticles {
  display: block !important; gap: 0 !important; max-width: 820px; background: #fff;
  border: 1px solid var(--gw-border); border-radius: 14px; overflow: hidden;
}
html body.gw-inner .articleList li,
html body.gw-inner .most-pop-articles .popArticles li { margin: 0 !important; padding: 0 !important; list-style: none; }
html body.gw-inner .articleList li a,
html body.gw-inner .most-pop-articles .popArticles li a,
html body.gw-inner .most-pop-articles .popArticles > a {
  gap: 12px; padding: 15px 20px !important; background: transparent !important;
  border: 0 !important; border-top: 1px solid var(--gw-border) !important; border-radius: 0 !important;
  box-shadow: none !important; transform: none !important; font: 400 14px/1.4 var(--gw-body) !important; color: var(--gw-ink);
}
html body.gw-inner .articleList li:first-child a,
html body.gw-inner .most-pop-articles .popArticles li:first-child a,
html body.gw-inner .most-pop-articles .popArticles > a:first-child { border-top: 0 !important; }
html body.gw-inner .articleList li a:hover,
html body.gw-inner .most-pop-articles .popArticles li a:hover { color: var(--gw-primary-dark); background: var(--gw-bg) !important; }
/* plain small document icon, no grey tile, no chevron */
html body.gw-inner .articleList li a::before,
html body.gw-inner .most-pop-articles .popArticles li a::before,
html body.gw-inner .most-pop-articles .popArticles > a::before { width: 20px !important; height: 20px !important; border-radius: 0 !important; background-color: transparent !important; background-size: 18px 18px !important; }
html body.gw-inner .articleList li a:hover::before,
html body.gw-inner .most-pop-articles .popArticles li a:hover::before { background-color: transparent !important; }
html body.gw-inner .articleList li a::after,
html body.gw-inner .most-pop-articles .popArticles li a::after,
html body.gw-inner .most-pop-articles .popArticles > a::after { display: none !important; }

/* ---------- Article rows: icon alignment + text-colour-only hover ---------- */
html body.gw-inner .articleList li a,
html body.gw-inner .most-pop-articles .popArticles li a,
html body.gw-inner .most-pop-articles .popArticles > a {
  display: flex !important; align-items: center !important; box-sizing: border-box; text-indent: 0 !important;
  padding: 15px 20px 15px 20px !important;
}
html body.gw-inner .articleList li a::before,
html body.gw-inner .most-pop-articles .popArticles li a::before,
html body.gw-inner .most-pop-articles .popArticles > a::before {
  position: static !important; float: none !important; inset: auto !important; transform: none !important;
  margin: 0 !important; flex: none !important; align-self: center !important; display: block !important;
}
html body.gw-inner .articleList li a:hover,
html body.gw-inner .most-pop-articles .popArticles li a:hover,
html body.gw-inner .most-pop-articles .popArticles > a:hover { background: transparent !important; }

/* ---------- Article rows, final: position the icon explicitly so nothing inherited can shift it ---------- */
html body.gw-inner .articleList li,
html body.gw-inner .most-pop-articles .popArticles li {
  position: static !important; left: auto !important; right: auto !important; margin: 0 !important; padding: 0 !important; text-indent: 0 !important; width: auto !important;
}
html body.gw-inner .articleList li a,
html body.gw-inner .most-pop-articles .popArticles li a,
html body.gw-inner .most-pop-articles .popArticles > a {
  position: relative !important; left: auto !important; right: auto !important; top: auto !important;
  display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: none !important;
  margin: 0 !important; float: none !important; text-indent: 0 !important;
  padding: 15px 20px 15px 52px !important;                 /* 52px on the left leaves room for the icon */
}
html body.gw-inner .articleList li a span,
html body.gw-inner .most-pop-articles .popArticles li a span { display: block !important; margin: 0 !important; padding: 0 !important; text-indent: 0 !important; }
html body.gw-inner .articleList li a::before,
html body.gw-inner .most-pop-articles .popArticles li a::before,
html body.gw-inner .most-pop-articles .popArticles > a::before {
  position: absolute !important; left: 20px !important; top: 50% !important; margin: -10px 0 0 0 !important;
  width: 20px !important; height: 20px !important; display: block !important;
}

/* ---------- Article page: keep the white card's inner padding (the list-page alignment rules must not remove it) ---------- */
html body.gw-inner:has(#fullArticle) #main-content .contentWrapper {
  padding: 36px 40px 32px !important; box-sizing: border-box;
  background: #fff !important; border: 1px solid var(--gw-border) !important; border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}
html body.gw-inner:has(#fullArticle) #main-content { max-width: 860px; }
@media (max-width: 860px) { html body.gw-inner:has(#fullArticle) #main-content .contentWrapper { padding: 24px 20px !important; } }

/* ---------- Article text sizes: aligned with the mockup (body 15px, intro 16px) ---------- */
html body.gw-inner #fullArticle h1.title { font-weight: 800 !important; }
html body.gw-inner #fullArticle p,
html body.gw-inner #fullArticle li,
html body.gw-inner #fullArticle td,
html body.gw-inner #fullArticle dd { font-size: 15px !important; line-height: 1.7 !important; }
html body.gw-inner #fullArticle > p:first-of-type:not(:has(> img)) { font-size: 16px !important; font-weight: 400 !important; line-height: 1.7 !important; color: #3b4452 !important; }
html body.gw-inner #fullArticle h3 { font-size: 17px !important; }
html body.gw-inner #fullArticle h4 { font-size: 15px !important; }

/* ---------- Search results page: snippet lines, heading, count ---------- */
html body.gw-inner #serp h1 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: var(--gw-ink); font: 800 24px/1.25 var(--gw-head) !important; letter-spacing: -.01em; }
html body.gw-inner #serp h1 strong { font-weight: 800; color: var(--gw-primary-dark); }
html body.gw-inner #serp .articlesFound { margin: 0 0 20px !important; color: var(--gw-muted); font: 400 14px var(--gw-body); }
html body.gw-inner #serp .articlesFound strong { font-weight: 600; color: var(--gw-ink); }
/* the snippet sits under each title and lines up with the title text */
html body.gw-inner #serp .articleList li { border-top: 1px solid var(--gw-border); }
html body.gw-inner #serp .articleList li:first-child { border-top: 0; }
html body.gw-inner #serp .articleList li a { border-top: 0 !important; padding-bottom: 4px !important; font-weight: 500 !important; }
html body.gw-inner #serp .articleList li a:hover { background: transparent !important; }
html body.gw-inner #serp .articleList li p {
  margin: 0 !important; padding: 0 20px 15px 52px !important; box-sizing: border-box;
  color: var(--gw-muted) !important; font: 400 13.5px/1.6 var(--gw-body) !important;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* Search results: pin the icon to the title line (the row also holds a snippet, so 50% sits too high) */
html body.gw-inner #serp .articleList li a { line-height: 20px !important; }
html body.gw-inner #serp .articleList li a::before { top: 15px !important; margin: 0 !important; width: 20px !important; height: 20px !important; }

/* ---------- No flash of the native layout ----------
   The script adds .gw-pending to <html> while it builds the menu, links and footer, then removes it.
   The animation is a failsafe: if the script ever fails, the page still appears after 1.2s. */
html.gw-pending body { opacity: 0; animation: gw-failsafe 0s 1.2s forwards; }
@keyframes gw-failsafe { to { opacity: 1; } }

/* ---------- Breadcrumbs (inner pages) ---------- */
html body .gw-crumbs { margin: 0 0 14px; padding: 0; color: var(--gw-muted); font: 400 13px/1.4 var(--gw-body); }
html body .gw-crumbs a { color: var(--gw-muted); text-decoration: none; }
html body .gw-crumbs a:hover { color: var(--gw-primary); }
html body .gw-crumbs span { margin: 0 5px; opacity: .7; }

/* ---------- Focus outline: no black box on mouse click, teal ring for keyboard only ---------- */
html body .gw-crumbs a:focus, html body .gw-left a:focus, html body .gw-left button:focus,
html body .gw-toplinks a:focus, html body #gwFooter a:focus, html body .articleList a:focus,
html body .gw-tags a:focus { outline: none !important; box-shadow: none; }
html body .gw-crumbs a:focus-visible, html body .gw-left a:focus-visible, html body .gw-left button:focus-visible,
html body .gw-toplinks a:focus-visible, html body #gwFooter a:focus-visible, html body .articleList a:focus-visible,
html body .gw-tags a:focus-visible { outline: 2px solid var(--gw-primary) !important; outline-offset: 2px; border-radius: 4px; }

/* ---------- No focus/click outline at all; links only change text colour ---------- */
html body a:focus, html body a:active, html body a:focus-visible,
html body button:focus, html body button:active, html body button:focus-visible,
html body .gw-left *:focus, html body .gw-left *:focus-visible,
html body .gw-crumbs *:focus, html body .gw-crumbs *:focus-visible,
html body .articleList *:focus, html body .articleList *:focus-visible,
html body #gwFooter *:focus, html body #gwFooter *:focus-visible,
html body .gw-toplinks *:focus, html body .gw-toplinks *:focus-visible,
html body .gw-tags *:focus, html body .gw-tags *:focus-visible {
  outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent;
}

/* ---------- No divider line under the page title (collection / category pages) ---------- */
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup,
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup h1,
html body.gw-inner:not(:has(#fullArticle)) #main-content h1,
html body.gw-inner:not(:has(#fullArticle)) #categoryHead,
html body.gw-inner:not(:has(#fullArticle)) #categoryHead h1,
html body.gw-inner:not(:has(#fullArticle)) .contentWrapper > h1,
html body.gw-inner:not(:has(#fullArticle)) .contentWrapper > hgroup {
  border-bottom: 0 !important; border-top: 0 !important; box-shadow: none !important; background-image: none !important;
}
html body.gw-inner:not(:has(#fullArticle)) #main-content h1::after,
html body.gw-inner:not(:has(#fullArticle)) #main-content h1::before,
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup::after,
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup::before { display: none !important; content: none !important; }

/* ---------- Tight, even space under the page title (collection and category pages) ---------- */
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper > h1,
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper > hgroup,
html body.gw-inner:not(:has(#fullArticle)) #main-content #categoryHead {
  margin: 0 0 14px !important; padding: 0 !important; min-height: 0 !important;
}
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper > hgroup h1,
html body.gw-inner:not(:has(#fullArticle)) #main-content #categoryHead h1 { margin: 0 !important; padding: 0 !important; }
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper > section > h1,
html body.gw-inner:not(:has(#fullArticle)):not(:has(#serp)) #main-content .articleList { margin-top: 0 !important; }
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup .sort,
html body.gw-inner:not(:has(#fullArticle)) #main-content hgroup .sort form { margin: 0 !important; }

/* ---------- Space between page content and footer ---------- */
html body.gw-inner .gw-shell #contentArea { padding-bottom: 56px !important; }
html body.gw-home .gw-shell #contentArea { padding-bottom: 56px !important; }

/* ---------- Sort dropdown: centre it on the title line so it doesn't crowd the list ---------- */
html body.gw-inner #main-content #categoryHead { display: flex !important; align-items: center !important; flex-wrap: wrap; }
html body.gw-inner #main-content #categoryHead .sort { align-self: center !important; margin: 0 0 0 auto !important; padding: 0 !important; float: none !important; }
html body.gw-inner #main-content #categoryHead .sort select, html body.gw-inner #main-content #categoryHead #sortBy { margin: 0 !important; }

/* ---------- Sort dropdown: take it out of the flow and centre it on the title (robust against base CSS) ---------- */
html body.gw-inner #main-content #categoryHead { position: relative !important; min-height: 38px !important; }
html body.gw-inner #main-content #categoryHead .sort {
  position: absolute !important; right: 0 !important; left: auto !important; top: 50% !important; bottom: auto !important;
  transform: translateY(-50%) !important; margin: 0 !important; padding: 0 !important; float: none !important; height: auto !important; line-height: 1 !important;
}
html body.gw-inner #main-content #categoryHead .sort form { margin: 0 !important; padding: 0 !important; display: block !important; }
html body.gw-inner #main-content #categoryHead .sort select, html body.gw-inner #main-content #categoryHead #sortBy { margin: 0 !important; vertical-align: top !important; }
html body.gw-inner:not(:has(#fullArticle)) #main-content .contentWrapper > hgroup#categoryHead { margin-bottom: 20px !important; }

/* ---------- Sort dropdown: no coloured highlight on hover / focus / open ---------- */
html body #categoryHead .sort, html body #categoryHead .sort:hover, html body #categoryHead .sort:focus-within,
html body #categoryHead .sort form, html body #categoryHead .sort form:hover,
html body #categoryHead .sort *::before, html body #categoryHead .sort *::after,
html body #categoryHead .sort::before, html body #categoryHead .sort::after {
  background: transparent !important; background-image: none !important; box-shadow: none !important; outline: 0 !important;
}
html body #categoryHead .sort select, html body #categoryHead #sortBy,
html body #categoryHead .sort select:hover, html body #categoryHead #sortBy:hover,
html body #categoryHead .sort select:focus, html body #categoryHead #sortBy:focus,
html body #categoryHead .sort select:active, html body #categoryHead #sortBy:active {
  background-color: #fff !important; box-shadow: none !important; outline: 0 !important; border-color: var(--gw-border) !important; color: var(--gw-muted) !important;
}

/* ---------- Sort dropdown: fully own the look (own arrow, same background in every state) ---------- */
html body #categoryHead .sort select, html body #categoryHead #sortBy,
html body #categoryHead .sort select:hover, html body #categoryHead #sortBy:hover,
html body #categoryHead .sort select:focus, html body #categoryHead #sortBy:focus,
html body #categoryHead .sort select:active, html body #categoryHead #sortBy:active,
html body #categoryHead .sort:hover select, html body #categoryHead .sort:hover #sortBy {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px 16px !important;
  padding: 0 34px 0 12px !important; box-shadow: none !important; outline: 0 !important; text-shadow: none !important; filter: none !important;
}
html body #categoryHead .sort > *:not(form):not(select), html body #categoryHead .sort form > *:not(select):not(input):not(label) { display: none !important; }

/* ---------- Footer: nudge the Resources column toward Company (Company stays put) ---------- */
@media (min-width: 861px) {
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(1) { position: relative; left: 48px; }
}

/* ---------- Logo: further left, lined up with the menu icons below ---------- */
html body #mainNav .navbar-inner .container-fluid { padding-left: 0 !important; }
html body #mainNav .brand { margin: 0 !important; padding-left: 0 !important; }
html body #mainNav .brand { flex: none !important; }
html body #mainNav .brand img { margin: 0 !important; position: relative; left: -8px; flex: none !important; max-width: none !important; max-height: 36px !important; height: 36px !important; width: auto !important; }
@media (max-width: 860px) { html body #mainNav .navbar-inner .container-fluid { padding-left: 8px !important; } html body #mainNav .brand img { left: 0; } }

/* ---------- Article title: same size and weight as the other page titles ---------- */
html body.gw-inner #fullArticle h1.title { font-size: 24px !important; font-weight: 800 !important; line-height: 1.25 !important; }

/* ---------- Menu search = Help Scout's own search box (live suggestions) ---------- */
html body .gw-left #searchBar.gw-native-search { position: relative !important; display: block !important; float: none !important; width: auto !important; max-width: none !important; margin: 0 6px 18px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body .gw-left #searchBar input.search-query { width: 100% !important; height: 40px !important; margin: 0 !important; padding: 0 12px 0 38px !important; box-sizing: border-box !important; border: 1px solid var(--gw-border) !important; border-radius: 10px !important; background: var(--gw-bg) !important; box-shadow: none !important; outline: 0 !important; color: var(--gw-ink) !important; font: 400 13.5px var(--gw-body) !important; }
html body .gw-left #searchBar input.search-query:focus { background: #fff !important; border-color: var(--gw-primary) !important; box-shadow: 0 0 0 3px rgba(0, 163, 196, .15) !important; }
html body .gw-left #searchBar button[type=submit] { position: absolute !important; left: 4px !important; top: 4px !important; width: 32px !important; height: 32px !important; margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--gw-muted) !important; cursor: pointer; }
html body .gw-left #searchBar button[type=submit] i { color: var(--gw-muted) !important; font-size: 15px !important; margin: 0 !important; }
html body .gw-left #searchBar #serp-dd { position: absolute !important; top: calc(100% + 6px) !important; left: 0 !important; right: 0 !important; width: auto !important; z-index: 60 !important; margin: 0 !important; padding: 4px !important; background: #fff !important; border: 1px solid var(--gw-border) !important; border-radius: 12px !important; box-shadow: 0 12px 32px rgba(15, 23, 42, .14) !important; max-height: 340px; overflow-y: auto; }
html body .gw-left #searchBar #serp-dd ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body .gw-left #searchBar #serp-dd li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 8px; }
html body .gw-left #searchBar #serp-dd li.active, html body .gw-left #searchBar #serp-dd li:hover { background: var(--gw-bg) !important; }
html body .gw-left #searchBar #serp-dd a { display: block !important; padding: 8px 10px !important; color: var(--gw-ink) !important; font: 500 13px/1.4 var(--gw-body) !important; text-decoration: none !important; white-space: normal !important; }
html body .gw-left #searchBar #serp-dd a span, html body .gw-left #searchBar #serp-dd a small { color: var(--gw-muted) !important; font-weight: 400 !important; }
html body .gw-left #searchBar .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; border: 0 !important; white-space: nowrap !important; }
html body .gw-left #searchBar button[type=submit] { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / 16px 16px !important; }
html body .gw-left #searchBar button[type=submit] i { display: none !important; }

/* ---------- Menu search dropdown: one scrollbar only (the list scrolls, not the box around it) ---------- */
html body .gw-left #searchBar #serp-dd { overflow: hidden !important; max-height: none !important; height: auto !important; }
html body .gw-left #searchBar #serp-dd ul.result { max-height: 320px !important; overflow-y: auto !important; overflow-x: hidden !important; }

/* ---------- "Did this answer your question?" / "Still need help?" : centred, like the mockup ---------- */
html body.gw-inner .articleRatings {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; flex-wrap: nowrap !important;
  gap: 14px !important; margin: 34px 0 0 !important; padding: 28px 0 0 !important; text-align: center;
  background: transparent !important; border: 0 !important; border-top: 1px solid var(--gw-border) !important; border-radius: 0 !important; box-shadow: none !important;
}
html body.gw-inner .articleRatings-question { margin: 0 !important; color: #3b4452 !important; font: 400 15px var(--gw-body) !important; text-align: center !important; }
html body.gw-inner .articleRatings-actions { margin: 0 !important; gap: 12px !important; justify-content: center !important; }
html body.gw-inner .articleRatings-feedback-message { color: var(--gw-muted) !important; text-align: center; }
html body.gw-inner .articleFoot { margin: 18px 0 0 !important; padding: 0 !important; border: 0 !important; gap: 0 !important; align-items: center !important; text-align: center !important; }
html body.gw-inner .articleFoot .help { color: #3b4452 !important; font: 400 15px var(--gw-body) !important; gap: 14px !important; align-items: center !important; }
html body.gw-inner .articleFoot .help a { font: 600 14px var(--gw-body) !important; }
html body.gw-inner .articleFoot .help a#sbContactMobile { display: none !important; }
html body.gw-inner:has(#fullArticle):has(#sidebar):not(:has(#docsSearch)) .articleRatings-actions { margin: 0 auto !important; align-self: center !important; justify-content: center !important; }

/* ---------- Feedback faces: smaller circles and icons (grey) ---------- */
html body.gw-inner .articleRatings .rateAction { width: 36px !important; height: 36px !important; min-width: 36px !important; }
html body.gw-inner .articleRatings .rateAction svg { width: 20px !important; height: 20px !important; }

/* ---------- Feedback faces: exact optical centring at the new 20px size ---------- */
html body.gw-inner .articleRatings .rateAction .rating-face { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; line-height: 0 !important; }
html body.gw-inner .articleRatings .rateAction svg { margin: 0 !important; transform-origin: center; }
html body.gw-inner .articleRatings .rateAction--positive svg { transform: translateY(-.4px) !important; }
html body.gw-inner .articleRatings .rateAction--negative svg { transform: translateY(-2.1px) !important; }
/* pin each face to the exact middle of its circle, whatever the surrounding layout does */
html body.gw-inner .articleRatings .rateAction .rating-face { position: static !important; }
html body.gw-inner .articleRatings .rateAction { position: relative !important; }
html body.gw-inner .articleRatings .rateAction svg { position: absolute !important; left: 50% !important; top: 50% !important; width: 20px !important; height: 20px !important; margin: -10px 0 0 -10px !important; }
html body.gw-inner .articleRatings .rateAction--positive svg { transform: translateY(-2.1px) !important; }
html body.gw-inner .articleRatings .rateAction--negative svg { transform: translateY(-4.4px) !important; }
/* the face drawings have no viewBox, so shrink them with scale (not width/height) to keep them whole and centred */
html body.gw-inner .articleRatings .rateAction svg { width: 24px !important; height: 24px !important; margin: -12px 0 0 -12px !important; }
html body.gw-inner .articleRatings .rateAction--positive svg { transform: translateY(-.4px) scale(.8333) !important; }
html body.gw-inner .articleRatings .rateAction--negative svg { transform: translateY(-2.1px) scale(.8333) !important; }

/* ---------- Homepage search suggestions (dropdown under the hero search) ---------- */
html body #docsSearch #serp-dd { top: calc(100% + 8px) !important; padding: 6px !important; background: #fff !important; border: 1px solid var(--gw-border) !important; border-radius: 14px !important; box-shadow: 0 16px 40px rgba(15, 23, 42, .18) !important; overflow: hidden !important; text-align: left; }
html body #docsSearch #serp-dd ul.result { max-height: 340px !important; overflow-y: auto !important; overflow-x: hidden !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body #docsSearch #serp-dd li { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px; background: transparent !important; }
html body #docsSearch #serp-dd li.active, html body #docsSearch #serp-dd li:hover { background: var(--gw-bg) !important; }
html body #docsSearch #serp-dd li a { display: block !important; padding: 11px 14px !important; color: var(--gw-ink) !important; font: 500 14px/1.4 var(--gw-body) !important; text-decoration: none !important; }
html body #docsSearch #serp-dd li.active a, html body #docsSearch #serp-dd li:hover a { color: var(--gw-primary-dark) !important; }
html body #docsSearch #serp-dd li a span, html body #docsSearch #serp-dd li a small { color: var(--gw-muted) !important; font-weight: 400 !important; }

/* ---------- Card icons: neutral grey tile, dark icon, teal on hover (chosen option B) ---------- */
html body .collection-category .category-list.category-list a.category::before { background: #f1f3f6; }
html body .collection-category .category-list.category-list a.category::after { background-color: #2b3544; }
html body .collection-category .category-list.category-list a.category:hover::before { background: var(--gw-primary); }
html body .collection-category .category-list.category-list a.category:hover::after { background-color: #fff; }

/* left menu collection icons follow the same look */
.gw-cico { background: #f1f3f6 !important; color: #2b3544 !important; transition: background-color .18s, color .18s; }
.gw-tg:hover .gw-cico { background: var(--gw-primary) !important; color: #fff !important; }

/* ---------- Article page: print icon pinned to the top-right corner of the article card ---------- */
html body.gw-inner:has(#fullArticle) #main-content .contentWrapper { position: relative !important; }
html body.gw-inner #fullArticle a.printArticle {
  position: absolute !important; top: 14px !important; right: 16px !important; left: auto !important; bottom: auto !important; float: none !important;
  display: grid !important; place-items: center !important; width: 34px !important; height: 34px !important; margin: 0 !important; padding: 0 !important;
  border-radius: 9px; background: transparent !important; color: var(--gw-muted) !important; text-decoration: none !important; line-height: 1 !important; z-index: 2;
}
html body.gw-inner #fullArticle a.printArticle:hover { color: var(--gw-primary) !important; background: var(--gw-bg) !important; }
html body.gw-inner #fullArticle a.printArticle i { margin: 0 !important; padding: 0 !important; color: inherit !important; font-size: 17px !important; line-height: 1 !important; }
html body.gw-inner #fullArticle h1.title { padding-right: 28px !important; }
html body.gw-inner #fullArticle { position: relative !important; }
html body.gw-inner #fullArticle a.printArticle { top: -2px !important; right: -6px !important; }

/* ---------- Article page: Share button beside Print ---------- */
html body.gw-inner #fullArticle h1.title { padding-right: 80px !important; }
html body.gw-inner #fullArticle .gw-share {
  position: absolute; top: -2px; right: 32px; width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: 9px;
  display: grid; place-items: center; background: transparent; color: var(--gw-muted); cursor: pointer; z-index: 2; transition: background-color .15s, color .15s;
}
html body.gw-inner #fullArticle .gw-share svg { width: 18px; height: 18px; display: block; }
html body.gw-inner #fullArticle .gw-share:hover { background: var(--gw-bg); color: var(--gw-primary); }
html body.gw-inner #fullArticle .gw-share.gw-done { background: #dcfce7; color: #15803d; }
html body.gw-inner #fullArticle .gw-share::after, html body.gw-inner #fullArticle a.printArticle::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #1a2332; color: #fff;
  font: 500 11px/1 Montserrat, sans-serif; padding: 5px 8px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
html body.gw-inner #fullArticle .gw-share:hover::after, html body.gw-inner #fullArticle a.printArticle:hover::after { opacity: 1; }
.gw-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #1a2332; color: #fff; font: 500 13px Montserrat, sans-serif;
  padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; z-index: 9999;
}
.gw-toast.gw-on { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { html body.gw-inner #fullArticle .gw-share::after, html body.gw-inner #fullArticle a.printArticle::after { display: none !important; } html body.gw-inner #fullArticle .gw-share:hover { background: transparent; color: var(--gw-muted); } }
@media print { .gw-share, .gw-toast { display: none !important; } }

/* ---------- Phone: top links collapse into a menu button ---------- */
.gw-burger { display: none; }
@media (max-width: 767px) {
  html body #mainNav .navbar-inner .container-fluid { position: relative !important; padding: 0 12px 0 16px !important; min-height: 60px !important; }
  html body #mainNav .brand img { height: 32px !important; max-height: 32px !important; }
  html body #mainNav .gw-burger { display: grid !important; place-items: center; margin: 0 0 0 auto !important; width: 42px; height: 42px; padding: 0 !important; border: 0 !important; border-radius: 10px; background: transparent !important; box-shadow: none !important; color: var(--gw-ink) !important; cursor: pointer; }
  html body #mainNav .gw-burger:hover { background: var(--gw-bg) !important; }
  html body #mainNav .gw-burger .gw-b2 { display: none; }
  html body #mainNav.gw-menu-open .gw-burger .gw-b1 { display: none; }
  html body #mainNav.gw-menu-open .gw-burger .gw-b2 { display: inline; }
  html body #mainNav .gw-toplinks { display: none !important; position: absolute; top: 100%; left: 0; right: 0; margin: 0 !important; padding: 6px 20px 12px; flex-direction: column; gap: 0 !important; background: #fff; border-bottom: 1px solid var(--gw-border); box-shadow: 0 14px 28px rgba(15, 23, 42, .12); z-index: 200; }
  html body #mainNav.gw-menu-open .gw-toplinks { display: flex !important; }
  html body #mainNav .gw-toplinks a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--gw-border); font-size: 16px; }
  html body #mainNav .gw-toplinks a:last-child { border-bottom: 0; }
}
@media (max-width: 767px) {
  html body #mainNav .gw-toplinks { align-items: stretch !important; text-align: left; }
  html body #mainNav .gw-toplinks a { width: 100%; box-sizing: border-box; text-align: left; }
}

/* ---------- Footer: logo with tagline beside it ---------- */
#gwFooter .gwf-id { display: flex; align-items: center; gap: 16px; margin: 0; }
#gwFooter .gwf-tag { margin: 0; max-width: 230px; padding: 2px 0 2px 16px; border-left: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); font: 400 13px/1.5 var(--gw-body); }
@media (max-width: 420px) { #gwFooter .gwf-tag { max-width: 190px; } }

/* ---------- Footer social icons: smaller (16px, was 20px) ---------- */
#gwFooter .gwf-social { gap: 18px; }
#gwFooter .gwf-social a { height: 16px; }
#gwFooter .gwf-social svg { height: 16px; width: auto; }

/* ---------- Footer: Help Scout + Privacy lines sit at the bottom, level with the last Company link ---------- */
@media (min-width: 861px) {
  #gwFooter .gwf-brand { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; }
  #gwFooter .gwf-brand .gwf-hs { margin-top: auto; }
  #gwFooter .gwf-brand .gwf-privacy { margin-top: 14px; margin-bottom: 18px; }
}

/* ---------- Footer tagline: option A (under the logo), bold ---------- */
#gwFooter .gwf-id { flex-direction: column; align-items: flex-start; gap: 0; }
#gwFooter .gwf-tag { margin: 16px 0 0; padding: 0; max-width: 270px; border-left: 0; color: rgba(255, 255, 255, .95); font: 700 14px/1.6 var(--gw-body); }
@media (max-width: 420px) { #gwFooter .gwf-tag { max-width: 260px; } }
/* tighten the left column so the Privacy line still lines up with the last Company link */
#gwFooter .gwf-tag { margin-top: 12px; }
#gwFooter .gwf-social { margin: 16px 0 0; }
/* tagline: regular weight */
#gwFooter .gwf-tag { font-weight: 400; color: rgba(255, 255, 255, .88); }

/* ---------- Footer: four columns (brand + Product, Resources, Company), smaller text, copyright line ---------- */
#gwFooter .gwf-tag { font-size: 13px; }
#gwFooter .gwf-col h4 { font-size: 13px; }
#gwFooter .gwf-col a { font-size: 12.5px; }
#gwFooter .gwf-privacy { font-size: 11.5px; }
#gwFooter .gwf-copy { margin: 0; color: rgba(255, 255, 255, .75); font: 400 11.5px/1.4 var(--gw-body); }
@media (min-width: 861px) {
  #gwFooter .gwf-inner { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(1) { left: 0; }
  #gwFooter .gwf-brand { position: relative; }
  #gwFooter .gwf-brand .gwf-privacy { margin-top: auto; margin-bottom: 18px; }
  /* hangs below the columns so Your Privacy Choices stays level with the last Company link */
  #gwFooter .gwf-brand .gwf-copy { position: absolute; left: 0; bottom: -22px; white-space: nowrap; }
}
@media (max-width: 860px) {
  #gwFooter .gwf-brand .gwf-privacy { margin-top: 18px; }
  #gwFooter .gwf-brand .gwf-copy { margin-top: 22px; }
}

/* ---------- Footer: Product and Resources closer to Company (Company does not move), even spacing ---------- */
@media (min-width: 861px) {
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(1) { position: relative; left: 120px; }   /* Product */
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(2) { position: relative; left: 60px; }    /* Resources */
}

/* ---------- Left menu: "Recently viewed" (bottom of the menu) ---------- */
.gw-recent { margin: 22px 0 0; padding: 18px 0 8px; border-top: 1px solid var(--gw-border); }
.gw-recent .gw-rhead { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 8px; }
.gw-recent .gw-rhead h6 { margin: 0 !important; padding: 0 !important; }
.gw-recent .gw-rclear { margin: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--gw-muted); font: 500 11px var(--gw-body); cursor: pointer; }
.gw-recent .gw-rclear:hover { color: var(--gw-primary); }
.gw-recent .gw-rv { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 8px 8px; border-radius: 9px; color: #3b4452; font: 400 13px/1.4 var(--gw-body); text-decoration: none; }
.gw-recent .gw-rv i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--gw-muted); font-style: normal; }
.gw-recent .gw-rv i svg { display: block; width: 16px; height: 16px; }
.gw-recent .gw-rv span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gw-recent .gw-rv:hover { color: var(--gw-primary-dark); }
.gw-recent .gw-rv:hover i { color: var(--gw-primary); }

/* =====================================================================
   PHONE LAYOUT (767px and narrower): Intercom-style.
   Everything below only applies on phone-width screens.
   ===================================================================== */
.gw-msearch, .gw-msbar, .gw-mcols, .gw-mhome { display: none; }
@media (max-width: 767px) {
  /* ---- header: logo left; search + menu buttons right ---- */
  html body #mainNav .navbar-inner .container-fluid { display: flex !important; align-items: center; position: relative !important; padding: 0 8px 0 16px !important; min-height: 60px !important; }
  html body #mainNav .brand img { left: 0 !important; height: 34px !important; max-height: 34px !important; }
  html body #mainNav .gw-msearch, html body #mainNav .gw-burger { display: grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important; border: 0 !important; border-radius: 10px; background: transparent !important; box-shadow: none !important; color: var(--gw-ink) !important; cursor: pointer; }
  html body #mainNav .gw-msearch { margin: 0 0 0 auto !important; }
  html body #mainNav .gw-burger { margin: 0 !important; }
  html body #mainNav .gw-msearch:hover, html body #mainNav .gw-burger:hover { background: var(--gw-bg) !important; }
  html body #mainNav.gw-search-open .gw-msearch { color: var(--gw-primary) !important; }

  /* search bar that drops under the header */
  html body #mainNav .gw-msbar { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 10px 16px 14px; background: #fff; border-bottom: 1px solid var(--gw-border); box-shadow: 0 14px 28px rgba(15, 23, 42, .1); z-index: 190; }
  html body #mainNav.gw-search-open .gw-msbar { display: block; }
  html body #mainNav .gw-msbar input { display: block; box-sizing: border-box; width: 100%; height: 46px; margin: 0; padding: 0 16px; border: 1px solid var(--gw-border); border-radius: 12px; background: var(--gw-bg); box-shadow: none; outline: none; color: var(--gw-ink); font: 400 16px var(--gw-body); }
  html body #mainNav .gw-msbar input:focus { background: #fff; border-color: var(--gw-primary); box-shadow: 0 0 0 3px rgba(0, 163, 196, .15); }

  /* ---- full-screen menu ---- */
  html.gw-noscroll, html.gw-noscroll body { overflow: hidden !important; }
  html body #mainNav .gw-toplinks { display: none !important; position: fixed !important; top: 61px; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 0 0 48px !important; overflow-y: auto; background: #fff; border: 0 !important; box-shadow: none !important; z-index: 1000; }
  html body #mainNav.gw-menu-open .gw-toplinks { display: block !important; }
  html body #mainNav .gw-toplinks > a { display: flex !important; align-items: center; justify-content: space-between; box-sizing: border-box; width: 100%; padding: 16px 20px !important; border-bottom: 1px solid var(--gw-border) !important; color: #4a5566 !important; font: 500 15px var(--gw-body) !important; }
  html body #mainNav .gw-toplinks > a::after { content: ""; flex: none; width: 16px; height: 16px; background: #98a2b3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
  html body #mainNav .gw-toplinks .gw-mcols { display: block; }
  html body #mainNav .gw-mcols h6 { margin: 0; padding: 26px 20px 8px; color: var(--gw-muted); font: 700 11px/1.2 var(--gw-body); letter-spacing: .07em; text-transform: uppercase; }
  html body #mainNav .gw-mcols a { display: flex !important; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; padding: 13px 20px !important; border-bottom: 1px solid var(--gw-border) !important; color: var(--gw-ink) !important; font: 600 15px var(--gw-body) !important; white-space: normal; }
  html body #mainNav .gw-mcols a::after { display: none; }
  html body #mainNav .gw-mcols .gw-mt { flex: 1; min-width: 0; }
  html body #mainNav .gw-mcols .gw-cico { width: 34px; height: 34px; border-radius: 9px; }
  html body #mainNav .gw-mcols .gw-cico svg { width: 18px; height: 18px; }
  html body #mainNav .gw-mcols .gw-chev { width: 16px; height: 16px; color: #98a2b3; }

  /* ---- homepage: tighter hero, collections as a plain list ---- */
  html body #docsSearch { padding: 52px 20px 48px !important; }
  html body #docsSearch h1 { font-size: 30px !important; margin-bottom: 22px !important; }
  .gw-tags { margin-top: 22px !important; gap: 8px !important; }
  body.gw-home .collection-category { display: none !important; }
  body.gw-home .gw-mhome { display: block; padding: 4px 0 8px; }
  .gw-mhome h2 { margin: 0 0 6px; color: var(--gw-ink); font: 800 20px/1.3 var(--gw-head); letter-spacing: -.01em; }
  .gw-mhome .gw-mrow { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gw-border); color: var(--gw-ink); text-decoration: none; }
  .gw-mhome .gw-mtxt { flex: 1; min-width: 0; }
  .gw-mhome .gw-mtxt b { display: block; margin: 0; font: 700 15px/1.35 var(--gw-head); }
  .gw-mhome .gw-mtxt small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 3px 0 0; color: var(--gw-muted); font: 400 13px/1.45 var(--gw-body); }
  .gw-mhome .gw-cico { width: 36px; height: 36px; border-radius: 10px; }
  .gw-mhome .gw-cico svg { width: 18px; height: 18px; }
  .gw-mhome .gw-mrow:hover b { color: var(--gw-primary); }

  /* ---- article page ---- */
  html body.gw-inner #fullArticle h1.title { font-size: 22px !important; line-height: 1.3 !important; padding-right: 80px !important; }
  html body.gw-inner:has(#fullArticle) #main-content .contentWrapper { padding: 24px 18px !important; }

  /* ---- search results: never wider than the screen ---- */
  html body.gw-inner #serp, html body.gw-inner #main-content, html body.gw-inner #contentArea { max-width: 100% !important; box-sizing: border-box; }
  html body.gw-inner #serp h1 { font-size: 21px !important; }
  html body.gw-inner #serp .articleList li a { min-width: 0; overflow-wrap: anywhere; }

  /* ---- footer: brand block, tap-to-open sections, then the small print ---- */
  #gwFooter .gwf-inner { display: flex !important; flex-direction: column; padding: 34px 20px 30px !important; row-gap: 0 !important; }
  #gwFooter .gwf-brand { display: contents; }
  #gwFooter .gwf-id { order: 1; }
  #gwFooter .gwf-social { order: 2; margin: 18px 0 24px !important; }
  #gwFooter .gwf-inner > nav.gwf-col { order: 3; position: static !important; left: auto !important; margin: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  #gwFooter .gwf-inner > nav.gwf-col:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .25); }
  #gwFooter .gwf-privacy { order: 4; position: static; margin: 22px 0 0 !important; }
  #gwFooter .gwf-copy { order: 5; position: static !important; margin: 10px 0 0 !important; white-space: normal; }
  #gwFooter .gwf-tag { margin-top: 12px !important; padding: 0 !important; border-left: 0 !important; max-width: 280px; }
  #gwFooter .gwf-col h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 !important; padding: 14px 0; cursor: pointer; font-size: 13.5px; -webkit-tap-highlight-color: transparent; }
  #gwFooter .gwf-col h4::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; transition: transform .2s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; }
  #gwFooter .gwf-col.gwf-open h4::after { transform: rotate(180deg); }
  #gwFooter .gwf-col ul { display: none; padding: 0 0 8px; }
  #gwFooter .gwf-col.gwf-open ul { display: block; }
  #gwFooter .gwf-col li { margin: 0 0 12px !important; }
  #gwFooter .gwf-col a { font-size: 13px; }
}

/* ---------- Search result snippets: no half-visible third line (the bottom gap is now margin, not padding) ---------- */
html body.gw-inner #serp .articleList li p { padding: 0 20px 0 52px !important; margin: 0 0 15px !important; }

/* ---------- Phone fixes ---------- */
@media (max-width: 767px) {
  html body #mainNav .navbar-inner .container-fluid { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; }
  html body #mainNav .gw-msearch, html body #mainNav .gw-burger { flex: none !important; box-sizing: border-box; }
  html body #mainNav .brand { flex: 0 1 auto !important; min-width: 0; overflow: hidden; }
  #gwFooter .gwf-inner { align-items: stretch !important; }
  #gwFooter .gwf-inner > nav.gwf-col { width: 100%; box-sizing: border-box; }
  #gwFooter .gwf-id, #gwFooter .gwf-social { align-self: flex-start; }
}

/* ---------- Phone header: even edges, everything centred on one line, search closer to the menu button ---------- */
@media (max-width: 767px) {
  html body #mainNav, html body #mainNav .navbar-inner { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  html body #mainNav .navbar-inner .container-fluid { margin: 0 !important; padding: 0 12px 0 20px !important; min-height: 60px !important; height: 60px; gap: 0 !important; }
  html body #mainNav .brand { display: flex !important; align-items: center; align-self: center !important; float: none !important; height: 60px; margin: 0 !important; padding: 0 !important; line-height: 0; }
  html body #mainNav .brand img { position: static !important; display: block; margin: 0 !important; height: 34px !important; max-height: 34px !important; width: auto !important; }
  html body #mainNav .gw-msearch, html body #mainNav .gw-burger { width: 40px; height: 40px; }
  html body #mainNav .gw-msearch { margin: 0 2px 0 auto !important; }
  html body #mainNav .gw-toplinks { top: 60px; }
}

/* ---------- Phone header: full width again (no box around it), whatever side padding the page has ---------- */
@media (max-width: 767px) {
  html body #mainNav { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; background: #fff !important; box-sizing: border-box !important; }
  html body #mainNav .navbar-inner { background: #fff !important; border-radius: 0 !important; }
}

/* ---------- Phone: footer colour runs edge to edge; no sticky grey square on the header buttons after a tap ---------- */
@media (max-width: 767px) {
  html body #gwFooter { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; box-sizing: border-box !important; }
}
@media (hover: none) {
  html body #mainNav .gw-msearch:hover, html body #mainNav .gw-burger:hover { background: transparent !important; }
}

/* ---------- Tablet (portrait): two even columns of cards instead of three plus an orphan ---------- */
@media (min-width: 768px) and (max-width: 860px) {
  html body.gw-home .collection-category .category-list.category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet (portrait): keep the left menu (narrower) so there is still navigation and search ---------- */
@media (min-width: 768px) and (max-width: 860px) {
  .gw-shell { display: flex; }
  .gw-left { display: block; width: 236px; }
  html body.gw-home .gw-shell #contentArea, html body.gw-inner .gw-shell #contentArea { padding: 28px 22px 56px !important; }
  html body.gw-inner #sidebar { display: none !important; }
  html body.gw-home .collection-category .category-list.category-list { grid-template-columns: 1fr; }
}
@media (min-width: 780px) and (max-width: 860px) {
  html body.gw-home .collection-category .category-list.category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet widths: logo, top links and header all centred on one line ---------- */
@media (min-width: 768px) and (max-width: 979px) {
  html body #mainNav .navbar-inner .container-fluid { display: flex !important; align-items: center !important; min-height: 64px; }
  html body #mainNav .brand { display: flex !important; align-items: center; align-self: center !important; float: none !important; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 0; }
  html body #mainNav .brand img { display: block; margin-top: 0 !important; margin-bottom: 0 !important; top: 0 !important; vertical-align: middle; }
  html body #mainNav .gw-toplinks { align-self: center; margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* ---------- Tablet (portrait): footer. Brand on the left, links grouped on the right, thin line, then privacy (left) and copyright (right) ---------- */
@media (min-width: 768px) and (max-width: 860px) {
  #gwFooter .gwf-inner { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, max-content); column-gap: 44px; row-gap: 0; max-width: none; padding: 52px 56px 104px; }
  #gwFooter .gwf-brand { display: contents; }
  #gwFooter .gwf-id { grid-column: 1; grid-row: 1; }
  #gwFooter .gwf-social { grid-column: 1; grid-row: 2; margin: 16px 0 0; }
  #gwFooter .gwf-inner > nav.gwf-col { grid-row: 1 / span 2; align-self: start; position: static; left: auto; min-width: 0; width: max-content; }
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(1) { grid-column: 2; }
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(2) { grid-column: 3; }
  #gwFooter .gwf-inner > nav.gwf-col:nth-of-type(3) { grid-column: 4; }
  #gwFooter .gwf-inner::after { content: ""; grid-column: 1 / -1; grid-row: 3; margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .25); }
  #gwFooter .gwf-privacy { grid-column: 1 / span 2; grid-row: 4; justify-self: start; position: static; margin: 22px 0 0; }
  #gwFooter .gwf-copy { grid-column: 3 / -1; grid-row: 4; justify-self: end; position: static; margin: 22px 0 0; white-space: nowrap; }
  #gwFooter .gwf-col h4 { margin: 0 0 16px; }
  #gwFooter .gwf-col li { margin: 0 0 12px; }
}

/* ---------- Header (desktop + tablet): "Help Centre" label after a thin line, Contact sales as the teal button, teal line under the bar on the homepage ---------- */
html body #mainNav .gw-hlabel { display: none; }
@media (min-width: 768px) {
  html body #mainNav .gw-hlabel { display: inline-block; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--gw-border); color: var(--gw-muted); font: 600 14px/26px var(--gw-body); white-space: nowrap; }
  html body #mainNav .gw-toplinks a.gw-cta { padding: 10px 22px; border-radius: 999px; background: var(--gw-primary); color: #fff !important; font-weight: 600; }
  html body #mainNav .gw-toplinks a.gw-cta:hover { background: #006f89; color: #fff !important; }
  html body.gw-home #mainNav .navbar-inner { border-bottom: 3px solid var(--gw-primary) !important; }
}
@media (min-width: 768px) and (max-width: 860px) { html body #mainNav .gw-hlabel { margin-left: 14px; } }
@media (min-width: 861px) { html body #mainNav .gw-hlabel { margin-left: 6px; } }

/* ---------- Homepage header: teal line at the top, soft shadow once you scroll ---------- */
@media (min-width: 768px) {
  html body.gw-home #mainNav .navbar-inner { transition: box-shadow .2s ease, border-color .2s ease; }
  html.gw-scrolled body.gw-home #mainNav .navbar-inner { border-bottom: 1px solid var(--gw-border) !important; box-shadow: 0 4px 16px rgba(20, 30, 50, .10) !important; }
}

/* ---------- Phones: "Can't find what you need?" card above the footer ---------- */
.gw-helpcard { display: none; }
@media (max-width: 767px) {
  html body .gw-helpcard { display: block; margin: 8px 20px 26px; padding: 18px; background: #fff; border: 1px solid var(--gw-border); border-radius: 16px; box-shadow: 0 2px 10px rgba(20, 30, 50, .06); text-align: center; }
  html body .gw-helpcard b { display: block; color: var(--gw-ink); font: 700 15px/1.35 var(--gw-body); }
  html body .gw-helpcard span { display: block; margin: 4px 0 14px; color: var(--gw-muted); font: 400 13px/1.45 var(--gw-body); }
  html body .gw-helpcard a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--gw-primary); color: #fff !important; font: 600 14px var(--gw-body); text-decoration: none; }
}

/* ---------- Phones: Privacy Choices on the left and the copyright on the right, on one line (room left at the bottom for the chat button) ---------- */
@media (max-width: 767px) {
  #gwFooter .gwf-inner { flex-direction: row !important; flex-wrap: wrap; align-items: center; padding-bottom: 96px !important; }
  #gwFooter .gwf-brand > *, #gwFooter .gwf-inner > nav.gwf-col { flex: 0 0 100%; }
  #gwFooter .gwf-brand > .gwf-privacy { flex: 0 1 auto !important; width: auto; margin: 22px 12px 0 0 !important; }
  #gwFooter .gwf-brand > .gwf-copy { flex: 0 0 auto !important; margin: 22px 0 0 auto !important; white-space: nowrap !important; text-align: right; }
}

/* ---------- Link back to the main site: "getworkgear.com ↗" in the top bar; first row of the phone menu ---------- */
html body #mainNav .gw-ext .gw-ext-m { display: none; }
@media (min-width: 768px) {
  html body #mainNav .gw-toplinks a.gw-ext { display: inline-flex; align-items: center; color: var(--gw-muted) !important; }
  html body #mainNav .gw-toplinks a.gw-ext .gw-ext-d { display: inline-flex; align-items: center; gap: 5px; }
  html body #mainNav .gw-toplinks a.gw-ext:hover { color: var(--gw-primary-dark) !important; }
}
@media (max-width: 767px) {
  html body #mainNav .gw-ext .gw-ext-d { display: none; }
  html body #mainNav .gw-toplinks > a.gw-ext { justify-content: flex-start !important; background: #f3fafc; color: var(--gw-primary-dark) !important; font-weight: 600 !important; }
  html body #mainNav .gw-toplinks > a.gw-ext::after { display: none !important; }
  html body #mainNav .gw-ext .gw-ext-m { display: inline-flex; align-items: center; gap: 10px; }
}

/* ---------- Left menu: every top-level item (expandable or plain link like Integrations) uses exactly the same type ---------- */
html body .gw-left .gw-tg, html body .gw-left a.gw-tg, html body .gw-left button.gw-tg { font: 600 14px/1.4 var(--gw-head) !important; letter-spacing: normal !important; color: var(--gw-ink) !important; -webkit-font-smoothing: antialiased; }


/* ===== Popular articles pills (homepage) ===== */
html body .gw-pop { margin: 8px 0 52px; }
html body .gw-pop h2 { margin: 0 0 20px; color: var(--gw-ink); font: 800 20px/1.3 var(--gw-head); letter-spacing: -.01em; }
html body .gw-pop .gw-pills { display: flex; flex-wrap: wrap; gap: 14px 12px; }
html body .gw-pop .gw-pills a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; background: #fff; border: 1px solid var(--gw-border); border-radius: 999px; color: var(--gw-ink) !important; font: 500 14px/1.4 var(--gw-body); text-decoration: none !important; transition: border-color .15s, color .15s, box-shadow .15s, transform .15s; }
html body .gw-pop .gw-pills a svg { flex: none; color: var(--gw-primary); }
html body .gw-pop .gw-pills a:hover { border-color: var(--gw-primary); color: var(--gw-primary-dark) !important; box-shadow: 0 6px 16px rgba(0, 111, 137, .12); transform: translateY(-2px); }
@media (max-width: 767px) {
  html body .gw-pop { margin: 0 0 32px; }
  html body .gw-pop .gw-pills { flex-direction: column; gap: 10px; }
  html body .gw-pop .gw-pills a { border-radius: 14px; padding: 15px 16px; }
}

/* ===== Card hover: slight lift + softer shadow ===== */
html body .collection-category .category-list.category-list a.category { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
html body .collection-category .category-list.category-list a.category:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 111, 137, .14); }
@media (prefers-reduced-motion: reduce) {
  html body .collection-category .category-list.category-list a.category, html body .gw-pop .gw-pills a { transition: none; }
  html body .collection-category .category-list.category-list a.category:hover, html body .gw-pop .gw-pills a:hover { transform: none; }
}


/* ===== Small grey section labels (homepage) ===== */
html body .gw-pop { margin: 8px 0 0; }
html body .gw-pop h2, html body .gw-browse { margin: 0 0 18px; color: var(--gw-muted); font: 700 11px/1.3 var(--gw-body); letter-spacing: .12em; text-transform: uppercase; }
html body .gw-browse { margin: 40px 0 24px; padding-top: 28px; border-top: 1px solid var(--gw-border); }
@media (max-width: 767px) {
  html body .gw-pop { margin: 0; }
  html body .gw-browse { margin: 28px 0 4px; padding-top: 24px; }
  html body.gw-home .gw-mhome h2 { display: none; }
}

/* ===== Homepage alignment: tighter gap under the banner, collection titles flush with the cards ===== */
html body.gw-home .gw-pop { margin-top: -14px; }
@media (max-width: 767px) { html body.gw-home .gw-pop { margin-top: 0; } }
html body.gw-home .collection-category, html body.gw-home .collection-category h2, html body.gw-home .collection-category h2 a { margin-left: 0 !important; padding-left: 0 !important; text-indent: 0 !important; }

/* ===== Option C: bold "Popular articles" heading + divider line with a small "Browse help" label ===== */
html body.gw-home .gw-pop { margin-top: -12px; }
html body .gw-pop h2 { margin: 0 0 18px; color: var(--gw-ink); font: 800 20px/1.3 var(--gw-head); letter-spacing: -.01em; text-transform: none; }
html body .gw-browse { display: flex; align-items: center; gap: 16px; margin: 44px 0 30px; padding: 0; border-top: 0; }
html body .gw-browse::before, html body .gw-browse::after { content: ""; flex: 1; border-top: 1px solid #d5dbe4; }
@media (max-width: 767px) {
  html body.gw-home .gw-pop { margin-top: 0; }
  html body .gw-browse { margin: 30px 0 22px; padding: 0; }
}

/* ===== iPad: Contact support button the same distance from the right edge as the logo is from the left ===== */
@media (min-width: 768px) { html body #mainNav .navbar-inner .container-fluid { padding-right: 14px !important; } }
@media (min-width: 768px) and (max-width: 860px) { html body #mainNav .navbar-inner .container-fluid { padding-right: 8px !important; } }

/* ===== Desktop: pull the Contact support button the last bit toward the right edge (matches the logo's distance from the left) ===== */
@media (min-width: 1101px) {
  html body #mainNav .navbar-inner .container-fluid { padding-right: 0 !important; }
  html body #mainNav .gw-toplinks { margin-right: -3px !important; }
}


/* ===== Header gutters: set by the script so the logo lines up with "Browse help" and the button mirrors it ===== */
html body #mainNav .brand { margin-left: var(--gw-dl, 0px) !important; }
@media (min-width: 768px) { html body #mainNav .gw-toplinks { margin-right: var(--gw-dr, 0px) !important; } }


/* ===== iPad / touch screens: side menu can collapse to an icon strip ===== */
.gw-left h6 { display: flex; align-items: center; justify-content: space-between; }
.gw-left h6 .gw-railtg { display: none; }
@media (min-width: 768px) and (pointer: coarse) {
  html body .gw-left h6 .gw-railtg { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -6px 0; padding: 0; border: 1px solid var(--gw-border); border-radius: 8px; background: #fff; color: var(--gw-ink); cursor: pointer; }
  html body .gw-left { transition: width .2s ease; }
  html.gw-rail body .gw-left { width: 68px !important; overflow-x: hidden; }
  html.gw-rail body .gw-left h6 { justify-content: center; margin-left: 0; margin-right: 0; }
  html.gw-rail body .gw-left h6 > span, html.gw-rail body .gw-left .gw-sub, html.gw-rail body .gw-left .gw-tg > svg,
  html.gw-rail body .gw-left .gw-recent, html.gw-rail body .gw-left .gw-side-search, html.gw-rail body .gw-left #searchBar { display: none !important; }
  html.gw-rail body .gw-left h6 .gw-railtg svg { transform: rotate(180deg); }
  html.gw-rail body .gw-left .gw-tg { justify-content: center; padding-left: 0; padding-right: 0; font-size: 0 !important; gap: 0; }
}

/* ===== Phone homepage: no line under the last collection, less space above the help card ===== */
@media (max-width: 767px) {
  html body.gw-home .gw-mhome { padding-bottom: 0; }
  html body.gw-home .gw-mhome .gw-mrow:last-of-type { border-bottom: 0; }
  html body.gw-home .gw-shell #contentArea { padding-bottom: 8px !important; }
  html body .gw-helpcard { margin-top: 0; }
}


/* ===== Collapsed iPad menu: search icon (tapping it opens the menu with the search box ready) ===== */
.gw-left .gw-railsearch { display: none; }
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-railsearch { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 auto 10px; padding: 0; border: 1px solid var(--gw-border); border-radius: 8px; background: #fff; color: var(--gw-ink); cursor: pointer; }
}
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-railsearch { margin-bottom: 8px; }
  html.gw-rail body .gw-left .gw-railsearch + .gw-grp { margin: 0 6px; padding-top: 10px; border-top: 1px solid #d3d9e2; }
}
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left h6 { margin-bottom: 18px; }
  html.gw-rail body .gw-left .gw-tg { padding-top: 6px; padding-bottom: 6px; }
}
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-tg .gw-cico { width: 30px; height: 30px; border-radius: 8px; }
  html.gw-rail body .gw-left .gw-tg .gw-cico svg { width: 16px; height: 16px; }
}
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-railsearch { margin-bottom: 12px; }
  html.gw-rail body .gw-left .gw-railsearch + .gw-grp { padding-top: 6px; }
}


html body .gw-tags a.gw-hot { background: #fff; border-color: #fff; color: var(--gw-primary-dark) !important; font-weight: 700; }
html body .gw-tags a.gw-hot:hover { background: #f0fafc; }

/* ===== Getting started: rocket item in the side menu, phone menu and phone home list ===== */
html body .gw-left .gw-gsgrp { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #d3d9e2; }
html body .gw-left .gw-gsgrp + .gw-grp { margin-top: 0; }
html body .gw-left .gw-railsearch + .gw-gsgrp { margin-top: 0; }
@media (max-width: 767px) {
  .gw-mhome .gw-mgs { border-bottom: 1px solid #d3d9e2; }
}
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-gsgrp { margin: 0; padding: 0; border-bottom: 0; }
  html.gw-rail body .gw-left .gw-gsgrp::after { content: ""; display: block; margin: 6px 0 6px; border-top: 1px solid #d3d9e2; }
  html.gw-rail body .gw-left .gw-railsearch + .gw-gsgrp { margin-top: 0; }
  html.gw-rail body .gw-left .gw-railsearch + .gw-grp, html.gw-rail body .gw-left .gw-gsgrp + .gw-grp { margin: 0; padding-top: 0; border-top: 0; }
}

/* collapsed menu: the rocket sits in the same column as the other icons (the script sets --gw-gsfix to correct any offset) */
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left .gw-gsgrp .gw-gsitem { display: flex !important; justify-content: flex-start !important; width: 100% !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; text-indent: 0 !important; }
  html.gw-rail body .gw-left .gw-gsgrp .gw-gsitem .gw-cico { margin: 0 !important; flex: none; }
}

/* ===== iPad / touch: a shorter homepage banner ===== */
@media (min-width: 768px) and (pointer: coarse) {
  html body #docsSearch { padding: 44px 20px 48px !important; min-height: 0 !important; }
  html body #docsSearch h1 { font-size: 36px !important; margin-bottom: 20px !important; }
  html body #docsSearch .gw-tags { margin-top: 22px !important; }
}

/* collapsed menu: the icon column starts at exactly the same distance from the left as the open menu's text and icons,
   so the logo above it never moves when the menu is opened or closed */
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body .gw-left { padding-left: 24px !important; padding-right: 13px !important; }
  html.gw-rail body .gw-left h6 { justify-content: flex-start; }
}

/* collapsing / expanding: nothing wraps or re-centres while the menu is changing width, so the icons stay put */
@media (min-width: 768px) and (pointer: coarse) {
  html body .gw-left .gw-tg, html body .gw-left h6, html body .gw-left h6 > span { white-space: nowrap; }
  html body .gw-left .gw-tg { overflow: hidden; }
  html.gw-rail body .gw-left .gw-tg { justify-content: flex-start; }
  html body .gw-left { overflow-x: hidden; }
}

/* homepage only: the first icon sits at the same height open or collapsed (inner pages keep their search icon spacing) */
@media (min-width: 768px) and (pointer: coarse) {
  html.gw-rail body.gw-home .gw-left h6 { margin-bottom: 10px; }
}

/* iPad / touch: icons are the same size and rows the same height open or collapsed, so nothing shifts when it changes */
@media (min-width: 768px) and (pointer: coarse) {
  html body .gw-left .gw-tg { padding-top: 6px; padding-bottom: 6px; }
  html body .gw-left .gw-tg .gw-cico { width: 30px; height: 30px; border-radius: 8px; }
  html body .gw-left .gw-tg .gw-cico svg { width: 16px; height: 16px; }
}
