/* ==========================================================================
   AVPro Global — Support Subdomain
   Single stylesheet for all support.avproglobal.com templates.
   Source of truth: "AVPro Global - Subdomains.fig"
   ========================================================================== */

:root {
  --green: #8dc63f;
  --green-dark: #7ab332;
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --text-body: #515151;
  --text-nav: #6b6b73;
  --text-muted: #aaaaaa;
  --text-soft: #8c8c8c;
  --icon-dark: #333333;
  --surface: #f6f6f6;
  --border: #e8e8e8;
  --border-input: #aaaaaa;
  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 10px;
  --radius-xl: 15px;
  --container: 1280px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }
input { font-family: var(--font); }

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

/* Material Symbols ------------------------------------------------------- */
.ms, .ms-sharp, .ms-rounded {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 250, "GRAD" 0, "opsz" 24;
  user-select: none;
  flex: none;
}
.ms-sharp { font-family: "Material Symbols Sharp"; }
.ms-rounded { font-family: "Material Symbols Rounded"; }
/* wght 200 needs the Outlined axis in base.html to start at 200, not 300 --
   otherwise the browser clamps it and .ms-thin renders identically to .ms-light. */
.ms-thin { font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24; }
.ms-light { font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24; }
.ms-bold { font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--green);
  color: var(--white);
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 20px;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn .ms { font-size: 20px; color: var(--white); }
.btn-sm { font-size: 12px; padding: 5px 15px; }

/* Top bar ---------------------------------------------------------------- */
.topbar { background: var(--black); }
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  height: 36px;
}
.topbar-hours { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.topbar-hours a { color: inherit; }
.topbar-link { color: var(--white); font-size: 13px; }
.topbar-link:hover { color: var(--green); }
.theme-toggle {
  background: none;
  border: 0;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle .ms { font-size: 18px; }
.theme-toggle:hover { color: var(--white); }

/* Main nav --------------------------------------------------------------- */
/* Positioned so the mobile menu panel (.mainnav-links under .mainnav.is-open) can
   span the full nav width rather than the container's. */
.mainnav { background: var(--surface); position: relative; }
.mainnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 32px;
}
.mainnav-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.mainnav-logo img { height: 40px; width: auto; }
.mainnav-links { display: flex; align-items: center; gap: 50px; }
.mainnav-links > li { list-style: none; position: relative; }
.mainnav-links { margin: 0; padding: 0; }
.mainnav-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-nav);
  font-size: 14px;
  line-height: 20px;
}
.mainnav-link:hover, .mainnav-link.is-active { color: var(--ink); font-weight: 500; }
.mainnav-link .ms { font-size: 14px; color: var(--text-nav); }
.mainnav-right { display: flex; align-items: center; gap: 10px; flex: none; }
/* Hidden until the link row is -- see Responsive. */
.mainnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--icon-dark);
}
.mainnav-toggle .ms { font-size: 28px; }

/* Dropdown menus --------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  padding: 15px 25px;
  z-index: 40;
  flex-direction: column;
  gap: 5px;
}
.dropdown.is-open .dropdown-menu { display: flex; }
.dropdown-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-nav);
  font-size: 14px;
  line-height: 20px;
  padding: 3px 0;
  white-space: nowrap;
}
.dropdown-item .ms { font-size: 12px; }
.dropdown-item:hover { color: var(--ink); }

/* Account button + menu -------------------------------------------------- */
.account { position: relative; }
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #e8e8ec;
  padding: 6px 12px;
}
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #4d7c1f);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.account-name { color: var(--text-nav); font-size: 14px; }
.account-btn .ms { font-size: 16px; color: var(--text-muted); }
.account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 300px;
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-xl);
  z-index: 50;
  overflow: hidden;
}
.account.is-open .account-menu { display: block; }
.account-menu-section { padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.account-menu hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.account-menu-namerow { display: flex; align-items: center; justify-content: space-between; }
.account-menu-name { font-weight: 700; font-size: 16px; color: var(--text-nav); }
.account-menu-email { font-size: 14px; color: var(--text-nav); }
.account-menu a { font-size: 14px; color: var(--text-nav); padding: 2px 0; }
.account-menu a:hover { color: var(--ink); }
.account-menu .account-menu-title { font-weight: 700; font-size: 16px; }
.user-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 25px;
  background: var(--border);
  color: var(--text-nav);
  font-size: 12px;
  line-height: 20px;
}
.user-tag.is-admin { background: var(--green); color: var(--white); }

/* Hero ------------------------------------------------------------------- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/hero-bg.559e683e8769.jpg") center / cover no-repeat;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 45px;
  padding: 40px 24px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 650px;
  text-align: center;
}
.hero-title { color: var(--white); font-size: 36px; font-weight: 700; line-height: 1.1; margin: 0; }
.hero-sub { color: var(--white); font-size: 16px; line-height: 20px; margin: 0; }

/* Hero search pill */
.hero-search {
  display: flex;
  align-items: center;
  width: 650px;
  max-width: 100%;
  height: 55px;
  background: var(--white);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  padding-right: 15px;
}
.hero-search .ms { font-size: 22px; color: var(--text-muted); margin: 0 10px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.hero-search input::placeholder { color: var(--text-muted); font-size: 14px; }

/* Compact search box (page headings) -------------------------------------- */
.search-box {
  display: flex;
  align-items: center;
  width: 350px;
  max-width: 100%;
  height: 35px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 5px 10px;
  font-size: 14px;
  background: transparent;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
  background: none;
  border: 0;
  padding: 0 10px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}
.search-box .ms { font-size: 22px; }

/* Page heading row -------------------------------------------------------- */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 35px 0;
}
.page-heading-titles { display: flex; flex-direction: column; gap: 10px; }
.page-title { font-size: 32px; font-weight: 800; line-height: 1; margin: 0; }

/* Breadcrumbs ------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}
.breadcrumbs .ms, .breadcrumbs .ms-sharp { font-size: 16px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--ink); }

/* Layout: sidebar + content ----------------------------------------------- */
.page-body { padding-bottom: 50px; }
.split { display: flex; gap: 25px; align-items: flex-start; }
.split > .content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Filter panel ------------------------------------------------------------ */
.filter-panel {
  width: 350px;
  flex: none;
  border: 1px solid var(--border);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 15px;
  align-self: flex-start;
  /* A sticky panel taller than the viewport pins its top and leaves the bottom
     of a long filter list unreachable, so the panel scrolls on its own. */
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) transparent;
}
.filter-panel::-webkit-scrollbar { width: 8px; }
.filter-panel::-webkit-scrollbar-track { background: transparent; }
.filter-panel::-webkit-scrollbar-thumb {
  background: var(--border-input);
  border-radius: var(--radius);
}
.filter-panel::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
.filter-panel hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
/* Collapses the panel to one bar once it stacks above the results -- see Responsive. */
.filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.filter-toggle-label { display: inline-flex; align-items: center; gap: 8px; }
.filter-toggle-label .ms { font-size: 22px; }
.filter-toggle-count { color: var(--green-dark); }
.filter-toggle-chevron { font-size: 22px; }
.filter-panel.is-open .filter-toggle-chevron { transform: rotate(180deg); }
.filter-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 400;
}
.filter-pill-label { background: var(--border); padding: 2px 10px; line-height: 20px; border-radius: 50px 0 0 50px; }
.filter-pill-x {
  background: var(--border);
  border: 0;
  padding: 4px 5px 4px 3px;
  display: inline-flex;
  align-items: center;
  line-height: 20px;
  border-radius: 0 50px 50px 0;
}
.filter-pill-x .ms-sharp { font-size: 16px; }
.filter-clear { color: var(--text-muted); font-size: 14px; font-weight: 400; }
.filter-clear:hover { color: var(--ink); }
.filter-no-active { color: var(--text-muted); font-size: 14px; font-style: italic; }
.filter-section { display: flex; flex-direction: column; gap: 10px; }
.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.filter-section-head .ms { font-size: 22px; }
.filter-section.is-collapsed .filter-options { display: none; }
.filter-section.is-collapsed .filter-section-head .ms { transform: rotate(-90deg); }
/* overflow-anchor: none keeps these out of scroll-anchor selection. Sinking an
   empty option (reorderOptions(), static/js/support.js) moves a node the browser may
   have picked as its anchor, and it then scrolls the page to follow it. */
.filter-options { display: flex; flex-direction: column; gap: 10px; overflow-anchor: none; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-body);
  text-align: left;
}
.filter-option .ms { font-size: 22px; color: var(--text-muted); }
.filter-option.is-checked .ms { color: var(--green); }
.filter-option .count { color: var(--text-muted); font-size: 14px; }
/* A checked Manufacturer's product lines (KB browse), indented beneath it; each
   filter-depth-N nests a sub-line one step further under its parent line. */
.filter-option-child { padding-left: 24px; font-size: 15px; }
.filter-option-child .ms { font-size: 20px; }
.filter-option-child.filter-depth-1 { padding-left: 48px; }
.filter-option-child.filter-depth-2 { padding-left: 72px; }
/* Options matching nothing under the current filters, sorted to the bottom of their
   group by reorderOptions() in static/js/support.js. Still clickable -- muted only so
   the block of them reads as the tail of the list. */
.filter-option.is-empty { color: var(--text-muted); }
.filter-option.is-empty .ms { color: var(--border); }

/* Results toolbar ---------------------------------------------------------- */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 15px;
}
.results-count { color: var(--text-muted); font-size: 14px; }
.sort {
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  background: var(--white);
  font-size: 14px;
  color: var(--text-soft);
}
.sort .ms { font-size: 22px; color: var(--text-muted); }
.sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 165px;
  background: var(--white);
  border: 1px solid var(--border-input);
  padding: 15px;
  z-index: 30;
  flex-direction: column;
  gap: 5px;
}
.sort.is-open .sort-menu { display: flex; }
.sort-menu a { color: var(--text-nav); font-size: 14px; }
.sort-menu a:hover { color: var(--ink); }

/* Pagination ---------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-top: 15px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 14px;
  color: var(--text-body);
}
.page-link:hover { color: var(--ink); border-color: var(--ink); }
.page-current { color: var(--text-muted); font-size: 14px; padding: 0 5px; }

/* Pills / category tags ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 25px;
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.pill-row { display: flex; gap: 5px; flex-wrap: wrap; }
/* Result-type pill (search page): names the kind of thing a result is. */
.pill-type { gap: 3px; color: var(--text-body); }
.pill-type .ms { font-size: 16px; }
/* Resource pill (search page): a download section the product's page has -- Firmware
   or Drivers. Outlined so it reads as "available here" next to the filled tags. */
.pill-resource {
  gap: 3px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-body);
  line-height: 18px;
}
.pill-resource .ms { font-size: 16px; }

/* Cards -------------------------------------------------------------------- */
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex;
  gap: 50px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-flat { border-radius: 0; }
.card-logo { width: 100px; flex: none; }
.card-logo img { width: 100px; height: 40px; object-fit: contain; object-position: left center; }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.card-titlerow-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.card-sku { font-size: 16px; font-weight: 700; margin: 0; }
.card-brand { font-size: 14px; margin: 0; }
.card-desc { font-size: 14px; margin: 0; }
.card-note { font-size: 13px; font-style: italic; color: var(--text-muted); margin: 0; }
.card-details { display: flex; flex-direction: column; gap: 5px; }
.card-supported { font-size: 13px; color: var(--text-body); margin: 5px 0 0; }
.card-supported a { text-decoration: underline; }
.card-supported-more {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
}
.card-supported-more:hover { text-decoration: underline; }

/* Compact card (product index) */
.card-compact { align-items: center; padding: 15px 25px; }
.card-compact .card-main { flex-direction: row; align-items: center; gap: 15px; }

/* Article card (KB browse) */
.card-article { position: relative; align-items: flex-start; gap: 20px; }
.card-article:hover { border-color: var(--text-muted); }
.card-article .card-icon { flex: none; }
.card-article .card-icon .ms { font-size: 28px; color: var(--text-muted); }
.card-article .card-desc { color: var(--text-body); }
.card-article .card-footrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.card-more { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; color: var(--green-dark); }
.card-more .ms { font-size: 18px; }
.card-article:hover .card-more { text-decoration: underline; }
/* The card's single anchor, stretched to cover the whole card -- see kb_browse.html
   for why "Read more" can't be its own link. */
.card-stretch::after { content: ""; position: absolute; inset: 0; }

/* Accordions ---------------------------------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.accordion:hover { border-color: var(--border-input); }
/* An open row keeps the darker edge and separates its titlebar from the notes, so a
   stack of collapsed rows reads as a list and the open one reads as a panel. */
.accordion.is-open { border-color: var(--border-input); }
.accordion-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}
.accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
}
.accordion-chevron {
  font-size: 16px;
  color: var(--text-muted);
  flex: none;
  /* Rotated rather than swapped for a down-arrow glyph: the turn reads as the row
     opening, and it cannot fall out of step with the class the click handler sets. */
  transition: transform 0.15s ease;
}
.accordion.is-open > .accordion-titlebar .accordion-chevron {
  transform: rotate(90deg);
  color: var(--ink);
}
.accordion-tag {
  background: var(--icon-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  padding: 0 5px;
  border-radius: var(--radius);
  flex: none;
}
.accordion-eol { flex: none; white-space: nowrap; }
.accordion-actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* Set by applyRowFilter() in support.js: a driver row whose platform is not in the
   active filter, or a Previous Versions block whose rows have all gone. */
.is-filtered-out { display: none !important; }
.accordion-nofile { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
/* The version is the row's identity, so it carries the weight; the word "Version" is
   repeated on every row and recedes to a label. The date is metadata and sits at the
   right, out of the identity's way, instead of in parentheses behind it. */
.accordion-version {
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.accordion-version-label { font-weight: 400; color: var(--text-soft); }
.accordion-date {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.accordion-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.accordion-body { display: none; }
.accordion.is-open > .accordion-body {
  display: block;
  border-top: 1px solid var(--border);
  padding: 15px 15px 15px 36px;
}

/* Changelog notes, rendered from markdown -------------------------------------
   The body holds real markup -- headings, lists, code, tables -- so it is styled down
   to the size the accordion sits at instead of inheriting the page's document
   defaults, and given a hierarchy the flat 14px/600 on every heading did not have. */
.accordion-notes-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.accordion-notes-empty { margin: 0; color: var(--text-muted); font-size: 14px; }
.accordion-notes { color: var(--text-body); font-size: 14px; line-height: 20px; }
.accordion-notes.is-clamped { max-height: 260px; overflow: hidden; }
.accordion-notes-more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
}
.accordion-notes-more:hover { text-decoration: underline; }
/* Outer margins are collapsed so a one-paragraph note sits exactly where the plain
   text it replaced did. */
.accordion-notes > :first-child { margin-top: 0; }
.accordion-notes > :last-child { margin-bottom: 0; }
.accordion-notes p { margin: 0 0 10px; }
/* The pack title that opens a driver changelog. It largely repeats the row above it,
   so it is sized as a title rather than the banner a default h2 would be. */
.accordion-notes h1,
.accordion-notes h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
}
.accordion-notes h3,
.accordion-notes h4,
.accordion-notes h5 {
  margin: 15px 0 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
}
/* Every driver-pack changelog opens with a header block -- pack title, supported
   products, vendor download link -- and then heads the actual notes with an h6
   ("###### Version 1.4.0 (August 3, 2026)"). So h6 is ruled off as the divider between
   "what this pack is" and "what changed in it", rather than styled as the smallest
   heading, which left the two blocks running together. */
.accordion-notes h6 {
  margin: 15px 0 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: var(--ink);
}
.accordion-notes > h6:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.accordion-notes ul,
.accordion-notes ol { margin: 0 0 10px; padding-left: 20px; }
.accordion-notes li { margin-bottom: 3px; }
/* "**Enhancements:**" over its list -- authored as a paragraph, but it is a label for
   what follows, so it is pulled tight to it instead of floating a full gap away. */
.accordion-notes p:has(> strong:only-child) { margin-bottom: 3px; color: var(--ink); }
.accordion-notes p:has(+ ul),
.accordion-notes p:has(+ ol) { margin-bottom: 3px; }
.accordion-notes a { color: var(--green-dark); text-decoration: underline; }
.accordion-notes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1px 4px;
}
.accordion-notes pre {
  margin: 0 0 10px;
  padding: 10px;
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
}
.accordion-notes pre code { background: none; padding: 0; }
.accordion-notes blockquote {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
  color: var(--text-soft);
}
.accordion-notes table { border-collapse: collapse; margin: 0 0 10px; font-size: 13px; }
.accordion-notes th,
.accordion-notes td { border: 1px solid var(--border); padding: 3px 8px; text-align: left; }
.accordion-notes th { background: var(--surface); font-weight: 600; }
.accordion-notes hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.accordion-notes img { margin: 5px 0; }
/* Offline software installer, stacked under the standard installer's button. Styled
   as a quiet secondary link rather than a .btn so it doesn't compete with it. */
.accordion-actions--stacked { flex-direction: column; align-items: flex-end; gap: 4px; }
.accordion-alt-download {
  font-size: 12px;
  color: var(--text-body);
  white-space: nowrap;
}
.accordion-alt-download:hover { color: var(--green-dark); text-decoration: underline; }

/* Nested accordion (Previous Versions) */
.accordion-nested.is-open > .accordion-body { display: flex; flex-direction: column; gap: 5px; padding: 15px; }

/* Resource sections (product resources page) -------------------------------- */
.resource-section { display: flex; flex-direction: column; gap: 15px; }
.resource-section-head {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.resource-section-head .ms { font-size: 22px; }
.resource-section.is-collapsed .resource-section-body { display: none; }
.resource-section.is-collapsed .resource-section-head .ms { transform: rotate(-90deg); }
.resource-section-body { display: flex; flex-direction: column; gap: 15px; padding-left: 25px; }
.resource-divider { border: 0; border-top: 1px solid var(--border); margin: 25px 0; }

/* Hardware-revision tabs on a product page's firmware section. The revisions of one
   SKU are separate Product rows carrying separate, non-interchangeable firmware
   images, so the strip is how someone picks the revision they actually own. */
.rev-tabs {
  display: flex;
  align-items: stretch;
  gap: 25px;
  border-bottom: 1px solid var(--border);
  /* overflow-y is pinned because leaving it unset does NOT leave it alone: a computed
     'visible' on one axis against a non-visible value on the other computes to 'auto',
     so overflow-x alone hands the strip a vertical scrollbar the moment anything
     inside it overflows by even a pixel. */
  overflow-x: auto;
  overflow-y: hidden;
}
.rev-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* No negative bottom margin. It would only pull the active tab's 2px underline onto
     the strip's own 1px divider instead of directly above it -- invisible either way --
     at the cost of a pixel of vertical overflow, which is what armed that scrollbar. */
  padding: 0 2px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-nav);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.rev-tab:hover { color: var(--ink); }
.rev-tab.is-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--green); }
/* End-of-life rides on the tab rather than inside the panel so it is legible before
   the click: on five of these SKUs it is the *base* revision that is retired, and its
   firmware still downloads. */
/* The same pill marks a retired driver pack's row, where the product is not retired. */
.rev-tab-eol,
.accordion-eol {
  padding: 0 8px;
  border-radius: 25px;
  background: var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
/* The label photo and revision warning that head the tab strip. Loading the wrong
   revision's firmware is not something the page can undo, so this reads before the
   choice is made rather than from inside a panel. */
.rev-notice {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.rev-notice-img {
  /* Held to a fixed width rather than the file's own 782px, which would fill the
     column and dwarf the two lines of text beside it. */
  width: 220px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.rev-notice-text { font-size: 14px; line-height: 20px; color: var(--text-body); }
.rev-notice-text p { margin: 0; }
.rev-notice-text p + p { margin-top: 5px; }
.rev-notice-text strong { color: var(--ink); }
.rev-panel { display: flex; flex-direction: column; gap: 15px; }
.rev-panel[hidden] { display: none; }
/* Names the specific driver pack on a row, where the platform tag alone would leave
   two revision-specific packs looking identical. */
.accordion-name { color: var(--ink); font-size: 14px; font-weight: 500; }
.doc-link { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink); }
.doc-link .ms { font-size: 22px; color: var(--text-muted); }

/* Side panels (KB lists) ------------------------------------------------------ */
.side-col { width: 350px; flex: none; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 74px; align-self: flex-start; }
.side-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.side-panel-title { font-size: 16px; font-weight: 700; margin: 0; }
.side-panel-list { display: flex; flex-direction: column; gap: 15px; }
.side-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-input);
  font-size: 14px;
  color: var(--ink);
}
.side-panel-item .item-label { display: flex; align-items: center; gap: 5px; min-width: 0; }
.side-panel-item .ms { font-size: 22px; color: var(--text-muted); }
.side-panel-more { font-size: 14px; color: var(--ink); }
.side-panel-more:hover { color: var(--green-dark); }

/* Quick links (home) ----------------------------------------------------------- */
.quicklinks { display: flex; flex-direction: column; align-items: center; gap: 35px; padding-top: 50px; }
.quicklinks-title { font-size: 16px; font-weight: 400; margin: 0; }
.quicklinks-row { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.quicklink {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.quicklink .ms { font-size: 40px; color: var(--icon-dark); }
.quicklink:hover { color: var(--green-dark); }
.quicklink:hover .ms { color: var(--green); }

/* Brand grid (KB landing) -------------------------------------------------------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 283px);
  gap: 50px 25px;
  justify-content: center;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 16px;
  color: var(--ink);
}
.brand-tile img { height: 60px; width: auto; max-width: 150px; object-fit: contain; }

/* Promo cards (Training Portal / TechSage) ----------------------------------------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.promo-card {
  min-height: 290px;
  border-radius: 0;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 50px 25px;
  text-align: center;
  color: var(--white);
}
.promo-card--training { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/card-training-bg.eabe16f13471.jpg"); }
.promo-card--techsage { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/card-techsage-bg.e36b1ccf1068.png"); }
.promo-logo { height: 50px; width: auto; }
.promo-title { font-size: 32px; font-weight: 400; line-height: 1.1; margin: 0; color: var(--white); }
.promo-sub { font-size: 16px; margin: 0; color: var(--white); }
.promo-card .promo-text { display: flex; flex-direction: column; gap: 10px; }

/* Ranked / dated article lists (KB landing) ------------------------------------------ */
.article-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.article-list { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.article-list-title { font-size: 20px; font-weight: 700; margin: 0 0 0; }
.article-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 16px;
  color: var(--ink);
}
.article-list-item .num { color: var(--ink); flex: none; }
.article-list-item .title { flex: 1; min-width: 0; }
.article-list-item .date { color: var(--text-muted); flex: none; }
/* Stands in for the list when the API declares it has no ranking to give -- see
   kb_landing.html. Sized to the items it replaces so the two columns stay level. */
.article-list-empty { color: var(--text-muted); font-size: 14px; margin: 0; padding: 10px 0; }
.article-list-empty a { color: var(--green-dark); text-decoration: underline; }
.article-list-item:hover { border-color: var(--text-muted); }

/* Product summary (product resources page) --------------------------------------------- */
.product-summary {
  display: flex;
  align-items: center;
  gap: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px;
  /* Anchors .product-summary-link to the box's bottom-right corner. */
  position: relative;
}
/* Deliberately a quiet text link, not a .btn: the box's real actions are the download
   accordions below it, and a solid green button up here outranked them.
   Inset to match the box's own 50px padding so it reads as the bottom-right corner of
   the content area -- the box is only ~220px tall, so a smaller inset just looks like
   it is floating beside the text. Absolute down to phone width: as a flex item in the
   row layout it would inherit .product-summary's align-items:center and land
   mid-right, which is the bug this replaces. Only once the box stacks into a column
   (Responsive, 640px) does it rejoin the flow, under the text. */
.product-summary-link {
  position: absolute;
  right: 50px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--text-body);
}
.product-summary-link:hover { color: var(--green-dark); text-decoration: underline; }
.product-summary-link .ms { font-size: 18px; }
.product-summary-img { width: 250px; flex: none; }
.product-summary-img img { width: 100%; height: auto; }
/* Brand wordmark standing in for a missing product photo -- it must not scale to the
   container's full 250px the way a product shot does. */
.product-summary-img img.product-summary-img--fallback {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70px;
  margin: 0 auto;
}
.product-summary-text { display: flex; flex-direction: column; gap: 5px; }
.product-summary-meta { display: flex; align-items: center; gap: 25px; }
.product-summary-meta img { width: 100px; height: 40px; object-fit: contain; object-position: left center; }

/* KB article -------------------------------------------------------------------- */
.article-title { font-size: 36px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.article-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 32px; }

/* Table of contents */
.article-toc { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; }
.article-toc:empty { display: none; }
.article-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px; }
.article-toc ul {
  list-style: none; margin: 0; padding: 0 6px 0 0; display: flex; flex-direction: column; gap: 6px;
  /* The side column is sticky, so a long manual's contents (75 entries on some) would
     push past the viewport with no way to reach the end; the list scrolls on its own,
     leaving room below for the related-content panel. */
  max-height: min(60vh, calc(100vh - 220px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) transparent;
}
.article-toc ul::-webkit-scrollbar { width: 8px; }
.article-toc ul::-webkit-scrollbar-track { background: transparent; }
.article-toc ul::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 4px; }
.article-toc ul li { font-size: 14px; line-height: 1.4; }
.article-toc ul li a { color: var(--green-dark); text-decoration: none; }
.article-toc ul li a:hover { text-decoration: underline; }
/* Subsections hang off a rule rather than a number, so the outline reads at a glance. */
.article-toc ul li.toc-h2 { margin-left: 4px; padding-left: 12px; border-left: 2px solid var(--border); font-size: 13px; }

/* Article body */
/* overflow-wrap: KB bodies carry long bare URLs and firmware filenames, which would
   otherwise push the column wider than a phone screen. */
.article-body { font-size: 15px; line-height: 1.75; color: var(--text-body); overflow-wrap: break-word; }
.article-body h1 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
/* Intercom often rules off a section itself; the h1 shouldn't draw a second line under it. */
.article-body hr + h1 { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.article-body h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 0 6px; }
.article-body h1:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body p { margin: 0 0 14px; }
.article-body p.no-margin { margin: 0; }
.article-body p.no-margin:empty { display: none; }
.article-body ol,
.article-body ul { margin: 6px 0 18px 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }
.article-body li { padding-left: 4px; line-height: 1.65; }
.article-body li p.no-margin { margin: 0; }
.article-body b,
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a,
.article-body .intercom-content-link { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover,
.article-body .intercom-content-link:hover { color: var(--green); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; }
.article-body code { font-family: monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1px 5px; }
.article-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 0 0 16px; }
.article-body pre code { background: none; border: none; padding: 0; }
/* Intercom blocks, styled after the help-centre originals (help.avproglobal.com). Cells
   carry their inner borders and padding inline, so the table adds only its outline;
   cell text (paragraphs and lists, tidied from <h3> server-side) is tightened to suit
   a cell rather than the page. */
.article-body .intercom-interblocks-table-container { max-width: 100%; overflow-x: auto; margin: 16px 0 20px; }
.article-body table {
  border: 1px solid #c6c9c0; border-radius: 6px; border-collapse: separate; border-spacing: 0;
  width: 100%; font-size: 14px; line-height: 1.55;
}
.article-body td,
.article-body th { vertical-align: top; text-align: left; }
.article-body tr:first-child > td,
.article-body tr:first-child > th { border-top: none !important; }
.article-body td p,
.article-body th p { margin: 0 0 6px; }
.article-body td > :last-child,
.article-body th > :last-child { margin-bottom: 0; }
.article-body td ul,
.article-body td ol { margin: 4px 0 6px 20px; gap: 2px; }
.article-body td img { margin: 4px 0; }
/* Callouts carry their colours inline; this gives them the box those colours assume. */
.article-body .intercom-interblocks-callout {
  border: 1px solid; border-radius: 8px; padding: 16px 20px; margin: 16px 0;
}
.article-body .intercom-interblocks-callout p { margin: 0 0 6px; }
.article-body .intercom-interblocks-callout > :last-child { margin-bottom: 0; }
/* Collapsible sections: a chevron and the summary's heading on one line, contents
   indented beneath -- no box, as on the help centre. */
.article-body details { margin: 0 0 8px; }
.article-body summary {
  cursor: pointer; list-style: none; padding: 4px 8px; margin: 0 -8px;
  border-radius: var(--radius-sm); color: var(--ink);
}
.article-body summary::-webkit-details-marker { display: none; }
.article-body summary::before {
  content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-right: 0.6em;
  border-top: 2px solid var(--green-dark); border-right: 2px solid var(--green-dark);
  transform: rotate(45deg); transition: transform 0.2s ease-out; vertical-align: 0.15em;
}
.article-body details[open] > summary::before { transform: rotate(135deg); }
.article-body summary:hover { background: var(--surface); }
.article-body summary > h1,
.article-body summary > h2,
.article-body summary > h3 {
  display: inline; margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 600;
}
.article-body .collapsible-section-content { margin: 8px 0 16px 16px; }
.article-body .collapsible-section-content > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .article-body summary::before { transition: none; } }
/* Embedded video keeps to the column (tables are handled at phone width). */
.article-body iframe,
.article-body video { max-width: 100%; }
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px;
  margin-top: 50px;
  color: var(--text-body);
  font-size: 14px;
}
.article-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.article-author .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-body); }

/* Footer -------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--white); margin-top: 50px; padding-top: 50px; }
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand .footer-logo { width: 125px; height: auto; }
.footer-contact { font-size: 14px; line-height: 26px; }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--green); }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-col-title { font-size: 14px; font-weight: 700; line-height: 17px; margin: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 26px;
  color: var(--white);
}
.footer-col li a:hover { color: var(--green); }
.footer-col li a .ms { font-size: 12px; color: #6b6b73; }
.footer-partners {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.footer-partners img { width: auto; height: 28px; max-width: 82px; object-fit: contain; opacity: 0.5; }
.footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 50px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 21px;
}
.footer-legal a { color: var(--text-soft); }
.footer-legal a:hover { color: var(--white); }
.footer-social { display: flex; gap: 5px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--text-soft);
}
.footer-social a:hover { background: var(--white); }
.footer-social svg { width: 15px; height: 15px; fill: var(--black); }

/* Responsive ----------------------------------------------------------------------- */
/* Two steps: 1100px is where the sidebars stack and the nav collapses to a menu;
   640px is phone width, where rows that sit side by side on desktop stack and the
   spacing tightens. Values are scaled down from the desktop ones rather than new. */
@media (max-width: 1100px) {
  .split { flex-direction: column; }
  .filter-panel, .side-col { width: 100%; }
  /* Stacked above the results, the panel is no longer height-constrained -- and no
     longer sticky, which would float it over the results as they scroll past. */
  .filter-panel { max-height: none; overflow-y: visible; position: static; }
  .side-col { position: static; }
  .promo-grid, .article-lists { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 283px)); }
  /* The photo has to stay large enough for the highlighted revision letter to be
     legible, so the notice stacks instead of shrinking it. */
  .rev-notice { flex-direction: column; align-items: flex-start; gap: 15px; }

  /* Filter panel collapses to its toggle bar until opened. */
  .filter-toggle { display: flex; }
  .filter-panel:not(.is-open) > :not(.filter-toggle) { display: none; }

  /* Nav links move into a menu panel under the nav bar. */
  .mainnav-toggle { display: inline-flex; }
  .mainnav-links { display: none; }
  .mainnav.is-open .mainnav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5px 24px 15px;
  }
  .mainnav.is-open .mainnav-links > li { border-bottom: 1px solid var(--border); }
  .mainnav.is-open .mainnav-links > li:last-child { border-bottom: 0; }
  .mainnav.is-open .mainnav-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
  }
  .mainnav.is-open .mainnav-link .ms { font-size: 20px; }
  .mainnav.is-open .dropdown.is-open .mainnav-link .ms { transform: rotate(180deg); }
  /* Sub-menus open in place rather than as a floating box. */
  .mainnav.is-open .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 10px 15px;
    background: none;
  }
  .mainnav.is-open .dropdown-item { font-size: 15px; padding: 8px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .mainnav.is-open .mainnav-links { padding-left: 16px; padding-right: 16px; }

  /* The phone number stays; the hours give way to "Back to Main Site". */
  .topbar .container { justify-content: space-between; gap: 10px; }
  .topbar-hours-time { display: none; }
  .mainnav .container { gap: 15px; }
  .mainnav-logo img { height: 34px; }
  .account-name { display: none; }
  .account-btn { padding: 5px 8px; }
  .account-menu { width: min(300px, calc(100vw - 32px)); }

  /* iOS zooms the page on focusing any input under 16px. */
  .hero-search input, .search-box input { font-size: 16px; }
  .hero-search input::placeholder { font-size: 14px; }

  .hero { min-height: 0; gap: 25px; padding: 40px 16px; }
  .hero-text { gap: 15px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-search { height: 50px; padding-right: 8px; }
  .hero-search .ms { margin: 0 8px; }

  .page-heading { flex-direction: column; align-items: stretch; gap: 15px; padding: 25px 0; }
  .page-title { font-size: 26px; }
  .search-box { width: 100%; height: 40px; }
  .breadcrumbs { flex-wrap: wrap; gap: 5px 10px; }

  .page-body { padding-bottom: 35px; }
  .filter-panel { padding: 15px; gap: 20px; }

  /* Cards: logo over content instead of beside it. */
  .card { flex-direction: column; gap: 15px; padding: 15px; }
  .card-titlerow { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .card-titlerow-left { flex-wrap: wrap; gap: 5px 10px; }
  /* Product index rows are one line of identity -- they stay side by side. */
  .card-compact { flex-direction: row; align-items: center; gap: 15px; padding: 12px 15px; }
  .card-compact .card-logo { width: 70px; }
  .card-compact .card-logo img { width: 70px; height: 30px; }
  .card-compact .card-main { flex-wrap: wrap; gap: 5px 10px; }
  .card-article { flex-direction: row; gap: 12px; }
  .card-article .card-footrow { flex-wrap: wrap; gap: 10px; }

  /* Accordion rows: the download button stays beside the version, and the date drops
     to its own line under it, indented to the text past the chevron. */
  .accordion-titlebar { flex-wrap: wrap; gap: 5px 10px; }
  .accordion-title { flex: 1 1 0; flex-wrap: wrap; gap: 5px 10px; }
  .accordion-actions { flex-wrap: wrap; justify-content: flex-end; }
  .accordion-actions--stacked { flex-wrap: nowrap; }
  .accordion-date { order: 3; flex-basis: 100%; padding-left: 26px; }
  .accordion.is-open > .accordion-body { padding: 15px; }
  .accordion-nested.is-open > .accordion-body { padding: 10px; }
  .accordion-notes { overflow-wrap: break-word; }
  .accordion-notes table { display: block; max-width: 100%; overflow-x: auto; }

  .resource-section-body { padding-left: 0; }
  .resource-divider { margin: 20px 0; }
  .rev-tabs { gap: 20px; }
  .rev-notice { padding: 15px; }
  .rev-notice-img { width: 100%; max-width: 320px; }

  .product-summary { flex-direction: column; align-items: flex-start; gap: 20px; padding: 25px; }
  .product-summary-img { width: 100%; max-width: 250px; align-self: center; }
  .product-summary-link { position: static; }

  .side-panel { padding: 20px; gap: 20px; }

  .quicklinks { gap: 25px; padding-top: 35px; }
  .quicklinks-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px 10px; width: 100%; }
  .quicklink { width: auto; font-size: 14px; gap: 10px; }
  .quicklink .ms { font-size: 36px; }

  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 15px; width: 100%; }
  .brand-tile { font-size: 14px; }
  .brand-tile img { height: 45px; max-width: 100%; }

  .promo-grid { gap: 25px; }
  .promo-card { min-height: 240px; padding: 35px 20px; gap: 20px; }
  .promo-title { font-size: 24px; }
  .promo-sub { font-size: 14px; }

  .article-lists { gap: 25px; }
  .article-list { padding: 0; }
  .article-list-title { font-size: 18px; }
  .article-list-item { font-size: 14px; }

  .article-title { font-size: 26px; }
  .article-meta { margin-bottom: 20px; }
  .article-body table { display: block; max-width: 100%; overflow-x: auto; }
  .article-author { margin-top: 35px; }

  .site-footer { margin-top: 35px; }
  .site-footer { padding-top: 35px; }
  .footer-main {
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-partners { padding: 35px 16px; gap: 20px 30px; }
  .footer-partners img { height: 22px; }
  .footer-legal { padding: 15px 16px 30px; gap: 10px 20px; font-size: 12px; line-height: 18px; }
  .footer-social { flex-basis: 100%; justify-content: center; }
}
