/*
Theme Name: Lao PDR Justice Snapshot
Theme URI: https://github.com/justicemapping/laojusticesnapshot
Author: Justice Mapping
Description: WordPress theme foundation for the Lao PDR Justice Snapshot pilot website.
Version: 0.1.0
Text Domain: lao-snapshot
*/
@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/proxima-nova/ProximaNovaLight.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/proxima-nova/ProximaNovaRegular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/proxima-nova/ProximaNovaBold.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/proxima-nova/ProximaNovaBlack.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}
:root {
  --ink: #242628;
  --muted: #727a7d;
  --paper: #f6f3ed;
  --white: #ffffff;
  --teal: #508694;
  --teal-dark: #3f7782;
  --teal-pale: #dbecef;
  --copper: #b76637;
  --sage: #8d987a;
  --navy: #153c4b;
  --mist: #d7dedb;
  --gold: #bca451;
  --burgundy: #8a090c;
  --sidebar-line: #473f65;
  --sidebar-muted: #b9ced4;
  --sidebar-active: #faf8f3;
  --font-heading: Arial, sans-serif;
  --shadow: 0 9px 15px rgba(35, 31, 28, 0.25);
  --sidebar-width: 210px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Proxima Nova", "Segoe UI", Arial, sans-serif;
  line-height: 1.48;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.language-switcher {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 5;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(36, 38, 40, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.language-switcher a:not(.is-active) {
  color: rgba(36, 38, 40, 0.55);
}

.home-shell > .language-switcher {
  top: 30px;
  right: 31px;
  min-width: 146px;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px 17px;
  background: rgba(236, 240, 238, 0.72);
  color: rgba(14, 17, 19, 0.9);
  line-height: 1;
}

.home-shell > .language-switcher a:not(.is-active) {
  color: inherit;
}

.home-shell {
  position: relative;
  min-height: 100svh;
  padding-bottom: 44px;
  overflow-x: hidden;
}

.home-hero {
  position: relative;
  margin-bottom: clamp(38px, 2.2vw, 44px);
}

.home-hero-image {
  height: clamp(170px, 12vw, 230px);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.home-title {
  padding: clamp(52px, 3.45vw, 66px) 48px clamp(14px, 1vw, 20px);
  text-align: center;
}

.home-title h1 {
  margin: 0;
  color: #2b2b2c;
  font-size: clamp(42px, 3.2vw, 62px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-title span {
  font-weight: 300;
}

.home-title .home-title-blue {
  display: inline-block;
  white-space: nowrap;
}

.home-title strong {
  color: var(--teal);
  font-weight: 800;
}

.home-title em {
  color: var(--teal);
  font-style: normal;
  font-weight: 300;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 1.6vw, 32px);
  width: min(1616px, 100% - clamp(40px, 16vw, 308px));
  margin: 0 auto;
}

.home-card {
  display: grid;
  min-height: clamp(320px, 21.2vw, 410px);
  grid-template-rows: 1fr auto;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 24px rgba(35, 31, 28, 0.24);
  outline: none;
}

.home-card-media {
  display: grid;
  min-height: clamp(195px, 13.8vw, 280px);
  padding: clamp(18px, 1.35vw, 26px) clamp(20px, 1.45vw, 28px) clamp(14px, 1vw, 18px);
  place-items: start center;
  overflow: hidden;
}

.home-card-media img {
  width: 100%;
  height: auto;
  max-height: clamp(188px, 14.2vw, 276px);
  object-fit: contain;
  object-position: top center;
}

.home-card-title {
  display: block;
  padding: 0 clamp(24px, 1.6vw, 31px) clamp(24px, 1.5vw, 30px);
  color: #28282a;
  font-size: clamp(24px, 1.7vw, 33px);
  font-weight: 300;
  line-height: 1.08;
  text-transform: uppercase;
}

.home-card-title strong {
  display: block;
  font-weight: 900;
}

.home-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4vw, 72px);
  width: min(1120px, 100% - 72px);
  margin: clamp(28px, 2.6vw, 44px) auto 0;
}

.home-partner-logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-partner-logo--emblem {
  max-width: clamp(54px, 5vw, 86px);
  max-height: clamp(62px, 5.8vw, 96px);
}

.home-partner-logo--programme {
  max-width: min(780px, 70vw);
  max-height: clamp(52px, 5.2vw, 82px);
}

.home-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(20px, 2vw, 34px);
  color: #93979a;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-footer a {
  color: #314d9e;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--ink);
}

.home-footer .is-disabled {
  color: #c2c5c7;
  cursor: default;
}

.mini-flow {
  width: 100%;
  min-height: 220px;
  padding: 22px;
  background: #f8f7f2;
}

.mini-flow span {
  position: relative;
  display: block;
  margin-bottom: 16px;
  padding: 12px 12px 12px 22px;
  background: #e5eef0;
  color: #2d4b52;
  font-size: 13px;
  font-weight: 800;
}

.mini-flow span::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--copper);
  content: "";
  transform: translateY(-50%);
}

.roadmap-preview {
  display: grid;
  width: 100%;
  max-width: 300px;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 8px 10px;
  padding: 34px 22px;
  border-top: 4px solid #c8c8c0;
  border-bottom: 4px solid #c8c8c0;
}

.roadmap-preview span {
  height: 9px;
  background: #d7d2c7;
}

.roadmap-preview span:nth-child(5n+1) {
  background: #b7b2a8;
}

.roadmap-preview span:nth-child(5n+3),
.roadmap-preview span:nth-child(5n+4) {
  background: #c98455;
}

.site-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.site-sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-self: start;
  min-height: 100vh;
  background: var(--teal);
  color: rgba(255, 255, 255, 0.74);
}

.site-mark {
  display: grid;
  align-content: start;
  gap: 2px;
  height: 81px;
  padding: 20px 18px 0;
  border-bottom: 1px solid var(--sidebar-line);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
}

.site-mark span {
  font-size: 17px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.site-mark strong {
  font-size: 17px;
  letter-spacing: 5px;
  line-height: 1;
}

.sidebar-toggle {
  display: none;
}

.sidebar-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sidebar-toggle__icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid var(--sidebar-line);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.nav-row.has-open-subnav {
  border-bottom: 0;
}

.nav-row.is-active span {
  display: block;
  width: calc(100% + 20px);
  max-width: none;
  margin-left: -4px;
  padding: 8px 8px;
  border-radius: 4px 0 0 4px;
  background: var(--sidebar-active);
  color: var(--teal);
}

.nav-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.province-nav {
  display: grid;
  gap: 14px;
  max-height: min(520px, 100vh - 434px);
  padding: 0 12px 27px 54px;
  border-bottom: 1px solid var(--sidebar-line);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.province-nav::-webkit-scrollbar {
  width: 8px;
}

.province-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.province-nav::-webkit-scrollbar-thumb {
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.province-nav a,
.province-nav .is-disabled {
  color: var(--sidebar-muted);
}

.province-nav__province {
  font-weight: 700;
}

.province-nav a.province-nav__province:not(.is-active):not(.is-parent-active) {
  display: block;
  width: calc(100% + 24px);
  max-width: none;
  margin-left: -8px;
  padding: 4px 8px;
  border-radius: 4px 0 0 4px;
  background: transparent;
  color: #ffffff;
}

.province-nav__province.is-parent-active {
  color: var(--white);
}

.province-nav__province.is-active {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  margin-left: -12px;
  padding: 4px 8px 4px 12px;
  border-radius: 4px 0 0 4px;
  background: var(--sidebar-active);
  color: var(--teal);
}

.province-nav__province.is-disabled {
  color: rgba(225, 229, 230, 0.48);
  cursor: default;
}

.province-nav a:hover,
.province-nav a:focus-visible {
  color: var(--white);
}

.province-nav a.province-nav__province:not(.is-active):not(.is-parent-active):hover,
.province-nav a.province-nav__province:not(.is-active):not(.is-parent-active):focus-visible {
  background: transparent;
}

.province-nav__province.is-active:hover,
.province-nav__province.is-active:focus-visible {
  color: var(--teal);
}

.sidebar-support {
  display: grid;
  gap: 10px;
  padding: 18px 12px 24px;
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.sidebar-support a,
.sidebar-support .is-disabled {
  color: var(--sidebar-muted);
}

.sidebar-support a {
  font-weight: 700;
}

.sidebar-support a.is-active,
.sidebar-support a:hover,
.sidebar-support a:focus-visible {
  color: var(--white);
}

.sidebar-support a:not(.is-active),
.sidebar-support a:not(.is-active):hover,
.sidebar-support a:not(.is-active):focus-visible {
  color: var(--white);
}

.sidebar-support .is-disabled {
  color: rgba(225, 229, 230, 0.48);
  cursor: default;
}

.sidebar-support a.is-active {
  justify-self: end;
  margin-right: -12px;
  display: block;
  width: calc(100% - 22px);
  max-width: none;
  margin-left: 0;
  padding: 2px 12px 2px 8px;
  border-radius: 4px 0 0 4px;
  background: var(--sidebar-active);
  color: var(--teal);
}

.page-main {
  position: relative;
  min-width: 0;
  padding: 22px 30px 70px;
}

.page-main > .language-switcher + .content-page {
  padding-top: 0;
}

.content-page {
  max-width: 1680px;
}

.page-header {
  max-width: 860px;
  margin-bottom: 36px;
}

.situational-page .page-header {
  max-width: 1280px;
}

.services-page .page-header {
  margin-bottom: 30px;
}

.page-header-wide {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 560fr) minmax(0, 680fr) minmax(0, 280fr);
  gap: clamp(18px, 2vw, 36px);
}

.services-page .page-header-wide {
  align-items: start;
  grid-template-columns: minmax(0, 560fr) minmax(0, 640fr) minmax(210px, 280fr);
  padding-right: clamp(128px, 11vw, 180px);
}

.page-header h1,
.province-header h1 {
  margin: 0 0 6px;
  color: #202124;
  font-size: 24px;
  line-height: 1.1;
}

.page-header h2 {
  margin: 42px 0 4px;
  font-size: 22px;
}

.page-header-wide h2 {
  margin: 0 0 6px;
  line-height: 1.1;
}

.page-header p,
.page-header-wide p {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.35;
}

.page-header p:last-child {
  margin-bottom: 0;
}

.law-flow {
  width: min(980px, 100%);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.flow-kicker {
  margin-bottom: 16px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

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

.flow-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 470px;
}

.flow-stage h2 {
  position: relative;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 11px 13px 11px 22px;
  background: #dfebed;
  color: #33494e;
  font-size: 15px;
  line-height: 1.15;
}

.flow-stage h2::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--copper);
  content: "";
  transform: translateY(-50%);
}

.flow-stage ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-stage li,
.flow-stage p {
  margin: 0;
  color: #243135;
  font-size: 13px;
}

.flow-stage p {
  align-self: end;
  padding-top: 46px;
}

.section-title {
  margin: 80px 0 0;
  color: #242527;
  font-size: 34px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.snapshot-preview-card {
  display: grid;
  width: 382px;
  min-height: 480px;
  grid-template-rows: 1fr auto;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.snapshot-preview-media {
  display: grid;
  min-height: 330px;
  align-items: stretch;
  overflow: hidden;
  background: #f8f7f2;
}

.snapshot-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.snapshot-preview-card > span {
  display: block;
  padding: 22px 4px 0;
  color: #2b2b2c;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.law-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px 16px;
  color: #1f3338;
  font-size: 6px;
}

.law-preview .flow-kicker {
  margin: 0;
  font-size: 6px;
}

.law-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.law-preview h3 {
  position: relative;
  min-height: 30px;
  margin: 0 0 8px;
  padding: 8px 6px 6px 14px;
  background: #dfebed;
  font-size: 8px;
  line-height: 1.1;
}

.law-preview h3::before {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--copper);
  content: "";
  transform: translateY(-50%);
}

.law-preview p {
  margin: 0 0 8px;
  line-height: 1.25;
}

.law-preview-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  color: #345e68;
  line-height: 1.25;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 550fr) minmax(0, 1070fr);
  gap: clamp(18px, 2vw, 36px);
  align-items: start;
  margin-top: 15px;
}

.national-card,
.province-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 7px 7px 7px rgba(35, 31, 28, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.national-card:hover,
.national-card:focus-visible,
.province-card:hover,
.province-card:focus-visible,
.province-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 8px 9px 9px rgba(35, 31, 28, 0.28);
  outline: none;
}

.national-card-map:hover {
  box-shadow: 7px 7px 7px rgba(35, 31, 28, 0.25);
  transform: none;
}

.national-card {
  max-width: 550px;
  padding: clamp(10px, 1.04vw, 20px) clamp(10px, 1.04vw, 20px) 0;
}

.justice-service-card-image {
  display: block;
  overflow: hidden;
  background: #c9d1bd;
  line-height: 0;
}

.justice-service-card-image img {
  width: 100%;
  height: auto;
}

.national-card > span:not(.justice-service-card-image) {
  padding: clamp(9px, 0.9vw, 17px) 0 clamp(11px, 1.15vw, 22px);
  color: #2b2b2c;
  font-size: clamp(22px, 2.3vw, 44px);
  font-weight: 300;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.national-card em {
  position: absolute;
  top: clamp(7px, 0.73vw, 14px);
  right: clamp(7px, 0.73vw, 14px);
  display: grid;
  width: clamp(17px, 1.77vw, 34px);
  height: clamp(17px, 1.77vw, 34px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  color: #8b9295;
  font-size: clamp(14px, 1.41vw, 27px);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  place-items: center;
  background: rgba(240, 241, 241, 0.96);
  box-shadow: none;
}

.province-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 24px) clamp(8px, 1.15vw, 22px);
  justify-content: start;
}

.province-card {
  padding: clamp(5px, 0.73vw, 14px) clamp(5px, 0.73vw, 14px) 0;
}

.province-card__link {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  color: inherit;
}

.province-card__link:focus-visible {
  outline: 3px solid rgba(80, 134, 148, 0.78);
  outline-offset: 3px;
}

.province-card.is-disabled {
  background: #f0f1f1;
  box-shadow: none;
  cursor: default;
}

.province-card.is-disabled:hover,
.province-card.is-disabled:focus-visible {
  box-shadow: none;
  transform: none;
}

.province-card.is-disabled .justice-service-card-image {
  background: #d7d9da;
}

.province-card.is-disabled .justice-service-card-image img {
  filter: grayscale(1);
  opacity: 0.38;
}

.province-card > span:not(.justice-service-card-image),
.province-card__link > span:not(.justice-service-card-image) {
  padding: clamp(5px, 0.42vw, 8px) 0 clamp(5px, 0.47vw, 9px);
  color: #000;
  font-size: clamp(9px, 0.78vw, 15px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.province-card.is-disabled > span:not(.justice-service-card-image) {
  color: #8b9295;
}

.province-card em,
.province-card-info {
  position: absolute;
  top: clamp(7px, 0.68vw, 13px);
  right: clamp(7px, 0.68vw, 13px);
  display: grid;
  width: clamp(16px, 1.77vw, 34px);
  height: clamp(16px, 1.77vw, 34px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  color: rgba(108, 53, 32, 0.72);
  font-size: clamp(13px, 1.41vw, 27px);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.province-card-info {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.province-card-info:hover,
.province-card-info:focus-visible {
  background: var(--white);
  color: #6c3520;
  outline: 3px solid rgba(80, 134, 148, 0.78);
  outline-offset: 2px;
}

.province-card.is-disabled em {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  color: #a3a8aa;
}

.map-placeholder {
  width: 100%;
  padding: 24px;
}

.map-placeholder.is-compact {
  padding: 14px 14px 0;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(188, 164, 81, 0.22), transparent 46%), linear-gradient(35deg, rgba(84, 143, 156, 0.18), transparent 55%), #d8dfc9;
}

.map-placeholder.is-compact .map-frame {
  min-height: 165px;
}

.map-frame::before {
  position: absolute;
  top: 10%;
  left: 22%;
  width: 48%;
  height: 76%;
  border: 4px solid var(--burgundy);
  background: rgba(246, 243, 237, 0.72);
  clip-path: polygon(31% 0, 58% 6%, 77% 23%, 63% 44%, 84% 57%, 73% 89%, 45% 100%, 28% 79%, 12% 69%, 23% 47%, 4% 26%);
  content: "";
}

.map-placeholder.is-compact .map-frame::before {
  top: 11%;
  left: 18%;
  width: 62%;
  height: 76%;
  border-width: 2px;
}

.map-country {
  position: absolute;
  z-index: 2;
  top: 44%;
  left: 36%;
  color: var(--burgundy);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.map-placeholder.is-compact .map-country {
  display: none;
}

.map-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: rgba(188, 164, 81, 0.86);
  transform-origin: left;
}

.map-line-one {
  top: 34%;
  left: 20%;
  width: 66%;
  transform: rotate(24deg);
}

.map-line-two {
  top: 58%;
  left: 10%;
  width: 70%;
  transform: rotate(-18deg);
}

.map-line-three {
  top: 72%;
  left: 24%;
  width: 52%;
  transform: rotate(18deg);
}

.map-status {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: grid;
  gap: 4px;
  max-width: 270px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #31464b;
  font-size: 13px;
}

.map-status strong {
  color: var(--burgundy);
  font-size: 18px;
}

.lao-mapbox-shell {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  background: #c9d1bd;
}

.lao-mapbox-shell__canvas,
.lao-mapbox-shell__canvas.mapboxgl-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lao-mapbox-shell__header {
  display: none;
}

.lao-mapbox-shell__header strong {
  color: var(--burgundy);
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.lao-mapbox-shell__header span {
  color: #34494e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.lao-mapbox-shell__legend {
  display: none;
}

.lao-mapbox-shell__legend span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #3f4649;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.legend-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
  border: 2px solid transparent;
}

.legend-swatch-province {
  background: rgba(188, 164, 81, 0.45);
  border-color: rgba(111, 74, 50, 0.7);
}

.legend-swatch-selected {
  background: rgba(0, 132, 154, 0.55);
  border-color: var(--teal);
}

.legend-swatch-district {
  height: 0;
  border-top-color: #bca451;
  border-top-style: dashed;
}

.lao-mapbox-shell__status {
  position: absolute;
  z-index: 4;
  right: 18px;
  top: 18px;
  max-width: min(320px, 100% - 36px);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(35, 31, 28, 0.15);
  color: #34494e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.lao-mapbox-shell.is-ready .lao-mapbox-shell__status {
  display: none;
}

.lao-mapbox-shell.is-unavailable .lao-mapbox-shell__canvas {
  opacity: 0.2;
}

.lao-mapbox-shell.is-unavailable .lao-mapbox-shell__status {
  top: 50%;
  right: auto;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.lao-mapbox-shell .mapboxgl-ctrl-top-right {
  top: 14px;
}

.province-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 25vw, 365px);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
  margin-bottom: 14px;
}

.province-header__bar {
  display: grid;
  min-width: 0;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px clamp(18px, 2vw, 28px);
  align-items: start;
}

.province-header__copy {
  min-width: 0;
}

.province-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.province-title-row h1 {
  margin: 0;
}

.province-title-note-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 2px;
}

.province-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}

.province-tabs button,
.province-tabs a {
  max-width: 100%;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #2b2b2c;
  cursor: pointer;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
  text-transform: uppercase;
}

.province-tabs button.is-active,
.province-tabs a.is-active {
  color: var(--teal);
}

.province-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 25vw, 365px);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}

.province-section-designs,
.province-matter-management {
  display: grid;
  gap: clamp(14px, 1.2vw, 18px);
  min-width: 0;
}

.province-matter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 1.4vw, 22px);
  align-items: flex-end;
  border-bottom: 1px solid rgba(36, 38, 40, 0.18);
}

.province-matter-tabs button {
  max-width: 100%;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #2b2b2c;
  cursor: pointer;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
  text-transform: uppercase;
}

.province-matter-tabs button.is-active {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.province-matter-panel {
  min-width: 0;
}

.province-matter-panel-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.province-matter-panel-header h2 {
  margin: 0;
  color: #2b2b2c;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.matter-commentary-note-trigger,
.matter-data-note-trigger {
  flex: 0 0 auto;
}

.province-section-visual,
.matter-management-visual {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  background: var(--paper);
}

.province-section-visual img,
.matter-management-visual img {
  width: 100%;
  min-width: 980px;
  height: auto;
  background: var(--paper);
}

.province-section-stack {
  display: none;
}

.province-section-stack__heading {
  display: block;
  margin: 0;
  color: #2b2b2c;
  font-size: clamp(22px, 5.7vw, 32px);
  font-weight: 300;
  line-height: 1.08;
  text-transform: uppercase;
}

.province-section-stack__slice {
  display: block;
  width: min(100%, var(--slice-width));
  max-width: 100%;
  height: auto;
  justify-self: start;
  background: var(--paper);
}

.province-section-visual__caption,
.matter-management-visual__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.province-matter-commentary {
  display: grid;
  gap: clamp(16px, 1.8vw, 26px);
  max-width: 1120px;
  margin-top: clamp(18px, 2vw, 28px);
  padding-top: clamp(16px, 1.7vw, 24px);
  border-top: 1px solid rgba(36, 38, 40, 0.18);
}

.province-matter-commentary__copy {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

.province-matter-commentary h2,
.province-matter-commentary h3 {
  margin: 0;
  color: var(--teal);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.province-matter-commentary h2 {
  font-size: clamp(15px, 1.12vw, 18px);
}

.province-matter-commentary h3 {
  font-size: 12px;
}

.province-matter-commentary p,
.province-matter-commentary li {
  color: #3f4649;
  font-size: 14px;
  line-height: 1.48;
}

.province-matter-commentary p {
  margin: 0;
}

.province-matter-commentary ul {
  margin: 0;
  padding-left: 18px;
}

.province-matter-commentary__questions {
  display: grid;
  gap: 5px;
}

.province-matter-commentary__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.province-matter-commentary__group {
  min-width: 0;
  padding-top: 12px;
  border-top: 2px solid rgba(80, 134, 148, 0.28);
}

.province-matter-commentary__group ul {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.province-matter-commentary-note-content {
  display: none;
}

.province-map .map-frame {
  min-height: 620px;
}

.province-map .lao-mapbox-shell {
  min-height: clamp(620px, 53vw, 898px);
}

@media (min-width: 1024px) {
  body.is-map-page {
    overflow: hidden;
  }
  body.is-map-page.is-map-data-view {
    overflow: auto;
  }
  body.is-map-page .site-layout {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  body.is-map-page.is-map-data-view .site-layout {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  body.is-map-page .page-main {
    display: grid;
    min-height: 0;
    padding-bottom: 22px;
    overflow: hidden;
  }
  body.is-map-page.is-map-data-view .page-main {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
    overflow: visible;
  }
  body.is-map-page .province-page {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.is-map-page .province-page.is-showing-data-panel {
    display: block;
    min-height: auto;
  }
  body.is-map-page .province-header {
    margin-bottom: 14px;
  }
  body.is-map-page .province-section-page .province-header {
    margin-bottom: 10px;
  }
  body.is-map-page .province-section-page .province-section-visual img {
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: calc(100dvh - 124px);
  }
  body.is-map-page .province-workspace,
  body.is-map-page .province-map {
    min-height: 0;
  }
  body.is-map-page .province-map {
    height: 100%;
  }
  body.is-map-page .province-map .map-frame,
  body.is-map-page .province-map .lao-mapbox-shell {
    height: 100%;
    max-height: clamp(620px, 53vw, 898px);
    min-height: 0;
  }
  body.is-map-page .legend-panel {
    --legend-panel-top: clamp(132px, 18vh, 210px);
    position: fixed;
    top: var(--legend-panel-top);
    right: clamp(18px, 1.6vw, 30px);
    width: clamp(240px, 20vw, 365px);
    max-width: calc(100vw - var(--sidebar-width) - 72px);
    max-height: calc(100dvh - var(--legend-panel-top) - 24px);
    margin-top: 0;
    overflow: auto;
  }
}
body.has-province-personnel-popup,
body.has-matter-data-note,
body.has-office-popup {
  overflow: hidden;
}

.office-popup-dialog.province-personnel-popup-dialog {
  width: min(950px, 100vw - 24px);
}

.province-personnel-popup-dialog:focus {
  outline: none;
}

.office-popup-shell.province-personnel-popup-shell,
.office-popup-card.province-personnel-popup-card {
  width: min(950px, 100vw - 24px);
  height: min(600px, 100vh - 24px);
}

.office-popup-card.province-personnel-popup-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  overflow: auto;
  padding: 44px 75px 70px;
  background: var(--white);
  color: #000;
}

.province-personnel-popup-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 64px;
}

.province-personnel-popup-title {
  display: flex;
  align-items: center;
}

.province-personnel-popup-title h2 {
  margin: 0;
  color: #713a28;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.province-personnel-person-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.province-personnel-popup-card .office-popup-close {
  min-width: 86px;
  min-height: 42px;
  padding: 12px 22px 11px;
  border-radius: 6px;
  background: var(--teal);
  font-size: 16px;
  line-height: 1;
  text-transform: none;
}

.province-personnel-census-grid,
.province-personnel-table {
  display: grid;
  grid-template-columns: minmax(0, 365px) 170px 160px 105px;
  column-gap: 0;
}

.province-personnel-census-title {
  padding-top: 6px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
}

.province-personnel-census-title strong,
.province-personnel-census-title span,
.province-personnel-card-label span {
  display: block;
}

.province-personnel-population-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: start;
}

.province-personnel-population-card--total {
  display: block;
}

.province-personnel-person-icon {
  display: inline-grid;
  width: 22px;
  height: 28px;
  color: #806153;
}

.province-personnel-person-icon--female {
  width: 20px;
}

.province-personnel-person-icon svg {
  stroke-width: 1.45;
}

.province-personnel-card-label,
.province-personnel-column-header,
.province-personnel-table-title,
.province-personnel-service {
  color: #000;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}

.province-personnel-card-label {
  display: block;
}

.province-personnel-population-card strong {
  grid-column: 2;
  margin-top: 7px;
  color: #a2693b;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.province-personnel-population-card--total strong {
  display: block;
}

.province-personnel-divider {
  height: 2px;
  margin: 12px 0 35px;
  background: #a7a7a4;
  transform: rotate(-0.35deg);
  transform-origin: left center;
}

.province-personnel-table {
  row-gap: 30px;
}

.province-personnel-table-title {
  grid-column: 1;
  grid-row: 1;
}

.province-personnel-column-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.province-personnel-column-header--total {
  display: block;
}

.province-personnel-row {
  display: contents;
}

.province-personnel-service {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-size: 16px;
  white-space: nowrap;
}

.province-personnel-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--gold);
}

.province-personnel-swatch--2 {
  background: #c66a5f;
}

.province-personnel-swatch--3 {
  background: #536b7f;
}

.province-personnel-swatch--4 {
  background: #819778;
}

.province-personnel-row strong {
  color: #a2693b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.office-popup-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(80, 134, 148, 0.72);
}

.office-popup-overlay[hidden] {
  display: none;
}

.office-popup-dialog {
  width: min(1480px, 100%);
  max-height: min(900px, 100vh - 48px);
}

.office-popup-shell {
  max-height: min(900px, 100vh - 48px);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(35, 31, 28, 0.24);
}

.office-popup-card {
  max-height: min(900px, 100vh - 48px);
  overflow: auto;
  padding: clamp(22px, 2.8vw, 42px);
  background: var(--white);
}

.office-popup-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--teal);
}

.office-popup-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.office-popup-title-row h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
}

.office-popup-header p {
  margin: 8px 0 0;
  color: #6f4a32;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.office-popup-note-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.office-popup-note-toggle svg {
  width: 23px;
  height: 23px;
}

.office-popup-note-toggle[aria-expanded=true],
.office-popup-note-toggle:hover,
.office-popup-note-toggle:focus-visible {
  color: var(--burgundy);
}

.office-popup-close {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.office-popup-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: -10px 0 22px;
  padding-bottom: 0;
  border-bottom: 2px solid #b9c4c5;
}

.office-popup-tab {
  max-width: 190px;
  min-height: 42px;
  padding: 9px 14px 8px;
  border: 2px solid #b9c4c5;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}

.office-popup-tab[aria-selected=true] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.office-popup-tab:hover,
.office-popup-tab:focus-visible {
  border-color: var(--teal);
}

.office-popup-tab-panel[hidden] {
  display: none;
}

.office-popup-tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(22px, 3vw, 40px);
}

.office-popup-tab-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 2px solid #c8c8c3;
}

.office-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.office-popup-section + .office-popup-section {
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 2px solid #c8c8c3;
}

.office-popup-section h3 {
  margin: 0 0 16px;
  padding-bottom: 13px;
  border-bottom: 2px solid #b9b9b4;
  color: #111;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.office-popup-section dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.office-popup-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(54px, 38%);
  gap: 12px;
  align-items: start;
  min-height: 26px;
}

.office-popup-row--department-breakdown {
  grid-template-columns: 32px minmax(92px, 0.72fr) minmax(150px, 1fr);
}

.office-popup-row--department-breakdown dt {
  font-size: 11px;
  overflow-wrap: normal;
}

.office-popup-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-height: 25px;
}

.office-popup-icon img {
  display: block;
  max-width: 25px;
  max-height: 25px;
  object-fit: contain;
}

.office-popup-row dt,
.office-popup-row dd {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.office-popup-row dt {
  color: #1d1d1f;
  font-weight: 700;
}

.office-popup-row dd {
  color: #a2693b;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.office-popup-department-breakdown {
  display: grid;
  gap: 7px;
  text-align: right;
}

.office-popup-department-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(18px, 24px) minmax(58px, 62px);
  gap: 8px;
  align-items: start;
  font-size: 10.5px;
  line-height: 1.05;
  overflow-wrap: normal;
}

.office-popup-department-name {
  font-weight: 900;
  text-align: left;
}

.office-popup-department-total {
  justify-self: end;
  min-width: 18px;
  color: #a2693b;
  font-weight: 900;
  text-align: right;
}

.office-popup-department-meta {
  display: grid;
  justify-self: end;
  width: 62px;
  gap: 1px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.05;
}

.office-popup-department-gender {
  display: grid;
  grid-template-columns: auto minmax(10px, 1fr);
  gap: 3px;
  justify-items: end;
  white-space: nowrap;
}

.office-popup-department-meta strong {
  font-weight: 900;
}

.office-popup-photo {
  width: min(470px, 43%);
  margin: 34px 0 0 auto;
}

.office-popup-tab-secondary .office-popup-photo {
  grid-column: 1/-1;
  width: min(640px, 100%);
  margin: 6px 0 0 auto;
}

.office-popup-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.office-popup-note-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(80, 134, 148, 0.72);
}

.office-popup-note-overlay[hidden] {
  display: none;
}

.office-popup-note-dialog {
  width: min(420px, 100vw - 44px);
  max-height: calc(100vh - 44px);
}

.matter-data-note-dialog {
  width: min(820px, 100vw - 44px);
  max-height: min(780px, 100vh - 44px);
}

.office-popup-note-card {
  max-height: calc(100vh - 44px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(35, 31, 28, 0.24);
}

.matter-data-note-card {
  max-height: min(780px, 100vh - 44px);
  padding: clamp(24px, 3vw, 38px);
}

.office-popup-note-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid #bba795;
}

.office-popup-note-header h3 {
  margin: 0;
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.office-popup-note-close {
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: #d5c7c1;
  color: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  line-height: 20px;
  padding: 0 10px;
  text-transform: uppercase;
}

.office-popup-note-content {
  min-height: 130px;
  padding-top: 15px;
}

.office-popup-note-content p {
  margin: 0;
  color: #3f4649;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

.office-popup-note-content p + p {
  margin-top: 10px;
}

.office-popup-note-content h2,
.office-popup-note-content h3 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.office-popup-note-content h2 {
  font-size: 16px;
}

.office-popup-note-content ul {
  margin: 0;
  padding-left: 18px;
}

.office-popup-note-content li {
  color: #3f4649;
  font-size: 14px;
  line-height: 1.45;
}

.office-popup-note-content .province-matter-commentary__copy,
.office-popup-note-content .province-matter-commentary__groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.office-popup-note-content .province-matter-commentary__group {
  padding-top: 12px;
  border-top: 1px solid rgba(80, 134, 148, 0.26);
}

.action-page .page-header {
  margin-bottom: 74px;
}

.roadmap-page .page-header {
  margin-bottom: 55px;
}

.legend-panel {
  position: relative;
  z-index: 5;
  margin-top: clamp(48px, 5vw, 96px);
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.legend-panel h2 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 15px 16px 14px;
  border-bottom: 1px solid #d8d8d8;
  color: var(--teal);
  font-size: 18px;
}

.legend-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 26px 24px;
  list-style: none;
  color: #4f5558;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.legend-panel li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: center;
}

.legend-panel li.is-muted {
  color: #9e9e9e;
}

.legend-symbol,
.line {
  display: inline-block;
}

.line {
  width: 26px;
  height: 3px;
  background: #999;
}

.line.burgundy {
  height: 4px;
  background: #780002;
}

.line.gold {
  background: var(--gold);
}

.line.dashed {
  height: 0;
  border-top: 2px dashed #c8c8c8;
  background: transparent;
}

.legend-symbol-provincial-boundary,
.legend-symbol-district-boundary,
.legend-symbol-road {
  width: 24px;
  height: 0;
}

.legend-symbol-provincial-boundary {
  border-top: 4px solid #850000;
}

.legend-symbol-district-boundary {
  border-top: 2px solid #b99b3f;
}

.legend-symbol-road {
  border-top: 2px dashed #9f9f9f;
}

.legend-symbol-inactive-square,
.legend-symbol-gold-square,
.legend-symbol-blue-square,
.legend-symbol-red-square {
  width: 12px;
  height: 12px;
}

.legend-symbol-inactive-square {
  background: #bdbdbd;
}

.legend-symbol-gold-square {
  background: #b99b3f;
}

.legend-symbol-blue-square {
  background: var(--teal);
}

.legend-symbol-red-square {
  background: #b90000;
}

.province-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 34px;
}

.province-summary {
  padding: 18px;
  background: var(--teal);
  color: var(--white);
}

.province-summary h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
}

.province-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.province-summary dt {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.province-summary dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.province-summary h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.province-summary p {
  max-width: 760px;
  margin: 0;
}

.resource-framework {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.resource-column {
  padding-left: 28px;
  border-left: 2px solid #b9b9b4;
}

.resource-column h2 {
  min-height: 42px;
  margin: 0 0 18px;
  border-bottom: 2px solid #b9b9b4;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #dedbd3;
}

.resource-row span {
  color: #4b4f50;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-row strong {
  color: #a36a3d;
  font-size: 24px;
}

.issue-panel {
  max-width: 920px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.issue-panel h2 {
  margin-top: 0;
}

.issue-grid,
.status-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.issue-grid div,
.status-list div {
  display: grid;
  gap: 8px;
  min-height: 100px;
  padding: 18px;
  background: #eef2f1;
}

.issue-grid span,
.status-list span {
  color: #596063;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-grid strong,
.status-list strong {
  color: var(--teal);
  font-size: 22px;
}

.print-button {
  margin-top: 28px;
  border: 0;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
}

.action-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 1120px;
}

.matrix-column h2 {
  min-height: 50px;
  margin: 0;
  padding: 0 0 10px;
  color: #4e5354;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.matrix-column p {
  min-height: 74px;
  margin: 0 0 7px;
  padding: 10px 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.matrix-copper p {
  background: var(--copper);
}

.matrix-sage p {
  background: var(--sage);
}

.matrix-navy p {
  background: var(--navy);
}

.matrix-mist p {
  background: #bfcac8;
}

.matrix-column p:nth-of-type(n + 5) {
  opacity: 0.42;
}

.roadmap-tables {
  display: grid;
  gap: 38px;
}

.roadmap-table-wrap {
  overflow-x: auto;
}

.table-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-bottom: 2px solid #b8b8b2;
}

.table-heading h2 {
  margin: 0;
  padding: 0 0 10px;
  font-size: 18px;
  text-transform: uppercase;
}

.table-heading span {
  padding: 5px 8px;
  background: #eadb70;
  color: #8c7c18;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.roadmap-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #3f4243;
  font-size: 12px;
}

.roadmap-table th,
.roadmap-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #dedbd3;
  text-align: center;
}

.roadmap-table th:first-child {
  width: 54%;
  text-align: left;
}

.roadmap-table td {
  color: var(--copper);
  font-weight: 800;
}

.support-page {
  max-width: 960px;
}

.baseline-data-page {
  max-width: 1240px;
  min-width: 0;
}

.baseline-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(44px, 5vw, 88px);
  row-gap: 28px;
  max-width: 1180px;
}

.baseline-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 22px;
  row-gap: 14px;
  min-height: 58px;
}

.baseline-file__primary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  column-gap: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.baseline-file__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.baseline-file__icon {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 42px;
  align-items: end;
  justify-items: center;
  padding-bottom: 7px;
  background: #ecebea;
  border: 1px solid #cbc8c3;
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.baseline-file__icon::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-bottom: 11px solid #d3d0ca;
  border-left: 11px solid transparent;
}

.baseline-file__icon::after {
  content: attr(data-file-type);
  display: grid;
  width: 28px;
  height: 17px;
  align-items: center;
  justify-items: center;
  background: var(--teal);
}

.baseline-file__button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.baseline-file__primary:hover,
.baseline-file__primary:focus-visible,
.baseline-file__button:hover,
.baseline-file__button:focus-visible {
  color: var(--teal-dark);
}

.baseline-file__button:hover,
.baseline-file__button:focus-visible {
  background: var(--teal-dark);
  color: var(--white);
}

.methodology-page {
  max-width: 1120px;
  min-width: 0;
}

.methodology-page .page-header {
  max-width: 880px;
}

.methodology-page .page-header a,
.methodology-section a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
}

.methodology-body {
  display: grid;
  gap: 34px;
  margin-top: 34px;
  min-width: 0;
}

.methodology-section {
  min-width: 0;
  padding-top: 28px;
  border-top: 2px solid #d8d8d2;
}

.methodology-section h2 {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  text-transform: uppercase;
}

.methodology-section h3 {
  margin: 26px 0 10px;
  color: var(--teal);
  font-size: 20px;
  line-height: 1.2;
}

.methodology-section p,
.methodology-section li,
.methodology-table {
  color: #3f4649;
  font-size: 18px;
  line-height: 1.55;
}

.methodology-section p {
  max-width: 880px;
  margin: 0 0 16px;
}

.methodology-process-list {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.methodology-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.methodology-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.methodology-table th,
.methodology-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #dedbd3;
  text-align: left;
  vertical-align: top;
}

.methodology-table thead th {
  color: #1f3338;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.methodology-table tbody th {
  width: 190px;
  color: var(--teal);
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.methodology-timeline-table {
  min-width: 1040px;
  table-layout: fixed;
}

.methodology-timeline-table th,
.methodology-timeline-table td {
  border: 1px solid #1f1f1f;
  padding: 7px 8px;
  color: #111;
  font-size: 13px;
  line-height: 1.12;
}

.methodology-timeline-table thead th {
  background: var(--white);
  color: #111;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

.methodology-timeline-table thead th:first-child {
  width: 96px;
}

.methodology-timeline-table thead th:nth-child(2) {
  width: 230px;
}

.methodology-timeline-table tbody th {
  width: auto;
  color: #111;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.12;
  text-transform: none;
}

.methodology-timeline-table tbody td:not(:first-child) {
  height: 36px;
}

.methodology-timeline-table .is-active {
  background: #f2ddcc;
}

.empty-panel,
.library-list {
  display: grid;
  min-height: 220px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
  place-items: center start;
}

.empty-panel span {
  color: var(--teal);
  font-size: 24px;
  font-weight: 800;
}

.library-list a {
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 1380px) {
  .home-sections {
    width: min(1180px, 100% - 72px);
    gap: 26px;
  }
}
@media (max-width: 1439px) {
  .province-header__bar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1120px) {
  .services-page .page-header-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: clamp(128px, 14vw, 160px);
  }
  .province-section-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .province-section-page .province-tabs {
    justify-content: flex-start;
    justify-self: start;
  }
  .province-section-page .province-section-designs,
  .province-section-page .province-section-visual {
    width: 100%;
    max-width: 100%;
  }
  .province-section-page .province-section-visual {
    overflow-x: hidden;
  }
  .province-section-page .province-section-visual > img {
    display: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .province-section-page .province-section-stack {
    display: grid;
    width: 100%;
    max-width: 760px;
    gap: clamp(18px, 4vw, 30px);
    justify-items: start;
  }
  .province-section-designs-matter-management .province-section-stack,
  .province-section-designs-judgement-notary .province-section-stack {
    justify-items: center;
  }
  .province-section-designs-matter-management .province-section-stack__heading,
  .province-section-designs-judgement-notary .province-section-stack__heading {
    justify-self: start;
  }
  .province-section-designs-matter-management .province-section-stack__slice,
  .province-section-designs-judgement-notary .province-section-stack__slice {
    justify-self: center;
  }
}
@media (max-width: 1023px) {
  .home-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(780px, 100% - 56px);
  }
  .home-card {
    min-height: clamp(330px, 42vw, 420px);
  }
  .home-card-media {
    min-height: clamp(214px, 28vw, 300px);
  }
  .site-layout {
    display: block;
  }
  .site-sidebar {
    position: sticky;
    min-height: 0;
  }
  .site-mark {
    justify-items: start;
    padding: 18px 70px 16px 20px;
    text-align: left;
  }
  .site-mark span,
  .site-mark strong {
    width: fit-content;
  }
  .sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 18px;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    padding: 0;
  }
  .sidebar-nav {
    display: none;
  }
  .sidebar-nav[data-open] {
    display: block;
  }
  .province-nav {
    max-height: min(56vh, 440px);
  }
  .sidebar-support {
    display: none;
  }
  .sidebar-nav[data-open] + .sidebar-support {
    display: grid;
  }
  .page-main {
    padding: 34px 24px 60px;
  }
  .province-header {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .province-header__bar {
    grid-template-columns: 1fr;
  }
  .services-layout,
  .province-workspace,
  .province-data {
    grid-template-columns: 1fr;
  }
  .services-layout {
    gap: 30px;
  }
  .national-card {
    max-width: 550px;
  }
  .province-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 22px 18px;
  }
  .province-card {
    padding: 12px 12px 0;
  }
  .legend-panel {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
  }
  .page-header-wide,
  .flow-grid,
  .resource-framework,
  .action-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .office-popup-grid {
    grid-template-columns: 1fr;
  }
  .office-popup-card.province-personnel-popup-card {
    padding-right: 36px;
    padding-left: 36px;
  }
  .province-personnel-census-grid,
  .province-personnel-table {
    grid-template-columns: minmax(0, 330px) minmax(132px, 1fr) minmax(132px, 1fr) minmax(96px, 0.7fr);
  }
  .province-matter-commentary__groups {
    grid-template-columns: 1fr;
  }
  .office-popup-tab-layout,
  .office-popup-tab-secondary {
    grid-template-columns: 1fr;
  }
  .office-popup-tab-secondary {
    padding-left: 0;
    border-left: 0;
  }
  .office-popup-tabs {
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 0;
  }
  .office-popup-tab {
    flex: 1 1 160px;
    max-width: none;
    border: 2px solid #b9c4c5;
    border-radius: 4px;
  }
  .office-popup-section + .office-popup-section {
    padding-left: 0;
    border-left: 0;
  }
  .office-popup-photo {
    width: min(520px, 100%);
    margin-left: 0;
  }
}
@media (max-width: 820px) {
  .language-switcher {
    top: 12px;
    right: 16px;
  }
  .home-shell > .language-switcher {
    top: 20px;
    right: 18px;
    min-width: 132px;
    padding: 15px 18px 14px;
  }
  .home-hero-image {
    height: 170px;
  }
  .home-title {
    padding: 70px 22px 20px;
    text-align: left;
  }
  .home-title h1 {
    font-size: clamp(31px, 8.6vw, 42px);
  }
  .home-sections,
  .baseline-data-grid,
  .page-header-wide,
  .flow-grid,
  .resource-framework,
  .action-matrix-grid,
  .issue-grid,
  .status-list {
    grid-template-columns: 1fr;
  }
  .services-page .page-header-wide {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .home-sections {
    width: calc(100% - 32px);
  }
  .baseline-file {
    grid-template-columns: minmax(0, 1fr);
  }
  .province-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .home-card {
    min-height: clamp(350px, 112vw, 440px);
  }
  .home-card-media {
    min-height: clamp(228px, 74vw, 310px);
  }
  .home-card-title {
    font-size: clamp(25px, 7vw, 32px);
  }
  .home-partners {
    flex-wrap: wrap;
    gap: 20px 28px;
    width: calc(100% - 32px);
    margin-top: 34px;
  }
  .home-partner-logo--emblem {
    max-width: 76px;
    max-height: 88px;
  }
  .home-partner-logo--programme {
    max-width: min(100%, 520px);
    max-height: none;
  }
  .home-footer {
    flex-wrap: wrap;
    padding: 0 18px;
  }
  .page-header p,
  .page-header-wide p {
    font-size: 18px;
  }
  .law-flow {
    padding: 16px;
  }
  .flow-stage {
    min-height: 0;
  }
  .map-frame,
  .province-map .map-frame,
  .lao-mapbox-shell,
  .province-map .lao-mapbox-shell {
    min-height: 360px;
  }
  .lao-mapbox-shell__header {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
  .lao-mapbox-shell__legend {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
  .lao-mapbox-shell .mapboxgl-ctrl-top-right {
    top: 72px;
  }
  .map-country {
    left: 28%;
    font-size: 28px;
  }
  .province-header {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .province-tabs {
    justify-content: flex-end;
  }
  .office-popup-overlay {
    padding: 12px;
  }
  .province-personnel-popup-overlay {
    place-items: start center;
    overflow-y: auto;
  }
  .office-popup-dialog,
  .office-popup-shell,
  .office-popup-card {
    max-height: calc(100vh - 24px);
  }
  .office-popup-card {
    padding: 18px;
  }
  .office-popup-header {
    display: grid;
  }
  .office-popup-close {
    justify-self: start;
  }
  .office-popup-card.province-personnel-popup-card {
    height: auto;
    min-height: min(600px, 100vh - 24px);
    padding: 28px;
  }
  .province-personnel-popup-header {
    gap: 18px;
    margin-bottom: 44px;
  }
  .province-personnel-popup-title h2 {
    font-size: 26px;
  }
  .province-personnel-census-grid,
  .province-personnel-table {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
  .province-personnel-population-card,
  .province-personnel-column-header {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .province-personnel-divider {
    margin: 26px 0 28px;
  }
  .province-personnel-table {
    display: block;
  }
  .province-personnel-column-header {
    display: none;
  }
  .province-personnel-table-title {
    margin-bottom: 24px;
  }
  .province-personnel-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(26px, auto));
    gap: 8px;
    align-items: center;
  }
  .province-personnel-row + .province-personnel-row {
    margin-top: 20px;
  }
  .province-personnel-service {
    gap: 12px;
    font-size: 14px;
    white-space: normal;
  }
  .province-personnel-row strong {
    font-size: 16px;
    text-align: right;
  }
}
@media (max-width: 520px) {
  .province-grid {
    grid-template-columns: 1fr;
  }
  .national-card {
    padding: 14px 14px 0;
  }
  .national-card > span:not(.justice-service-card-image) {
    font-size: 34px;
  }
}
@media print {
  .site-sidebar,
  .language-switcher,
  .province-tabs,
  .print-button {
    display: none !important;
  }
  .site-layout,
  .province-workspace,
  .province-data {
    display: block;
  }
  .page-main {
    padding: 0;
  }
  .content-page {
    max-width: none;
  }
}
