:root {
  --gwg-navy: #0b1f33;
  --gwg-blue: #2f68c5;
  --gwg-link: #1d4e9a;
  --gwg-sky: #edf4ff;
  --gwg-sky-strong: #dbe9fb;
  --gwg-cloud: #f6f8fb;
  --gwg-white: #ffffff;
  --gwg-border: #d8e0ea;
  --gwg-muted: #667585;
  --gwg-text: #344454;
  --gwg-success: #3d7658;
  --gwg-warning: #a66a22;
  --gwg-risk: #a84f38;
  --gwg-critical: #8b3041;
  --gwg-neutral: #607386;
  --gwg-radius: 10px;
  --gwg-radius-small: 7px;
  --gwg-shadow: 0 12px 34px rgba(11,31,51,.08);
  --gwg-shadow-soft: 0 6px 20px rgba(11,31,51,.055);
  --gwg-content: 820px;
  --gwg-wide: 1180px;
  --gwg-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--gwg-white);
  color: var(--gwg-text);
  font-family: var(--gwg-font);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--gwg-link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--gwg-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #6fa5f2;
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 {
  color: var(--gwg-navy);
  font-family: var(--gwg-font);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.65rem + 3.1vw, 4.25rem); margin: 0 0 1.15rem; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.55vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .65vw, 1.7rem); }
p, li { max-width: 74ch; }
.gwg-skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-180%);
  background: var(--gwg-navy); color: white; padding: .75rem 1rem; border-radius: var(--gwg-radius-small);
}
.gwg-skip-link:focus { transform: translateY(0); }
.gwg-site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gwg-border); backdrop-filter: blur(10px);
}
.admin-bar .gwg-site-header { top: 32px; }
.gwg-header-inner {
  max-width: var(--gwg-wide); margin: 0 auto; padding: .9rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.gwg-wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--gwg-navy); text-decoration: none;
  font-size: 1.35rem; line-height: 1; font-weight: 760; letter-spacing: -.035em;
}
.gwg-wordmark-line { display: inline-flex; align-items: baseline; white-space: nowrap; }
.gwg-wordmark-primary { color: var(--gwg-blue); font-weight: 800; }
.gwg-wordmark small { margin-top: .35rem; color: var(--gwg-muted); font-size: .69rem; font-weight: 550; letter-spacing: .01em; }
.custom-logo { display: block; max-height: 58px; width: auto; }
.gwg-header-navigation { display: flex; align-items: center; gap: .85rem; margin-left: auto; }
.gwg-primary-nav { display: flex; align-items: center; }
.gwg-menu, .gwg-footer-menu, .gwg-language-switcher { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1rem; }
.gwg-menu { gap: .15rem; }
.gwg-menu li { max-width: none; }
.gwg-menu > li { position: relative; }
.gwg-menu a { color: var(--gwg-navy); text-decoration: none; font-size: .91rem; font-weight: 670; }
.gwg-menu > li > a {
  display: flex; align-items: center; min-height: 44px; padding: .58rem .7rem;
  border-radius: var(--gwg-radius-small); white-space: nowrap;
}
.gwg-menu > li > a:hover,
.gwg-menu > .current-menu-item > a,
.gwg-menu > .current-menu-ancestor > a,
.gwg-menu > li.is-submenu-open > a { color: var(--gwg-blue); background: var(--gwg-sky); }
.gwg-menu > .menu-item-has-children > a::after {
  content: ""; width: .42rem; height: .42rem; margin-left: .48rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transform-origin: center;
  transition: transform .16s ease;
}
.gwg-menu > .menu-item-has-children.is-submenu-open > a::after { transform: rotate(225deg) translate(-1px,-1px); }
.gwg-menu .sub-menu {
  position: absolute; top: calc(100% + .35rem); left: 0; z-index: 70;
  width: max-content; min-width: 245px; max-width: 330px;
  list-style: none; margin: 0; padding: .55rem;
  background: white; border: 1px solid var(--gwg-border); border-radius: var(--gwg-radius);
  box-shadow: var(--gwg-shadow); opacity: 0; visibility: hidden;
  transform: translateY(-.35rem); transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.gwg-menu > li:last-child > .sub-menu { right: 0; left: auto; }
.gwg-menu .sub-menu a {
  display: block; padding: .7rem .8rem; border-radius: var(--gwg-radius-small);
  line-height: 1.35; white-space: normal; font-size: .89rem; font-weight: 620;
}
.gwg-menu .sub-menu a:hover,
.gwg-menu .sub-menu .current-menu-item > a { color: var(--gwg-blue); background: var(--gwg-sky); }
.gwg-menu > .menu-item-has-children:hover > .sub-menu,
.gwg-menu > .menu-item-has-children.is-submenu-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.gwg-header-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .65rem .9rem; border: 1px solid var(--gwg-navy); border-radius: var(--gwg-radius-small);
  background: var(--gwg-navy); color: white; text-decoration: none; white-space: nowrap;
  font-size: .85rem; font-weight: 720;
}
.gwg-header-cta:hover { background: #132e49; border-color: #132e49; color: white; }
.gwg-language-switcher { gap: .4rem; font-size: .76rem; text-transform: uppercase; }
.gwg-language-switcher a { color: var(--gwg-navy); text-decoration: none; padding: .25rem .35rem; }
.gwg-language-switcher .current-lang a { color: var(--gwg-link); font-weight: 750; border-bottom: 2px solid var(--gwg-blue); }
.gwg-menu-toggle {
  display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--gwg-border);
  border-radius: var(--gwg-radius-small); background: white; color: var(--gwg-navy); font: inherit; font-weight: 680;
}
.gwg-site-main { min-height: 55vh; }
.gwg-page-article { width: 100%; margin: 0; padding: 0; }
.gwg-page-article > .gwg-entry-header {
  width: min(calc(100% - 3rem), var(--gwg-wide));
  margin: 0 auto;
  padding: 4.5rem 0 1.5rem;
}
.gwg-page-article > .gwg-entry-header:empty { display: none; }
.gwg-page-article .entry-content { width: 100%; }
.gwg-archive-header, .gwg-error-page {
  width: min(calc(100% - 3rem), var(--gwg-content)); margin: 0 auto; padding: 4.5rem 0;
}
.gwg-front-page .entry-content { padding-bottom: 0; }
.gwg-wide-layout .entry-content,
.gwg-legal-layout .entry-content,
.gwg-check-layout .entry-content { width: 100%; margin: 0; padding: 0; }
.entry-content > * { width: min(calc(100% - 3rem), var(--gwg-wide)); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(calc(100% - 3rem), var(--gwg-wide)); max-width: var(--gwg-wide); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.gwg-check-layout .wp-block-shortcode { width: min(100%, 860px); max-width: 860px; margin-left: auto; margin-right: auto; }
.gwg-wide-layout .entry-content > .wp-block-latest-posts { width: 100%; max-width: var(--gwg-wide); }
.wp-block-button__link {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gwg-navy); color: white; border: 1px solid var(--gwg-navy);
  border-radius: var(--gwg-radius-small); padding: .78rem 1.2rem; font-weight: 700;
  text-decoration: none; box-shadow: none; transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.wp-block-button__link:hover { background: #132e49; border-color: #132e49; color: white; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--gwg-navy); background: white; border-color: #aab9c8; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { color: var(--gwg-link); border-color: var(--gwg-blue); background: var(--gwg-sky); }
.gwg-site-footer { background: var(--gwg-navy); color: #e8eef5; margin-top: 5rem; }
.gwg-footer-inner { max-width: var(--gwg-wide); margin: 0 auto; padding: 3.6rem 1.5rem 2.6rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.gwg-footer-heading { margin: 0 0 1rem; color: white; font-size: 1rem; letter-spacing: 0; }
.gwg-footer-menu { display: grid; gap: .45rem; }
.gwg-footer-menu a, .gwg-site-footer a { color: #e8eef5; }
.gwg-footer-brand p { max-width: 44ch; }
.gwg-footer-wordmark { font-size: 1.35rem; font-weight: 760; color: white; }
.gwg-footer-disclaimer { color: #b9c6d3; font-size: .9rem; }
.gwg-footer-bottom { max-width: var(--gwg-wide); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.16); padding: 1.2rem 1.5rem 1.8rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .82rem; color: #b9c6d3; }
.gwg-footer-bottom p { margin: 0; }
.gwg-footer-bottom .gwg-language-switcher a { color: #e8eef5; }
.gwg-entry-header { margin-bottom: 2.5rem; }
.gwg-kicker, .gwg-eyebrow { color: var(--gwg-link); font-size: .79rem; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.gwg-post-grid { width: min(calc(100% - 3rem), var(--gwg-wide)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 4rem; }
.gwg-post-card { background: white; border: 1px solid var(--gwg-border); border-radius: var(--gwg-radius); padding: 1.5rem; box-shadow: var(--gwg-shadow-soft); }
.gwg-post-card h2 { font-size: 1.42rem; margin-top: .4rem; }
.gwg-post-card h2 a { color: var(--gwg-navy); text-decoration: none; }
.gwg-post-meta { color: var(--gwg-muted); font-size: .8rem; }
.gwg-text-link { font-weight: 700; }
@media (max-width: 1180px) {
  .gwg-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .gwg-header-navigation {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 74px); overflow-y: auto;
    background: white; border-bottom: 1px solid var(--gwg-border);
    padding: 1rem 1.5rem 1.4rem; box-shadow: var(--gwg-shadow);
  }
  .gwg-header-navigation.is-open { display: block; }
  .gwg-primary-nav { display: block; width: 100%; }
  .gwg-menu { display: grid; gap: 0; }
  .gwg-menu > li { border-bottom: 1px solid var(--gwg-border); }
  .gwg-menu > li > a { justify-content: space-between; padding: .9rem 0; border-radius: 0; }
  .gwg-menu > li > a:hover,
  .gwg-menu > .current-menu-item > a,
  .gwg-menu > .current-menu-ancestor > a,
  .gwg-menu > li.is-submenu-open > a { background: transparent; }
  .gwg-menu .sub-menu {
    display: none; position: static; width: auto; min-width: 0; max-width: none;
    margin: 0 0 .7rem; padding: .15rem .7rem .45rem 1rem;
    border: 0; border-left: 2px solid #d8e3ef; border-radius: 0;
    background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .gwg-menu > .menu-item-has-children:hover > .sub-menu { display: none; }
  .gwg-menu > .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
  .gwg-menu .sub-menu a { padding: .62rem .5rem; }
  .gwg-header-cta { width: 100%; margin-top: 1rem; }
  .gwg-language-nav { margin-top: 1rem; }
  .gwg-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .gwg-site-header { top: 46px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .gwg-header-inner { padding: .8rem 1rem; }
  .gwg-wordmark small { display: none; }
  .gwg-archive-header, .gwg-error-page { width: min(calc(100% - 2rem), var(--gwg-content)); padding: 3rem 0; }
  .gwg-article { width: min(calc(100% - 2rem), var(--gwg-wide)); padding: 3rem 0; }
  .gwg-wide-layout .entry-content, .gwg-legal-layout .entry-content, .gwg-check-layout .entry-content { width: 100%; padding: 0; }
  .gwg-page-article > .gwg-entry-header { width: min(calc(100% - 2rem), var(--gwg-content)); padding: 3rem 0 1rem; }
  .gwg-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .gwg-footer-bottom { display: grid; }
  .gwg-post-grid { grid-template-columns: 1fr; width: min(calc(100% - 2rem), var(--gwg-wide)); }
}
