/* Header and main menu, used on every page. */
.rsu-head { --ink: #0e2a2d; --ink-2: #45605f; --line: #cfdedb; --mist: #edf5f3; --teal: #0a6963; --teal-dark: #064a47; --sun: #ffd45c; --sun-dark: #f2bd2c; --wa: #0f7a45; --pad: clamp(1rem, 4vw, 2rem); --f: "Archivo", "Segoe UI", system-ui, sans-serif; position: sticky; top: 0; z-index: 997; background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); font: 400 1rem/1.4 var(--f); }
.admin-bar .rsu-head { top: 32px; }
.rsu-head, .rsu-head *, .rsu-head *::before, .rsu-head *::after { box-sizing: border-box; }
.rsu-head ul { list-style: none; margin: 0; padding: 0; }
.rsu-head li, .rsu-head p { margin: 0; }
.rsu-head a { text-decoration: none; color: var(--ink); }
.rsu-head b { font-weight: 700; }
.rsu-head svg { flex: none; width: 24px; height: 24px; }
.rsu-head :focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 2px; border-radius: 6px; }
.rm-bar { max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }

.rsu-head .rm-logo { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.12rem/1.1 var(--f); font-stretch: 108%; margin-inline-end: auto; white-space: nowrap; }
.rsu-head .rm-logo svg { width: 36px; height: 36px; color: var(--teal); }

.rsu-head .rm-call, .rsu-head .rm-wa { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .6rem 1.15rem; border-radius: 10px; font: 700 1.02rem/1.2 var(--f); white-space: nowrap; }
.rsu-head .rm-call { background: var(--sun); color: var(--ink); }
.rsu-head .rm-call:hover { background: var(--sun-dark); color: var(--ink); }
.rsu-head .rm-wa { background: var(--wa); color: #fff; }
.rsu-head .rm-wa:hover { background: #0a5d34; color: #fff; }
.rsu-head .rm-call svg, .rsu-head .rm-wa svg { width: 20px; height: 20px; }

/* Buttons: old page styles must not colour these. */
.rsu-head .rm-open, .rsu-head .rm-open:hover, .rsu-head .rm-open:focus, .rsu-head .rm-toggle, .rsu-head .rm-toggle:hover, .rsu-head .rm-toggle:focus { -webkit-appearance: none; appearance: none; background: none; border: 0; margin: 0; color: var(--ink); cursor: pointer; border-radius: 8px; box-shadow: none; font: 700 1rem/1 var(--f); letter-spacing: 0; text-transform: none; }
.rsu-head .rm-open svg { width: 18px; height: 18px; transition: transform .16s; }
.rm-on > .rm-open svg { transform: rotate(180deg); }

.rm-all { display: inline-flex; align-items: center; gap: .45rem; }
.rsu-head .rm-all { color: var(--teal); font-weight: 700; }
.rsu-head .rm-all:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: .18em; }
.rsu-head .rm-all svg { width: 18px; height: 18px; }
.rm-card .rm-h { font-weight: 750; font-size: 1.12rem; line-height: 1.2; }

/* Wide screens */
@media (min-width: 1081px) {
  .rm-toggle, .rm-foot { display: none; }
  .rm-nav { align-self: stretch; }
  .rm-top { display: flex; height: 100%; }
  .rm-item { display: flex; align-items: center; padding-inline: .55rem; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .16s; }
  .rm-slim { position: relative; }
  .rsu-head .rm-link { font-weight: 650; padding: .75rem 0; }
  .rm-item:hover, .rm-item.rm-on { box-shadow: inset 0 -3px 0 var(--sun-dark); }
  .rm-item.rm-in { box-shadow: inset 0 -3px 0 var(--teal); }
  .rm-item.rm-in > .rm-link, .rsu-head .rm-link:hover, .rm-item.rm-on > .rm-link { color: var(--teal); }
  .rsu-head .rm-open, .rsu-head .rm-open:hover, .rsu-head .rm-open:focus { display: inline-grid; place-items: center; width: 28px; height: 44px; padding: 0; }

  .rm-panel { position: absolute; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 22px 40px rgb(6 42 45 / .16); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; max-height: var(--rm-room, calc(100vh - 74px)); overflow-y: auto; overscroll-behavior: contain; }
  .rm-on > .rm-panel, .rsu-head:not(.rm-js) .rm-has:hover > .rm-panel, .rsu-head:not(.rm-js) .rm-has:focus-within > .rm-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

  .rm-wide .rm-panel { left: 0; right: 0; }
  .rm-wide .rm-body { max-width: 1160px; margin-inline: auto; padding: 1.6rem var(--pad) 1.8rem; display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 2rem; align-items: stretch; }
  .rm-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
  .rm-services a { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding: .75rem; border-radius: 10px; height: 100%; align-content: start; }
  .rm-services svg { width: 34px; height: 34px; color: var(--teal); }
  .rm-services b { display: block; line-height: 1.25; }
  .rm-services small { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.35; margin-top: .15rem; }
  .rm-brands { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-auto-columns: minmax(0, 1fr); gap: 0 .5rem; align-content: start; }
  .rm-brands a { display: block; padding: .6rem .75rem; border-radius: 8px; font-weight: 600; line-height: 1.25; }
  .rm-services a:hover, .rm-brands a:hover, .rm-list a:hover { background: var(--mist); color: var(--teal-dark); }
  .rm-services a[aria-current], .rm-brands a[aria-current], .rm-list a[aria-current] { background: var(--mist); color: var(--teal-dark); box-shadow: inset 3px 0 0 var(--teal); }

  /* Side card, torn off like the job ticket */
  .rm-card { position: relative; background: var(--mist); border-radius: 12px; border-inline-start: 2px dashed #a9c6c1; padding: 1.3rem 1.3rem 1.2rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
  .rm-card::before, .rm-card::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
  .rm-card::before { top: -10px; }
  .rm-card::after { bottom: -10px; }
  .rm-card p + p { color: var(--ink-2); }
  .rm-card .rm-all { margin-top: auto; padding: .5rem 0 .1rem; }

  .rm-slim .rm-panel { left: 50%; width: 270px; margin-left: -135px; border-radius: 0 0 12px 12px; border: 1px solid var(--line); border-top: 0; }
  .rm-slim .rm-body { padding: .6rem; }
  .rm-slim:has(.rm-two) .rm-panel { width: 380px; margin-left: -190px; }
  .rm-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 8px; min-height: 44px; }
  .rm-list svg { width: 22px; height: 22px; color: var(--teal); }
  .rm-list b { font-weight: 600; }
  .rm-two { display: grid; grid-template-columns: 1fr 1fr; }
  .rm-slim .rm-all { margin-top: .4rem; padding: .7rem .75rem .4rem; border-top: 1px solid var(--line); display: flex; }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  .rm-item { padding-inline: .35rem; }
  .rsu-head .rm-open, .rsu-head .rm-open:hover, .rsu-head .rm-open:focus { width: 24px; }
  .rm-wide .rm-body { grid-template-columns: minmax(0, 1fr) 250px; gap: 1.4rem; }
}

/* Phones and tablets */
@media (max-width: 1080px) {
  .rm-bar { min-height: 66px; gap: .75rem; }
  .rsu-head .rm-toggle, .rsu-head .rm-toggle:hover, .rsu-head .rm-toggle:focus { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .95rem 0 .75rem; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; }
  .rm-toggle svg + svg, .rm-x svg:first-child { display: none; }
  .rm-x svg + svg { display: block; }
  .rm-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px rgb(6 42 45 / .16); max-height: var(--rm-room, calc(100vh - 66px)); overflow-y: auto; overscroll-behavior: contain; padding: .2rem var(--pad) 1rem; }
  .rm-nav.rm-shown { display: block; }
  .rm-item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
  .rsu-head .rm-link { font-weight: 700; font-size: 1.12rem; padding: .95rem 0; }
  .rm-item.rm-in > .rm-link { color: var(--teal); }
  .rsu-head .rm-open, .rsu-head .rm-open:hover, .rsu-head .rm-open:focus { display: grid; place-items: center; width: 56px; height: 46px; margin-block: 5px; padding: 0; background: var(--mist); border-radius: 10px; }
  .rsu-head .rm-open svg { width: 22px; height: 22px; color: var(--teal); }
  .rm-panel { display: none; grid-column: 1 / -1; padding-bottom: 1rem; }
  .rm-on > .rm-panel { display: block; }
  .rm-services a, .rm-list a { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .4rem 0; }
  .rm-services svg { width: 28px; height: 28px; color: var(--teal); }
  .rm-services small { display: none; }
  .rm-services b, .rm-list b { font-weight: 600; }
  .rm-list svg { color: var(--teal); }
  .rm-two, .rm-services { display: grid; grid-template-columns: 1fr; }
  .rm-two { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .rm-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .rm-brands a { display: grid; place-items: center; text-align: center; min-height: 48px; padding: .3rem .25rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.15; }
  .rm-services a[aria-current], .rm-list a[aria-current] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
  .rm-brands a[aria-current] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); }
  .rm-card { padding-top: .7rem; }
  .rm-card p { color: var(--ink-2); font-size: .95rem; }
  .rm-card .rm-h, .rm-card .rm-wa, .rm-services + .rm-card p { display: none; }
  .rsu-head .rm-all { min-height: 48px; padding: .4rem 0; }
  .rm-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 1rem; }
  html.rm-lock { overflow: hidden; }
}
@media (min-width: 681px) and (max-width: 1080px) {
  .rm-services { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .rm-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rm-two { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) { .admin-bar .rsu-head { top: 0; } }
@media (max-width: 680px) {
  .rsu-head .rm-call-bar, .rm-foot { display: none; }
  .rsu-head .rm-logo { font-size: 1.05rem; }
}
@media (max-width: 340px) { .rm-brands { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .rm-panel, .rm-item, .rsu-head .rm-open svg { transition: none !important; } }
