/* Colour tones for Phosphor icons, one per product area. */
.tone-blue   { --tone: #0070cc; --tone-bg: #e6f1fb; }
.tone-teal   { --tone: #00897b; --tone-bg: #e0f4f1; }
.tone-green  { --tone: #2e7d32; --tone-bg: #e7f4e8; }
.tone-purple { --tone: #6b3fa0; --tone-bg: #f0e9f8; }
.tone-orange { --tone: #d9480f; --tone-bg: #fdece4; }
.tone-amber  { --tone: #b26a00; --tone-bg: #fff3d6; }
.tone-pink   { --tone: #c2185b; --tone-bg: #fce6ef; }
.tone-indigo { --tone: #3949ab; --tone-bg: #e8eaf8; }
.wg-ico { flex-shrink: 0; }

/* Wire Gh public header: top strip and main navigation (all public pages). */

.topbar.wgn-topbar {
  background: #0078d4; color: #fff; font-size: 12px; padding: 4px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 300;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif; line-height: 1.5;
}
.topbar.wgn-topbar a { color: #fff; text-decoration: none; opacity: .85; }
.topbar.wgn-topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar.wgn-topbar .topbar-links { display: flex; gap: 16px; }

.navbar.wgn {
  background: #fff; border-bottom: 1px solid #edebe9; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: fixed; top: var(--topbar-h, 32px); left: 0; right: 0; width: 100%; z-index: 250;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}
.wgn .wgn-inner {
  max-width: 1248px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.wgn .wgn-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 18px; }
.wgn .wgn-logo img { height: 36px; width: auto; display: block; }

.wgn .wgn-menu { display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; }
.wgn .wgn-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; height: 100%; }
.wgn .wgn-right { margin-left: auto; }
.wgn .wgn-item { position: relative; height: 100%; display: flex; align-items: center; }

.wgn .wgn-link {
  display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 12px;
  font: 500 15px/1 'Source Sans 3', 'Segoe UI', sans-serif; color: #201f1e; text-decoration: none;
  background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.wgn .wgn-link:hover, .wgn .has-dd.is-open > .wgn-link { background: #f3f2f1; color: #005a9e; }
.wgn .wgn-link.is-active { color: #0078d4; font-weight: 600; }
.wgn .wgn-link .wg-ico { opacity: .65; transition: transform .2s; }
.wgn .has-dd.is-open > .wgn-link .wg-ico { transform: rotate(180deg); }
.wgn .wgn-link:focus-visible, .wgn .wgn-cta:focus-visible, .wgn .wgn-dd-item:focus-visible { outline: 2px solid #0078d4; outline-offset: 2px; }

.wgn .wgn-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; margin-left: 6px;
  background: #0078d4; color: #fff; border-radius: 8px; text-decoration: none;
  font: 600 15px/1 'Source Sans 3', 'Segoe UI', sans-serif; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: background .15s;
}
.wgn .wgn-cta:hover { background: #005a9e; }

.wgn .wgn-flag { padding-left: 12px; }
.wgn .wgn-flag-svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.wgn .wgn-flag-m { display: none; }

/* Dropdown panels */
.wgn .wgn-dd {
  position: absolute; top: calc(100% - 6px); left: 0; z-index: 260;
  min-width: 300px; padding: 10px; background: #fff; border: 1px solid #edebe9; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 32, 64, .14), 0 2px 6px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.wgn .dd-right .wgn-dd { left: auto; right: 0; }
.wgn .is-wide .wgn-dd { width: 620px; }
.wgn .is-wide .wgn-dd-grid { grid-template-columns: 1fr 1fr; }
.wgn .has-dd.is-open > .wgn-dd {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.wgn .wgn-dd-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.wgn .wgn-dd-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: #201f1e; transition: background .12s;
}
.wgn .wgn-dd-item:hover { background: #f3f8fd; }
.wgn .wgn-dd-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--tone-bg, #e8f1fb); color: var(--tone, #0078d4);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.wgn .wgn-dd-item:hover .wgn-dd-ico { transform: scale(1.06); }
.wgn .wgn-link .wg-ico { margin-left: 4px; }
.wgn .wgn-dd-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wgn .wgn-dd-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wgn .wgn-dd-desc { font-size: 13px; color: #605e5c; line-height: 1.4; }
.wgn .wgn-dd-foot {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 12px 12px 4px;
  border-top: 1px solid #edebe9; color: #0078d4; font-size: 14px; font-weight: 600; text-decoration: none;
}
.wgn .wgn-dd-foot .wg-ico { transition: transform .15s; }
.wgn .wgn-dd-foot:hover .wg-ico { transform: translateX(3px); }

/* Burger (shown below 1100px) */
.wgn .wgn-burger {
  display: none; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer;
  background: none; border: 0; padding: 10px 8px; margin-left: 4px; border-radius: 8px;
}
.wgn .wgn-burger span {
  display: block; width: 22px; height: 2px; background: #201f1e; border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease; transform-origin: center;
}
.wgn .wgn-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wgn .wgn-burger.open span:nth-child(2) { opacity: 0; }
.wgn .wgn-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .wgn .wgn-link { padding: 0 9px; font-size: 14.5px; }
  .wgn .wgn-logo { margin-right: 8px; }
}

@media (max-width: 1080px) {
  .wgn .wgn-inner { height: 60px; }
  .wgn .wgn-logo img { height: 32px; }
  .wgn .wgn-burger { display: flex; }
  .wgn .wgn-flag-m { display: block; margin-left: auto; padding-left: 0; }
  .wgn .wgn-menu {
    display: none; position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--topbar-h, 32px) + var(--navbar-h, 60px));
    background: #fff; flex-direction: column; align-items: stretch; height: auto;
    overflow-y: auto; padding: 8px 16px 32px; border-top: 1px solid #edebe9; z-index: 240;
  }
  .wgn .wgn-menu.open { display: flex; }
  .wgn .wgn-list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  .wgn .wgn-right { margin-left: 0; }
  .wgn .wgn-item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid #f3f2f1; }
  .wgn .wgn-link { height: 52px; width: 100%; justify-content: space-between; padding: 0 6px; font-size: 16px; border-radius: 0; }
  .wgn .wgn-link:hover, .wgn .has-dd.is-open > .wgn-link { background: none; }
  .wgn .wgn-dd {
    position: static; display: none; width: auto !important; min-width: 0; padding: 0 0 10px;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .wgn .has-dd.is-open > .wgn-dd { display: block; }
  .wgn .is-wide .wgn-dd-grid { grid-template-columns: 1fr; }
  .wgn .wgn-dd-item { padding: 10px 6px; }
  .wgn .wgn-login { border-bottom: 0; margin-top: 12px; }
  .wgn .wgn-login .wgn-link {
    justify-content: center; border: 1px solid #c8c6c4; border-radius: 8px; height: 46px;
  }
  .wgn .wgn-cta-li { border-bottom: 0; margin-top: 10px; }
  .wgn .wgn-cta { margin: 0; justify-content: center; height: 46px; width: 100%; }
  .wgn .wgn-menu .wgn-flag { display: none; }
}

@media (max-width: 680px) {
  .topbar.wgn-topbar { padding: 4px 16px; }
  .topbar.wgn-topbar .topbar-links { display: none; }
  .wgn .wgn-inner { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .wgn .wgn-dd, .wgn .wgn-link .wg-ico { transition: none; }
}

/* ONE ICON LOOK (Nov 2026): one colour, round tile, on every public page */
.tone-blue, .tone-teal, .tone-green, .tone-purple, .tone-orange, .tone-amber, .tone-pink, .tone-indigo, .tone-navy, .tone-red, .tone-yellow { --tone: #7fd4ff; --tone-bg: #0a2540; }
.wgn .wgn-dd { border-radius: 4px; padding: 8px; }
.wgn .wgn-dd-item { border-radius: 3px; }
.wgn .wgn-dd-ico { border-radius: 50%; background: #0a2540; color: #7fd4ff; }
.wgn .wgn-search-li { display: flex; align-items: center; }
/* Page headers on the older pages: plain blue until a header picture is added for the page */
body .about-hero, body .page-banner { background: #0067b8; }
/* Older pages: icon tiles and category covers in the one icon look */
body .card-icon, body .icon-blue, body .icon-teal, body .icon-green, body .icon-orange, body .icon-purple { background: #f1f4f7; border-radius: 50%; }
body .cover-blue, body .cover-teal, body .cover-green, body .cover-orange, body .cover-purple, body .cover-amber, body .cover-pink, body .cover-indigo { background: #0a2540; color: #7fd4ff; }
