.rdh {
  --rdh-ink: #1b2028;
  --rdh-secondary: #4a515e;
  --rdh-border: #e4e6eb;
  --rdh-surface: #fff;
  --rdh-muted: #f4f5f7;
  --rdh-graphite: #222b38;
  --rdh-accent: #bb231b;
  --rdh-accent-hover: #9c1e19;
  --rdh-focus: #235bc5;
  position: relative;
  z-index: 45;
  border-bottom: 1px solid var(--rdh-border);
  background: var(--rdh-surface);
  color: var(--rdh-ink);
  color-scheme: light;
  font: 500 0.9375rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rdh *, .rdh *::before, .rdh *::after { box-sizing: border-box; }
.rdh [hidden] { display: none !important; }
.rdh :where(a, summary, button, input):focus-visible {
  outline: 2px solid var(--rdh-focus);
  outline-offset: 3px;
}
.rdh :where(a, summary, button) { -webkit-tap-highlight-color: transparent; }
.rdh :where(a) { color: inherit; text-decoration: none; }
.rdh :where(ul) { list-style: none; margin: 0; padding: 0; }
.rdh summary { cursor: pointer; list-style: none; }
.rdh summary::-webkit-details-marker { display: none; }
.rdh button, .rdh input { font: inherit; }

.rdh-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 29px);
  width: min(100% - 48px, 1328px);
  min-height: 74px;
  margin-inline: auto;
}

.rdh .rdh-brand {
  flex: none;
  border-radius: 6px;
  color: var(--rdh-ink);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.063em;
}
.rdh-brand span { color: var(--rdh-accent); }

.rdh-nav-list, .rdh-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rdh-tools { flex: none; gap: clamp(6px, .7vw, 12px); }

.rdh .rdh-item, .rdh .rdh-icon, .rdh .rdh-cta, .rdh .rdh-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  white-space: nowrap;
}
.rdh .rdh-item { gap: 8px; padding: 0 9px; color: var(--rdh-ink); font-weight: 650; }
.rdh .rdh-item:hover, .rdh .rdh-icon:hover, .rdh details[open] > summary,
.rdh .rdh-mobile-toggle[aria-expanded="true"] { background: var(--rdh-muted); }
.rdh .rdh-item[aria-current="page"], .rdh details[data-rdh-current] > summary {
  color: var(--rdh-accent);
  background: #fff2f0;
}

.rdh-chevron {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.rdh details[open] > summary .rdh-chevron { margin-top: 3px; transform: rotate(225deg); }

.rdh .rdh-icon {
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rdh-ink);
  cursor: pointer;
}
.rdh-magnifier {
  position: relative;
  width: 15px;
  height: 15px;
  margin: -2px 2px 0 0;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.rdh-magnifier::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.rdh .rdh-phone, .rdh .rdh-drawer-phone {
  color: var(--rdh-ink);
  font-weight: 700;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}
.rdh .rdh-phone:hover, .rdh .rdh-drawer-phone:hover { text-decoration: underline; }

.rdh .rdh-cta, .rdh .rdh-search-fields button {
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--rdh-accent);
  color: #fff;
  font-weight: 700;
}
.rdh .rdh-cta > span { color: #fff !important; }
.rdh .rdh-cta:hover, .rdh .rdh-search-fields button:hover { background: var(--rdh-accent-hover); }
.rdh .rdh-mobile-toggle, .rdh-cta-short, .rdh-task-card { display: none; }

.rdh-panel {
  position: absolute;
  top: calc(100% - 2px);
  z-index: 1;
  padding: 20px;
  border: 1px solid var(--rdh-border);
  border-radius: 14px;
  background: var(--rdh-surface);
  box-shadow: 0 14px 36px rgb(27 32 40 / .12), 0 2px 8px rgb(27 32 40 / .05);
}
.rdh-services {
  inset-inline: 0;
  max-width: 1140px;
  margin-inline: auto;
  padding: 14px;
}
.rdh-service-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr); gap: 10px; }
.rdh-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rdh-groups > section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--rdh-border);
  border-radius: 12px;
  background: #f8f9fa;
}
.rdh .rdh-group-title {
  min-height: 2.7em;
  margin: 2px 6px 6px;
  color: var(--rdh-ink);
  font: 750 1rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.012em;
  text-transform: none;
}

.rdh .rdh-start-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(150deg, #303b4a, var(--rdh-graphite) 68%);
}
.rdh-start-title, .rdh-start-note { display: block; }
.rdh .rdh-start-title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -.02em;
}
.rdh .rdh-start-note { margin-bottom: 6px; color: #e3e8ef; font-size: .875rem; }
.rdh .rdh-start-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  padding: 5px 10px;
  border-radius: 7px;
  background: #fff;
  color: var(--rdh-ink);
  font-weight: 750;
}
.rdh .rdh-start-card:hover .rdh-start-action { background: #fbe2df; }

.rdh-symbol {
  position: relative;
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #fbe2df;
  color: #a71e19;
}
.rdh-symbol::before, .rdh-symbol::after { content: ""; }
.rdh-symbol-doc::before, .rdh-symbol-calc::before {
  width: 14px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.rdh-symbol-doc::after, .rdh-symbol-calc::after {
  position: absolute;
  top: 14px;
  width: 6px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}
.rdh-symbol-calc::after { box-shadow: -2px 4px currentColor, 2px 7px currentColor; }
.rdh-symbol-check::before {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.rdh-symbol-check::after {
  position: absolute;
  top: 14px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.rdh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rdh .rdh-panel li a {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--rdh-secondary);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.rdh .rdh-panel li a:is(:hover, [aria-current="page"]) { background: var(--rdh-muted); color: var(--rdh-ink); }

.rdh-panel-footer {
  display: flex;
  margin-top: 8px;
  padding: 0 4px;
}
.rdh .rdh-panel-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--rdh-accent);
  font-weight: 750;
}
.rdh .rdh-panel-footer a:hover { background: #fff2f0; }

.rdh-reference { position: relative; }
.rdh-reference-panel {
  inset-inline-end: 0;
  top: calc(100% + 13px);
  width: min(530px, calc(100vw - 48px));
  padding: 10px;
}
.rdh-reference-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.rdh .rdh-reference-panel li a {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
}
.rdh .rdh-reference-panel strong { color: var(--rdh-ink); font-size: .9375rem; }
.rdh .rdh-reference-panel li a > span { color: var(--rdh-secondary); font-size: .875rem; }

.rdh-search-form { inset-inline-end: 0; width: min(460px, 100%); }
.rdh .rdh-search-form label { display: block; margin-bottom: 8px; color: var(--rdh-ink); font-weight: 750; }
.rdh-search-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rdh .rdh-search-fields input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #aeb5bf;
  border-radius: 9px;
  background: var(--rdh-surface);
  color: var(--rdh-ink);
  font-size: 1rem;
}
.rdh .rdh-search-fields button { min-height: 44px; cursor: pointer; }

.rdh .rdh-drawer:not([open]) { display: none; }
html.rdh-drawer-open { overflow: hidden; scrollbar-gutter: auto; }

@media (max-width: 1159px) {
  .rdh-row {
    flex-wrap: wrap;
    width: calc(100% - 28px);
    min-height: 62px;
    gap: 6px;
  }
  .rdh-brand { display: inline-flex; min-height: 44px; align-items: center; }
  .rdh-tools { gap: 4px; margin-inline-start: auto; }
  .rdh .rdh-phone, .rdh .rdh-cta-full { display: none; }
  .rdh-cta-short { display: inline; }
  .rdh .rdh-cta { padding-inline: 11px; }
  .rdh .rdh-mobile-toggle { display: inline-flex; }
  .rdh-bars, .rdh-bars::before, .rdh-bars::after {
    width: 18px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
  }
  .rdh-bars { position: relative; }
  .rdh-bars::before, .rdh-bars::after { position: absolute; left: 0; content: ""; }
  .rdh-bars::before { top: -5px; }
  .rdh-bars::after { top: 5px; }
  .rdh .rdh-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, calc(100vw - 28px));
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--rdh-surface);
    color: var(--rdh-ink);
    box-shadow: -16px 0 40px rgb(27 32 40 / .18);
  }
  .rdh .rdh-drawer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    animation: rdh-slide-in 200ms ease-out both;
  }
  .rdh .rdh-drawer::backdrop { background: rgb(20 24 31 / .46); }
  .rdh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px 20px;
    border-bottom: 1px solid var(--rdh-border);
  }
  .rdh-drawer-title { font-size: 1.125rem; font-weight: 750; }
  .rdh .rdh-drawer-close { background: var(--rdh-muted); }
  .rdh-cross { position: relative; width: 18px; height: 18px; }
  .rdh-cross::before, .rdh-cross::after {
    position: absolute;
    inset: 8px 0 auto;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
  }
  .rdh-cross::after { transform: rotate(-45deg); }
  .rdh-drawer-body {
    min-height: 0;
    padding: 12px max(12px, env(safe-area-inset-right)) 12px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .rdh .rdh-drawer-search { margin: 0 0 12px; }
  .rdh .rdh-drawer-search input { background: #f8f9fa; }
  .rdh .rdh-drawer-search button { padding-inline: 10px; }
  .rdh-drawer-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) 12px;
    border-top: 1px solid var(--rdh-border);
    background: var(--rdh-surface);
  }
  .rdh .rdh-drawer-foot .rdh-cta { min-height: 46px; }
  .rdh .rdh-drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: .875rem;
    white-space: nowrap;
  }

  .rdh-row > .rdh-nav {
    order: 2;
    width: 100%;
    padding: 6px 0 8px;
    background: var(--rdh-surface);
  }
  .rdh-nav-list { display: block; }
  .rdh .rdh-item {
    width: 100%;
    min-height: 50px;
    padding: 0 8px;
    justify-content: space-between;
  }
  .rdh-drawer .rdh-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rdh-drawer .rdh-task-primary, .rdh-drawer .rdh-nav-list > li:not(.rdh-task) { grid-column: 1 / -1; }
  .rdh-drawer .rdh-nav-list > li:not(.rdh-task) {
    border: 1px solid var(--rdh-border);
    border-radius: 10px;
  }
  .rdh-drawer .rdh-nav-list > li:not(.rdh-task) > .rdh-item,
  .rdh-drawer .rdh-disclosure > summary { padding-inline: 12px; }
  .rdh-drawer .rdh-services-entry { margin-top: 4px; }
  .rdh-drawer .rdh-task-desktop { display: none; }
  .rdh-drawer .rdh-task-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .rdh-drawer .rdh-task .rdh-item {
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    min-height: 116px;
    padding: 10px;
    border: 1px solid var(--rdh-border);
    border-radius: 12px;
    background: #f7f8fa;
    white-space: normal;
  }
  .rdh-drawer .rdh-task .rdh-item:hover { border-color: #b6bdc7; background: #f0f2f5; }
  .rdh-drawer .rdh-task .rdh-item[aria-current="page"] { border-color: var(--rdh-accent); }
  .rdh-drawer .rdh-task-primary .rdh-item {
    align-items: center;
    min-height: 74px;
    border-color: var(--rdh-graphite);
    background: linear-gradient(130deg, #303b4a, var(--rdh-graphite) 68%);
  }
  .rdh-drawer .rdh-task-primary .rdh-item:hover { background: #364353; }
  .rdh-drawer .rdh-task-primary .rdh-task-card { flex-direction: row; align-items: center; gap: 11px; }
  .rdh-task-copy { display: grid; gap: 3px; }
  .rdh .rdh-task-title { color: var(--rdh-ink); font-size: .9375rem; font-weight: 750; line-height: 1.24; }
  .rdh .rdh-task-note { color: var(--rdh-secondary); font-size: .875rem; font-weight: 500; line-height: 1.28; }
  .rdh-drawer .rdh-task-primary .rdh-task-title { color: #fff; font-size: 1.0625rem; }
  .rdh-drawer .rdh-task-primary .rdh-task-note { color: #e3e8ef; }

  .rdh .rdh-services, .rdh .rdh-reference-panel {
    position: static;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 8px 8px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
  }
  .rdh-service-layout, .rdh-groups, .rdh-reference-panel ul { grid-template-columns: minmax(0, 1fr); }
  .rdh .rdh-start-card { display: none; }
  .rdh-groups > section { padding: 8px; }
  .rdh .rdh-group-title { min-height: 0; }
  .rdh-panel-footer { margin-top: 4px; padding: 0; }
  .rdh-search-form { top: 100%; padding: 12px; }
}
@media (max-width: 350px) {
  .rdh-drawer-foot { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}


@keyframes rdh-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rdh .rdh-drawer[open] { animation: none; }
}
