/* ServiceSwiss — shared layer, every page.

   Hoisted from the page stylesheets by sync-css.py so one edit reaches
   every page in the group. Each rule here is identical on every page of
   the group and matches nothing outside it.

   Pages load this file before their own <style>, so anything left inline
   still wins. Rule order matches the original inline order, so the
   cascade is unchanged. */


* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1240px, calc(100% - 96px));
  margin: auto;
}

.topbar {
  background: var(--ink);
  color: #e7eef4;
  font-size: 13px;
  padding: 8px 0;
}

.topbar .wrap, .top-right {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.button:hover {
  background: #084b8a;
  transform: translateY(-2px);
}

.button:active {
  transform: none;
}

.footer {
  padding: 49px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 35px;
}

.footer .logo {
  width: 148px;
  margin-bottom: 15px;
}

.footer p, .footer address, .footer a {
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.footer h3 {
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0;
  font-size: 15px;
  margin-bottom: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.skip:focus {
  top: 10px;
}

.nav-item {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-link-dropdown svg {
  width: 15px;
  height: 15px;
  transition: transform .2s;
}

.nav-item:hover .nav-link-dropdown svg, .nav-item:focus-within .nav-link-dropdown svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 260px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 35px rgba(20, 46, 67, .12);
  padding: 10px 0;
  z-index: 30;
}

.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  transition: background .15s, color .15s;
}

.dropdown-menu a:hover {
  background: var(--pale);
  color: var(--blue);
}

.dropdown-menu .dropdown-overview {
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 5px;
}

.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu {
  display: block;
}
