:root {
  --umgc-red: #da1a32;
  --umgc-red-dark: #a30606;
  --umgc-red-hover: #bd0808;
  --umgc-yellow: #fdbf38;
  --ink: #111114;
  --charcoal: #3c3c43;
  --muted: #656a70;
  --line: #dedee1;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --focus: #135f96;
  --shadow-sm: 0 2px 8px rgba(17, 17, 20, 0.08);
  --shadow-md: 0 16px 42px rgba(17, 17, 20, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--surface);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--umgc-red-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--umgc-red-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.65rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--focus);
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.utility-bar {
  color: #fff;
  background: var(--umgc-red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 220px;
  height: 74px;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 42px;
  margin: 0 20px;
  background: var(--line);
}

.brand__label {
  max-width: 120px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav > a {
  color: var(--charcoal);
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--umgc-red-dark);
}

.site-nav .site-nav__request {
  padding: 10px 17px;
  color: #fff;
  background: var(--umgc-red-dark);
  border: 2px solid var(--umgc-red-dark);
  border-radius: 4px;
}

.site-nav .site-nav__request:hover {
  color: #fff;
  background: var(--umgc-red-hover);
  border-color: var(--umgc-red-hover);
}

.site-nav__sign-in {
  padding: 8px 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.dropdown-menu[aria-expanded="true"],
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 11px;
  color: var(--charcoal);
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(74px, 9vw, 120px) 0 84px;
  color: #fff;
  background: linear-gradient(112deg, #151518 0%, #29282d 63%, #3c2328 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.hero__pattern {
  position: absolute;
  top: -120px;
  right: -80px;
  z-index: -1;
  width: min(52vw, 650px);
  aspect-ratio: 1;
  border: 76px solid rgba(218, 26, 50, 0.9);
  border-radius: 50%;
  opacity: 0.76;
}

.hero__pattern::before,
.hero__pattern::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hero__pattern::before {
  inset: 45px;
  border: 22px solid rgba(253, 191, 56, 0.85);
}

.hero__pattern::after {
  inset: 118px;
  background: rgba(0, 0, 0, 0.22);
}

.hero__content {
  position: relative;
}

.hero .eyebrow {
  color: var(--umgc-yellow);
}

.hero h1 {
  max-width: 810px;
  margin-bottom: 16px;
  color: #fff;
}

.hero__lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: #f0f0f1;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.eyebrow {
  margin-bottom: 11px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow--red {
  color: var(--umgc-red-dark);
}

.hero__search {
  max-width: 790px;
}

.search {
  position: relative;
  border: 0;
  border-radius: var(--radius-sm);
}

/* The custom pseudo-elements provide the magnifying glass. */
.search-icon {
  display: none;
}

.search::before {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 1;
  width: 20px;
  height: 20px;
  content: "";
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search::after {
  position: absolute;
  top: calc(50% + 8px);
  left: 39px;
  z-index: 1;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--charcoal);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Match Zendesk's direction-specific selector so it cannot override icon spacing. */
.search input[type="search"],
[dir] .search input[type="search"] {
  width: 100%;
  min-height: 66px;
  padding: 0 60px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  font-size: 1rem;
}

.search input[type="search"]:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(19, 95, 150, 0.35);
}

/* Keep page-level search fields compact without the homepage's large shadow. */
.sub-nav .search input[type="search"],
[dir] .sub-nav .search input[type="search"] {
  height: 44px;
  min-height: 44px;
  padding: 0 48px;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.sub-nav .search input[type="search"]:focus {
  border-color: var(--focus);
}

.sub-nav .search::before {
  left: 16px;
  width: 16px;
  height: 16px;
}

.sub-nav .search::after {
  top: calc(50% + 6px);
  left: 29px;
}

.hero__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 18px;
  font-size: 0.86rem;
}

.hero__suggestions span {
  color: #d7d7da;
  font-weight: 700;
}

.hero__suggestions a {
  color: #fff;
}

.section {
  padding: clamp(72px, 8vw, 108px) 0;
}

.section--tinted {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 500px;
  color: var(--muted);
}

.section-heading--center {
  display: block;
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading--center p:last-child {
  color: var(--muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-height: 132px;
  padding: 24px;
  color: var(--charcoal);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-card:hover {
  color: var(--charcoal);
  border-color: rgba(163, 6, 6, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quick-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--umgc-red-dark);
  background: #fff3f4;
  border-radius: 50%;
}

.quick-card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.98rem;
}

.quick-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(400px, 1.25fr);
  gap: clamp(55px, 9vw, 120px);
}

.split-layout__intro p:last-child {
  color: var(--muted);
}

.article-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 25px 24px;
  color: var(--charcoal);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-tile::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--umgc-red) 0 74%, var(--umgc-yellow) 74% 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.article-tile:hover {
  color: var(--charcoal);
  border-color: rgba(163, 6, 6, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-tile__label {
  margin-bottom: 18px;
  color: var(--umgc-red-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-tile strong {
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
}

.article-tile__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--umgc-red-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.article-tile:hover .article-tile__link span {
  transform: translateX(3px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 31px 30px 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-card__topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--umgc-red) 0 72%, var(--umgc-yellow) 72% 100%);
}

.category-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.category-card h3 a:hover {
  color: var(--umgc-red-dark);
}

.category-card > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-card ul {
  padding: 0;
  margin: 20px 0 26px;
  list-style: none;
}

.category-card li {
  padding: 8px 0;
  border-bottom: 1px solid #ededee;
}

.category-card li a {
  color: var(--charcoal);
  font-size: 0.9rem;
  text-decoration: none;
}

.category-card li a:hover {
  color: var(--umgc-red-dark);
  text-decoration: underline;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--umgc-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.contact-band {
  color: #fff;
  background: var(--umgc-red-dark);
}

.contact-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 275px;
  padding-block: 52px;
  gap: 36px;
}

.contact-band h2,
.contact-band .eyebrow {
  color: #fff;
}

.contact-band h2 {
  margin-bottom: 8px;
}

.contact-band p:last-child {
  margin: 0;
  color: #f8d9dc;
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.button--light {
  color: var(--umgc-red-dark);
  background: #fff;
}

.button--light:hover {
  color: var(--umgc-red-dark);
  background: var(--umgc-yellow);
}

.button--outline-light {
  color: #fff;
  border-color: #fff;
}

.button--outline-light:hover {
  color: var(--umgc-red-dark);
  background: #fff;
}

.site-footer {
  padding: 58px 0 24px;
  color: #d7d7da;
  background: #18181b;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) 1fr 1fr;
  gap: 60px;
}

.site-footer__brand img {
  width: 250px;
  height: 92px;
  padding: 8px 12px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.site-footer__brand p {
  max-width: 390px;
  margin-top: 18px;
  font-size: 0.9rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a {
  color: #e6e6e7;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--umgc-yellow);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 44px;
  border-top: 1px solid #3c3c43;
  font-size: 0.78rem;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer .language-selector .dropdown-toggle {
  color: #fff;
}

.site-footer .language-selector .dropdown-menu a {
  color: var(--charcoal);
}

.site-footer .language-selector .dropdown-menu a:hover {
  color: var(--umgc-red-dark);
  background: var(--surface-soft);
}

/* Shared interior-page styles */
.breadcrumbs {
  padding: 22px 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li + li::before {
  margin: 0 9px;
  content: "/";
  color: #8b8b91;
}

.page-shell {
  padding: 0 0 88px;
}

.page-header {
  padding: 48px 0;
  margin-bottom: 44px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.page-header p {
  max-width: 720px;
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
}

.article-body {
  font-size: 1.02rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2rem;
}

.article-body img,
.article-body video,
.article-body iframe {
  max-width: 100%;
}

.article-meta,
.article-footer,
.page-sidebar {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-sidebar {
  align-self: start;
  padding: 22px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.page-sidebar ul,
.result-list,
.section-list {
  padding: 0;
  list-style: none;
}

.section-list li,
.result-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.section-list a,
.result-list a {
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.pagination {
  margin-top: 42px;
  text-align: center;
}

@media (max-width: 980px) {
  .brand img {
    width: 190px;
  }

  .site-nav {
    gap: 16px;
  }

  .quick-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .page-sidebar {
    order: -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar a {
    display: none;
  }

  .site-header__inner {
    min-height: 78px;
  }

  .brand img {
    width: 165px;
    height: 60px;
  }

  .brand__divider,
  .brand__label {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav > a {
    padding: 10px 0;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 64px;
  }

  .hero__pattern {
    top: 10px;
    right: -180px;
    width: 430px;
    border-width: 48px;
    opacity: 0.42;
  }

  .hero__suggestions {
    display: none;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .quick-grid,
  .category-grid,
  .article-tile-grid,
  .split-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .split-layout {
    gap: 28px;
  }

  .category-card {
    min-height: 0;
  }

  .contact-band__inner {
    display: block;
  }

  .contact-band__actions {
    margin-top: 28px;
  }

  .site-footer__grid {
    gap: 34px;
  }
}

@media (max-width: 480px) {
  .quick-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px 17px;
  }

  .quick-card__icon {
    width: 42px;
    height: 42px;
  }

  .search input[type="search"],
  [dir] .search input[type="search"] {
    min-height: 60px;
    padding: 0 48px 0 54px;
  }

  .contact-band__actions .button {
    width: 100%;
  }

  .site-footer__bottom {
    display: block;
  }

  .site-footer__bottom span {
    display: block;
    margin-top: 6px;
  }

  .site-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
