:root {
  --red-gradient: linear-gradient(180deg, #c91c25 0%, #b50711 48%, #970209 100%);
  --red-gradient-deep: linear-gradient(180deg, #b70d16 0%, #9d020a 54%, #7f0005 100%);
  --red-gradient-diagonal: linear-gradient(135deg, #ca1d26 0%, #b20610 58%, #920108 100%);
  --red-gradient-shadow: 0 3px 9px rgba(108, 0, 5, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Restrained institutional red: dimensional enough to feel premium, never glossy. */
.desktop-nav,
.mobile-nav {
  background: var(--red-gradient);
}

.desktop-nav .shell {
  background: var(--red-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.desktop-nav .nav-standalone:hover {
  background: var(--red-gradient-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.desktop-nav .nav-standalone {
  background: var(--red-gradient);
  box-shadow: var(--red-gradient-shadow);
}

.mobile-nav summary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.side-title,
.official-side-nav > strong,
.member-toc > strong {
  background: linear-gradient(105deg, #ca1d26 0%, #b20610 54%, #930108 82.8%, #fff 83%, #fff 100%);
  border-top-color: #8e0006;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.topic-title {
  background: var(--red-gradient-diagonal);
  border-top: 0;
}

.lead-grid aside,
.notice-band,
.service-callout,
.official-contact-card,
.reference-section-intro > aside {
  background: var(--red-gradient-diagonal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Status card: preserve the institutional red while restoring clear hierarchy. */
.reference-section-intro > aside {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 23px;
  border-left: 5px solid #e1bd79;
  border-radius: 0 2px 2px 0;
  box-shadow:
    0 12px 28px rgba(112, 0, 6, .14),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.reference-section-intro > aside::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 239, 205, .7), rgba(255, 255, 255, 0));
}

.reference-section-intro > aside span {
  color: #f2d49a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
}

.reference-section-intro > aside strong {
  margin-top: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(76, 0, 4, .28);
}

.reference-section-intro > aside p {
  margin-top: 10px;
  color: rgba(255, 250, 246, .88);
  font-size: 14px;
  line-height: 1.8;
}

.fee-table thead,
.notice-document-meta span,
.process-list li::before {
  background: var(--red-gradient);
}

.primary-action,
.toc-download,
.subpage-tools .document-download,
.section-quick-links .section-primary-link,
.large-download,
.document-actions a:first-child,
.not-found-actions a:first-child,
.search-page-form button {
  color: #fff;
  background: var(--red-gradient);
  border-color: #940108;
  box-shadow: var(--red-gradient-shadow);
}

.primary-action:hover,
.toc-download:hover,
.subpage-tools .document-download:hover,
.section-quick-links .section-primary-link:hover,
.large-download:hover,
.document-actions a:first-child:hover,
.not-found-actions a:first-child:hover,
.search-page-form button:hover {
  color: #fff;
  background: var(--red-gradient-deep);
  border-color: #790005;
  box-shadow: 0 4px 11px rgba(94, 0, 4, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.site-search button:hover,
.list-heading > a:hover,
.search-suggestions a:hover {
  color: #fff;
  background: var(--red-gradient-deep);
  border-color: #8a0006;
}

.site-footer {
  border-image: var(--red-gradient) 1;
}

.focus .section-heading h2 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .26);
}

@media (min-width: 1281px) {
  .desktop-nav {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action,
  .toc-download,
  .subpage-tools .document-download,
  .section-quick-links .section-primary-link,
  .large-download,
  .document-actions a:first-child,
  .not-found-actions a:first-child,
  .search-page-form button {
    transition: none;
  }
}
