/* =========================================================
   Dartshopper Help Center
   Colors, fonts and sizes come from the theme settings panel.
   ========================================================= */

:root {
  --ds-ink: #201D1D;
  --ds-accent: #E30D18;
  --ds-heading: #201D1D;
  --ds-text: #201D1D;
  --ds-link: #E30D18;
  --ds-bg: #FFFFFF;
  --ds-line: #EEEEEE;

  --ds-usp-bg: rgba(238, 238, 238, 1);
  --ds-usp-text: rgba(0, 0, 0, 1);
  --ds-usp-check: #1B9E3E;

  --ds-header-bg: #E30D18;
  --ds-header-text: #FFFFFF;
  --ds-header-height: 58px;
  --ds-logo-height: 36px;

  --ds-hero-bg: #201D1D;
  --ds-hero-heading: #FFFFFF;
  --ds-hero-text: #D6D3D3;

  --ds-footer-bg: #201D1D;
  --ds-footer-text: #FFFFFF;

  --ds-cta-bg: rgba(227, 13, 24, 1);
  --ds-cta-heading: rgba(255, 255, 255, 1);
  --ds-cta-text: #4A4747;

  --ds-notification-bg: #201D1D;
  --ds-notification-text: #FFFFFF;

  --ds-note: #FFC53A;
  --ds-warning: #E30D18;

  --ds-surface: #F5F5F5;
  --ds-muted: #6B6767;
  --ds-success-bg: #E5F8E5;
  --ds-success-text: #14701F;

  --ds-radius: 4px;
  --ds-radius-sm: 2px;
  --ds-max: 1440px;
  --ds-font-size: 15px;

  --ds-display: Industry, 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ds-body: Industry, 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ds-cat-title-size: 20px;
  --ds-cat-title-weight: 900;
  --ds-cat-title-style: $cat_title_style;
  --ds-cat-title-transform: uppercase;
  --ds-cat-title-color: rgba(0, 0, 0, 1);
  --ds-cat-section-size: $cat_section_size;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-body);
  font-size: var(--ds-font-size);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--ds-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ds-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.25px;
  margin: 0 0 12px;
  color: var(--ds-heading);
}

.hero-title,
.section-heading,
.footer-heading,
.contact-banner h2,
.quick-links-title,
.comment-heading,
.my-activities-header h1,
.error-page h1 {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

p { margin: 0 0 16px; }

:focus-visible {
  outline: 3px solid var(--ds-accent);
  outline-offset: 2px;
}

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

.skip-navigation {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 12px 16px;
}

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

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

.meta-data { color: var(--ds-muted); font-size: 13px; }
.meta-group { display: flex; flex-wrap: wrap; gap: 16px; }
.empty-state { color: var(--ds-muted); padding: 24px 0; }

/* ---------- Buttons ---------- */

.button,
a.button,
button.button,
input[type="submit"],
.share a,
.subscribe .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  background: #fff;
  color: var(--ds-text);
  font-family: var(--ds-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25px;
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
input[type="submit"]:hover { background: var(--ds-surface); text-decoration: none; }

.button-primary,
a.button-primary,
input[type="submit"] {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
}

.button-primary:hover,
input[type="submit"]:hover {
  background: #C10A15;
  border-color: #C10A15;
  color: #fff;
}

/* ---------- USP bar ---------- */

.usp-bar {
  background: var(--ds-usp-bg);
  color: var(--ds-usp-text);
}

.usp-list {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 7px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  list-style: none;
  font-size: 13px;
}

.usp-item { display: flex; align-items: center; gap: 7px; }

.usp-item::before {
  content: "\2713";
  color: var(--ds-usp-check);
  font-weight: 700;
}

/* ---------- Header ---------- */

.header {
  background: var(--ds-header-bg);
  color: var(--ds-header-text);
}

.header-sticky { position: sticky; top: 0; z-index: 60; }

.header-inner {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 0 0 0 32px;
  min-height: var(--ds-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { flex: 0 0 auto; }
.logo img { max-height: var(--ds-logo-height); width: auto; display: block; }

.header-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--ds-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: var(--ds-radius-sm);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.30);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.header-shop-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.header-shop-btn svg { flex: 0 0 auto; }

.user-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.user-nav a,
.user-nav .dropdown-toggle,
.header-utility a,
.header-utility .dropdown-toggle {
  color: var(--ds-header-text);
  font-size: 14px;
  font-weight: 700;
}

.user-nav-list > li > a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--ds-radius-sm);
}

.user-nav-list > li > a:hover {
  background: rgba(0, 0, 0, 0.14);
  text-decoration: none;
}

.user-nav .button-primary,
.user-nav a.submit-a-request {
  background: #fff;
  color: var(--ds-accent);
  border-color: #fff;
  padding: 10px 18px;
  min-height: 38px;
}

.user-nav .button-primary:hover { background: #fff; color: #C10A15; }

.header-utility {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--ds-header-height);
  padding: 0 32px 0 46px;
  margin-left: 4px;
  position: relative;
  z-index: 0;
  overflow: visible;
}

/* Diagonal dark shape as a pseudo-element so child dropdowns can overflow */
.header-utility::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ds-ink);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
}

.dropdown { position: relative; }

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 9px 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: var(--ds-radius-sm);
}

.dropdown-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 230px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.dropdown-menu-end { left: auto; right: 0; }
.dropdown-menu.is-open { display: block; }

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--ds-text);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--ds-radius-sm);
}

.dropdown-menu a:hover { background: var(--ds-surface); text-decoration: none; }

.separator { height: 1px; background: var(--ds-line); margin: 6px 0; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; }

.nav-mobile { display: none; margin-left: auto; padding-right: 20px; }

.menu-button-mobile {
  background: none;
  border: 0;
  color: var(--ds-header-text);
  padding: 8px;
  cursor: pointer;
}

.menu-list-mobile { display: none; }

.menu-list-mobile[aria-expanded="true"] {
  display: block;
  background: var(--ds-ink);
}

.menu-list-mobile ul { list-style: none; margin: 0; padding: 4px 20px 16px; }
.menu-list-mobile li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.menu-list-mobile a {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Notification bar ---------- */

.notification-bar {
  background: var(--ds-notification-bg);
  color: var(--ds-notification-text);
}

.notification-bar-inner {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 11px 32px;
  font-size: 14px;
}

.notification-bar-home .notification-bar-inner { text-align: center; }
.notification-bar a { color: inherit; text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ds-hero-bg);
  background-size: cover;
  background-position: center;
  color: var(--ds-hero-text);
  padding: 56px 32px 64px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 7%, var(--ds-accent) 7% 10%, transparent 10% 45%, rgba(255, 255, 255, 0.45) 45% 48%, transparent 48%),
    conic-gradient(from 9deg,
      rgba(255, 255, 255, 0.10) 0 18deg,
      rgba(227, 13, 24, 0.55) 18deg 36deg);
  opacity: 0.4;
  pointer-events: none;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ds-hero-bg);
  opacity: 0.74;
}

.hero-image::after { display: none; }
.hero-compact { padding: 40px 32px 48px; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  color: var(--ds-hero-heading);
  font-size: 44px;
  margin-bottom: 10px;
}

.hero-subtitle {
  color: var(--ds-hero-text);
  font-size: 16px;
  margin-bottom: 24px;
}

/* ---------- Search ---------- */

.search-box { position: relative; }

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-muted);
  z-index: 2;
}

.search-box input[type="search"],
.search-box input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius);
  background: #fff;
  color: var(--ds-text);
  font-family: var(--ds-body);
  font-size: 15px;
}

.search-box input::placeholder { color: var(--ds-muted); }
.search-box input:focus { border-color: var(--ds-accent); outline: none; }

.search-box-inline { max-width: 340px; width: 100%; }

.search-box-inline input[type="search"],
.search-box-inline input[type="text"] {
  height: 42px;
  padding-left: 42px;
  border-color: var(--ds-line);
  background: var(--ds-surface);
  font-size: 14px;
}

.search-box-inline .search-icon { left: 14px; }

/* ---------- Popular searches ---------- */

.popular-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}

.popular-keywords-heading { color: var(--ds-hero-text); }

.popular-keyword {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.popular-keyword:hover {
  border-color: var(--ds-accent);
  background: var(--ds-accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- Shortcuts ---------- */

.quick-links {
  max-width: var(--ds-max);
  margin: -34px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.quick-links-title { display: none; }

.quick-links-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-bottom: 3px solid var(--ds-accent);
  border-radius: var(--ds-radius);
  color: var(--ds-text);
}

.quick-link:hover {
  border-color: var(--ds-accent);
  text-decoration: none;
}

/* The icon column */
.quick-link .quick-link-icon,
.quick-link > svg {
  flex: 0 0 auto;
  color: var(--ds-accent);
  display: block;
}

.quick-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-link-title {
  display: block;
  font-family: var(--ds-display);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
}

.quick-link-text { display: block; color: var(--ds-muted); font-size: 12px; line-height: 1.3; }

/* ---------- Content blocks ---------- */

.content-blocks { margin-top: 48px; }

.content-blocks-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-blocks[data-columns="2"] .content-blocks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-blocks[data-columns="4"] .content-blocks-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
}

.content-block:hover { border-color: var(--ds-accent); }
.content-block-image { max-height: 40px; width: auto; margin-bottom: 12px; }

.content-block-title {
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 6px;
}

.content-block-title a { color: var(--ds-heading); }
.content-block-title a:hover { color: var(--ds-accent); text-decoration: none; }

.content-block-description {
  color: var(--ds-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.content-block-button { margin-top: auto; }

/* ---------- Categories ---------- */

.section-heading { font-size: 24px; margin: 52px 0 18px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* default; JS overrides via data-columns */
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.category-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.category-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

.category-card {
  padding: 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: #fff;
}

.category-card:hover { border-color: var(--ds-accent); }

.category-card-title {
  font-size: var(--ds-cat-title-size, 18px);
  font-weight: var(--ds-cat-title-weight, 900);
  font-style: var(--ds-cat-title-style, normal);
  text-transform: var(--ds-cat-title-transform, uppercase);
  margin-bottom: 6px;
  color: var(--ds-cat-title-color, var(--ds-heading));
}

.category-card-title a { color: var(--ds-cat-title-color, var(--ds-heading)); }
.category-card-title a:hover { color: var(--ds-accent); text-decoration: none; }
.category-card-description { color: var(--ds-muted); font-size: 13px; }

.category-card-sections { list-style: none; margin: 12px 0 14px; padding: 0; }
.category-card-sections li { padding: 5px 0; border-top: 1px solid var(--ds-line); }
.category-card-sections li:first-child { border-top: 0; }
.category-card-sections a { color: var(--ds-text); font-size: var(--ds-cat-section-size, 14px); }
.category-card-sections a:hover { color: var(--ds-accent); }

.category-card-all { font-size: 13px; font-weight: 700; text-transform: uppercase; }

.promoted-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

.promoted-list li { border-bottom: 1px solid var(--ds-line); }
.promoted-list a { display: block; padding: 13px 0; color: var(--ds-text); }
.promoted-list a:hover { color: var(--ds-accent); }

/* ---------- Contact banner ---------- */

.contact-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 26px 30px;
  background: var(--ds-cta-bg);
  border-radius: var(--ds-radius);
}

.contact-banner h2 { font-size: 24px; margin-bottom: 4px; color: var(--ds-cta-heading); }
.contact-banner p { margin: 0; color: var(--ds-cta-text); font-size: 14px; }
.contact-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-banner-compact { margin-top: 40px; padding: 20px 24px; }

/* ---------- Contact banner buttons ---------- */
.contact-banner-actions .cb-btn {
  min-height: 52px;
  padding: 0 26px;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-width: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.contact-banner-actions .cb-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-banner-actions .cb-btn:hover,
.contact-banner-actions .cb-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}
.contact-banner-actions .cb-btn-form { background: #fff; border-color: #fff; color: var(--ds-ink); }
.contact-banner-actions .cb-btn-form:hover { background: #f3f3f3; border-color: #f3f3f3; color: var(--ds-ink); }
.contact-banner-actions .cb-btn-phone { background: #fff; border-color: #fff; color: var(--ds-ink); }
.contact-banner-actions .cb-btn-phone:hover { background: #f3f3f3; border-color: #f3f3f3; color: var(--ds-ink); }
@media (max-width: 640px) {
  .contact-banner-actions { width: 100%; }
  .contact-banner-actions .cb-btn { flex: 1 1 100%; }
}

/* ---------- Sub navigation ---------- */

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

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.breadcrumbs li { color: var(--ds-muted); }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 8px; color: #C9C5C5; }
.breadcrumbs a { color: var(--ds-text); }
.breadcrumbs a:hover { color: var(--ds-accent); }

/* ---------- Page headers and lists ---------- */

.page-header { margin-bottom: 26px; }
.page-header h1 { text-transform: uppercase; font-weight: 900; }
.page-header-description { color: var(--ds-muted); max-width: 70ch; }

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-actions { display: flex; gap: 12px; align-items: center; }

.section-tree {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.section-block-title { font-size: 18px; font-weight: 900; text-transform: uppercase; }
.section-block-title a { color: var(--ds-heading); }
.section-block-title a:hover { color: var(--ds-accent); }

.article-list, .section-list { list-style: none; margin: 0 0 12px; padding: 0; }
.article-list-item, .section-list-item { border-bottom: 1px solid var(--ds-line); }

.article-list-link, .section-list-item a {
  display: block;
  padding: 12px 0;
  color: var(--ds-text);
}

.article-list-link:hover, .section-list-item a:hover { color: var(--ds-accent); }
.article-list-standalone { max-width: 860px; }
.see-all-articles { font-size: 13px; font-weight: 700; text-transform: uppercase; }

/* ---------- Article ---------- */

.article-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.article-sidebar { position: sticky; top: 24px; }
.collapsible-sidebar-toggle { display: none; }

.collapsible-sidebar-title {
  display: block;
  font-family: var(--ds-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.collapsible-sidebar-body ul { list-style: none; margin: 0; padding: 0; }

.sidenav-item {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--ds-line);
  color: var(--ds-text);
  font-size: 14px;
}

.sidenav-item:hover { border-left-color: var(--ds-accent); text-decoration: none; }

.sidenav-item.current-article,
.sidenav-item.current {
  border-left-color: var(--ds-accent);
  font-weight: 700;
}

.sidenav-more { display: inline-block; margin: 8px 0 0 12px; font-size: 13px; }

.article { max-width: 780px; }
.article-header { margin-bottom: 22px; }
.article-title { font-size: 32px; font-weight: 700; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.article-subscribe { margin-top: 12px; }

.article-body { font-size: 16px; }
.article-body h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; margin-top: 32px; }
.article-body h3 { font-size: 18px; font-weight: 700; margin-top: 24px; }
.article-body img { border-radius: var(--ds-radius); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }

.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }

.article-body th, .article-body td {
  border: 1px solid var(--ds-line);
  padding: 10px 12px;
  text-align: left;
}

.article-body th { background: var(--ds-surface); }

.article-body blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ds-accent);
  color: #3F3B3B;
}

.article-body .note,
.article-body .warning {
  margin: 20px 0;
  padding: 14px 16px 14px 18px;
  background: var(--ds-surface);
  border-left: 4px solid var(--ds-note);
}

.article-body .warning { border-left-color: var(--ds-warning); }

.article-body .note::before,
.article-body .warning::before {
  content: attr(data-label);
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 4px;
}

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

.attachment-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-line);
}

.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-line);
}

.article-votes { text-align: center; }
.article-votes-question { font-size: 19px; font-weight: 900; text-transform: uppercase; }
.article-votes-subheading { color: var(--ds-muted); font-size: 14px; margin: 0 0 12px; }

.article-votes-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.article-vote { min-width: 104px; }
.article-votes-count { color: var(--ds-muted); font-size: 13px; }

.article-share ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  justify-content: center;
}

.article-relatives { margin-top: 40px; }

.article-relatives h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ds-line);
}

.article-relatives ul { list-style: none; margin: 0 0 32px; padding: 0; }
.article-relatives li { padding: 10px 0; border-bottom: 1px solid var(--ds-line); }
.article-relatives a { color: var(--ds-text); }
.article-relatives a:hover { color: var(--ds-accent); }

/* ---------- Table of contents ---------- */

.table-of-contents { margin-bottom: 28px; }

.toc-heading {
  display: block;
  margin-bottom: 10px;
  font-family: var(--ds-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
}

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

.toc-list a {
  display: block;
  padding: 6px 12px;
  border-left: 2px solid var(--ds-line);
  color: var(--ds-text);
  font-size: 14px;
}

.toc-list a:hover { border-left-color: var(--ds-accent); text-decoration: none; }
.toc-list .toc-level-3 a { padding-left: 24px; font-size: 13px; }

.article > .table-of-contents {
  padding: 16px 20px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
}

/* ---------- Comments ---------- */

.comments { margin-top: 48px; }
.comment-heading { font-size: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 20px 0; border-top: 1px solid var(--ds-line); }
.comment-header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.comment-author { font-weight: 700; }
.comment-body { font-size: 15px; }
.comment-form { margin-top: 24px; }
.comment-form-controls { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------- Forms ---------- */

.form { max-width: 720px; }
.form-field { margin-bottom: 20px; }

.form-field label,
.hbs-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  background: #fff;
  color: var(--ds-text);
  font-family: var(--ds-body);
  font-size: 15px;
}

textarea { min-height: 150px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  border-color: var(--ds-accent);
  outline: none;
}

.form-field .nesty-input,
.nesty-input {
  display: block;
  min-height: 46px;
  height: auto;
  padding: 11px 40px 11px 14px; /* right padding for the caret */
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  cursor: pointer;
  position: relative;
}

/* Zendesk renders the caret as a child element — keep it on the right */
.nesty-input .nesty-input-arrow,
.nesty-input [class*="arrow"],
.nesty-input [class*="caret"] {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* The nesty dropdown list itself */
.nesty-output {
  position: absolute;
  z-index: 300;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.nesty-output li { padding: 10px 14px; font-size: 15px; cursor: pointer; }
.nesty-output li:hover,
.nesty-output li.selected { background: var(--ds-surface); }

.notification {
  padding: 12px 16px;
  border-radius: var(--ds-radius-sm);
  margin: 12px 0;
  font-size: 14px;
}

.notification-error { background: #FDECEC; border: 1px solid #F3BDBD; color: #A8000F; }
.notification-inline { margin: 8px 0 0; }

.form-tip {
  max-width: 720px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--ds-surface);
  border-left: 4px solid var(--ds-accent);
  font-size: 14px;
}

.follow-up-hint { color: var(--ds-muted); font-size: 14px; }
.form-field-controls { display: flex; justify-content: flex-end; }

/* ---------- Search results ---------- */

.search-results {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.sidenav-title {
  font-family: var(--ds-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filters-in-section { margin-bottom: 28px; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list .sidenav-item { display: flex; justify-content: space-between; gap: 12px; }
.doc-count { color: var(--ds-muted); font-size: 13px; }

.search-results-subheading { font-size: 22px; margin-bottom: 20px; }
.search-results-list { list-style: none; margin: 0; padding: 0; }
.search-result { padding: 20px 0; border-bottom: 1px solid var(--ds-line); }
.search-result-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.search-result-description { margin: 8px 0 0; color: #3F3B3B; font-size: 14px; }
.search-result-breadcrumbs .breadcrumbs { font-size: 12px; }
.no-results { padding: 32px 0; }

/* ---------- Requests, contributions, following ---------- */

.my-activities-nav { border-bottom: 1px solid var(--ds-line); margin-bottom: 32px; }

.activities-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--ds-max);
}

.activities-nav a {
  display: inline-block;
  padding: 16px 12px;
  color: var(--ds-muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.activities-nav .current a,
.activities-nav a:hover {
  color: var(--ds-text);
  border-bottom-color: var(--ds-accent);
  text-decoration: none;
}

.activities-subnav { margin-bottom: 20px; }

.my-activities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.my-activities-header h1 { margin: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }

.table th {
  text-align: left;
  font-family: var(--ds-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ds-muted);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--ds-line);
}

.table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--ds-line);
  vertical-align: top;
}

.striped-list-title { color: var(--ds-text); font-weight: 700; }
.striped-list-title:hover { color: var(--ds-accent); }
.request-id { color: var(--ds-muted); white-space: nowrap; }

.status-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-label-open { background: #FDECEC; color: #A8000F; }
.status-label-solved,
.status-label-closed,
.status-label-official { background: var(--ds-success-bg); color: var(--ds-success-text); }
.status-label-pending { background: #FFF4DB; color: #7A5200; }

/* ---------- Request detail ---------- */

.request-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.request-title { margin-bottom: 8px; }

.request-sidebar {
  padding: 22px;
  background: var(--ds-surface);
  border-radius: var(--ds-radius);
}

.request-details { margin: 0; font-size: 14px; }
.request-details dt { color: var(--ds-muted); font-size: 12px; text-transform: uppercase; margin-top: 12px; }
.request-details dd { margin: 2px 0 0; }
.request-collaborators { list-style: none; margin: 0; padding: 0; }
.comment-attachments { margin-top: 12px; }

/* ---------- Community ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list-item { padding: 18px 0; border-bottom: 1px solid var(--ds-line); }
.post-list-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.post-list-title a { color: var(--ds-text); }
.post-list-title a:hover { color: var(--ds-accent); }
.post { max-width: 860px; }
.post-body { font-size: 16px; }
.post-votes { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.vote-sum { font-weight: 700; }

/* ---------- Profile ---------- */

.profile-header {
  background: var(--ds-surface);
  padding: 32px 0;
  margin-bottom: 32px;
}

.profile-info { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; }
.basic-info { flex: 1; }
.name { font-size: 28px; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.stat-label { display: block; color: var(--ds-muted); font-size: 12px; text-transform: uppercase; }
.stat-value { font-weight: 700; }

.profile-activity-list { list-style: none; margin: 0; padding: 0; }
.profile-activity { padding: 18px 0; border-bottom: 1px solid var(--ds-line); }
.profile-contribution-title { font-size: 17px; margin: 4px 0; }

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  min-width: 40px;
  padding: 9px 12px;
  text-align: center;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text);
  font-size: 14px;
  font-weight: 700;
}

.pagination .pagination-current,
.pagination li.current span {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
}

/* ---------- Error page ---------- */

.error-page { padding: 64px 0; max-width: 640px; }
.error-page-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ds-footer-bg);
  color: var(--ds-footer-text);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 32px;
}

.footer-logo { max-height: 34px; width: auto; margin-bottom: 12px; }

.footer-heading {
  color: var(--ds-footer-text);
  font-size: 16px;
  font-style: normal;
  margin-bottom: 10px;
}

.footer a { color: rgba(255, 255, 255, 0.86); font-size: 14px; }
.footer a:hover { color: #fff; }

.footer-list, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-list li, .footer-social li { padding: 4px 0; }
.footer-shop-link { font-weight: 700; }

.footer-bottom {
  max-width: var(--ds-max);
  margin: 32px auto 0;
  padding: 18px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-copyright { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Social icons + app badges */
.footer-social-icons { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(255, 255, 255, 0.28); margin-bottom: 28px; }
.footer-social-icons li { padding: 0; }
.footer-social-icons li + li { border-left: 1px solid rgba(255, 255, 255, 0.28); }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; transition: background-color 0.15s ease; }
.footer-social-link img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.footer-social-link:hover { background: rgba(255, 255, 255, 0.1); }
.footer-app-heading { margin-top: 4px; }
.footer-app-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.footer-app-badge { display: inline-block; line-height: 0; transition: transform 0.15s ease; }
.footer-app-badge:hover { transform: translateY(-2px); }
.footer-app-badge img { height: 48px; width: auto; }
.footer-app-badge-google img { height: 71px; margin: -11.5px -10px; }

.footer-language-selector .dropdown-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ds-footer-text);
}

.footer-language-selector .dropdown-menu { bottom: calc(100% + 6px); top: auto; }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--ds-accent);
  color: #fff;
  border: 0;
  border-radius: var(--ds-radius-sm);
  font-family: var(--ds-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #C10A15; }

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

@media (max-width: 1200px) {
  .category-grid,
  .category-grid[data-columns="4"] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .article-container,
  .search-results,
  .request-container { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .article-sidebar { position: static; }
  .category-grid,
  .category-grid[data-columns="3"],
  .category-grid[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
  .quick-links-list { grid-template-columns: repeat(2, 1fr); }
  .content-blocks-list,
  .content-blocks[data-columns="4"] .content-blocks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .hero { padding: 40px 20px 56px; }
  .hero-title { font-size: 32px; }
  .hero::after { width: 280px; right: -110px; opacity: 0.3; }

  .usp-list { gap: 14px; font-size: 12px; padding: 7px 20px; }
  .usp-item:nth-child(n+3) { display: none; }

  .user-nav, .header-utility { display: none; }
  .nav-mobile { display: block; }
  .header-inner { padding: 0 0 0 20px; }

  .container { padding: 0 20px 48px; }

  .section-tree { grid-template-columns: minmax(0, 1fr); }
  .promoted-list { grid-template-columns: minmax(0, 1fr); }
  .content-blocks-list,
  .content-blocks[data-columns="2"] .content-blocks-list,
  .content-blocks[data-columns="4"] .content-blocks-list { grid-template-columns: minmax(0, 1fr); }

  .sub-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .search-box-inline { max-width: none; }

  .article-sidebar .collapsible-sidebar {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 12px 16px;
    position: relative;
  }

  .collapsible-sidebar-toggle {
    display: block;
    position: absolute;
    right: 8px;
    top: 8px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--ds-text);
  }

  .collapsible-sidebar-title { margin: 0; }
  .collapsible-sidebar-body { display: none; padding-top: 12px; }
  .collapsible-sidebar[aria-expanded="true"] .collapsible-sidebar-body { display: block; }
  .collapsible-sidebar[aria-expanded="true"] .collapsible-sidebar-toggle { transform: rotate(180deg); }

  .table, .table thead, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--ds-line); }
  .table td { border: 0; padding: 2px 0; }

  .contact-banner { padding: 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .quick-links-list { grid-template-columns: minmax(0, 1fr); }
  .category-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .quick-links { margin-top: -26px; }
  .back-to-top span { display: none; }
  .back-to-top { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .header, .footer, .usp-bar, .article-sidebar, .sub-nav, .contact-banner, .article-votes, .back-to-top { display: none; }
  .article-container { display: block; }
}

/* ---------- Content block icon ---------- */

.content-block-icon { color: var(--ds-accent); margin-bottom: 12px; }

/* ---------- Category card truncation ---------- */

.category-card-section.is-hidden { display: none; }

.category-card-all {
  display: inline-block;
  margin-top: 2px;
  color: var(--ds-accent);
}

/* ---------- Banner height variants ---------- */

.hero-compact { padding: 40px 32px 48px; }
.hero-default { padding: 56px 32px 64px; }
.hero-tall { padding: 84px 32px 96px; }

/* When a banner image is used, the ::after dartboard is off and a color overlay
   set from the settings darkens the image. */
.hero-image::after { display: none; }
.hero-no-graphic::after { display: none; }

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ds-hero-bg);
  opacity: var(--ds-hero-overlay, 0.74);
}

/* =========================================================
   Contact / new request page
   ========================================================= */

/* Reset the standard container on this page */
.request-page-wrapper { background: var(--ds-surface); min-height: 60vh; padding: 0; }

.container-request {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ---------- Centered layout (default) ---------- */

.request-layout-centered .container-request {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.request-layout-centered .request-form-card {
  width: 100%;
  padding: 40px 44px;
  background: var(--ds-form-bg, #fff);
  border: 1px solid var(--ds-form-border, #EEEEEE);
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.request-layout-centered .request-form-card[data-card-width="480"] { max-width: 480px; }
.request-layout-centered .request-form-card[data-card-width="600"] { max-width: 600px; }
.request-layout-centered .request-form-card[data-card-width="720"] { max-width: 720px; }

/* ---------- Split layout ---------- */

.request-layout-split .container-request {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.request-side-panel {
  position: sticky;
  top: 24px;
  padding: 36px;
  background: var(--ds-ink);
  border-radius: 6px;
  color: #fff;
}

.request-side-heading {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.request-side-text {
  color: rgba(255, 255, 255, 0.80);
  font-size: 15px;
  margin-bottom: 28px;
}

.request-side-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.request-side-contact:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.request-side-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
}

.request-side-value { font-size: 15px; color: #fff; font-weight: 700; }

.request-side-link {
  display: inline-block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 700;
}

.request-side-link:hover { color: #fff; }

.request-layout-split .request-form-card {
  padding: 36px 40px;
  background: var(--ds-form-bg, #fff);
  border: 1px solid var(--ds-form-border, #EEEEEE);
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Form card internals ---------- */

.request-form-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.follow-up-hint { display: block; color: var(--ds-muted); font-size: 14px; margin-bottom: 24px; }

/* Tip bar */
.form-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #FFF9EC;
  border-left: 4px solid var(--ds-accent);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--ds-text);
}

.form-tip svg { flex: 0 0 auto; margin-top: 2px; color: var(--ds-accent); }

/* Field overrides inside the form card */
.request-form-body input[type="text"],
.request-form-body input[type="email"],
.request-form-body textarea,
.request-form-body select,
.request-form-body .nesty-input {
  background: var(--ds-form-input-bg, #fff);
  border-color: var(--ds-form-input-border, #CCCCCC);
  border-radius: 4px;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}

/* Nesty specific overrides inside the form card */
.request-form-body .nesty-input {
  min-height: 48px;
  height: auto;
  padding-right: 40px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  display: flex;
  align-items: center;
}

.request-form-body .nesty-input:focus,
.request-form-body .nesty-input.is-open,
.request-form-body .nesty-input[aria-expanded="true"] {
  border-color: var(--ds-form-input-focus, #E30D18);
  box-shadow: 0 0 0 3px rgba(227, 13, 24, 0.10);
  outline: none;
}

/* Wrap warning icon + text so it doesn't get clipped */
.request-form-body .nesty-input span,
.request-form-body .nesty-input div {
  white-space: normal;
  overflow: visible;
}

.request-form-body input:focus,
.request-form-body textarea:focus,
.request-form-body select:focus {
  border-color: var(--ds-form-input-focus, #E30D18);
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 13, 24, 0.10);
}

.request-form-body label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ds-form-label, #201D1D);
  margin-bottom: 6px;
}

.request-form-body .form-field { margin-bottom: 22px; }

/* Submit button */
.request-form-body input[type="submit"],
.request-form-body button[type="submit"] {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.request-form-body input[type="submit"]:hover,
.request-form-body button[type="submit"]:hover {
  background: #C10A15;
  border-color: #C10A15;
}

/* ---------- Inject form CSS variables from settings ---------- */
:root {
  --ds-form-bg: #FFFFFF;
  --ds-form-border: #EEEEEE;
  --ds-form-label: #201D1D;
  --ds-form-input-bg: #FFFFFF;
  --ds-form-input-border: #CCCCCC;
  --ds-form-input-focus: #E30D18;
}

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

@media (max-width: 900px) {
  .request-layout-split .container-request {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-side-panel { position: static; }
}

@media (max-width: 600px) {
  .request-layout-centered .request-form-card,
  .request-layout-split .request-form-card {
    padding: 24px 20px;
  }
  .container-request { padding: 24px 16px 48px; }
}


/* ---------- Header custom links (configurable color + bg) ---------- */

.header-custom-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--ds-radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.12s;
}

.header-custom-link:hover {
  filter: brightness(0.88);
  text-decoration: none;
}

/* When a background is set, add button-like padding */
.header-custom-link[style*="background:rgb"],
.header-custom-link[style*="background:#"]:not([style*="background:#000000"]):not([style*="background:#00000000"]) {
  padding: 9px 18px;
  border-radius: var(--ds-radius-sm);
}

/* =========================================================
   Order Lookup Widget  (.ol-*)
   ========================================================= */

#ds-order-lookup {
  margin-bottom: 28px;
}

/* Steps */
.ol-step {
  transition: opacity 0.25s, transform 0.25s;
}

.ol-step-done {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Header */
.ol-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.ol-header-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-accent);
}

.ol-header-found .ol-check-circle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-success-bg);
  color: var(--ds-success-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ol-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 2px;
  font-style: italic;
  color: var(--ds-heading);
}

.ol-subtitle {
  color: var(--ds-muted);
  font-size: 14px;
  margin: 0;
}

/* Fields */
.ol-field {
  margin-bottom: 16px;
}

.ol-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ds-form-label, #201D1D);
  margin-bottom: 6px;
}

.ol-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ds-form-input-border, #CCCCCC);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-form-input-bg, #fff);
  color: var(--ds-text);
  font-family: var(--ds-body);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ol-input:focus {
  border-color: var(--ds-form-input-focus, var(--ds-accent));
  box-shadow: 0 0 0 3px rgba(227, 13, 24, 0.10);
  outline: none;
}

.ol-input-error { border-color: var(--ds-accent) !important; }

.ol-field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ds-accent);
  font-weight: 700;
}

/* Buttons */
.ol-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  font-family: var(--ds-body);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}

.ol-btn-primary {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
}

.ol-btn-primary:hover:not(:disabled) { background: #C10A15; border-color: #C10A15; }
.ol-btn-primary:disabled, .ol-btn-loading { opacity: 0.6; cursor: not-allowed; }

.ol-btn-secondary {
  background: #fff;
  color: var(--ds-text);
}

.ol-btn-secondary:hover { background: var(--ds-surface); }

.ol-skip {
  font-size: 13px;
  color: var(--ds-muted);
  text-decoration: underline;
  margin-left: auto;
}

.ol-skip:hover { color: var(--ds-text); }

/* Error box */
.ol-error {
  padding: 12px 16px;
  background: #FDECEC;
  border: 1px solid #F3BDBD;
  border-radius: var(--ds-radius-sm);
  color: #A8000F;
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
}

/* Product cards */
.ol-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.ol-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--ds-line);
  border-radius: var(--ds-radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--ds-body);
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.ol-card:hover {
  border-color: var(--ds-accent);
}

.ol-card-selected {
  border-color: var(--ds-accent);
  box-shadow: 0 0 0 3px rgba(227, 13, 24, 0.12);
}

.ol-card-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--ds-surface);
  flex: 0 0 auto;
}

.ol-card-image-placeholder {
  width: 60px;
  height: 60px;
  background: var(--ds-surface);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-muted);
  flex: 0 0 auto;
}

.ol-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ol-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ol-card-sku,
.ol-card-qty {
  font-size: 12px;
  color: var(--ds-muted);
}

.ol-card-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ds-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ol-card-selected .ol-card-check {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
}

/* Quantity picker */
.ol-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--ds-surface);
  border-radius: var(--ds-radius-sm);
}

.ol-qty-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-heading);
}

.ol-qty-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  font-family: var(--ds-body);
  font-size: 15px;
  text-align: center;
}

/* Divider between lookup widget and ZD form */
#ds-order-lookup + .form.request-form-body {
  padding-top: 28px;
  border-top: 1px solid var(--ds-line);
}

@media (max-width: 600px) {
  .ol-card-list { grid-template-columns: 1fr; }
  .ol-actions { flex-direction: column; align-items: stretch; }
  .ol-skip { margin-left: 0; text-align: center; }
}

/* =========================================================
   Smart form – progress steps  (.rf-steps)
   ========================================================= */

.rf-steps {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: rf-step;
}

.rf-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--ds-muted);
  white-space: nowrap;
}

.rf-step + .rf-step::before {
  content: "";
  display: block;
  flex: 1;
  min-width: 20px;
  height: 2px;
  background: var(--ds-line);
  margin: 0 8px;
}

.rf-step-active + .rf-step::before,
.rf-step-done + .rf-step::before { background: var(--ds-line); }
.rf-step-done + .rf-step::before { background: var(--ds-success-text, #14701F); }

.rf-step-active { color: var(--ds-text); }
.rf-step-done   { color: var(--ds-success-text, #14701F); }

.rf-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ds-surface);
  color: var(--ds-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  border: 1px solid var(--ds-line);
  transition: background .2s, color .2s, border-color .2s;
}

.rf-step-active .rf-step-num {
  background: var(--ds-accent);
  color: #fff;
  border-color: var(--ds-accent);
}

.rf-step-done .rf-step-num {
  background: var(--ds-success-text, #14701F);
  color: #fff;
  border-color: var(--ds-success-text, #14701F);
}

/* Divider between lookup and ZD form */
.rf-zd-form-section {
  border-top: 1px solid var(--ds-line);
  padding-top: 28px;
  margin-top: 8px;
}

.rf-zd-form-section[hidden] { display: none; }

/* Confirmed product bar (shown above ZD form after selection) */
.ol-confirmed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ds-success-bg, #E5F8E5);
  border: 1px solid #B6DCC6;
  border-radius: var(--ds-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-success-text, #14701F);
  margin-bottom: 20px;
}

.ol-confirmed-bar svg { flex: 0 0 auto; }

/* Found bar in step 2 */
.ol-found-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ds-success-bg, #E5F8E5);
  border: 1px solid #B6DCC6;
  border-radius: var(--ds-radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-success-text, #14701F);
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .rf-step-label { display: none; }
  .rf-step + .rf-step::before { min-width: 12px; }
}

/* =========================================================
   Video gallery  (.vg-*)
   ========================================================= */

.video-gallery { margin-top: 0; }

.video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Card */
.vg-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--ds-body);
  border-radius: var(--ds-radius);
  overflow: hidden;
}

/* Thumbnail wrapper */
.vg-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ds-ink);
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.vg-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s, filter 0.25s;
}

.vg-card:hover .vg-thumb {
  transform: scale(1.04);
  filter: brightness(0.75);
}

/* Play button */
.vg-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.vg-card:hover .vg-play {
  opacity: 1;
  transform: scale(1.08);
}

/* Title below thumbnail */
.vg-title {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-heading);
  line-height: 1.3;
  padding: 0 2px;
}

/* ── Lightbox overlay ── */

.vg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vg-overlay-open { display: flex; }

.vg-overlay-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.vg-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.vg-close:hover { opacity: 1; }

.vg-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.vg-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .video-list { grid-template-columns: minmax(0, 1fr); }
  .vg-overlay { padding: 12px; }
  .vg-close { top: -40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vg-thumb, .vg-play { transition: none; }
}

/* =========================================================
   Chat FAB button  (.chat-fab)
   ========================================================= */

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);

  font-family: var(--ds-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  /* colour set via inline style from settings */
  transition: transform 0.18s, box-shadow 0.18s;
}

.chat-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

/* Icon circle */
.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

/* Text column */
.chat-fab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chat-fab-label {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chat-fab-sublabel {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.82;
}

/* Green online dot */
.chat-fab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
}

/* Push the back-to-top button up if both are visible */
.chat-fab ~ .back-to-top {
  bottom: 100px;
}

/* Collapse to icon-only on mobile */
@media (max-width: 520px) {
  .chat-fab {
    right: 16px;
    bottom: 16px;
    padding: 14px;
    border-radius: 50%;
    gap: 0;
  }

  .chat-fab-text,
  .chat-fab-dot { display: none; }

  .chat-fab-icon {
    width: auto;
    height: auto;
    background: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .chat-fab { transition: none; }
}

/* Chat FAB open state */
.chat-fab-open {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.chat-fab-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .chat-fab-icon-close {
    width: auto;
    height: auto;
    background: none;
  }
}

/* =========================================================
   No-results page
   ========================================================= */

.no-results-page {
  text-align: center;
  padding: 48px 0 32px;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--ds-muted);
}

.no-results-heading {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.no-results-tip {
  color: var(--ds-muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.no-results-shortcuts { margin-bottom: 28px; }

.no-results-shortcuts-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--ds-muted);
  margin-bottom: 12px;
}

.no-results-shortcut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.no-results-shortcut-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text);
  text-decoration: none;
  background: #fff;
  transition: border-color .12s, color .12s;
}

.no-results-shortcut-list a:hover {
  border-color: var(--ds-accent);
  color: var(--ds-accent);
  text-decoration: none;
}

.no-results-shortcut-list svg { flex: 0 0 auto; color: var(--ds-accent); }

.no-results-contact { margin-top: 8px; }

.no-results-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Per-category keywords
   ========================================================= */

.category-popular-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ds-line);
}

.category-popular-keywords .popular-keywords-heading {
  color: var(--ds-muted);
  font-size: 13px;
  font-weight: 700;
}

.category-popular-keywords .popular-keyword {
  background: var(--ds-surface);
  color: var(--ds-text);
  border-color: var(--ds-line);
}

.category-popular-keywords .popular-keyword:hover {
  background: var(--ds-accent);
  color: #fff;
  border-color: var(--ds-accent);
}


/* =========================================================
   Promoted articles as accordion (FAQ)
   ========================================================= */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); overflow: hidden; }
.faq-item[open] { border-color: var(--ds-accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--ds-display); font-size: 17px; font-weight: 900; text-transform: uppercase; color: var(--ds-heading);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }
.faq-question:hover, .faq-item[open] .faq-question { color: var(--ds-accent); }
.faq-chevron { flex: 0 0 auto; transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; line-height: 1.6; }
.faq-answer-body img, .faq-answer-body iframe, .faq-answer-body video { max-width: 100%; height: auto; }
.faq-answer-body > :first-child { margin-top: 0; }
.faq-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 900; text-transform: uppercase; color: var(--ds-accent); }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }

.faq-answer-body.is-loading { min-height: 40px; position: relative; }
.faq-answer-body.is-loading::after {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px;
  border: 2px solid var(--ds-line); border-top-color: var(--ds-accent); border-radius: 50%;
  animation: faq-spin .7s linear infinite;
}
@keyframes faq-spin { to { transform: rotate(360deg); } }


/* ---------- Compact footer ---------- */
.footer { padding: 32px 0 20px; }
.footer .footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; }
.footer .footer-brand { flex: 0 0 auto; }
.footer .footer-logo { margin-bottom: 8px; }
.footer-connect { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; margin-left: auto; }
.footer-connect .footer-heading { margin-bottom: 12px; }
.footer-connect .footer-social-icons { margin-bottom: 0; }
.footer-connect .footer-app-heading { margin-top: 0; }
.footer-connect .footer-app-badges { flex-wrap: nowrap; margin-top: 0; gap: 22px; }
.footer .footer-bottom { margin-top: 24px; padding-top: 14px; }
@media (max-width: 768px) {
  .footer .footer-inner { flex-direction: column; gap: 24px; }
  .footer-connect { margin-left: 0; gap: 24px; }
  .footer-connect .footer-app-badges { flex-wrap: wrap; }
}

/* Footer language selector, matched to socials */
.footer .footer-language-selector { margin-top: 30px; }
.footer .footer-language-selector .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 0;
  background: transparent; color: var(--ds-footer-text);
  font-family: inherit; font-size: 14px; font-weight: 900; font-style: normal;
  text-transform: uppercase; letter-spacing: 0.25px; cursor: pointer;
  transition: background-color 0.15s ease;
}
.footer .footer-language-selector .dropdown-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.footer .footer-language-selector .dropdown-toggle::before,
.footer .footer-language-selector .dropdown-toggle::after {
  content: ""; display: inline-block; flex-shrink: 0; background-color: currentColor; border: 0;
  -webkit-mask: var(--fl-icon) center / contain no-repeat; mask: var(--fl-icon) center / contain no-repeat;
}
.footer .footer-language-selector .dropdown-toggle::before { --fl-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); width: 18px; height: 18px; }
.footer .footer-language-selector .dropdown-toggle::after { --fl-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='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); width: 14px; height: 14px; margin: 0; }
@media (max-width: 768px) { .footer .footer-language-selector { margin-top: 0; } }

/* ---------- Language dropdowns: same look in header and footer ---------- */
.dropdown-menu a,
.footer .dropdown-menu a { color: var(--ds-text); font-size: 14px; font-weight: 400; }
.dropdown-menu a:hover,
.footer .dropdown-menu a:hover,
.dropdown-menu a:focus-visible { color: var(--ds-text); background: var(--ds-surface); text-decoration: none; }
.dropdown-menu a[aria-selected="true"],
.dropdown-menu a[aria-current] { font-weight: 700; }
.footer .footer-language-selector { position: relative; }
.footer .footer-language-selector .dropdown-menu { left: auto; right: 0; max-height: min(60vh, 420px); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .dropdown-menu { max-width: calc(100vw - 32px); }
  .footer .footer-language-selector .dropdown-menu { left: 0; right: auto; }
  .footer .footer-inner { padding: 0 20px; }
  .footer .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .footer-connect { flex-direction: column; width: 100%; }
  .footer-connect .footer-app-badges { flex-wrap: wrap; }
  .contact-banner { padding: 22px 20px; }
  .contact-banner-actions { width: 100%; }
  .contact-banner-actions .cb-btn { flex: 1 1 100%; }
}

/* Mobile menu: language picker */
.menu-list-mobile .mobile-lang details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none;
}
.menu-list-mobile .mobile-lang details summary::-webkit-details-marker { display: none; }
.menu-list-mobile .mobile-lang details summary::after {
  content: ""; width: 14px; height: 14px; background-color: currentColor; transition: transform 0.15s ease;
  -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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.menu-list-mobile .mobile-lang details[open] summary::after { transform: rotate(180deg); }
.menu-list-mobile .mobile-lang ul { padding: 0 0 10px 12px; max-height: 50vh; overflow-y: auto; }
.menu-list-mobile .mobile-lang li { border-bottom: 0; }
.menu-list-mobile .mobile-lang a { padding: 9px 0; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.86); }

/* Video gallery on small screens (overrides inline column count) */
@media (max-width: 768px) { .video-gallery .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .video-gallery .video-list { grid-template-columns: minmax(0, 1fr) !important; } }

/* Category cards: light grey heading band (like the webshop category tiles) */
.categories .category-card { --cc-pad: 22px; padding: var(--cc-pad); overflow: hidden; }
.categories .category-card-title {
  margin: calc(-1 * var(--cc-pad)) calc(-1 * var(--cc-pad)) 14px;
  padding: 20px var(--cc-pad);
  background: #f4f4f4;
  border-bottom: 1px solid #eee;
}
@media (max-width: 480px) { .categories .category-card { --cc-pad: 18px; } }

/* Contact form title with logo */
.request-form-title { display: flex; align-items: center; gap: 0.4em; }
.request-form-logo { height: 1em; width: auto; flex-shrink: 0; }

/* Contact form title on mobile: fit on one line */
@media (max-width: 768px) { .request-form-title { font-size: 22px; } }
@media (max-width: 400px) { .request-form-title { font-size: 19px; gap: 0.35em; } }

/* Hide Zendesk's own launcher when our chat button is active.
   Only the launcher is hidden - the messenger window stays usable. */
.ds-chat-fab-active iframe#launcher { display: none !important; }


/* contact-banner-compact keeps the container width even when the banner
   sits outside .container (article pages). */
.contact-banner-compact {
  max-width: calc(var(--ds-max) - 64px);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1504px) {
  .contact-banner-compact { max-width: calc(100% - 64px); }
}
@media (max-width: 600px) {
  .contact-banner-compact { max-width: calc(100% - 32px); }
}


/* Sticky footer: keep the footer at the bottom on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .footer { margin-top: auto; flex-shrink: 0; }

/* Article title matches the other page headings. */
.article-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}
