/* Work & Residence editorial system */
:root {
  --wr-navy: #132b45;
  --wr-ink: #0b1f33;
  --wr-blue: #2563eb;
  --wr-blue-dark: #1d4ed8;
  --wr-text: #344054;
  --wr-muted: #667085;
  --wr-border: #d0d5dd;
  --wr-soft: #f2f4f7;
  --wr-canvas: #f7f9fc;
  --wr-white: #ffffff;
  --wr-warning: #9a6700;
  --wr-warning-bg: #fff8e6;
  --wr-success: #13795b;
  --wr-success-bg: #eaf8f2;
  --wr-radius-sm: 12px;
  --wr-radius: 18px;
  --wr-radius-lg: 28px;
  --wr-shadow-sm: 0 8px 24px rgba(15, 35, 58, 0.07);
  --wr-shadow: 0 20px 55px rgba(15, 35, 58, 0.12);
  --wr-container: 1180px;
  --wr-reading: 780px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--wr-text);
  background: var(--wr-canvas);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.wr-full-width .site-main,
body.wr-full-width .ct-container-full,
body.wr-full-width .ct-container,
body.wr-full-width [data-content="normal"],
body.wr-full-width [data-content="wide"] {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.wr-full-width .content-area,
body.wr-full-width .site-main > article,
body.wr-full-width article.page,
body.wr-full-width .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.wr-has-custom-hero .hero-section,
body.wr-has-custom-hero .entry-header,
body.wr-has-custom-hero .page-title,
body.wr-has-custom-hero .ct-page-title {
  display: none !important;
}

body.wr-full-width .entry-content > :where(:not(.alignfull):not(.alignwide)) {
  max-width: none !important;
}

body.wr-full-width .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Blocksy header refinement */
#header [data-row="middle"] {
  box-shadow: 0 1px 0 rgba(19, 43, 69, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#header .site-title,
#header .site-title a {
  color: var(--wr-navy) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

#header .site-title a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

#header .site-title a::before {
  content: "W";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  background: linear-gradient(145deg, var(--wr-blue), var(--wr-navy));
  box-shadow: 0 7px 17px rgba(37, 99, 235, 0.25);
}

#header .menu > li > a {
  font-weight: 650;
  letter-spacing: -0.01em;
}

#header .menu > li > a:hover,
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-ancestor > a {
  color: var(--wr-blue) !important;
}

#header [data-id="search"] {
  border-radius: 999px;
}

/* Global page primitives */
.wr-page {
  overflow: hidden;
  background: var(--wr-white);
}

.wr-container {
  width: min(calc(100% - 40px), var(--wr-container));
  margin-inline: auto;
}

.wr-narrow {
  max-width: var(--wr-reading);
}

.wr-section {
  position: relative;
  padding: clamp(64px, 7vw, 100px) 0;
  background: var(--wr-white);
}

.wr-section-soft {
  background:
    radial-gradient(circle at 92% 7%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
  border-top: 1px solid rgba(208, 213, 221, 0.75);
  border-bottom: 1px solid rgba(208, 213, 221, 0.75);
}

.wr-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.wr-section-heading h2,
.wr-page h2,
.wr-page h3 {
  color: var(--wr-navy);
  letter-spacing: -0.025em;
}

.wr-section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.wr-section-heading p {
  margin: 0;
  color: var(--wr-muted);
  font-size: 18px;
  line-height: 1.7;
}

.wr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wr-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.wr-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.wr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.wr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--wr-blue);
  border-radius: 999px;
  color: #fff !important;
  background: var(--wr-blue);
  box-shadow: 0 11px 25px rgba(37, 99, 235, 0.21);
  font-weight: 750;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wr-button:hover {
  color: #fff !important;
  background: var(--wr-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
}

.wr-button-ghost {
  color: var(--wr-navy) !important;
  border-color: rgba(19, 43, 69, 0.18);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.wr-button-ghost:hover {
  color: var(--wr-blue) !important;
  border-color: var(--wr-blue);
  background: #fff;
}

.wr-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--wr-blue);
  font-weight: 750;
  text-decoration: none;
}

.wr-text-link:hover {
  color: var(--wr-blue-dark);
}

/* Homepage hero */
.wr-home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 10vw, 138px) 0 clamp(72px, 9vw, 118px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 77% 20%, rgba(77, 143, 255, 0.34), transparent 27%),
    radial-gradient(circle at 15% 90%, rgba(42, 108, 220, 0.22), transparent 31%),
    linear-gradient(135deg, #071827 0%, #0d2944 54%, #163d68 100%);
}

.wr-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.wr-home-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -170px;
  top: -190px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255,255,255,.035), 0 0 0 126px rgba(255,255,255,.025);
}

.wr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}

.wr-home-hero .wr-kicker {
  color: #9fc3ff;
}

.wr-home-hero h1 {
  max-width: 850px;
  margin: 15px 0 22px;
  color: #fff;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.wr-home-hero > .wr-container > div > p,
.wr-home-hero .wr-hero-grid > div > p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.wr-home-hero .wr-button-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.33);
  background: rgba(255, 255, 255, 0.08);
}

.wr-home-hero .wr-button-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.wr-hero-panel {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--wr-radius-lg);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wr-hero-panel > span {
  display: block;
  margin-bottom: 18px;
  color: #a9c9ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wr-hero-panel ol {
  counter-reset: wr-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wr-hero-panel li {
  counter-increment: wr-start;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 650;
}

.wr-hero-panel li::before {
  content: counter(wr-start);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(110, 162, 255, 0.2);
  color: #dce9ff;
  font-size: 13px;
  font-weight: 800;
}

.wr-hero-panel p {
  margin: 20px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.65;
}

/* Generic page hero */
.wr-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 112px) 0 clamp(58px, 7vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 24%, rgba(77, 143, 255, 0.32), transparent 25%),
    linear-gradient(135deg, #0a1e31 0%, #153b62 100%);
}

.wr-page-hero::after {
  content: "";
  position: absolute;
  inset: auto -30px -130px auto;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.03), 0 0 0 105px rgba(255,255,255,.02);
}

.wr-page-hero .wr-kicker {
  color: #a9c9ff;
}

.wr-page-hero h1 {
  max-width: 930px;
  margin: 14px 0 20px;
  color: #fff;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.044em;
}

.wr-page-hero p {
  max-width: 800px;
  margin: 0;
  color: rgba(255,255,255,.77);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.68;
}

.wr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wr-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.07);
  font-size: 13px;
  font-weight: 650;
}

/* Trust strip and cards */
.wr-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -1px;
  border-bottom: 1px solid var(--wr-border);
  background: #fff;
}

.wr-trust-strip > div {
  padding: 26px 22px;
  text-align: center;
  border-right: 1px solid var(--wr-border);
}

.wr-trust-strip > div:last-child {
  border-right: 0;
}

.wr-trust-strip strong {
  display: block;
  color: var(--wr-navy);
  font-size: 15px;
}

.wr-trust-strip span {
  display: block;
  margin-top: 5px;
  color: var(--wr-muted);
  font-size: 13px;
}

.wr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wr-card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wr-card,
.wr-feature-card,
.wr-guide-card,
.wr-country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: var(--wr-radius);
  color: var(--wr-text) !important;
  background: rgba(255,255,255,.92);
  box-shadow: var(--wr-shadow-sm);
  text-decoration: none !important;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.wr-card::before,
.wr-guide-card::before,
.wr-country-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--wr-blue), #82aaff);
  opacity: 0;
  transition: opacity 190ms ease;
}

.wr-card:hover,
.wr-guide-card:hover,
.wr-country-card-active:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--wr-shadow);
}

.wr-card:hover::before,
.wr-guide-card:hover::before,
.wr-country-card-active:hover::before {
  opacity: 1;
}

.wr-card-label,
.wr-country-code {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--wr-blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.wr-card h3,
.wr-feature-card h3,
.wr-guide-card h3,
.wr-country-card h3 {
  margin: 18px 0 10px;
  color: var(--wr-navy);
  font-size: 22px;
  line-height: 1.24;
}

.wr-card p,
.wr-feature-card p,
.wr-guide-card p,
.wr-country-card p {
  margin: 0;
  color: var(--wr-muted);
  font-size: 15px;
  line-height: 1.68;
}

.wr-card .wr-text-link,
.wr-guide-card .wr-text-link,
.wr-country-card .wr-text-link {
  margin-top: auto;
  padding-top: 20px;
}

.wr-country-card-disabled {
  opacity: .66;
  box-shadow: none;
}

.wr-country-card-disabled::after {
  content: "Planned";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--wr-muted);
  background: var(--wr-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Feature country block */
.wr-country-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: stretch;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--wr-radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .12), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f4f8ff 100%);
  box-shadow: var(--wr-shadow-sm);
}

.wr-country-feature h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.wr-country-feature p {
  color: var(--wr-muted);
  font-size: 17px;
  line-height: 1.72;
}

.wr-feature-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  align-content: center;
  padding: 24px;
  border-radius: 22px;
  background: var(--wr-navy);
  box-shadow: 0 22px 48px rgba(19, 43, 69, .24);
}

.wr-feature-map div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
}

.wr-feature-map strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.wr-feature-map span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

/* Process and semantic navigation */
.wr-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: wr-process;
}

.wr-process > div {
  position: relative;
  padding: 26px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius);
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-process > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -19px;
  z-index: 2;
  width: 18px;
  height: 2px;
  background: var(--wr-border);
}

.wr-process > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: var(--wr-blue);
  font-size: 13px;
  font-weight: 850;
}

.wr-process h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.wr-process p {
  margin: 0;
  color: var(--wr-muted);
  font-size: 14px;
  line-height: 1.65;
}

.wr-proof-section {
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(74, 139, 247, .23), transparent 30%),
    linear-gradient(135deg, #091c2e 0%, #123657 100%);
}

.wr-proof-section h2,
.wr-proof-section .wr-kicker {
  color: #fff;
}

.wr-proof-section p {
  color: rgba(255,255,255,.7);
}

.wr-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.wr-proof-list {
  display: grid;
  gap: 13px;
}

.wr-proof-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.065);
}

.wr-proof-list strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--wr-blue);
}

.wr-proof-list span {
  color: rgba(255,255,255,.86);
  font-weight: 650;
}

.wr-root-summary,
.wr-cluster-intro,
.wr-author-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.wr-root-summary h2,
.wr-cluster-intro h2,
.wr-author-intro h2 {
  margin: 10px 0 15px;
  font-size: clamp(30px, 4vw, 46px);
}

.wr-root-summary p,
.wr-cluster-intro p,
.wr-author-intro p {
  color: var(--wr-muted);
  font-size: 17px;
  line-height: 1.72;
}

.wr-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.wr-stat-grid > div {
  padding: 22px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-sm);
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-stat-grid strong {
  display: block;
  color: var(--wr-blue);
  font-size: 34px;
  line-height: 1;
}

.wr-stat-grid span {
  display: block;
  margin-top: 7px;
  color: var(--wr-muted);
  font-size: 13px;
  line-height: 1.4;
}

.wr-boundary-card,
.wr-source-box,
.wr-warning,
.wr-notice {
  padding: 25px 27px;
  border-radius: var(--wr-radius);
}

.wr-boundary-card,
.wr-source-box {
  border: 1px solid rgba(37, 99, 235, .2);
  background: #f2f7ff;
}

.wr-boundary-card > span,
.wr-source-box > strong,
.wr-warning > strong,
.wr-notice > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wr-navy);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.wr-boundary-card p,
.wr-source-box p,
.wr-warning p,
.wr-notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

.wr-boundary-card a {
  display: inline-flex;
  margin-top: 15px;
  color: var(--wr-blue);
  font-weight: 750;
  text-decoration: none;
}

.wr-warning {
  border: 1px solid #edcf82;
  background: var(--wr-warning-bg);
}

.wr-warning > strong {
  color: var(--wr-warning);
}

.wr-notice {
  border: 1px solid #a8dccb;
  background: var(--wr-success-bg);
}

.wr-related-grid,
.wr-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wr-related-grid a,
.wr-link-row,
.wr-link-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-sm);
  color: var(--wr-navy) !important;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.wr-related-grid a:hover,
.wr-link-list a:hover {
  border-color: rgba(37,99,235,.42);
  transform: translateY(-2px);
  box-shadow: var(--wr-shadow-sm);
}

.wr-related-grid a span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--wr-blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 850;
}

.wr-related-grid a strong {
  font-size: 14px;
  line-height: 1.4;
}

.wr-up-link {
  margin-top: 22px;
}

.wr-up-link a {
  color: var(--wr-blue);
  font-weight: 750;
}

/* Dynamic guide listings */
.wr-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wr-guide-card {
  min-height: 250px;
}

.wr-guide-card h3 a {
  color: var(--wr-navy) !important;
  text-decoration: none !important;
}

.wr-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--wr-muted);
  font-size: 12px;
  font-weight: 650;
}

.wr-empty-state {
  padding: 30px;
  border: 1px dashed var(--wr-border);
  border-radius: var(--wr-radius);
  color: var(--wr-muted);
  background: #fafbfc;
  text-align: center;
}

/* Source hierarchy */
.wr-source-hierarchy {
  display: grid;
  gap: 14px;
  counter-reset: wr-source;
}

.wr-source-hierarchy > div {
  counter-increment: wr-source;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 21px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-sm);
  background: #fff;
}

.wr-source-hierarchy > div::before {
  content: counter(wr-source);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: var(--wr-navy);
  font-weight: 850;
}

.wr-source-hierarchy strong {
  display: block;
  color: var(--wr-navy);
}

.wr-source-hierarchy p {
  margin: 5px 0 0;
  color: var(--wr-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Author */
.wr-author-mark {
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 27%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(145deg, var(--wr-blue), var(--wr-navy));
  box-shadow: 0 25px 55px rgba(19,43,69,.23);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.wr-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 25px;
}

.wr-mini-grid > div {
  padding: 18px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-sm);
  background: #fff;
}

.wr-mini-grid strong {
  display: block;
  color: var(--wr-navy);
}

.wr-mini-grid span {
  display: block;
  margin-top: 5px;
  color: var(--wr-muted);
  font-size: 13px;
}

/* Forms */
.wr-contact-form {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-lg);
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.wr-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--wr-navy);
  font-size: 14px;
  font-weight: 750;
}

.wr-contact-form input,
.wr-contact-form textarea,
.wr-contact-form select {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid var(--wr-border);
  border-radius: 11px;
  color: var(--wr-text);
  background: #fff;
  font: inherit;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.wr-contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.wr-contact-form input:focus,
.wr-contact-form textarea:focus,
.wr-contact-form select:focus {
  outline: none;
  border-color: var(--wr-blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.wr-form-message {
  margin-top: 18px;
}

.wr-form-note {
  color: var(--wr-muted);
  font-size: 13px;
  line-height: 1.6;
}

.wr-form-success,
.wr-form-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 11px;
  font-weight: 650;
}

.wr-form-success {
  color: #0e5f46;
  border: 1px solid #a8dccb;
  background: var(--wr-success-bg);
}

.wr-form-error {
  color: #8d2727;
  border: 1px solid #e7b8b8;
  background: #fff0f0;
}

.wr-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Sitemap and updates */
.wr-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wr-sitemap-grid section {
  padding: 24px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius);
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-sitemap-grid h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.wr-sitemap-grid ul {
  margin: 0;
  padding-left: 19px;
}

.wr-sitemap-grid li {
  margin: 8px 0;
}

.wr-sitemap-grid a {
  color: var(--wr-text);
  text-decoration: none;
}

.wr-sitemap-grid a:hover {
  color: var(--wr-blue);
}

.wr-update-list {
  display: grid;
  gap: 14px;
}

.wr-update-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-sm);
  background: #fff;
}

.wr-update-row time {
  color: var(--wr-muted);
  font-size: 13px;
  font-weight: 650;
}

.wr-update-row a {
  color: var(--wr-navy) !important;
  font-weight: 750;
  text-decoration: none !important;
}

.wr-update-row span {
  color: var(--wr-blue);
  font-size: 13px;
  font-weight: 750;
}

/* Final CTA */
.wr-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 62px);
  border-radius: var(--wr-radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(100, 157, 255, .36), transparent 31%),
    linear-gradient(135deg, #102c49, #1f5590);
  box-shadow: var(--wr-shadow);
}

.wr-final-cta h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
}

.wr-final-cta p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 17px;
  line-height: 1.7;
}

/* Custom footer */
.ct-footer {
  display: none !important;
}

.wr-site-footer {
  color: rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 8% 0, rgba(46, 112, 222, .18), transparent 32%),
    #071827;
}

.wr-footer-inner {
  width: min(calc(100% - 40px), var(--wr-container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.7fr) repeat(3, minmax(150px, .7fr));
  gap: clamp(28px, 5vw, 70px);
  padding: 70px 0 54px;
}

.wr-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-decoration: none !important;
}

.wr-footer-logo::before {
  content: "W";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #377df1, #154477);
  box-shadow: 0 8px 22px rgba(37,99,235,.28);
  font-size: 17px;
}

.wr-footer-brand p {
  max-width: 450px;
  margin: 20px 0 18px;
  color: rgba(255,255,255,.61);
  font-size: 14px;
  line-height: 1.75;
}

.wr-footer-status {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  font-weight: 700;
}

.wr-footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wr-footer-column h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wr-footer-column a {
  color: rgba(255,255,255,.65) !important;
  font-size: 14px;
  text-decoration: none !important;
}

.wr-footer-column a:hover {
  color: #fff !important;
}

.wr-footer-bottom {
  width: min(calc(100% - 40px), var(--wr-container));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.47);
  font-size: 12px;
}

/* Normal posts and articles */
.single-post .entry-content,
.single-post .entry-header,
.single-post .post-navigation,
.single-post .ct-related-posts {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .entry-content {
  font-size: 17px;
  line-height: 1.78;
}

.single-post .entry-content h2 {
  margin-top: 2.3em;
  color: var(--wr-navy);
  scroll-margin-top: 110px;
}

.single-post .entry-content h3 {
  margin-top: 1.8em;
  color: var(--wr-navy);
}

.single-post .entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--wr-border);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

.single-post .entry-content th {
  color: var(--wr-navy);
  background: #eef4fb;
}

.single-post .entry-content th,
.single-post .entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--wr-border);
}

.single-post .entry-content tr:last-child td {
  border-bottom: 0;
}

.single-post .entry-content blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--wr-blue);
  border-radius: 0 12px 12px 0;
  background: #f3f7fc;
}

/* Responsive */
@media (max-width: 1024px) {
  .wr-hero-grid,
  .wr-country-feature,
  .wr-root-summary,
  .wr-cluster-intro,
  .wr-author-intro,
  .wr-proof-grid {
    grid-template-columns: 1fr;
  }

  .wr-hero-panel {
    max-width: 680px;
  }

  .wr-card-grid,
  .wr-guide-grid,
  .wr-related-grid,
  .wr-link-list,
  .wr-sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wr-process {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .wr-process > div:nth-child(2)::after {
    display: none;
  }

  .wr-footer-inner {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .wr-footer-column:last-child {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .wr-container {
    width: min(calc(100% - 28px), var(--wr-container));
  }

  .wr-section {
    padding: 58px 0;
  }

  .wr-home-hero,
  .wr-page-hero {
    padding-top: 66px;
    padding-bottom: 64px;
  }

  .wr-home-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .wr-page-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .wr-home-hero::after,
  .wr-page-hero::after {
    display: none;
  }

  .wr-hero-panel,
  .wr-card,
  .wr-feature-card,
  .wr-guide-card,
  .wr-country-card,
  .wr-final-cta {
    padding: 23px;
  }

  .wr-trust-strip,
  .wr-card-grid,
  .wr-card-grid-2,
  .wr-guide-grid,
  .wr-related-grid,
  .wr-link-list,
  .wr-sitemap-grid,
  .wr-process,
  .wr-feature-map,
  .wr-stat-grid,
  .wr-mini-grid,
  .wr-form-grid {
    grid-template-columns: 1fr;
  }

  .wr-trust-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--wr-border);
  }

  .wr-trust-strip > div:last-child {
    border-bottom: 0;
  }

  .wr-process > div::after {
    display: none !important;
  }

  .wr-update-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .wr-footer-inner {
    width: min(calc(100% - 28px), var(--wr-container));
    grid-template-columns: 1fr 1fr;
    padding-top: 54px;
  }

  .wr-footer-brand {
    grid-column: 1 / -1;
  }

  .wr-footer-column:last-child {
    grid-column: auto;
  }

  .wr-footer-bottom {
    width: min(calc(100% - 28px), var(--wr-container));
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .wr-actions {
    flex-direction: column;
  }

  .wr-button {
    width: 100%;
  }

  .wr-footer-inner {
    grid-template-columns: 1fr;
  }

  .wr-footer-brand,
  .wr-footer-column:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.wr-contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 8px;
  padding: 13px 22px;
  border: 1px solid var(--wr-blue);
  border-radius: 999px;
  color: #fff;
  background: var(--wr-blue);
  box-shadow: 0 11px 25px rgba(37, 99, 235, 0.21);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.wr-contact-form button[type="submit"]:hover {
  background: var(--wr-blue-dark);
}

/* =========================================================
   Work & Residence 2.0 compatibility and layout repair layer
   ========================================================= */

/* The plugin owns the visible site chrome so Blocksy settings cannot leave
   an empty or oversized theme header/footer around managed content. */
.wr-site-builder-active #header,
.wr-site-builder-active header#header,
.wr-site-builder-active #footer,
.wr-site-builder-active footer#footer,
.wr-site-builder-active .ct-footer,
.wr-site-builder-active [data-footer*="type-1"] {
  display: none !important;
}

.wr-site-header {
  position: sticky;
  top: 0;
  z-index: 9998;
  width: 100%;
  color: var(--wr-navy);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(19, 43, 69, 0.11);
  box-shadow: 0 8px 28px rgba(15, 35, 58, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.admin-bar .wr-site-header {
  top: 32px;
}

.wr-header-main {
  background: rgba(255, 255, 255, 0.96);
}

.wr-header-shell {
  width: min(calc(100% - 40px), 1220px);
  min-height: 74px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.wr-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  color: var(--wr-navy) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.wr-brand::before,
.wr-brand::after {
  content: none !important;
  display: none !important;
}

.wr-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--wr-blue), var(--wr-navy));
  box-shadow: 0 9px 21px rgba(37, 99, 235, 0.23);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.wr-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wr-brand-copy strong {
  color: var(--wr-navy);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.wr-brand-copy small {
  color: var(--wr-muted);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

.wr-primary-navigation {
  justify-self: end;
}

.wr-primary-menu,
.wr-primary-menu ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wr-primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wr-primary-menu > li {
  position: relative;
  margin: 0 !important;
}

.wr-primary-menu > li > a {
  display: inline-flex !important;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--wr-navy) !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.wr-primary-menu > li > a::before,
.wr-primary-menu > li > a::after,
.wr-primary-menu .sub-menu a::before,
.wr-primary-menu .sub-menu a::after {
  content: none !important;
  display: none !important;
}

.wr-primary-menu > li:hover > a,
.wr-primary-menu > li.current-menu-item > a,
.wr-primary-menu > li.current-menu-ancestor > a,
.wr-primary-menu > li > a:focus-visible {
  color: var(--wr-blue) !important;
  background: #edf4ff !important;
}

.wr-primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: none;
  width: 260px;
  padding: 10px !important;
  border: 1px solid var(--wr-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(15, 35, 58, 0.16);
}

.wr-primary-menu li:hover > .sub-menu,
.wr-primary-menu li:focus-within > .sub-menu {
  display: block;
}

.wr-primary-menu .sub-menu li {
  margin: 0 !important;
}

.wr-primary-menu .sub-menu a {
  display: block !important;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--wr-text) !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none !important;
}

.wr-primary-menu .sub-menu a:hover,
.wr-primary-menu .sub-menu a:focus-visible {
  color: var(--wr-blue) !important;
  background: #f4f7fb !important;
}

.wr-search-toggle,
.wr-menu-toggle {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.wr-search-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  color: var(--wr-navy);
  background: var(--wr-soft);
}

.wr-search-toggle:hover,
.wr-search-toggle:focus-visible,
.wr-search-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--wr-blue);
}

.wr-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--wr-navy);
  background: var(--wr-soft);
  font-weight: 750;
}

.wr-menu-toggle-icon {
  display: flex;
  width: 18px;
  flex-direction: column;
  gap: 3px;
}

.wr-menu-toggle-icon i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.wr-search-panel {
  border-top: 1px solid rgba(19, 43, 69, 0.09);
  background: #fff;
}

.wr-search-panel[hidden] {
  display: none !important;
}

.wr-search-panel form {
  width: min(calc(100% - 40px), 900px);
  margin-inline: auto;
  padding: 18px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wr-search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--wr-border);
  border-radius: 12px;
  color: var(--wr-ink);
  background: #fff;
  font-size: 16px;
}

.wr-search-panel button {
  min-height: 48px;
  padding: 11px 21px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--wr-blue);
  font-weight: 750;
  cursor: pointer;
}

/* Prevent theme link-decoration pseudo elements from turning cards into
   large dark panels. The accent is supplied by the real border instead. */
.wr-card::before,
.wr-card::after,
.wr-guide-card::before,
.wr-guide-card::after,
.wr-country-card::before,
.wr-country-card::after,
.wr-mini-card::before,
.wr-mini-card::after,
.wr-button::before,
.wr-button::after,
.wr-text-link::before,
.wr-text-link::after {
  content: none !important;
  display: none !important;
}

.wr-card,
.wr-guide-card,
.wr-country-card {
  border-top: 4px solid rgba(37, 99, 235, 0.72);
  background: #fff !important;
  isolation: isolate;
}

.wr-card b,
.wr-country-card b {
  margin-top: auto;
  padding-top: 22px;
  color: var(--wr-blue);
  font-size: 14px;
  font-weight: 800;
}

/* Hero and dark-section text must remain readable even when the active
   theme applies global heading colours with higher priority. */
.wr-home-hero h1,
.wr-home-hero h2,
.wr-proof-section h2,
.wr-proof-section h3,
.wr-final-cta h2,
.wr-final-cta h3 {
  color: #fff !important;
}

.wr-home-hero p,
.wr-proof-section p,
.wr-final-cta p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.wr-home-hero .wr-kicker,
.wr-proof-section .wr-kicker,
.wr-final-cta .wr-kicker {
  color: #bcd3ff !important;
}

.wr-button,
a.wr-button,
.wr-button:visited {
  color: #fff !important;
  background: var(--wr-blue) !important;
}

.wr-button:hover,
.wr-button:focus-visible {
  color: #fff !important;
  background: var(--wr-blue-dark) !important;
}

.wr-button-ghost,
a.wr-button-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

/* Correct trust-strip structure. */
.wr-trust-strip {
  display: block;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--wr-border);
}

.wr-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wr-trust-grid > div {
  padding: 23px 16px;
  text-align: center;
  border-right: 1px solid var(--wr-border);
}

.wr-trust-grid > div:last-child {
  border-right: 0;
}

.wr-trust-grid strong,
.wr-trust-grid span {
  display: block;
}

.wr-trust-grid strong {
  color: var(--wr-navy);
  font-size: 14px;
  line-height: 1.25;
}

.wr-trust-grid span {
  margin-top: 3px;
  color: var(--wr-muted);
  font-size: 12px;
  line-height: 1.3;
}

/* Four homepage task cards read better as a balanced 2 x 2 system. */
.wr-task-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Compact semantic links inside the country feature. */
.wr-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.wr-mini-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(208, 213, 221, 0.95);
  border-radius: 14px;
  color: var(--wr-navy) !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 35, 58, 0.06);
  text-decoration: none !important;
}

.wr-mini-card > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--wr-blue);
  background: #edf4ff;
  font-size: 11px;
  font-weight: 850;
}

.wr-mini-card strong {
  min-width: 0;
  color: var(--wr-navy);
  font-size: 13px;
  line-height: 1.28;
}

.wr-mini-card b {
  color: var(--wr-blue);
  font-size: 17px;
}

.wr-mini-card:hover,
.wr-mini-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(15, 35, 58, 0.1);
}

/* Keep every owned section on a predictable editorial canvas. */
.wr-page,
.wr-page main,
.wr-page section {
  box-sizing: border-box;
}

.wr-page .wr-container {
  width: min(calc(100% - 40px), 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wr-page .wr-narrow {
  max-width: 780px !important;
}

.wr-site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 1120px) {
  .wr-header-shell {
    gap: 16px;
  }

  .wr-brand-copy small {
    display: none;
  }

  .wr-primary-menu > li > a {
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .wr-header-shell {
    grid-template-columns: 1fr auto auto;
    min-height: 68px;
  }

  .wr-menu-toggle {
    display: inline-flex;
  }

  .wr-primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 12px 20px 22px;
    border-top: 1px solid var(--wr-border);
    background: #fff;
    box-shadow: 0 22px 38px rgba(15, 35, 58, 0.13);
  }

  .wr-primary-navigation.is-open {
    display: block;
  }

  .wr-primary-menu {
    display: block;
  }

  .wr-primary-menu > li > a,
  .wr-primary-menu .sub-menu a {
    width: 100%;
  }

  .wr-primary-menu .sub-menu {
    position: static;
    display: block;
    width: auto;
    margin: 2px 0 8px 14px !important;
    padding: 3px 0 3px 12px !important;
    border: 0;
    border-left: 2px solid #dbe7ff;
    border-radius: 0;
    box-shadow: none;
  }

  .wr-country-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .wr-site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .wr-header-shell,
  .wr-search-panel form,
  .wr-page .wr-container {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  .wr-brand-copy strong {
    font-size: 16px;
  }

  .wr-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .wr-menu-toggle > span:last-child {
    display: none;
  }

  .wr-trust-grid,
  .wr-task-grid,
  .wr-mini-grid {
    grid-template-columns: 1fr;
  }

  .wr-trust-grid > div {
    padding: 15px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--wr-border);
  }

  .wr-trust-grid > div:last-child {
    border-bottom: 0;
  }

  .wr-search-panel form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wr-mini-card,
  .wr-card,
  .wr-guide-card,
  .wr-country-card {
    transition: none !important;
  }
}


/* =========================================================
   Work & Residence 3.0 final layout repair
   ========================================================= */

/* Remove Blocksy's outer vertical content spacing on plugin-managed,
   full-width pages. This eliminates the blank band above the hero and
   below the final call-to-action without touching normal posts. */
body.wr-site-builder-active.wr-full-width {
  --content-vertical-spacing: 0px !important;
}

body.wr-site-builder-active.wr-full-width #main-container,
body.wr-site-builder-active.wr-full-width #main,
body.wr-site-builder-active.wr-full-width .site-main,
body.wr-site-builder-active.wr-full-width .content-area,
body.wr-site-builder-active.wr-full-width article.page,
body.wr-site-builder-active.wr-full-width [data-vertical-spacing*="top"],
body.wr-site-builder-active.wr-full-width [data-vertical-spacing*="bottom"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.wr-site-builder-active.wr-full-width .site-main > article,
body.wr-site-builder-active.wr-full-width .entry-content {
  border-radius: 0 !important;
}

/* A shorter, calmer homepage headline creates a premium editorial hero
   rather than a five-line billboard. */
.wr-home-hero {
  padding-top: clamp(72px, 7vw, 104px) !important;
  padding-bottom: clamp(72px, 7vw, 104px) !important;
}

.wr-home-hero h1 {
  max-width: 760px !important;
  font-size: clamp(44px, 5.2vw, 66px) !important;
  line-height: 1.035 !important;
}

/* WordPress must not split an anchor containing block elements. Cards now
   use semantic article wrappers with two ordinary links. */
.wr-task-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.wr-task-grid > .wr-card {
  width: auto !important;
  min-width: 0 !important;
  min-height: 270px !important;
  margin: 0 !important;
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  border: 1px solid rgba(208, 213, 221, 0.95) !important;
  border-top: 4px solid rgba(37, 99, 235, 0.72) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 35, 58, 0.08) !important;
  overflow: hidden !important;
}

.wr-task-grid > .wr-card h3 {
  margin: 20px 0 10px !important;
}

.wr-card-title-link,
.wr-card-title-link:visited {
  color: var(--wr-navy) !important;
  background: transparent !important;
  text-decoration: none !important;
}

.wr-card-title-link:hover,
.wr-card-title-link:focus-visible {
  color: var(--wr-blue) !important;
}

.wr-card-link,
.wr-card-link:visited {
  display: inline-flex !important;
  margin-top: auto !important;
  padding-top: 24px !important;
  color: var(--wr-blue) !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.wr-card-link:hover,
.wr-card-link:focus-visible {
  color: var(--wr-blue-dark) !important;
}

.wr-card-title-link::before,
.wr-card-title-link::after,
.wr-card-link::before,
.wr-card-link::after {
  content: none !important;
  display: none !important;
}

/* Empty guide state reads as one deliberate sentence. */
.wr-empty-state {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.28em !important;
  min-height: 82px !important;
}

.wr-empty-state strong,
.wr-empty-state span {
  display: inline !important;
}

/* Remove the residual theme canvas between the custom call-to-action and
   custom footer. */
body.wr-site-builder-active .wr-final-cta + *:empty {
  display: none !important;
}

@media (max-width: 720px) {
  .wr-task-grid {
    grid-template-columns: 1fr !important;
  }

  .wr-task-grid > .wr-card {
    min-height: 230px !important;
    padding: 24px !important;
  }

  .wr-home-hero h1 {
    font-size: clamp(40px, 12vw, 54px) !important;
  }
}


/* Version 4: complete non-article page system */
.wr-standard-intro,
.wr-about-grid,
.wr-contact-layout,
.wr-author-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.wr-standard-intro h2,
.wr-about-grid h2,
.wr-contact-reasons h2 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
}

.wr-standard-intro p,
.wr-about-grid p,
.wr-contact-reasons > p {
  color: var(--wr-muted);
  font-size: 18px;
  line-height: 1.75;
}

.wr-standard-principles,
.wr-about-facts {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--wr-border);
  border-radius: var(--wr-radius-lg);
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-standard-principles > div,
.wr-about-facts > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 13px;
  background: var(--wr-soft);
}

.wr-standard-principles strong,
.wr-about-facts span {
  color: var(--wr-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wr-standard-principles span,
.wr-about-facts strong {
  color: var(--wr-navy);
  font-size: 16px;
}

.wr-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.wr-lifecycle > div {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--wr-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-lifecycle > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--wr-blue);
  font-weight: 800;
}

.wr-lifecycle h3 { margin: 0 0 8px; font-size: 20px; }
.wr-lifecycle p { margin: 0; color: var(--wr-muted); font-size: 14px; line-height: 1.6; }

.wr-policy-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 790px);
  justify-content: center;
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.wr-policy-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--wr-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--wr-shadow-sm);
}

.wr-policy-nav > span {
  margin: 2px 8px 10px;
  color: var(--wr-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wr-policy-nav a {
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--wr-navy) !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

.wr-policy-nav a:hover { color: var(--wr-blue) !important; background: var(--wr-soft); }
.wr-policy-nav .wr-policy-back { margin-top: 10px; border-top: 1px solid var(--wr-border); border-radius: 0; padding-top: 16px; color: var(--wr-blue) !important; }

.wr-policy-content { min-width: 0; }
.wr-policy-content > section { padding: 8px 0 38px; scroll-margin-top: 115px; }
.wr-policy-content > section + section { padding-top: 38px; border-top: 1px solid var(--wr-border); }
.wr-policy-content h2 { margin: 0 0 16px; font-size: clamp(27px, 3vw, 36px); }
.wr-policy-content p,
.wr-policy-content li { color: #344054; font-size: 17px; line-height: 1.78; }
.wr-policy-content ul,
.wr-policy-content ol { padding-left: 1.25em; }

.wr-policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 42px;
}

.wr-policy-summary > div {
  display: grid;
  gap: 6px;
  padding: 17px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  background: #f3f7ff;
}
.wr-policy-summary span { color: var(--wr-blue); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wr-policy-summary strong { color: var(--wr-navy); font-size: 14px; line-height: 1.35; }

.wr-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.wr-definition-grid > div { padding: 20px; border: 1px solid var(--wr-border); border-radius: 14px; background: #fff; }
.wr-definition-grid strong { color: var(--wr-navy); font-size: 18px; }
.wr-definition-grid p { margin-bottom: 0; font-size: 15px; }

.wr-author-profile-card {
  position: sticky;
  top: 110px;
  padding: 28px;
  border: 1px solid var(--wr-border);
  border-radius: 18px;
  background: linear-gradient(145deg, #f7faff, #eef4ff);
  box-shadow: var(--wr-shadow-sm);
}
.wr-author-profile-card .wr-author-mark { width: 70px; height: 70px; margin-bottom: 24px; font-size: 28px; }
.wr-author-profile-card h2 { margin: 10px 0 12px; font-size: 30px; }
.wr-author-profile-card p { color: var(--wr-muted); line-height: 1.75; }
.wr-author-body section { padding: 0 0 32px; }
.wr-author-body section + section { padding-top: 32px; border-top: 1px solid var(--wr-border); }
.wr-author-body h2 { margin: 0 0 12px; font-size: 30px; }
.wr-author-body p { color: #344054; font-size: 17px; line-height: 1.78; }

.wr-contact-layout { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); }
.wr-contact-reasons { padding: 30px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #0a1e31, #164572); }
.wr-contact-reasons .wr-kicker { color: #a9c9ff; }
.wr-contact-reasons h2 { color: #fff; }
.wr-contact-reasons > div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.13); }
.wr-contact-reasons strong { display: block; margin-bottom: 6px; color: #fff; font-size: 17px; }
.wr-contact-reasons p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.65; }
.wr-contact-main { min-width: 0; }

.wr-footer-inner { grid-template-columns: minmax(280px, 1.55fr) repeat(4, minmax(135px, .6fr)); gap: clamp(24px, 4vw, 54px); }

.wr-system-main { min-height: 60vh; }
.wr-system-hero { padding: 72px 0; color: #fff; background: linear-gradient(135deg,#0a1e31,#174b7c); }
.wr-system-hero h1 { margin: 10px 0 14px; color: #fff; font-size: clamp(40px,5vw,64px); }
.wr-system-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.75); font-size: 19px; line-height: 1.7; }
.wr-search-results-grid { display: grid; gap: 14px; }
.wr-search-result { padding: 24px; border: 1px solid var(--wr-border); border-radius: 15px; background: #fff; box-shadow: var(--wr-shadow-sm); }
.wr-search-result h2 { margin: 0 0 8px; font-size: 25px; }
.wr-search-result p { margin: 0; color: var(--wr-muted); line-height: 1.7; }
.wr-search-result a { text-decoration: none; }
.wr-404-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }

@media (max-width: 1100px) {
  .wr-footer-inner { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .wr-footer-brand { grid-row: span 2; }
  .wr-lifecycle { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .wr-standard-intro,
  .wr-about-grid,
  .wr-contact-layout,
  .wr-author-page,
  .wr-policy-shell { grid-template-columns: 1fr; }
  .wr-policy-nav,
  .wr-author-profile-card { position: static; }
  .wr-policy-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wr-policy-nav > span,
  .wr-policy-nav .wr-policy-back { grid-column: 1 / -1; }
  .wr-policy-summary,
  .wr-definition-grid { grid-template-columns: 1fr; }
  .wr-lifecycle { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wr-policy-nav { grid-template-columns: 1fr; }
  .wr-lifecycle { grid-template-columns: 1fr; }
  .wr-footer-inner { grid-template-columns: 1fr 1fr; }
  .wr-footer-brand { grid-column: 1 / -1; grid-row: auto; }
}

.wr-source-hierarchy > div > strong,
.wr-source-hierarchy > div > span {
  grid-column: 2;
}
.wr-source-hierarchy > div > span {
  margin-top: -8px;
  color: var(--wr-muted);
  font-size: 14px;
  line-height: 1.6;
}


/* Version 5 professional brand mark */
.wr-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: none !important;
  box-shadow: none !important;
  overflow: visible;
}
.wr-brand-mark img {
  display: block;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 8px 14px rgba(16, 58, 104, .18));
}
.wr-footer-logo::before {
  content: none !important;
  display: none !important;
}
.wr-footer-logo img {
  display: block;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 9px 18px rgba(37, 99, 235, .25));
}
.wr-footer-logo span { display: inline-block; }
.wr-policy-content code {
  padding: .15em .42em;
  border: 1px solid #d6e2f5;
  border-radius: 6px;
  background: #f4f7fb;
  color: #15385f;
  font-size: .9em;
}
@media (max-width: 620px) {
  .wr-brand-mark,
  .wr-brand-mark img { width: 42px; height: 42px; }
}


/* Version 6 public-language refinements */
.wr-root-summary .wr-stat-grid strong {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.15;
}
.wr-root-summary .wr-stat-grid span {
  line-height: 1.45;
}
