.rp-shared-header,
.rp-shared-footer {
  --rp-blue: #123b98;
  --rp-dark: #0d275e;
  --rp-yellow: #ffc52c;
  --rp-line: #e0e8f5;
  font: 500 15px/1.5 "DM Sans", Arial, sans-serif;
}

.rp-shared-header *, .rp-shared-footer * { box-sizing: border-box; }
.rp-shared-header a, .rp-shared-footer a { text-decoration: none; }
.rp-shared-header a:focus-visible, .rp-shared-footer a:focus-visible,
.rp-shared-header summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.rp-shared-wrap { width: calc(100% - 48px); max-width: 1200px; margin-inline: auto; }
.rp-shared-header { position: relative; z-index: 2; color: var(--rp-dark); background: #fff; border-bottom: 1px solid var(--rp-line); }
/* Keep the legacy page banner below the shared header. */
.rp-shared-header ~ .page-header,
.rp-shared-header ~ * .page-header { margin-top: 0; }
.rp-shared-top { background: var(--rp-blue); color: #fff; font-size: 13px; }
.rp-shared-top .rp-shared-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 8px; }
.rp-shared-top a { color: #fff; font-weight: 700; }
.rp-shared-header a:hover, .rp-shared-footer a:hover { text-decoration: underline; }
.rp-shared-header .rp-shared-wrap { max-width: 1280px; }
.rp-shared-brandrow { display: flex; align-items: center; gap: clamp(12px, 1.25vw, 20px); padding-block: 14px; }
.rp-shared-logo { display: block; flex: none; }
.rp-shared-logo img { display: block; width: 76px; height: 76px; object-fit: contain; }
.rp-shared-header-app { flex: none; min-width: 0; }
.rp-shared-header-app .rp-shared-stores { flex-direction: column; align-items: flex-start; gap: 4px; }
.rp-shared-header-app .rp-shared-stores a,
.rp-shared-header-app .rp-shared-stores img { width: 108px; height: 36px; }
.rp-shared-header-app .rp-shared-stores a.rp-shared-play { width: 121px; }
.rp-shared-header-app .rp-shared-stores .rp-shared-play img { width: 139px; height: 54px; top: -9px; left: -9px; }
.rp-shared-hiring { display: grid; flex: none; gap: 1px; padding: 10px 12px; border-radius: 12px; background: #fff0bb; color: var(--rp-blue); line-height: 1.25; }
.rp-shared-hiring small { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.rp-shared-hiring strong { font-size: 15px; }
.rp-shared-hiring > span { font-size: 12px; }
.rp-shared-phone { display: grid; color: var(--rp-blue); white-space: nowrap; }
.rp-shared-phone small { color: #4d5e7a; }
.rp-shared-phone strong { font-size: 19px; }
.rp-shared-app-title { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.rp-shared-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rp-shared-stores a { display: block; position: relative; width: 120px; height: 40px; flex: none; }
.rp-shared-stores a.rp-shared-play { width: 134px; }
.rp-shared-stores img { display: block; width: 120px; height: 40px; margin: 0; max-width: none; }
/* The official Google badge contains transparent margins. Align its visible artwork with Apple's badge. */
.rp-shared-stores .rp-shared-play img { position: absolute; width: 154px; height: 60px; top: -10px; left: -10px; }
.rp-shared-stores-pro a, .rp-shared-stores-pro img { width: 134px; height: 59px; }
.rp-shared-header-app .rp-shared-stores-pro a,
.rp-shared-header-app .rp-shared-stores-pro img { width: 121px; height: 53.28px; }

.rp-shared-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: clamp(12px, 1.4vw, 22px); row-gap: 8px; flex: 1; min-width: 0; font-size: 14px; }
.rp-shared-nav a { color: var(--rp-blue); font-weight: 700; white-space: nowrap; }

@media (min-width: 1360px) {
  .rp-shared-header-customer .rp-shared-stores { flex-direction: row; align-items: center; gap: 12px; }
}

.rp-shared-footer { position: relative; isolation: isolate; overflow: hidden; background: #1239ac; color: #fff; }
/* The older theme sets a separate background on #footer. */
#footer.rp-shared-footer { background: #1239ac !important; }
.rp-shared-footer::before, .rp-shared-footer::after { content: ""; position: absolute; pointer-events: none; inset: 0; z-index: -1; }
.rp-shared-footer::before { background: url("/theme/assets/images/shapes/site-footer-shape-1.png") center / cover no-repeat; opacity: .02; }
.rp-shared-footer::after { background: url("/theme/assets/images/shapes/site-footer-shape-2.png") 47% bottom / min(74%, 800px) auto no-repeat; mix-blend-mode: lighten; opacity: .10; }
.rp-shared-footer a, .rp-shared-footer h2 { color: #fff; }
.rp-shared-footer h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.rp-shared-footer p { margin: 0 0 10px; color: #dce7ff; font-size: 14px; }
.rp-shared-footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; gap: 24px; padding-block: 40px; }
.rp-shared-footer .rp-shared-logo { margin-bottom: 10px; }
.rp-shared-footer-apps { display: grid; align-content: start; gap: 18px; }
.rp-shared-footer-links { display: grid; align-content: start; justify-items: start; gap: 7px; }
.rp-shared-footer-links h2 { margin-bottom: 3px; }
.rp-shared-footer-links a { font-size: 14px; }
.rp-shared-footer-links .rp-shared-pro { font-weight: 700; color: var(--rp-yellow); }
.rp-shared-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; border-top: 1px solid #ffffff32; padding-block: 17px; font-size: 13px; }
.rp-shared-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 900px) {
  .rp-shared-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-shared-brandrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-shared-nav { justify-self: stretch; }
  .rp-shared-phone { justify-self: end; }
  .rp-shared-hiring { justify-self: start; }
}

@media (max-width: 780px) {
  .rp-shared-wrap { width: calc(100% - 32px); }
}

@media (max-width: 580px) {
  .rp-shared-brandrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rp-shared-brandrow > .rp-shared-logo { grid-area: 1 / 1; justify-self: start; }
  .rp-shared-header-customer { grid-area: 1 / 2; justify-self: end; }
  .rp-shared-nav { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; padding-block: 4px; }
  .rp-shared-hiring { grid-area: 3 / 1; }
  .rp-shared-header-pro { grid-area: 3 / 2; justify-self: end; }
  .rp-shared-phone { grid-area: 4 / 1 / 5 / 3; justify-self: start; }
  .rp-shared-phone strong { font-size: 16px; }
  .rp-shared-footer-grid { gap: 23px 17px; padding-block: 30px; }
  .rp-shared-footer-apps { grid-column: 1 / -1; grid-row: 2; }
  .rp-shared-footer-brand { grid-column: 1 / -1; }
}
