/* ==========================================================================
   EMC — EquipmentsMachinesChina
   Theme stylesheet, built on Bootstrap 5.3.8
   Replaces style1.css. Section 12 keeps legacy pages (articles, product
   detail, search, cart) presentable until they are rebuilt.
   ========================================================================== */

/* 1. TOKENS ============================================================== */
:root {
  /* Brand */
  --emc-teal: #1AAD90;
  --emc-teal-dark: #0E8A72;
  --emc-teal-soft: #E4F5F0;

  /* Structure */
  --emc-ink: #08222E;
  --emc-ink-2: #0F3241;
  --emc-ink-3: #1C4757;

  /* Surfaces */
  --emc-paper: #FFFFFF;
  --emc-steel: #EDF2F3;
  --emc-steel-2: #E2EAEC;

  /* Text */
  --emc-body: #40565F;
  --emc-muted: #6E838C;

  /* Accent — hi-vis, used only for micro marks */
  --emc-hivis: #FFC42E;

  /* Lines */
  --emc-line: rgba(8, 34, 46, .14);
  --emc-line-strong: rgba(8, 34, 46, .28);
  --emc-line-dark: rgba(255, 255, 255, .16);

  /* Type */
  --emc-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --emc-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --emc-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Metrics */
  --emc-radius: 4px;
  --emc-shadow: 0 1px 2px rgba(8, 34, 46, .04), 0 12px 32px -18px rgba(8, 34, 46, .35);
  --emc-header-h: 76px;

  /* Bootstrap bridge */
  --bs-primary: #1AAD90;
  --bs-primary-rgb: 26, 173, 144;
  --bs-body-font-family: var(--emc-text);
  --bs-body-color: #40565F;
  --bs-link-color: #0E8A72;
  --bs-link-hover-color: #08222E;
  --bs-border-color: rgba(8, 34, 46, .14);
}

/* 2. BASE =============================================================== */
* { -webkit-tap-highlight-color: rgba(26, 173, 144, .18); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--emc-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--emc-body);
  background: var(--emc-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .emc-h1, .emc-h2, .emc-h3 {
  font-family: var(--emc-display);
  color: var(--emc-ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1, .emc-h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 800; }
h2, .emc-h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.35rem); font-weight: 800; }
h3, .emc-h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
h4 { font-size: 1.06rem; }
h5 { font-size: .98rem; }

a { color: var(--emc-teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--emc-ink); }

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

p { margin-bottom: 1rem; }

::selection { background: var(--emc-teal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--emc-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.emc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--emc-ink);
  color: #fff;
  padding: .7rem 1.1rem;
  font: 500 .85rem/1 var(--emc-mono);
}
.emc-skip:focus { left: 8px; top: 8px; color: #fff; }

/* 3. TYPE UTILITIES ===================================================== */
.emc-eyebrow {
  font-family: var(--emc-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--emc-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.emc-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--emc-teal);
  flex: none;
}
.emc-eyebrow--light { color: rgba(255, 255, 255, .72); }
.emc-eyebrow--light::before { background: var(--emc-hivis); }

.emc-accent { color: var(--emc-teal); }

.emc-lead {
  font-size: 1.06rem;
  color: var(--emc-muted);
  max-width: 62ch;
}

.emc-mono {
  font-family: var(--emc-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Signature device: engineering tick rule */
.emc-tickrule {
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--emc-line-strong) 0 1px, transparent 1px 12px);
  opacity: .55;
}
.emc-tickrule--dark { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 12px); }

.emc-section { padding: clamp(3.25rem, 2rem + 4vw, 5.5rem) 0; }
.emc-section--steel { background: var(--emc-steel); }
.emc-section--ink { background: var(--emc-ink); color: rgba(255, 255, 255, .78); }
.emc-section--ink h2, .emc-section--ink h3, .emc-section--ink .emc-h2 { color: #fff; }

.emc-sechead { max-width: 720px; margin-bottom: 2.5rem; }
.emc-sechead--center { margin-left: auto; margin-right: auto; text-align: center; }
.emc-sechead--center .emc-eyebrow { justify-content: center; }
.emc-sechead p { color: var(--emc-muted); margin-bottom: 0; }
.emc-section--ink .emc-sechead p { color: rgba(255, 255, 255, .7); }

/* 4. BUTTONS ============================================================ */
.emc-btn {
  --btn-bg: var(--emc-teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--emc-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid var(--btn-bg);
  border-radius: var(--emc-radius);
  white-space: nowrap;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.emc-btn:hover { background: var(--emc-teal-dark); border-color: var(--emc-teal-dark); color: #fff; transform: translateY(-2px); }
.emc-btn i, .emc-btn svg { font-size: .8em; }

.emc-btn--ink { --btn-bg: var(--emc-ink); }
.emc-btn--ink:hover { background: var(--emc-ink-2); border-color: var(--emc-ink-2); }

.emc-btn--ghost {
  background: transparent;
  color: var(--emc-ink);
  border-color: var(--emc-line-strong);
}
.emc-btn--ghost:hover { background: var(--emc-ink); border-color: var(--emc-ink); color: #fff; }

.emc-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.emc-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--emc-ink); }

.emc-btn--sm { padding: .55rem 1rem; font-size: .84rem; }

/* Text link with sliding rule */
.emc-textlink {
  font-family: var(--emc-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emc-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.emc-textlink::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width .22s ease;
}
.emc-textlink:hover { color: var(--emc-ink); }
.emc-textlink:hover::after { width: 30px; }

/* 5. HEADER ============================================================= */
.emc-topbar {
  background: var(--emc-ink);
  color: rgba(255, 255, 255, .7);
  font-family: var(--emc-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem 0;
}
.emc-topbar a { color: rgba(255, 255, 255, .85); }
.emc-topbar a:hover { color: var(--emc-hivis); }
.emc-topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.emc-topbar__list li { display: inline-flex; align-items: center; gap: .45rem; }
.emc-topbar__dot { width: 6px; height: 6px; background: var(--emc-teal); border-radius: 50%; flex: none; }

.emc-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--emc-line);
}
.emc-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  min-height: var(--emc-header-h);
}
.emc-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(8, 34, 46, .6); }

.emc-logo { display: flex; align-items: center; flex: none; }
.emc-logo img { max-height: 58px; width: auto; }

.emc-nav { margin-left: auto; min-width: 0; }
.emc-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.emc-nav a {
  position: relative;
  display: block;
  padding: .55rem .7rem;
  font-family: var(--emc-display);
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--emc-ink);
  border-radius: var(--emc-radius);
}
.emc-nav a::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .3rem;
  height: 2px;
  background: var(--emc-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.emc-nav a:hover { color: var(--emc-teal-dark); }
.emc-nav a:hover::after,
.emc-nav .active a::after { transform: scaleX(1); }
.emc-nav .active a { color: var(--emc-teal-dark); }

.emc-search { flex: none; width: 250px; }
.emc-search .input-group { border: 1px solid var(--emc-line); border-radius: var(--emc-radius); overflow: hidden; background: var(--emc-steel); }
.emc-search .form-control {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: .88rem;
  padding-left: .35rem;
}
.emc-search .form-control::placeholder { color: var(--emc-muted); }
.emc-search .input-group-text { background: transparent; border: 0; color: var(--emc-muted); }
.emc-search .emc-search__btn {
  border: 0;
  background: var(--emc-ink);
  color: #fff;
  font-family: var(--emc-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 .95rem;
}
.emc-search .emc-search__btn:hover { background: var(--emc-teal); }

.emc-burger {
  display: none;
  border: 1px solid var(--emc-line-strong);
  background: transparent;
  border-radius: var(--emc-radius);
  width: 44px;
  height: 40px;
  padding: 0;
  color: var(--emc-ink);
}
.emc-burger span, .emc-burger span::before, .emc-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.emc-burger span::before, .emc-burger span::after { content: ""; position: absolute; left: 0; }
.emc-burger span::before { top: -6px; }
.emc-burger span::after { top: 6px; }

/* Mobile drawer */
.emc-offcanvas { width: min(340px, 88vw); background: var(--emc-ink); color: #fff; }
.emc-offcanvas .offcanvas-header { border-bottom: 1px solid var(--emc-line-dark); }
.emc-offcanvas .btn-close { filter: invert(1) grayscale(1); opacity: .8; }
.emc-offcanvas ul { list-style: none; margin: 0; padding: 0; }
.emc-offcanvas ul li a {
  display: block;
  padding: .95rem .25rem;
  border-bottom: 1px solid var(--emc-line-dark);
  color: #fff;
  font-family: var(--emc-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.emc-offcanvas ul li a:hover, .emc-offcanvas ul li.active a { color: var(--emc-teal); }
.emc-offcanvas__meta { margin-top: 1.75rem; font-family: var(--emc-mono); font-size: .74rem; color: rgba(255, 255, 255, .65); }
.emc-offcanvas__meta a { color: #fff; }

/* Between xl and xxl the bar is tight — trim the search, not the menu */
@media (max-width: 1399.98px) {
  .emc-nav a { font-size: .9rem; padding: .55rem .55rem; }
  .emc-search { width: 190px; }
  .emc-header__inner { gap: .75rem; }
}

@media (max-width: 1199.98px) {
  .emc-nav { display: none; }
  .emc-burger { display: block; margin-left: auto; }
  .emc-search { width: 240px; }
}
@media (max-width: 767.98px) {
  .emc-search { display: none; }
  .emc-logo img { max-height: 42px; }
  :root { --emc-header-h: 64px; }
}

/* 6. HERO =============================================================== */
.emc-hero { position: relative; background: var(--emc-ink); }
.emc-hero .carousel-item { position: relative; }
.emc-hero__media { position: relative; height: clamp(525px, 75vh, 775px); }
.emc-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 34, 46, .94) 0%, rgba(8, 34, 46, .82) 38%, rgba(8, 34, 46, .25) 72%, rgba(8, 34, 46, .15) 100%);
}
.emc-hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.emc-hero__panel { max-width: 620px; color: #fff; padding-bottom: 2rem; }
.emc-hero__panel h1, .emc-hero__panel .emc-h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
}
.emc-hero__panel p { color: rgba(255, 255, 255, .82); max-width: 46ch; font-size: 1.05rem; }
.emc-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* Carousel controls sit as mono markers, not arrows-in-circles */
.emc-hero .carousel-indicators { margin-bottom: 5.5rem; justify-content: flex-start; left: auto; right: auto; padding-left: 0; }
.emc-hero .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, .35);
  opacity: 1;
  border-radius: 0;
}
.emc-hero .carousel-indicators .active { background: var(--emc-hivis); }

/* Signature: capability spec strip clamped to the hero base */
.emc-specbar {
  position: relative;
  z-index: 3;
  background: var(--emc-paper);
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  box-shadow: var(--emc-shadow);
  margin-top: -46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.emc-specbar__cell { padding: 1.15rem 1.35rem; border-right: 1px solid var(--emc-line); }
.emc-specbar__cell:last-child { border-right: 0; }
.emc-specbar__k {
  font-family: var(--emc-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emc-ink);
  line-height: 1;
  display: block;
}
.emc-specbar__v {
  font-family: var(--emc-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emc-muted);
  margin-top: .45rem;
  display: block;
}
@media (max-width: 767.98px) {
  .emc-specbar { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .emc-specbar__cell:nth-child(2) { border-right: 0; }
  .emc-specbar__cell:nth-child(-n+2) { border-bottom: 1px solid var(--emc-line); }
  .emc-hero .carousel-indicators { margin-bottom: 3rem; }
}

/* 7. CATEGORY CARDS ===================================================== */
.emc-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--emc-paper);
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.emc-cat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--emc-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: 2;
}
.emc-cat:hover { transform: translateY(-4px); border-color: var(--emc-line-strong); box-shadow: var(--emc-shadow); }
.emc-cat:hover::before { transform: scaleX(1); }
.emc-cat__img {
  aspect-ratio: 4 / 3;
  background: var(--emc-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}
.emc-cat__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.emc-cat__body {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px solid var(--emc-line);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1 1 auto;
}
.emc-cat__body h3, .emc-cat__body h4 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.35;
  color: var(--emc-ink);
}
.emc-cat:hover .emc-cat__body h3, .emc-cat:hover .emc-cat__body h4 { color: var(--emc-teal-dark); }
.emc-cat__more { margin-top: auto; }

/* 8. ABOUT / SPLIT ====================================================== */
.emc-split__media { position: relative; }
.emc-split__media img {
  width: 100%;
  border-radius: var(--emc-radius);
  display: block;
  position: relative;
  z-index: 2;
}
.emc-split__media::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -18px;
  width: 55%;
  height: 55%;
  border: 2px solid var(--emc-teal);
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--emc-radius) 0 0 0;
  z-index: 1;
}
.emc-split__badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: 3;
  background: var(--emc-ink);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--emc-radius);
  font-family: var(--emc-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 220px;
}
.emc-split__badge strong { font-family: var(--emc-display); font-size: 1.35rem; display: block; letter-spacing: 0; }

.emc-checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.emc-checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--emc-ink); font-weight: 500; }
.emc-checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .28rem;
  border-radius: 2px;
  background: var(--emc-teal-soft);
  border: 1px solid var(--emc-teal);
  background-image: linear-gradient(45deg, transparent 45%, var(--emc-teal) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--emc-teal) 45% 55%, transparent 55%);
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* 9. CAPABILITY GRID (why choose us) ==================================== */
.emc-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--emc-line-dark);
  border-left: 1px solid var(--emc-line-dark);
}
.emc-caps__item {
  border-right: 1px solid var(--emc-line-dark);
  border-bottom: 1px solid var(--emc-line-dark);
  padding: 1.9rem 1.7rem;
  transition: background .25s ease;
}
.emc-caps__item:hover { background: rgba(255, 255, 255, .04); }
.emc-caps__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emc-line-dark);
  border-radius: var(--emc-radius);
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, .05);
}
.emc-caps__icon img { width: 22px; height: 22px; object-fit: contain; }
.emc-caps__item h3 {
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.emc-caps__item p { color: rgba(255, 255, 255, .66); font-size: .92rem; margin: 0; }
@media (max-width: 991.98px) { .emc-caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .emc-caps { grid-template-columns: 1fr; } }

/* 10. PRODUCT CARDS ===================================================== */
.emc-prod {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--emc-paper);
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.emc-prod:hover { transform: translateY(-4px); box-shadow: var(--emc-shadow); border-color: var(--emc-line-strong); }
.emc-prod__img {
  aspect-ratio: 1 / 1;
  background: var(--emc-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}
.emc-prod__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.emc-prod__tag {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--emc-ink);
  color: #fff;
  font-family: var(--emc-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 2px;
}
.emc-prod__body { padding: .95rem 1.1rem 1.15rem; border-top: 1px solid var(--emc-line); }
.emc-prod__body h3 { font-size: .98rem; margin: 0 0 .4rem; line-height: 1.35; }
.emc-prod:hover .emc-prod__body h3 { color: var(--emc-teal-dark); }

/* 11. BLOG / CTA / FOOTER =============================================== */
.emc-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  overflow: hidden;
  background: var(--emc-paper);
  transition: transform .2s ease, box-shadow .2s ease;
}
.emc-post:hover { transform: translateY(-4px); box-shadow: var(--emc-shadow); }
.emc-post__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.emc-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.emc-post:hover .emc-post__img img { transform: scale(1.05); }
.emc-post__date {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--emc-teal);
  color: #fff;
  font-family: var(--emc-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .65rem;
}
.emc-post__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .7rem; flex: 1 1 auto; }
.emc-post__body h3 { font-size: 1.02rem; margin: 0; line-height: 1.4; }
.emc-post__body .emc-textlink { margin-top: auto; }

.emc-cta {
  background: var(--emc-teal);
  color: #fff;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}
.emc-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 42px);
  pointer-events: none;
}
.emc-cta__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.emc-cta h2 { color: #fff; margin: 0 0 .35rem; }
.emc-cta p { color: rgba(255, 255, 255, .85); margin: 0; }

.emc-footer { background: var(--emc-ink); color: rgba(255, 255, 255, .7); padding: clamp(2.75rem, 2rem + 3vw, 4.25rem) 0 0; }
.emc-footer a { color: rgba(255, 255, 255, .78); }
.emc-footer a:hover { color: var(--emc-teal); }
.emc-footer__title {
  font-family: var(--emc-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--emc-line-dark);
}
.emc-footer ul { list-style: none; margin: 0; padding: 0; }
.emc-footer ul li a { display: block; padding: .32rem 0; font-size: .92rem; }
.emc-footer ul li.active > a { color: var(--emc-teal); }
.emc-footer__logo img { max-height: 56px; width: auto; margin-bottom: 1rem; }
.emc-footer__cats { columns: 2; column-gap: 1.5rem; }
.emc-footer__cats li { break-inside: avoid; }
.emc-footer__social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.emc-footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emc-line-dark);
  border-radius: var(--emc-radius);
}
.emc-footer__social a:hover { background: var(--emc-teal); border-color: var(--emc-teal); color: #fff; }
.emc-footer__bar {
  margin-top: 2.5rem;
  border-top: 1px solid var(--emc-line-dark);
  padding: 1.1rem 0;
  font-family: var(--emc-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 575.98px) { .emc-footer__cats { columns: 1; } }

/* Floating contact rail */
.emc-fab { position: fixed; right: 16px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; gap: .5rem; }
.emc-fab a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--emc-ink);
  box-shadow: 0 8px 20px -8px rgba(8, 34, 46, .7);
  transition: transform .2s ease, background .2s ease;
}
.emc-fab a:hover { transform: translateY(-3px); color: #fff; }
.emc-fab a.is-mail { background: var(--emc-teal); }
.emc-fab a.is-wa { background: #25D366; }
.emc-fab a.is-top { background: var(--emc-ink-3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .2s ease; }
.emc-fab a.is-top.show { opacity: 1; pointer-events: auto; }

/* 12. INNER PAGES ======================================================= */
.emc-pagehead {
  background: var(--emc-ink);
  color: #fff;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) 0 0;
  position: relative;
}
.emc-pagehead h1, .emc-pagehead .emc-h1 { color: #fff; margin: 0 0 .6rem; text-transform: uppercase; }
.emc-pagehead p { color: rgba(255, 255, 255, .72); max-width: 60ch; margin: 0; }
.emc-pagehead__rule { margin-top: 1.9rem; }

.emc-crumbs {
  font-family: var(--emc-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1rem;
}
.emc-crumbs a { color: rgba(255, 255, 255, .85); }
.emc-crumbs a:hover { color: var(--emc-hivis); }
.emc-crumbs a + a::before,
.emc-crumbs span + span::before { content: "/"; margin-right: .45rem; opacity: .5; }

/* CMS prose (category + article HTML straight from the database) */
.emc-prose { color: var(--emc-body); font-size: 1rem; }
.emc-prose h2, .emc-prose h3, .emc-prose h4 { margin: 1.8rem 0 .8rem; }
.emc-prose h2 { font-size: 1.5rem; }
.emc-prose h3 { font-size: 1.22rem; }
.emc-prose p { margin-bottom: 1rem; }
.emc-prose ul, .emc-prose ol { padding-left: 1.15rem; margin-bottom: 1.1rem; }
.emc-prose li { margin-bottom: .4rem; }
.emc-prose img { height: auto; border-radius: var(--emc-radius); margin: .5rem 0; }
.emc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.emc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .92rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.emc-prose table td, .emc-prose table th {
  border: 1px solid var(--emc-line);
  padding: .55rem .75rem;
  vertical-align: top;
}
.emc-prose table th { background: var(--emc-steel); color: var(--emc-ink); font-family: var(--emc-display); }
@media (min-width: 768px) { .emc-prose table { white-space: normal; } }

/* Sidebar category menu */
.emc-side { position: sticky; top: calc(var(--emc-header-h) + 16px); }
.emc-side__head {
  background: var(--emc-ink);
  color: #fff;
  padding: .95rem 1.1rem;
  border-radius: var(--emc-radius) var(--emc-radius) 0 0;
  font-family: var(--emc-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.emc-side__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--emc-line);
  border-top: 0;
  border-radius: 0 0 var(--emc-radius) var(--emc-radius);
  background: var(--emc-paper);
  max-height: min(72vh, 760px);
  overflow-y: auto;
}
.emc-side__menu > li { border-bottom: 1px solid var(--emc-line); position: relative; }
.emc-side__menu > li:last-child { border-bottom: 0; }
.emc-side__menu > li > a {
  display: block;
  padding: .8rem 2.4rem .8rem 1.1rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--emc-ink);
}
.emc-side__menu > li > a:hover, .emc-side__menu > li.is-active > a { background: var(--emc-teal-soft); color: var(--emc-teal-dark); }
.emc-side__toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--emc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.emc-side__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.emc-side__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.emc-side__sub { list-style: none; margin: 0; padding: 0 0 .5rem; background: var(--emc-steel); display: none; }
.emc-side__sub li a {
  display: block;
  padding: .5rem 1.1rem .5rem 1.6rem;
  font-size: .86rem;
  color: var(--emc-body);
  border-left: 2px solid transparent;
}
.emc-side__sub li a:hover { color: var(--emc-teal-dark); border-left-color: var(--emc-teal); }

/* Listing rows */
.emc-listing { display: grid; gap: 1.1rem; }
.emc-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  padding: 1.1rem;
  background: var(--emc-paper);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.emc-row:hover { box-shadow: var(--emc-shadow); border-color: var(--emc-line-strong); }
.emc-row__img {
  background: var(--emc-steel);
  border-radius: var(--emc-radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.emc-row__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.emc-row__body { display: flex; flex-direction: column; }
.emc-row__body h3 { font-size: 1.12rem; margin: 0 0 .45rem; }
.emc-row__spec {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  font-family: var(--emc-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emc-muted);
  margin-bottom: .65rem;
  padding-bottom: .65rem;
  border-bottom: 1px dashed var(--emc-line);
}
.emc-row__spec strong { color: var(--emc-ink); font-weight: 600; }
.emc-row__desc { font-size: .93rem; color: var(--emc-body); margin-bottom: 1rem; }
.emc-row__desc p { margin: 0; }
.emc-row__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
@media (max-width: 575.98px) {
  .emc-row { grid-template-columns: 1fr; }
  .emc-row__img { aspect-ratio: 16 / 10; }
}

/* Pagination */
.emc-pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; }
.emc-pager a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  font-family: var(--emc-mono);
  font-size: .8rem;
  color: var(--emc-ink);
  padding: 0 .5rem;
}
.emc-pager a:hover { border-color: var(--emc-teal); color: var(--emc-teal-dark); }
.emc-pager a.is-current { background: var(--emc-ink); border-color: var(--emc-ink); color: #fff; }

/* Contact */
.emc-contact-card {
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  padding: 1.5rem;
  height: 100%;
  background: var(--emc-paper);
}
.emc-contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--emc-radius);
  background: var(--emc-teal-soft);
  color: var(--emc-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.emc-contact-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.emc-contact-card a { font-weight: 500; word-break: break-word; }

.emc-form label {
  font-family: var(--emc-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emc-muted);
  margin-bottom: .35rem;
}
.emc-form .form-control, .emc-form .form-select {
  border-radius: var(--emc-radius);
  border-color: var(--emc-line);
  padding: .7rem .85rem;
  font-size: .95rem;
}
.emc-form .form-control:focus, .emc-form .form-select:focus {
  border-color: var(--emc-teal);
  box-shadow: 0 0 0 .2rem rgba(26, 173, 144, .15);
}
.emc-form__captcha {
  font-family: var(--emc-mono);
  background: var(--emc-steel);
  border: 1px dashed var(--emc-line-strong);
  border-radius: var(--emc-radius);
  padding: .7rem .85rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* Loading bar used by products.php */
.loading_bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emc-teal), var(--emc-hivis));
  z-index: 2000;
  animation: emc-load 1.1s ease-in-out infinite;
}
@keyframes emc-load { 0% { opacity: .35; } 50% { opacity: 1; } 100% { opacity: .35; } }

/* 13. REVEAL / MOTION =================================================== */
.emc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.emc-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .emc-reveal { opacity: 1; transform: none; }
}

/* 14. LEGACY BRIDGE ====================================================
   Keeps pages that still use the old markup (articles, product detail,
   search, shopping cart) consistent until they are rebuilt.
   ====================================================================== */
.fullwidth { width: 100%; float: none; }
.clear, .clearfix::after { clear: both; }
.subtext { font-family: var(--emc-display); font-weight: 800; color: var(--emc-ink); }
.subtext .color, .color { color: var(--emc-teal); }
.heading2 { font-family: var(--emc-display); font-weight: 700; color: var(--emc-ink); font-size: 1.3rem; margin-bottom: .75rem; }

.theme-btn, .site-btn2, .theme-btn1 input {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border-radius: var(--emc-radius);
  font-family: var(--emc-display);
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid var(--emc-teal);
  background: var(--emc-teal);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .18s ease;
}
.theme-btn:hover, .site-btn2:hover, .theme-btn1 input:hover { background: var(--emc-teal-dark); border-color: var(--emc-teal-dark); color: #fff; transform: translateY(-2px); }
.site-btn2 { background: var(--emc-ink); border-color: var(--emc-ink); }
.site-btn2:hover { background: var(--emc-ink-2); border-color: var(--emc-ink-2); }

.innerbanner { background: var(--emc-ink); padding: 2.5rem 0; }
.innerbanner h1, .innerbanner .h1 { color: #fff; text-transform: uppercase; margin-bottom: .5rem; }
.innerpages { padding: 3.5rem 0; }
.breadcrumbs { font-family: var(--emc-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); margin: 0 .35rem; }

.productsb { border: 1px solid var(--emc-line); border-radius: var(--emc-radius); overflow: hidden; height: 100%; background: #fff; }
.productsb .productimage { display: block; background: var(--emc-steel); padding: 1rem; text-align: center; }
.productsb .productimage img { max-height: 190px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.productsb .product_name { padding: .85rem 1rem; border-top: 1px solid var(--emc-line); }
.productsb .product_name h3 { font-size: .96rem; margin: 0; }

.details { border: 1px solid var(--emc-line); border-radius: var(--emc-radius); padding: 1.1rem; margin-bottom: 1.1rem; }
.details_name h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.details_name span { font-family: var(--emc-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emc-muted); }
.details .img-thumbnail { border-color: var(--emc-line); border-radius: var(--emc-radius); background: var(--emc-steel); }
.disc1 { font-size: .93rem; }

.left_section #cssmenu > ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--emc-line); border-radius: var(--emc-radius); }
.left_section #cssmenu > ul > li { border-bottom: 1px solid var(--emc-line); position: relative; }
.left_section #cssmenu > ul > li:last-child { border-bottom: 0; }
.left_section #cssmenu > ul > li > a { display: block; padding: .8rem 2.4rem .8rem 1rem; font-size: .92rem; color: var(--emc-ink); }
.left_section #cssmenu > ul > li > a:hover { background: var(--emc-teal-soft); color: var(--emc-teal-dark); }
.left_section .submenu { list-style: none; margin: 0; padding: 0 0 .4rem; background: var(--emc-steel); display: none; }
.left_section .submenu li a { display: block; padding: .45rem 1rem .45rem 1.5rem; font-size: .86rem; color: var(--emc-body); }
.left_section .submenu-toogle {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.left_section .submenu-toogle::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid var(--emc-muted); border-bottom: 2px solid var(--emc-muted);
  transform: rotate(45deg) translate(-2px, -2px);
}

/* 15. CMS-CONTENT SAFETY NETS ==========================================
   Banner "brief" HTML and category descriptions come from the database,
   so the theme has to style whatever tags the editor used.
   ====================================================================== */
.emc-cat, .emc-prod, .emc-post { color: inherit; }

.emc-hero__panel h1, .emc-hero__panel h2, .emc-hero__panel h3,
.emc-hero__panel .h1, .emc-hero__panel .h2, .emc-hero__panel .h3 {
  font-family: var(--emc-display);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.emc-hero__panel h1, .emc-hero__panel .h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
.emc-hero__panel h2, .emc-hero__panel .h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); }
.emc-hero__panel h3, .emc-hero__panel .h3,
.emc-hero__panel h4 { font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); font-weight: 500; text-transform: none; color: rgba(255, 255, 255, .85); }
.emc-hero__panel a:not(.emc-btn) { color: var(--emc-hivis); text-decoration: underline; text-underline-offset: 3px; }
.emc-hero__panel ul { list-style: none; padding: 0; }

/* Category block spacing on the listing page */
.emc-catblock + .emc-catblock { margin-top: 2.5rem; }
.emc-catblock > h1, .emc-catblock > h2 { margin-bottom: .9rem; }
.right_section > .emc-listing:empty { display: none; }

/* Sidebar quote card */
.emc-side__cta {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--emc-line);
  border-top: 3px solid var(--emc-teal);
  border-radius: var(--emc-radius);
  background: var(--emc-steel);
}
.emc-side__cta .emc-mono { color: var(--emc-ink); display: block; }
.emc-side__cta p { font-size: .9rem; margin-bottom: 1rem; }

/* Form notices */
.emc-notice {
  border-radius: var(--emc-radius);
  padding: .85rem 1.05rem;
  font-size: .94rem;
  margin-top: 1rem;
  border: 1px solid var(--emc-line);
}
.emc-notice.is-ok { background: var(--emc-teal-soft); border-color: var(--emc-teal); color: #0B5F4E; }
.emc-notice.is-error { background: #FDF1EC; border-color: #E5A28A; color: #8A3A18; }

/* Accordion, retuned to the theme */
.emc-accordion .accordion-item {
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  margin-bottom: .6rem;
  overflow: hidden;
  background: var(--emc-paper);
}
.emc-accordion .accordion-button {
  font-family: var(--emc-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--emc-ink);
  padding: 1.05rem 1.2rem;
  background: var(--emc-paper);
  box-shadow: none;
}
.emc-accordion .accordion-button:not(.collapsed) { background: var(--emc-teal-soft); color: var(--emc-teal-dark); }
.emc-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.emc-accordion .accordion-button::after { --bs-accordion-btn-icon-width: .9rem; }
.emc-accordion .accordion-body { padding: 0 1.2rem 1.2rem; font-size: .96rem; }

/* Dark-section icons: the source PNGs are dark, so knock them out to white */
.emc-caps__icon img { filter: brightness(0) invert(1); opacity: .92; }

/* 16. MEGA MENU =========================================================
   Wraps subcategorylist.php, whose markup is:
     div.submenusec > ul > li > a > span   (root category)
                              > ul.sub-sub-menu > li > a  (subcategory)
   ====================================================================== */
.emc-nav .emc-has-mega { position: static; }
.emc-nav .emc-has-mega > a i { font-size: .55em; margin-left: .3rem; transition: transform .2s ease; }
.emc-nav .emc-has-mega:hover > a i,
.emc-nav .emc-has-mega:focus-within > a i { transform: rotate(180deg); }

.emc-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--emc-paper);
  border-top: 3px solid var(--emc-teal);
  border-bottom: 1px solid var(--emc-line);
  box-shadow: 0 24px 40px -28px rgba(8, 34, 46, .55);
  /* keep the panel's content aligned with the page container */
  padding: 1.75rem max(1rem, calc((100vw - 1296px) / 2)) 1.9rem;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1035;
}
.emc-nav .emc-has-mega:hover > .emc-mega,
.emc-nav .emc-has-mega:focus-within > .emc-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.emc-mega ul { list-style: none; margin: 0; padding: 0; columns: initial; border: 0; }
.emc-mega li { min-width: 0; }
.emc-mega .submenusec { width: 100%; }

/* Root categories stack; each one's children form the 4-column grid. */
.emc-mega .submenusec > ul { display: block; }
.emc-mega .submenusec > ul > li + li { margin-top: 1.4rem; }

/* Root category reads as a section title, not another link in the list */
.emc-mega .submenusec > ul > li > a {
  display: block;
  padding: 0 0 .55rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--emc-line);
  font-family: var(--emc-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emc-teal-dark);
}
.emc-mega .submenusec > ul > li > a:hover { color: var(--emc-ink); }
.emc-mega .submenusec > ul > li > a span { letter-spacing: inherit; }

/* Subcategories — four across, always */
.emc-mega ul.sub-sub-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .1rem 2.25rem;
  align-items: start;
}
.emc-mega ul.sub-sub-menu > li { break-inside: avoid; }

.emc-mega a {
  display: block;
  padding: .34rem 0;
  font-family: var(--emc-text);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--emc-body);
  border-radius: 2px;
}
.emc-mega a::after { display: none; }
.emc-mega ul.sub-sub-menu a:hover { color: var(--emc-teal-dark); }

/* When several root categories are open at once, sit the childless ones
   side by side instead of leaving a column of near-empty rows. */
@supports selector(:has(*)) {
  .emc-mega .submenusec > ul:has(> li > ul.sub-sub-menu) > li:not(:has(ul.sub-sub-menu)) {
    display: inline-block;
    width: calc(25% - 1.7rem);
    margin-right: 2.25rem;
    vertical-align: top;
  }
  .emc-mega .submenusec > ul:has(> li > ul.sub-sub-menu) > li:not(:has(ul.sub-sub-menu)) > a {
    border-bottom: 0;
    margin-bottom: 0;
    font-family: var(--emc-text);
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--emc-body);
    padding: .34rem 0;
  }
}

/* The old template injected these click targets; they are mobile-only */
.emc-mega .ddclick, .emc-mega .ddclick1 { display: none; }

@media (max-width: 1399.98px) {
  .emc-mega ul.sub-sub-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) { .emc-mega { display: none; } }

/* 17. CATEGORIES INSIDE THE MOBILE DRAWER ==============================
   Same markup, reused from a buffer so the queries only run once.
   ====================================================================== */
.emc-mega-mobile { border-bottom: 1px solid var(--emc-line-dark); padding-bottom: .5rem; }
.emc-mega-mobile ul { list-style: none; margin: 0; padding: 0; }
.emc-mega-mobile .submenusec > ul > li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.emc-mega-mobile .submenusec > ul > li:last-child { border-bottom: 0; }
.emc-mega-mobile a {
  display: block;
  padding: .7rem 2.6rem .7rem .25rem;
  color: rgba(255, 255, 255, .88);
  font-size: .9rem;
  font-family: var(--emc-text);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.emc-mega-mobile a:hover { color: var(--emc-teal); }
.emc-mega-mobile .sub-sub-menu { display: none; padding: 0 0 .5rem .75rem; border-left: 1px solid var(--emc-line-dark); margin-bottom: .5rem; }
.emc-mega-mobile .sub-sub-menu.is-open { display: block; }
.emc-mega-mobile .sub-sub-menu a { padding: .45rem .25rem; font-size: .85rem; font-weight: 400; color: rgba(255, 255, 255, .62); }
.emc-subtoggle {
  position: absolute;
  top: 3px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.emc-subtoggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.emc-subtoggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* Call button on the floating rail */
.emc-fab a.is-call { background: var(--emc-ink-3); }
