:root {
  --rx-green: #0f7c68;
  --rx-green-dark: #0b4f43;
  --rx-green-soft: #eaf5f1;
  --rx-red: #d7193f;
  --rx-gold: #f2b84b;
  --rx-ink: #17332e;
  --rx-muted: #61746f;
  --rx-line: #e4eee9;
  --rx-shadow: 0 16px 42px rgba(12, 61, 51, 0.14);
}

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

body {
  color: var(--rx-ink);
  background: #f7fbf9;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--rx-green);
}

h1,
h2,
h3,
h4,
h5,
.brand-logo,
.card-title {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 34px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.3; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 1000;
  background: #fff;
  color: var(--rx-green);
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
}

.top-contact {
  background: var(--rx-green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.top-contact__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-contact a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 8px 22px rgba(11, 79, 67, 0.08);
  border: 1px solid var(--rx-line);
}

.site-nav {
  background: #fff !important;
  min-height: 92px;
  line-height: 92px;
}

.site-nav .nav-wrapper {
  min-height: 92px;
}

.site-nav a {
  color: var(--rx-green);
}

.site-nav ul a {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.site-nav .sidenav-trigger {
  display: none;
}

.site-nav .nav-wrapper > ul.left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 190px);
  height: auto;
  line-height: inherit;
}

.site-menu-item {
  position: relative;
}

.site-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.site-nav ul a:hover,
.site-dropdown a:hover {
  color: var(--rx-red);
  background: var(--rx-green-soft);
}

.site-nav .brand-logo {
  height: 92px;
  display: flex;
  align-items: center;
}

.site-nav .brand-logo img {
  max-height: 74px;
  width: auto;
}

.site-dropdown {
  min-width: 280px;
  border-top: 4px solid var(--rx-red);
}

.site-submenu {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  z-index: 120;
  display: none;
  width: min(360px, 90vw);
  max-height: min(72vh, 620px);
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-top: 4px solid var(--rx-red);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 30px rgba(11, 79, 67, 0.18);
}

.has-submenu:hover > .site-submenu,
.has-submenu:focus-within > .site-submenu {
  display: block;
}

.site-submenu li {
  display: block;
  float: none;
  line-height: 1.35;
}

.site-submenu li > a,
.site-dropdown li > a {
  display: block;
  padding: 10px 16px;
  color: var(--rx-green-dark);
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.mobile-child {
  padding-left: 48px !important;
  color: var(--rx-muted) !important;
}

.site-main {
  min-height: 58vh;
}

.home-hero,
.page-hero {
  color: #fff;
  background-color: var(--rx-green);
}

.home-hero {
  min-height: 570px;
  display: grid;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(7, 52, 44, 0.92), rgba(7, 52, 44, 0.58) 58%, rgba(7, 52, 44, 0.14)), url("/assets/images/storefront.jpg");
  background-size: cover;
  background-position: center;
}

.home-hero__content {
  max-width: 760px;
  padding: 72px 0;
}

.home-hero h1,
.page-hero h1 {
  margin: 0 0 18px;
}

.home-hero .flow-text,
.page-hero .flow-text {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-actions .btn,
.btn {
  background: var(--rx-red);
  border: 2px solid var(--rx-gold);
  border-radius: 4px;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.hero-actions .btn:nth-child(2),
.hero-actions .btn:nth-child(3) {
  background: var(--rx-green);
}

.page-hero.compact {
  padding: 52px 0;
  background-image: linear-gradient(90deg, rgba(7, 52, 44, 0.98), rgba(15, 124, 104, 0.88));
}

.breadcrumb-nav {
  background: var(--rx-green);
  box-shadow: none;
}

.breadcrumb-nav .breadcrumb {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb-nav .breadcrumb:last-child {
  color: #fff;
}

.page-section {
  padding: 64px 0;
}

.content-panel {
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: 6px;
  box-shadow: var(--rx-shadow);
  padding: 34px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-prose {
  max-width: 100%;
}

.site-prose p {
  margin: 0 0 18px;
}

.site-prose a,
.content-panel a,
.card-content a,
.site-block--paragraph a,
.category-panel a {
  color: var(--rx-green);
  text-decoration: underline;
  text-decoration-color: rgba(15, 124, 104, 0.28);
}

.site-prose a:hover,
.content-panel a:hover,
.card-content a:hover,
.category-panel a:hover {
  color: var(--rx-red);
  text-decoration-color: rgba(215, 25, 63, 0.38);
}

.site-figure {
  margin: 28px 0;
}

.site-figure img,
.site-gallery img,
.main-image img {
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(12, 61, 51, 0.12);
}

.site-figure figcaption,
.site-gallery figcaption {
  margin-top: 8px;
  color: var(--rx-muted);
  font-size: 14px;
}

.site-gallery {
  margin-top: 18px;
}

.site-gallery__item {
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

table.striped > tbody > tr:nth-child(odd) {
  background: var(--rx-green-soft);
}

blockquote {
  border-left-color: var(--rx-red);
  color: var(--rx-green-dark);
  background: #fff7e5;
  padding: 14px 18px;
}

.side-navigation {
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.side-navigation .collection {
  border-color: var(--rx-line);
  border-radius: 6px;
}

.side-navigation .collection-item {
  color: var(--rx-green-dark);
  font-weight: 700;
}

.side-navigation .collection-item.child {
  padding-left: 30px;
  color: var(--rx-muted);
  font-size: 15px;
}

.entry-card,
.content-card {
  border-radius: 6px;
  overflow: hidden;
}

.entry-card .card-title,
.content-card .card-title {
  font-size: 22px;
  line-height: 1.25;
}

.entry-card .card-action a,
.content-card .card-action a,
.read-more {
  color: var(--rx-red) !important;
  font-weight: 800;
  text-transform: none !important;
}

.listing-cards .site-figure {
  margin-top: 0;
}

.glossary-page h2 {
  padding-top: 20px;
  border-top: 1px solid var(--rx-line);
}

.article-panel {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.article-dates {
  color: var(--rx-muted);
  font-size: 14px;
  font-weight: 700;
}

.article-toc {
  height: auto;
  line-height: inherit;
  background: transparent;
  box-shadow: none;
  margin: 0 0 28px;
}

.article-toc .collection {
  border-color: var(--rx-line);
  border-radius: 6px;
}

.article-toc a {
  color: var(--rx-green-dark);
}

.main-image {
  float: right;
  width: min(34%, 320px);
  margin: 0 0 22px 28px;
}

.content-category-grid {
  margin-top: 24px;
}

.category-intro {
  margin-bottom: 30px;
}

.category-panel .content-category-grid {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.content-card--minimal {
  min-height: 180px;
  padding: 22px;
  border-top: 5px solid var(--rx-green);
  background: var(--rx-green-soft);
  border-radius: 6px;
}

.site-footer {
  background: var(--rx-green-dark);
  padding-top: 44px;
}

.site-footer .footer-title {
  color: #fff;
  font-size: 20px;
  margin: 0 0 12px;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.site-footer .footer-copyright {
  background: rgba(0, 0, 0, 0.16);
}

@media (max-width: 992px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .site-nav,
  .site-nav .nav-wrapper,
  .site-nav .brand-logo {
    min-height: 78px;
    line-height: 78px;
    height: 78px;
  }
  .site-nav .brand-logo img {
    max-height: 60px;
  }
  .site-nav .sidenav-trigger {
    display: flex;
    align-items: center;
  }
  .site-nav .nav-wrapper > ul.left {
    display: none;
  }
  .home-hero {
    min-height: 500px;
  }
  .side-navigation {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }
  .main-image {
    float: none;
    width: 100%;
    margin: 0 0 22px;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .top-contact__inner {
    display: grid;
    gap: 4px;
    padding: 8px 0;
  }
  .content-panel {
    padding: 22px;
  }
  .category-panel .content-category-grid {
    margin-left: 0;
    margin-right: 0;
  }
  .category-panel .content-category-grid > .col {
    padding-left: 0;
    padding-right: 0;
  }
  .table-wrap {
    max-width: 100%;
  }
  .table-wrap table {
    min-width: 620px;
  }
  .home-hero__content {
    padding: 52px 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumb-nav,
  .side-navigation {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .content-panel {
    box-shadow: none;
    border: 0;
  }
}
