/* ==========================================================================
   REED Instruments SWS (revamp)
   Every rule is scoped to a -revamp wrapper or a reed-prefixed class so the
   legacy subsite stylesheet cannot reach it.
   ========================================================================== */

/* CONTENTS
   1. Fonts and brand variables
   2. Flash ad spacing
   3. SWS brand header - desktop (logo, nav bar, mega menus, search)
   4. Hero carousel
   5. Category buttons and side ad
   6. SWS brand header - mobile (979px and under)
   7. Breakpoints (1199, 979, 767, 600, 480, 399px)
   8. About page, with its own breakpoints at the end
   Search for "----------" to jump between sub-sections. */

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

@font-face {
  font-family: 'Eurostile';
  src: url('/fonts/Eurostile/EurostileLTStd.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Eurostile';
  src: url('/fonts/Eurostile/EurostileLTStd-Demi.otf') format('opentype');
  font-weight: 600;
}
@font-face {
  font-family: 'Eurostile';
  src: url('/fonts/Eurostile/EurostileLTStd-Bold.otf') format('opentype');
  font-weight: 700;
}

/* ==========================================================================
   BRAND VARIABLES
   ========================================================================== */
:root {
  --brand-reed-navy:        #002945;
  --brand-reed-navy-deep:   #0B3451;
  --brand-reed-navy-label:  #12395A;
  --brand-reed-navy-light:  #34638D;
  --brand-reed-navy-label-light: #144572;
  --brand-reed-navy-overlay: rgba(0, 41, 69, 0.25);
  --brand-reed-navy-half:   rgba(0, 41, 69, 0.7);
  --brand-reed-yellow:      #F9D500;
  --brand-reed-red:         #DA3530;
  --brand-reed-red-dark:    #B72A26;
  --brand-reed-white:       #FFFFFF;
  --brand-reed-about-text:  #666666;
  --brand-reed-panel-text:  #12395A;
  --brand-reed-panel-hover: #EEF2F6;
  --brand-reed-font:        'Eurostile', Helvetica, Arial, sans-serif;
  /* shared by the desktop hero and the mega dropdowns so they stay the same height */
  --reed-hero-height:       500px;
}

/* ==========================================================================
   FLASH AD spacing (seasonal promo; has no effect when the ad is not showing)
   ========================================================================== */
.mhide.ipad-view-setting.march-madness-teaser-flash {
    margin-bottom: 0 !important;
}



/* ==========================================================================
   SWS BRAND HEADER - desktop
   ========================================================================== */

/* Full-width breakout; inner row is re-constrained below */
.reed-header {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--brand-reed-navy);
  font-family: var(--brand-reed-font);
  z-index: 20;
}

/* Accent line across the full band, behind the logo */
.reed-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 4px;
  background-color: var(--brand-reed-red);
  z-index: 1;
}

.reed-header > .row-fluid {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.reed-header > .row-fluid:before,
.reed-header > .row-fluid:after {
  display: none;
}

/* ---------- Header logo and tagline ---------- */
.reed-header .logo-reed-sws {
  float: none;
  width: 166px;
  flex: 0 0 166px;
  margin: 0;
  padding: 16px 0 12px;
}

/* SVG has no intrinsic width; the accent line crosses the lower edge of the red REED block */
.reed-header .logo-reed-sws .brandlogo {
  display: block;
  width: 145px;
  height: auto;
}

.reed-header .subheading-nav {
  float: none;
  flex: 1 1 auto;
  width: auto;
  margin: 0;
}

/* Height matches the accent line's top so the tagline sits just above it */
.reed-header .reed-tagline {
  margin: 0;
  height: 50px;
  box-sizing: border-box;
  padding-bottom: 4px;
  display: flex;
  align-items: flex-end;
  color: var(--brand-reed-white);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Top navigation bar and links ---------- */
/* navbar, nav-collapse and nav stay static so mega panels anchor to the 1170px row (span12) instead of the span9 nav */
.reed-header .navbar {
  position: static;
  margin: 0;
  background: none;
}

.reed-header .navbar .nav-collapse,
.reed-header .navbar .nav-collapse.collapse {
  position: static;
  height: auto;
  overflow: visible;
}

.reed-header .navbar-inner-reed-subsite {
  min-height: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}

.reed-header .nav.navbar-reed-subsite {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  float: none;
  position: static;
  margin: 4px 15px 0;
  min-height: 45px;
}

.reed-header .nav.navbar-reed-subsite > li {
  float: none;
  position: relative;
}

.reed-header .nav.navbar-reed-subsite > li > a {
  display: block;
  padding: 1em 0.7em 0.5em;
  color: var(--brand-reed-white);
  background: none;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
  transition: color 0.2s ease;
}

.reed-header .nav.navbar-reed-subsite > li > a:hover,
.reed-header .nav.navbar-reed-subsite > li > a:focus,
.reed-header .nav.navbar-reed-subsite > li.open > a {
  color: var(--brand-reed-yellow);
  background-color: transparent !important;
}

/* GTS theme turns an opened dropdown toggle black (.navbar .nav li.dropdown.open > .dropdown-toggle); match its selector and add weight so the clicked link stays yellow */
.reed-header .nav.navbar-reed-subsite > li.dropdown.open > a.dropdown-toggle,
.reed-header .nav.navbar-reed-subsite > li.dropdown.active > a.dropdown-toggle,
.reed-header .nav.navbar-reed-subsite > li.dropdown.open.active > a.dropdown-toggle,
.reed-header .nav.navbar-reed-subsite > li.dropdown > a.dropdown-toggle:focus,
.reed-header .nav.navbar-reed-subsite > li.dropdown > a.dropdown-toggle:active {
  color: var(--brand-reed-yellow);
  background-color: transparent;
}

.reed-header .nav.navbar-reed-subsite > li.home-btn > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 0.9em;
}

.reed-header .nav-home-icon-svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Underline animation on hover; the home icon and search keep none */
.reed-header .hover-underline-animation > a {
  position: relative;
}

.reed-header .hover-underline-animation > a::after {
  content: '';
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 2px;
  height: 2px;
  background-color: var(--brand-reed-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.reed-header .hover-underline-animation > a:hover::after,
.reed-header .hover-underline-animation.open > a::after {
  transform: scaleX(1);
}

/* ---------- Mega menu panels (Products, Categories, Industries) ---------- */
/* Mega panels: li is static so the panel anchors to the header row (.reed-header > .row-fluid, 1170px); visibility stays with Bootstrap's open toggle, never set display on .dropdown-menu */
.reed-header .nav.navbar-reed-subsite > li.reed-mega-li {
  position: static;
}

.reed-header .nav > li > .dropdown-menu.reed-mega-menu {
  left: 0;
  right: 0;
  top: 100%;
  min-height: var(--reed-hero-height);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--brand-reed-navy);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* Longhands only, so the panel's navy background-color still applies underneath */
.reed-header .nav > li > .dropdown-menu.reed-mega-categories,
.reed-header .nav > li > .dropdown-menu.reed-mega-industries {
  background-image: url(/images/pages/reed/reed-products-1000.webp);
  background-position: right calc(70% + var(--reed-hero-height) * 0.1);
  background-size: 66% auto;
  background-repeat: no-repeat;
}

/* Bootstrap caret pseudo-elements on nav dropdowns */
.reed-header .navbar .nav > li > .dropdown-menu.reed-mega-menu::before,
.reed-header .navbar .nav > li > .dropdown-menu.reed-mega-menu::after {
  display: none !important;
}

.reed-mega-menu li.reed-mega-wrap {
  list-style: none;
}

.reed-mega-menu .reed-product-group li > a {
  position: relative;
  display: block;
  padding: 5px 0 5px 22px;
  border-left: 2px solid transparent;
  background: none;
  color: var(--brand-reed-white);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  white-space: normal;
}

/* Dot is centred on the first line (top padding + half the line-height) so it stays put when a label wraps */
.reed-mega-menu .reed-product-group li > a::before {
  content: '';
  position: absolute;
  top: calc(5px + 0.75rem);
  left: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translateY(-50%);
}

.reed-mega-menu .reed-product-group li > a:hover,
.reed-mega-menu .reed-product-group li > a:focus {
  color: var(--brand-reed-yellow);
  background: none;
}

/* ---------- Mega menu: columns and hover/focus accordion ---------- */
/* Independent column stacks, so an opening group only pushes its own column down */
.reed-mega-menu .reed-product-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 24px;
  box-sizing: border-box;
  padding: 16px 20px 8px;
}

/* 0fr -> 1fr animates the subcategory list's height without a fixed max-height */
.reed-mega-menu .reed-product-group {
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Opening waits briefly so a pointer passing over the column does not open every group it crosses */
.reed-mega-menu .reed-product-group:hover,
.reed-mega-menu .reed-product-group:focus-within {
  grid-template-rows: auto 1fr;
  transition-delay: 0.15s;
}

/* ---------- Mega menu: group titles ---------- */
/* Flex so the arrow follows the title text, whether the title is a link or plain text */
.reed-mega-menu .reed-group-title {
  display: flex;
  align-items: center;
  margin: 0;
  /* Tight line height keeps two-line (FR) titles compact; padding keeps a one-line title at about 32px (was line-height 2) */
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  color: var(--brand-reed-white);
}

.reed-mega-menu .reed-group-title a {
  display: block;
  padding: 0;
  background: none;
  color: var(--brand-reed-white);
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
  text-transform: none;
}

/* Down arrow hints at hidden subcategories; it flips up while the group is open */
.reed-mega-menu .reed-product-group:has(ul) .reed-group-title::after {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin: -4px 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s ease, margin-top 0.35s ease;
}

.reed-mega-menu .reed-product-group:has(ul):hover .reed-group-title::after,
.reed-mega-menu .reed-product-group:has(ul):focus-within .reed-group-title::after {
  margin-top: 0;
  transform: rotate(-135deg);
  transition-delay: 0.15s;
}

.reed-mega-menu .reed-group-title a:hover,
.reed-mega-menu .reed-group-title a:focus,
.reed-mega-menu .reed-product-group:hover .reed-group-title,
.reed-mega-menu .reed-product-group:hover .reed-group-title a {
  color: var(--brand-reed-yellow);
  background: none;
}

/* ---------- Mega menu: subcategory lists and View All link ---------- */
/* No vertical padding on the list: padding cannot collapse to 0fr and would show when closed */
.reed-mega-menu .reed-product-group ul {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reed-mega-menu .reed-product-group:hover ul,
.reed-mega-menu .reed-product-group:focus-within ul {
  opacity: 1;
  transition-delay: 0.2s;
}

/* Columns 3 and 4 sit over the panel image, so their opened lists get a translucent backing to stay legible */
.reed-mega-categories .reed-product-col:nth-child(n+3) .reed-product-group ul,
.reed-mega-industries .reed-product-col:nth-child(n+3) .reed-product-group ul {
  background-color: var(--brand-reed-navy-half);
}

.reed-mega-menu .reed-product-group li > a:hover {
 color: var(--brand-reed-yellow) !important;
  background-color: transparent !important; 
}

.reed-mega-menu .reed-product-group ul li:last-child {
  padding-bottom: 6px;
}

/* "View All" link at the end of each category list: underlined so it reads as the overview link */
.reed-mega-menu .reed-product-group li.reed-view-all > a {
  text-decoration: underline;
}

/* ---------- Header search ---------- */
.reed-header .reed-search {
  display: flex;
  align-items: center;
  margin: 0 0 0 22px;
}

.reed-header .reed-search form {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  width: 205px;
  float: none;
}

.reed-header .reed-search input#ProductSearch.appendInputButton {
  flex: 1 1 auto;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 38px 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--brand-reed-white);
  border-radius: 4px;
  background-color: transparent;
  color: var(--brand-reed-white);
  font-size: 0.875rem;
  box-shadow: none;
}

.reed-header .reed-search input#ProductSearch::placeholder {
  color: var(--brand-reed-white);
  opacity: 0.75;
}

.reed-header .reed-search .btn.btn-default {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 34px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  color: var(--brand-reed-white);
}

.reed-header .nav-search-icon-svg {
  display: block;
  width: 16px;
  height: 16px;
}

/****** French ******/
.reed-header .navbar-inner-reed-subsite-french .nav.navbar-reed-subsite > li > a {
  font-size: 0.875rem;
}
/****** end French ******/

/* ==========================================================================
   HERO
   ========================================================================== */

/* Platform .content padding-top (15px) separates the hero from the header; drop it only on this page */
.container.master > .content:has(.reed-sws-store-revamp.carousel-top) {
  padding-top: 0;
}

.reed-sws-store-revamp.carousel-top {
  width: 100vw;
  position: relative;
  margin-top: 0;
  margin-left: -50vw;
  left: 50%;
  font-family: var(--brand-reed-font);
}

.reed-sws-store-revamp #myCarousel .carousel-inner.hero-section,
.reed-sws-store-revamp #myCarousel .carousel-inner.hero-section-french {
  height: var(--reed-hero-height);
  margin-top: 0;
  background-color: var(--brand-reed-navy);
  background-image: url(/images/pages/reed/reed-sws-background.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.reed-sws-store-revamp .sws-carousel-drop-shadow {
  overflow: hidden;
}

.reed-sws-store-revamp #myCarousel .carousel-inner .item {
  height: 100%;
}

/* ---------- Hero slide layout ---------- */
/* Row locked to the carousel height so text centres and images cannot overflow */
.reed-sws-store-revamp #myCarousel .hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 100%;
  height: 100%;
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Hero arrows and overlay link ---------- */
/* Arrows match the other full-width SWS heroes: smaller, vertically centred, close to the edge */
.reed-sws-store-revamp .carousel-control-new {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6; /* above .reed-hero-link (5) so the arrows stay clickable */
  color: var(--brand-reed-white);
  font-size: 1.25rem;
  text-shadow: 1px 0 2px rgba(0, 0, 0, 1) !important;
}

.reed-sws-store-revamp .carousel-control-new.left {
  left: 10px;
}

.reed-sws-store-revamp .carousel-control-new.right {
  right: 10px;
}

/* Single overlay link per slide; sits above content, below the carousel arrows */
.reed-sws-store-revamp #myCarousel .reed-hero-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
}

.reed-sws-store-revamp #myCarousel .text-content {
  align-self: center;
  position: relative;
  z-index: 2;
}

/* ---------- Hero text and button ---------- */
.reed-sws-store-revamp #myCarousel .text-content h1 {
  margin: 0 0 24px;
  color: var(--brand-reed-white);
  font-family: var(--brand-reed-font);
  font-size: clamp(1.24rem, 2.72vw, 2.34rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.reed-sws-store-revamp #myCarousel .text-content h1 span {
  color: var(--brand-reed-yellow);
}

.reed-sws-store-revamp #myCarousel .text-content h2 {
  margin: 0 0 32px;
  color: var(--brand-reed-white);
  font-family: var(--brand-reed-font);
  font-size: clamp(0.9375rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
}

.reed-sws-store-revamp #myCarousel .text-content .carousel-btn {
  display: inline-block;
  padding: 1em 1.6em 0.6em;
  border: none;
  border-radius: 4px;
  background-color: var(--brand-reed-red);
  color: var(--brand-reed-white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}

.reed-sws-store-revamp #myCarousel .hero-content:hover .carousel-btn {
  background-color: var(--brand-reed-red-dark);
}

/* One uniform box for every slide, anchored to the hero's bottom edge; contain keeps aspect ratio */
.reed-sws-store-revamp #myCarousel .hero-content .product-image {
  height: var(--reed-hero-height);
  display: flex;
  justify-content: center;
  overflow: hidden;
  align-self: end;
}

.reed-sws-store-revamp #myCarousel .product-image img.desk-img {
  display: block;
  width: auto;
  max-height: 480px !important;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/****** French ******/
.reed-sws-store-revamp #myCarousel .hero-section-french .text-content h1 {
  font-size: clamp(1.17rem, 2.72vw, 2.13rem);
}
/****** end French ******/

/* ==========================================================================
   CATEGORY BUTTONS + SIDE AD
   ========================================================================== */

.sws-reed-buttons {
  max-width: 1170px;
  margin: 10px auto 20px;
  font-family: var(--brand-reed-font);
}

.sws-reed-buttons .reed-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-column-gap: 28px;
  grid-row-gap: 28px;
  width: 100%;
}

.reed-item.btn-01 { grid-area: 1 / 1 / 2 / 2; }
.reed-item.btn-02 { grid-area: 1 / 2 / 2 / 3; }
.reed-item.btn-03 { grid-area: 2 / 1 / 3 / 2; }
.reed-item.btn-04 { grid-area: 2 / 2 / 3 / 3; }
.reed-item.btn-05 { grid-area: 3 / 1 / 4 / 2; }
.reed-item.btn-06 { grid-area: 3 / 2 / 4 / 3; }
.reed-item.btn-07 { grid-area: 4 / 1 / 5 / 2; }
.reed-item.btn-08 { grid-area: 4 / 2 / 5 / 3; }
.reed-item.btn-09 { grid-area: 4 / 3 / 5 / 4; }
/* ---------- Side ad grid position ---------- */
.reed-item.side-ad { grid-area: 1 / 3 / 4 / 4; }

/* Button card: photo, icon disc, label bar, full-coverage link */
.reed-item.btn {
  position: relative;
  display: block;
  box-sizing: border-box;
  aspect-ratio: 431 / 185;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 6px;
  background-color: var(--brand-reed-navy);
}

/* ---------- Category button cards: photo, icon disc and label bar ---------- */
/* Oversized by the blur radius so the softened edges stay outside the card */
.reed-item.btn .btn-image {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) blur(2px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.reed-item.btn .btn-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-reed-navy-overlay);
  transition: opacity 0.3s ease;
}

.reed-item.btn:hover .btn-image {
  filter: grayscale(1) blur(0);
  transform: scale(1.04);
}

.reed-item.btn:hover .btn-image::after {
  opacity: 0.4;
}

.reed-item.btn-01 .btn-image { background-image: url(/images/pages/reed/reed-btn-electrical.webp); }
.reed-item.btn-02 .btn-image { background-image: url(/images/pages/reed/reed-btn-temperature.webp); }
.reed-item.btn-03 .btn-image { background-image: url(/images/pages/reed/reed-btn-humidity.webp); }
.reed-item.btn-04 .btn-image { background-image: url(/images/pages/reed/reed-btn-industrial-maintenance.webp); }
.reed-item.btn-05 .btn-image { background-image: url(/images/pages/reed/reed-btn-inspection-tools.webp); }
.reed-item.btn-06 .btn-image { background-image: url(/images/pages/reed/reed-btn-safety.webp); }
.reed-item.btn-07 .btn-image { background-image: url(/images/pages/reed/reed-btn-water-quality.webp); }
.reed-item.btn-08 .btn-image { background-image: url(/images/pages/reed/reed-btn-calibrators.webp); }
.reed-item.btn-09 .btn-image { background-image: url(/images/pages/reed/reed-btn-accessories.webp); }

.reed-item.btn .reed-icon {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 2;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--brand-reed-navy);
  transition: background-color 0.25s ease;
}

.reed-item.btn .reed-icon img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.reed-item.btn:hover .reed-icon {
  background: radial-gradient(circle, var(--brand-reed-navy-label-light) 0%, var(--brand-reed-navy) 100%);
}

.reed-item.btn .application-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 26%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 0;
  box-sizing: border-box;
  background: linear-gradient(to right, var(--brand-reed-navy-label) 0%, var(--brand-reed-navy-label-light) 100%);
  color: var(--brand-reed-white);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none !important;
}

/* Invisible full-coverage link; keeps a visible keyboard focus ring */
.reed-item.btn > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.reed-item.btn > a:focus-visible {
  outline: 3px solid var(--brand-reed-yellow);
  outline-offset: -3px;
}

/* ---------- Side ad ---------- */
/* Side ad: single link wrapping the whole card */
.reed-item.side-ad {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 24px 24px 22px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(to bottom, var(--brand-reed-navy-deep) 0%, var(--brand-reed-navy-label) 100%);
  color: var(--brand-reed-white);
  text-decoration: none;
}

.reed-item.side-ad:hover,
.reed-item.side-ad:focus {
  color: var(--brand-reed-white);
  text-decoration: none;
}

.reed-item.side-ad:focus-visible {
  outline: 3px solid var(--brand-reed-yellow);
  outline-offset: -3px;
}

.reed-item.side-ad .reed-side-ad-title p.application-title {
  margin: 0 0 8px;
  color: var(--brand-reed-white);
  font-size: clamp(1.17rem, 2.21vw, 1.7rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.reed-item.side-ad .reed-side-ad-title p.application-title span {
  color: var(--brand-reed-yellow);
}

.reed-item.side-ad .reed-side-ad-subtitle p.application-subtitle {
  margin: 0;
  color: var(--brand-reed-white);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.3;
}

.reed-item.side-ad .reed-application-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 12px 0 16px;
  min-height: 0;
}

.reed-item.side-ad .reed-application-img img {
  width: 95%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.reed-item.side-ad .reed-side-ad-cta {
  text-align: center;
}

.reed-item.side-ad .side-ad-btn {
  display: inline-block;
  padding: 1em 1.9em 0.6em;
  border-radius: 4px;
  background-color: var(--brand-reed-red);
  color: var(--brand-reed-white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}

.reed-item.side-ad:hover .side-ad-btn {
  background-color: var(--brand-reed-red-dark);
}

/****** French ******/
.sws-reed-buttons-fr .reed-item.btn .application-title {
  font-size: 1rem;
}
/****** end French ******/

/* ==========================================================================
   SWS BRAND HEADER - mobile
   ========================================================================== */

.reed-header-nav {
  width: 100%;
  margin: 0;
  font-family: var(--brand-reed-font);
}

.reed-header-nav .navbar-inner.reed-mobile {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--brand-reed-navy);
}

/* ---------- Mobile header: logo and search ---------- */
.reed-mobile .logo-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  padding: 10px 15px;
}

.reed-mobile .logo-wrapper > [class*="span"] {
  float: none;
  margin: 0;
  width: auto;
}

/* Logo is 20% larger than the 110px it started at; the column grows with it */
.reed-mobile .logo-wrapper > .span3 {
  flex: 0 0 144px;
}

.reed-mobile .logo-wrapper > .span9 {
  flex: 1 1 0;
  min-width: 0;
}

/* Search stays compact and sits at the right of the logo row */
.reed-mobile .mobile-search {
  max-width: 280px;
  margin-left: auto;
}

.reed-mobile img.brand.mobile-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0;
  padding: 0;
}

.reed-mobile .mobile-search form {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
  float: none;
}

/* Inline width/height from the form helper need !important */
.reed-mobile .mobile-search input.appendedInputButton {
  flex: 1 1 auto;
  width: 100% !important;
  height: 30px !important;
  margin: 0;
  padding: 0 34px 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--brand-reed-white);
  border-radius: 4px;
  background-color: transparent;
  color: var(--brand-reed-white);
  font-size: 0.875rem;
  box-shadow: none;
}

.reed-mobile .mobile-search input.appendedInputButton::placeholder {
  color: var(--brand-reed-white);
  opacity: 0.75;
}

.reed-mobile .mobile-search .btn.btn-default {
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 30px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  color: var(--brand-reed-white);
}

.reed-mobile .nav-search-icon-svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Bootstrap 2 whitespace adversaries */
.reed-mobile .navbar-search {
  margin-top: 0;
}

.reed-mobile .sws-mobile-header-nav.accordion {
  margin-bottom: 0;
}

.reed-mobile .nav-home-icon-svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---------- Mobile header and nav (979px and under): nav buttons, accordion groups, panels ---------- */
@media (max-width: 979px) {
  /* Platform adds 7px above every .row-fluid between 768 and 979px; the mobile header rows must sit flush */
  .reed-header-nav .row-fluid {
    padding-top: 0;
  }

  /* Red line under the logo row, then the button strip */
  .reed-mobile .sws-mobile-header-nav {
    margin: 0;
    padding: 0;
    border-top: 4px solid var(--brand-reed-red);
  }

  #SWS-mobile-nav-button-adjust.navbar-reed-subsite-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }

  /* Target button classes, never generic > li, so collapse panels keep display:block */
  #SWS-mobile-nav-button-adjust > li.nav-item {
    display: flex;
    align-items: stretch;
    float: none;
    background-color: var(--brand-reed-navy);
  }

  #SWS-mobile-nav-button-adjust > li.nav-item + li.nav-item {
    border-left: 1px solid var(--brand-reed-navy-light);
  }

  #SWS-mobile-nav-button-adjust > li.reed-products,
  #SWS-mobile-nav-button-adjust > li.reed-categories,
  #SWS-mobile-nav-button-adjust > li.reed-industries,
  #SWS-mobile-nav-button-adjust > li.reed-about {
    flex: 1;
  }

  #SWS-mobile-nav-button-adjust > li.nav-item > a {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.6em;
    color: var(--brand-reed-white);
    background: none;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    text-shadow: none;
  }

  #SWS-mobile-nav-button-adjust > li.nav-item > a:hover,
  #SWS-mobile-nav-button-adjust > li.nav-item > a:focus {
    color: var(--brand-reed-yellow);
    background: none;
  }

  /* display:block required - flex breaks Bootstrap's collapse scrollHeight */
  #SWS-mobile-nav-button-adjust > .reed-mobile-sub-nav {
    flex: 0 0 100%;
    width: 100%;
    display: block;
    float: none;
    background-color: var(--brand-reed-white);
  }

  .reed-mobile .reed-categories-list-menu {
    margin: 0;
    padding: 6px 0;
    list-style: none;
    /* Two independent column stacks: a group opening in one column never moves the other */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 10px;
  }

  .reed-mobile .reed-mobile-col-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .reed-mobile .reed-categories-list-menu li {
    break-inside: avoid;
  }

  .reed-mobile .reed-categories-list-menu li > a {
    display: block;
    padding: 8px 15px;
    color: var(--brand-reed-panel-text);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
  }

  .reed-mobile .reed-categories-list-menu .reed-mobile-group-title {
    display: block;
    padding: 8px 15px;
    color: var(--brand-reed-panel-text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .reed-mobile .reed-categories-list-menu .reed-mobile-group > a {
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Platform .accordion-inner padding is too wide for the dropdown panels */
  .reed-mobile .accordion-inner {
    padding: 2px 5px;
  }

  .reed-mobile .reed-mobile-subs {
    display: none;
    margin: 0;
    padding: 0 0 6px 12px;
    list-style: none;
  }

  .reed-mobile .reed-mobile-group.open > .reed-mobile-subs {
    display: block;
  }

  /* "View All" link at the end of each opened group: underlined like the desktop menu */
  .reed-mobile .reed-mobile-subs li.reed-view-all > a {
    text-decoration: underline;
  }

  .reed-mobile .reed-categories-list-menu .reed-mobile-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 15px;
    border: 0;
    background: none;
    color: var(--brand-reed-panel-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
  }

  /* Arrow flips while the group is open */
  .reed-mobile .reed-mobile-group-toggle::after {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: -4px 0 0 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .reed-mobile .reed-mobile-group.open > .reed-mobile-group-toggle::after {
    margin-top: 0;
    transform: rotate(-135deg);
  }

  .reed-mobile .reed-categories-list-menu .reed-mobile-group-toggle:hover,
  .reed-mobile .reed-categories-list-menu .reed-mobile-group-toggle:focus {
    background-color: var(--brand-reed-panel-hover);
    color: var(--brand-reed-panel-text);
  }

  .reed-mobile .reed-categories-list-menu li > a:hover,
  .reed-mobile .reed-categories-list-menu li > a:focus {
    background-color: var(--brand-reed-panel-hover);
    color: var(--brand-reed-panel-text);
  }
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* ---------- 1199px and under: hero slide ---------- */
@media (max-width: 1199px) {
  .reed-header > .row-fluid {
    max-width: 940px;
  }

  /* The slide sits between the carousel arrows rather than under them; capped so it stays centred as the screen widens */
  .reed-sws-store-revamp #myCarousel .hero-content {
    width: calc(100% - 120px);
    max-width: 950px;
    padding: 0 20px;
  }

  .reed-header .nav.navbar-reed-subsite > li > a {
    padding: 1em 0.7em 0.5em;
  }

  .reed-header .reed-search form {
    width: 190px;
  }

  .sws-reed-buttons {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .sws-reed-buttons .reed-grid-container {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }

  .reed-item.btn .reed-icon {
    width: 76px;
    height: 76px;
    margin-left: -38px;
  }

  .reed-item.btn .reed-icon img {
    width: 42px;
    height: 42px;
  }

  .reed-item.btn .application-title {
    font-size: 0.85rem;
  }
}

/* ---------- 979px and under: category button icons ---------- */
@media (max-width: 979px) {
  /* Category icons smaller than the 1199px size; the 767px block sets its own */
  .reed-item.btn .reed-icon {
    width: 61px;
    height: 61px;
    margin-left: -30px;
  }

  .reed-item.btn .reed-icon img {
    width: 33px;
    height: 33px;
  }

  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section,
  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section-french {
    height: 440px;
  }

  .reed-sws-store-revamp #myCarousel .hero-content .product-image {
    height: 440px;
  }

  .reed-sws-store-revamp #myCarousel .product-image img.desk-img {
    width: 340px;
  }
}

/* ---------- 767px and under: full-width mobile header, button grid, mobile hero ---------- */
@media (max-width: 767px) {
  /* The platform pads body by 20px each side; the mobile nav sits directly in body, so cancel it */
  .reed-header-nav .navbar-inner.reed-mobile {
    margin-left: -20px;
    margin-right: -20px;
  }

  /* Grid collapses to two columns; side ad moves under the buttons */
  .sws-reed-buttons .reed-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 12px;
    grid-row-gap: 12px;
  }

  .reed-item.btn-01,
  .reed-item.btn-02,
  .reed-item.btn-03,
  .reed-item.btn-04,
  .reed-item.btn-05,
  .reed-item.btn-06,
  .reed-item.btn-07,
  .reed-item.btn-08,
  .reed-item.btn-09,
  .reed-item.side-ad {
    grid-area: auto;
  }

  .reed-item.side-ad {
    display: none;
  }

  .reed-item.btn {
    aspect-ratio: auto;
    height: 130px;
  }

  .reed-item.btn .reed-icon {
    top: 10%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
  }

  .reed-item.btn .reed-icon img {
    width: 34px;
    height: 34px;
  }

  .reed-item.btn .application-title {
    height: 28%;
    font-size: 0.8125rem;
  }

  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section,
  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section-french {
    height: 460px;
  }

  /* Arrows are hidden on phones, so the slide takes the full width again */
  .reed-sws-store-revamp #myCarousel .hero-content {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    padding: 0 20px;
  }

  /* Product image first, then the copy and button centred beneath it */
  .reed-sws-store-revamp #myCarousel .hero-content .product-image {
    order: 1;
  }

  .reed-sws-store-revamp #myCarousel .text-content {
    order: 2;
    padding: 0 16px;
    text-align: center;
  }

  /* Platform drop shadow on the image draws a box around it */
  .reed-sws-store-revamp #myCarousel .product-image img.desk-img {
    box-shadow: none;
  }

  .reed-sws-store-revamp #myCarousel .text-content h1 {
    margin-bottom: 12px;
    font-size: clamp(0.96rem, 4.59vw, 1.49rem);
  }

  .reed-sws-store-revamp #myCarousel .text-content h2 {
    margin-bottom: 16px;
    font-size: clamp(0.875rem, 3.4vw, 1rem);
  }

  .reed-sws-store-revamp #myCarousel .hero-content .product-image {
    height: 234px;
  }

  .reed-sws-store-revamp #myCarousel .product-image img.desk-img {
    width: 312px;
    height: 221px;
  }

  .reed-sws-store-revamp #myCarousel .hero-section-french .text-content h1 {
    font-size: clamp(0.85rem, 4.08vw, 1.28rem);
  }
}

/* ---------- 600px and under: nav panels open under their buttons ---------- */
@media (max-width: 600px) {
  /* Nav buttons stack one per row */
  /* Each panel opens directly under the button that controls it */
  #SWS-mobile-nav-button-adjust > li.reed-products   { order: 1; }
  #SWS-mobile-nav-button-adjust > #mobile-sws-1      { order: 2; }
  #SWS-mobile-nav-button-adjust > li.reed-categories { order: 3; }
  #SWS-mobile-nav-button-adjust > #mobile-sws-2      { order: 4; }
  #SWS-mobile-nav-button-adjust > li.reed-industries { order: 5; }
  #SWS-mobile-nav-button-adjust > #mobile-sws-3      { order: 6; }
  #SWS-mobile-nav-button-adjust > li.reed-about      { order: 7; }

  #SWS-mobile-nav-button-adjust > li.reed-products,
  #SWS-mobile-nav-button-adjust > li.reed-categories,
  #SWS-mobile-nav-button-adjust > li.reed-industries,
  #SWS-mobile-nav-button-adjust > li.reed-about {
    flex: 0 0 100%;
  }

  #SWS-mobile-nav-button-adjust > li.nav-item + li.nav-item {
    border-left: none;
    border-top: 1px solid var(--brand-reed-navy-light);
  }
}

/* ---------- 480px and under: one-column category buttons and menu ---------- */
@media (max-width: 480px) {
  /* Category buttons: one per row */
  .sws-reed-buttons .reed-grid-container {
    grid-template-columns: 1fr;
  }

  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section,
  .reed-sws-store-revamp #myCarousel .carousel-inner.hero-section-french {
    height: 460px;
  }

  .reed-mobile .reed-categories-list-menu {
    grid-template-columns: 1fr;
  }

  /* Single column: the two stacks dissolve so the groups read as one list */
  .reed-mobile .reed-mobile-col,
  .reed-mobile .reed-mobile-col-list {
    display: contents;
  }
}

/* ---------- 399px and under: logo and search stack ---------- */
@media (max-width: 399px) {
  /* Logo and search stack: logo centred, search full width below it */
  .reed-mobile .logo-wrapper {
    flex-direction: column;
    align-items: stretch;
    row-gap: 10px;
  }

  .reed-mobile .logo-wrapper > .span3,
  .reed-mobile .logo-wrapper > .span9 {
    flex: 0 0 auto;
    width: 100%;
  }

  /* The logo link shrink-wraps the image, so centre it from its column */
  .reed-mobile .logo-wrapper > .span3 {
    display: flex;
    justify-content: center;
  }

  .reed-mobile .mobile-search {
    max-width: none;
    margin-left: 0;
  }
}

/* ==========================================================================
   ABOUT PAGE (about-reed-instruments / a-propos-de-reed-instruments)
   ========================================================================== */

/* The breadcrumb bar sits outside the page content, so match it from the body */
body:has(.reed-about-page) .row-fluid.navbar.taxonomy-breadcrumbs {
  display: none;
}

/* Remove the theme's top padding on the content wrapper, About page only (.content wraps .reed-about-page, so match from the wrapper) */
.content.mobile-setting:has(.reed-about-page) {
  padding-top: 0;
}

/* ---------- About: full-width bands (hero, intro, columns, popular) ---------- */
/* Full-width bands break out of the fixed-width container; no ancestor may clip with overflow */
.reed-about-page .reed-about-hero,
.reed-about-page .reed-about-intro,
.reed-about-page .reed-about-columns,
.reed-about-page .reed-about-popular {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  box-sizing: border-box;
}

/* ---------- About: hero band ---------- */
.reed-about-page .reed-about-hero {
  height: 500px;
  background-color: var(--brand-reed-navy);
  background-image: url(/images/pages/reed/reed-products-1000.webp), url(/images/pages/reed/reed-sws-background.webp);
  background-size: auto 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.reed-about-page .reed-about-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- About: intro band ---------- */
.reed-about-page .reed-about-intro {
  padding: 36px 0 10px;
  background-color: var(--brand-reed-white);
}

.reed-about-page .reed-about-intro h1 {
    margin: 0 0 28px;
    text-align: center;
    font-family: var(--brand-reed-font);
    font-size: 3.25rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--brand-reed-navy);
}

/* ---------- About: body text ---------- */
.reed-about-page p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--brand-reed-about-text);
}

/* ---------- About: two-column text grid ---------- */
.reed-about-page .reed-about-columns {
  padding: 24px 0 36px;
  background-color: var(--brand-reed-white);
}

.reed-about-page .reed-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}

/* ---------- About: text column headings ---------- */
.reed-about-page .reed-about-col h2 {
  min-height: 2.6em;
  margin: 0 0 10px;
  font-family: var(--brand-reed-font);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-reed-navy);
}

/* ---------- About: popular categories section ---------- */
.reed-about-page .reed-about-popular {
  padding: 28px 0 36px;
  background-color: var(--brand-reed-navy);
  background-image: url(/images/pages/reed/reed-sws-background.webp);
  background-size: cover;
  background-position: center;
}

.reed-about-page .reed-about-popular h2 {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--brand-reed-font);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-reed-white);
}

.reed-about-page .reed-popular-carousel {
  display: flex;
  align-items: center;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- About: popular categories carousel (viewport, track, cards, arrows) ---------- */
.reed-about-page .reed-popular-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reed-about-page .reed-popular-viewport::-webkit-scrollbar {
  display: none;
}

/* Padding leaves room for the hover glow, which the scroll viewport would otherwise clip */
.reed-about-page .reed-popular-track {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 16px 24px 22px;
  list-style: none;
}

/* Four tiles per view */
.reed-about-page .reed-popular-track li {
  flex: 0 0 calc((100% - 120px) / 4);
  scroll-snap-align: start;
  margin: 0;
}

.reed-about-page .reed-popular-track li {
  display: flex;
  justify-content: center;
}

/* Card is narrower than its slot and the image sits inside with room around it */
.reed-about-page .reed-popular-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--brand-reed-white);
  border-radius: 20px;
  /* Lighter navy, solid at the bottom right and fully transparent from the middle of the card onward */
  background-image: linear-gradient(to top left, #203972 0%, rgba(32, 57, 114, 0) 50%);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* White glow lifts the card off the background */
.reed-about-page .reed-popular-track a:hover,
.reed-about-page .reed-popular-track a:focus {
  transform: translateY(-4px);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
}

.reed-about-page .reed-popular-track img {
  display: block;
  width: 85%;
  height: auto;
}

.reed-about-page .reed-popular-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 90px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.reed-about-page .reed-popular-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-left: 2px solid var(--brand-reed-white);
  border-bottom: 2px solid var(--brand-reed-white);
  transition: border-color 0.2s ease;
}

.reed-about-page .reed-popular-prev::before {
  transform: translate(-30%, -50%) rotate(45deg);
}

.reed-about-page .reed-popular-next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.reed-about-page .reed-popular-arrow:hover::before,
.reed-about-page .reed-popular-arrow:focus::before {
  border-color: var(--brand-reed-yellow);
}

/* ---------- About page: 979px and under ---------- */
@media (max-width: 979px) {
  .reed-about-page .reed-about-hero {
    height: 360px;
  }

  .reed-about-page .reed-about-grid {
    column-gap: 24px;
  }

  .reed-about-page .reed-popular-track {
    gap: 20px;
  }

  .reed-about-page .reed-popular-track li {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

/* ---------- About page: 767px and under ---------- */
@media (max-width: 767px) {
  .reed-about-page .reed-about-hero {
    height: 240px;
  }

  .reed-about-page .reed-about-intro h1,
  .reed-about-page .reed-about-popular h2 {
    font-size: 1.75rem;
  }

  .reed-about-page .reed-about-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .reed-about-page .reed-about-col h2 {
    min-height: 0;
    margin-bottom: 12px;
  }

  .reed-about-page .reed-popular-track li {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

/* ---------- About page: 480px and under ---------- */
@media (max-width: 480px) {
  .reed-about-page .reed-popular-carousel {
    padding: 0 8px;
  }

  .reed-about-page .reed-popular-track li {
    flex: 0 0 100%;
  }
}
