/*
 * JY WaterTech v2 shared site shell.
 * The homepage stylesheet supplies the reference-specific sections; this file
 * contains only the global foundation and reusable inner-page components.
 */

:root {
  --home-v2-blue-950: #00256e;
  --home-v2-blue-900: #003997;
  --home-v2-blue-800: #0047a8;
  --home-v2-blue-700: #0054b8;
  --home-v2-text: #26354a;
  --home-v2-muted: #667085;
  --home-v2-line: #dce5ef;
  --home-v2-pale: #f5f9fd;
  --home-v2-aqua: #16b8af;
  --home-v2-aqua-pale: #e9f8f7;
  --home-v2-white: #fff;
  --home-v2-container: 1332px;
  --jy-header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-padding-top: calc(var(--jy-header-height) + 24px);
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: #fefefe;
  color: var(--home-v2-text);
  font-family: "Be Vietnam Pro", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.mobile-nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  max-width: 100%;
  margin: 0;
}

a {
  color: var(--home-v2-blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--home-v2-blue-950);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--home-v2-aqua);
  outline-offset: 3px;
}

::selection {
  background: var(--home-v2-aqua-pale);
  color: var(--home-v2-blue-950);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: 100%;
  margin: 0 0 0.65em;
  color: var(--home-v2-blue-950);
  font-family: "Be Vietnam Pro", Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.25em;
}

ul,
ol {
  margin: 0 0 1.4em;
  padding-inline-start: 1.35em;
}

strong,
b {
  font-weight: 700;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--home-v2-line);
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--home-v2-line);
  text-align: start;
  vertical-align: top;
}

th {
  background: var(--home-v2-pale);
  color: var(--home-v2-blue-950);
  font-size: 0.82rem;
  font-weight: 700;
}

.container {
  width: min(calc(100% - 104px), var(--home-v2-container));
  max-width: 100%;
  margin-inline: auto;
}

.container--narrow {
  max-width: 820px;
}

.site-main {
  min-height: 55vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: #fff;
  color: var(--home-v2-blue-950);
  font-weight: 700;
}

.skip-link {
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Shared header and navigation structure. */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--jy-header-height);
  border-bottom: 1px solid var(--home-v2-line);
  background: #fff;
}

.home-v2-header__inner,
.site-header > .container {
  position: relative;
  display: flex;
  min-height: var(--jy-header-height);
  align-items: center;
}

.site-branding {
  min-width: 0;
  flex: 0 1 auto;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 238px;
  max-height: 42px;
}

.primary-nav {
  min-width: 0;
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}

.primary-nav li {
  position: relative;
  margin: 0;
}

.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #14243a;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > ul > li > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--home-v2-blue-700);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li > a:focus-visible::after,
.primary-nav > ul > .current-menu-item > a::after,
.primary-nav > ul > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: -1rem;
  z-index: 10;
  display: grid;
  min-width: 240px;
  padding: 0.45rem;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: #fff;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.primary-nav .sub-menu a {
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--home-v2-line);
  white-space: normal;
}

.primary-nav .sub-menu li:last-child a {
  border-bottom: 0;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: transparent;
  color: var(--home-v2-blue-950);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle:hover {
  border-color: var(--home-v2-blue-700);
  color: var(--home-v2-blue-700);
}

.menu-toggle__line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentcolor;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-of-type(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Shared controls. */

.button,
button.button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  max-width: 100%;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--home-v2-blue-900);
  border-radius: 6px;
  background: var(--home-v2-blue-900);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  border-color: var(--home-v2-blue-700);
  background: var(--home-v2-blue-700);
  color: #fff;
}

button[disabled],
input[type="submit"][disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Featured images and development placeholders. */

.visual-media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.visual-media > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.visual-media__placeholder {
  --media-bg: #d9e8f4;
  --media-mid: #a8c3d7;
  --media-dark: #7198b6;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 1px solid rgb(0 57 151 / 14%);
  background: linear-gradient(135deg, #f6faff 0%, var(--media-bg) 62%, #c5d9e8 100%);
  color: #fff;
}

.visual-media--tone-02 .visual-media__placeholder {
  --media-bg: #d7e7f1;
  --media-mid: #9dbed1;
  --media-dark: #668fac;
}

.visual-media--tone-03 .visual-media__placeholder {
  --media-bg: #d4e7e9;
  --media-mid: #94c1c2;
  --media-dark: #528f91;
}

.visual-media--tone-05 .visual-media__placeholder {
  --media-bg: #dcebf1;
  --media-mid: #a6c5d1;
  --media-dark: #6b96a8;
}

.visual-media__placeholder::before {
  position: absolute;
  inset: 8% 7% 19%;
  z-index: -2;
  border: 1px solid rgb(0 57 151 / 13%);
  content: "";
}

.visual-media__placeholder::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 22%;
  background: rgb(0 37 110 / 82%);
  content: "";
}

.visual-media__code,
.visual-media__index {
  position: absolute;
  z-index: 3;
  top: clamp(0.9rem, 2vw, 1.4rem);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

.visual-media__code {
  left: clamp(0.9rem, 2vw, 1.4rem);
  font-size: 0.61rem;
}

.visual-media__index {
  right: clamp(0.9rem, 2vw, 1.4rem);
  font-size: 0.68rem;
}

.visual-media__frame {
  position: absolute;
  inset: 18% 8% 23%;
  z-index: 1;
  display: block;
  border-bottom: 1px solid rgb(0 57 151 / 24%);
}

.visual-media__frame::before,
.visual-media__frame::after {
  position: absolute;
  content: "";
}

.visual-media__frame::before {
  top: 21%;
  right: 3%;
  left: 4%;
  height: 1px;
  background: rgb(0 57 151 / 16%);
}

.visual-media__frame::after {
  top: 21%;
  bottom: 0;
  left: 49%;
  width: 1px;
  background: rgb(0 57 151 / 13%);
}

.visual-media__frame i {
  position: absolute;
  bottom: 0;
  display: block;
  border: 1px solid rgb(0 57 151 / 18%);
  background: var(--media-mid);
}

.visual-media__frame i:nth-child(1) {
  left: 5%;
  width: 19%;
  height: 48%;
  background: var(--media-dark);
}

.visual-media__frame i:nth-child(2) {
  left: 29%;
  width: 40%;
  height: 68%;
  clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 100%);
}

.visual-media__frame i:nth-child(3) {
  right: 7%;
  width: 17%;
  height: 39%;
  background: var(--media-dark);
}

.visual-media__label {
  position: absolute;
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.85rem, 1.8vw, 1.35rem);
  left: clamp(0.9rem, 2vw, 1.5rem);
  z-index: 3;
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.visual-media__label strong {
  color: #fff;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 600;
  line-height: 1.3;
}

.visual-media__label small {
  color: rgb(255 255 255 / 72%);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.52rem, 0.8vw, 0.62rem);
  line-height: 1.45;
}

/* Inner-page v2 system. */

.site-v2 {
  min-height: 100%;
  background: #fff;
  color: var(--home-v2-text);
}

.site-v2 :where(h1, h2, h3, p, a) {
  overflow-wrap: break-word;
}

.site-v2__breadcrumbs {
  border-bottom: 1px solid var(--home-v2-line);
  background: transparent;
}

.site-v2__breadcrumbs .breadcrumbs {
  display: flex;
  min-height: 48px;
  margin: 0;
  color: var(--home-v2-muted);
  font-size: 0.66rem;
  line-height: 1.45;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-v2__breadcrumbs .breadcrumbs a {
  color: var(--home-v2-muted);
  text-decoration: none;
}

.site-v2__breadcrumbs .breadcrumbs a:hover,
.site-v2__breadcrumbs .breadcrumbs a:focus-visible {
  color: var(--home-v2-blue-700);
}

.site-v2__page-intro {
  border-bottom: 1px solid var(--home-v2-line);
  background: var(--home-v2-pale);
}

.site-v2__page-intro-inner {
  display: grid;
  min-height: 300px;
  padding-block: 2rem;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.site-v2__page-intro-inner--without-media {
  display: flex;
  min-height: 258px;
  padding-block: 3.35rem 3.15rem;
  flex-direction: column;
  justify-content: center;
}

.site-v2__page-intro-copy {
  min-width: 0;
}

.site-v2__page-intro-media {
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: #edf4fa;
}

.site-v2__meta {
  display: flex;
  margin: 0.95rem 0 0;
  padding: 0;
  color: var(--home-v2-muted);
  font-size: 0.66rem;
  line-height: 1.5;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
}

.site-v2__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--home-v2-blue-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-v2__page-intro h1,
.site-v2__error h1,
.site-v2__error-card h1 {
  max-width: 900px;
  margin: 0 0 0.75rem;
  color: var(--home-v2-blue-950);
  font-size: clamp(2.25rem, 2.9vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.site-v2__lead {
  max-width: 800px;
  margin: 0;
  color: var(--home-v2-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.site-v2__section {
  padding-block: 4rem;
  border-bottom: 1px solid var(--home-v2-line);
  background: #fff;
}

.site-v2__section:last-child {
  border-bottom: 0;
}

.site-v2__section--muted {
  background: var(--home-v2-pale);
}

.site-v2__section-heading {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-v2__section-heading > div {
  max-width: 780px;
}

.site-v2__section-heading > p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--home-v2-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-v2__section-heading h2,
.site-v2__split h2 {
  margin: 0 0 0.55rem;
  color: var(--home-v2-blue-950);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-v2__section-heading > p:not(.site-v2__eyebrow),
.site-v2__split p {
  color: var(--home-v2-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.site-v2__section-heading > p:last-child,
.site-v2__split p:last-child {
  margin-bottom: 0;
}

.site-v2__split {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-v2__split > * {
  min-width: 0;
}

.site-v2__media {
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: #edf4fa;
}

.site-v2__media > img {
  object-fit: cover;
}

.site-v2__card-grid,
.site-v2__article-grid {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.site-v2__card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-v2__article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-v2__card,
.site-v2__article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: #fff;
  flex-direction: column;
}

.site-v2__card--text {
  padding: 1.25rem;
}

.site-v2__card-index {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--home-v2-aqua);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.site-v2__card--text h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-v2__card--text p {
  color: var(--home-v2-muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.site-v2__card--text strong,
.site-v2__card-body > strong {
  margin-top: auto;
  color: var(--home-v2-blue-700);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.5;
}

.site-v2__card-media,
.site-v2__article-media {
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--home-v2-line);
  background: #edf4fa;
}

.site-v2__card-media-link,
.site-v2__article-media-link {
  display: block;
  border-bottom: 0;
  background: #edf4fa;
  text-decoration: none;
}

.site-v2__card-media > img,
.site-v2__article-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-v2__card-body,
.site-v2__article-card-body {
  display: flex;
  min-width: 0;
  padding: 1.15rem;
  flex: 1 1 auto;
  flex-direction: column;
}

.site-v2__card-body h2,
.site-v2__card-body h3,
.site-v2__article-card h2,
.site-v2__article-card h3 {
  margin: 0 0 0.55rem;
  color: var(--home-v2-blue-950);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.site-v2__card-body h2 a,
.site-v2__card-body h3 a,
.site-v2__article-card h2 a,
.site-v2__article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.site-v2__card-body p,
.site-v2__article-card p {
  margin: 0 0 0.9rem;
  color: var(--home-v2-muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.site-v2__text-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--home-v2-blue-700);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  align-items: center;
  gap: 0.35rem;
}

.site-v2__text-link:hover,
.site-v2__text-link:focus-visible {
  color: var(--home-v2-blue-950);
}

.site-v2__content,
.entry-content,
.site-v2__prose {
  min-width: 0;
  color: var(--home-v2-text);
  font-size: 0.94rem;
  line-height: 1.8;
}

.site-v2__content > *,
.entry-content > *,
.site-v2__prose > * {
  max-width: 100%;
}

.site-v2__content > *:first-child,
.entry-content > *:first-child,
.site-v2__prose > *:first-child {
  margin-top: 0;
}

.site-v2__content > *:last-child,
.entry-content > *:last-child,
.site-v2__prose > *:last-child {
  margin-bottom: 0;
}

.site-v2__content h2,
.site-v2__content h3,
.site-v2__content h4,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.site-v2__prose h2,
.site-v2__prose h3,
.site-v2__prose h4 {
  margin-top: 1.8em;
}

.site-v2__content h2,
.entry-content h2,
.site-v2__prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.site-v2__content h3,
.entry-content h3,
.site-v2__prose h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.site-v2__content a,
.entry-content a,
.site-v2__prose a {
  font-weight: 600;
}

.site-v2__content blockquote,
.entry-content blockquote,
.site-v2__prose blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.3rem;
  border-left: 3px solid var(--home-v2-aqua);
  color: var(--home-v2-blue-950);
}

.site-v2__content figure,
.site-v2__content .wp-block-image,
.entry-content figure,
.entry-content .wp-block-image,
.site-v2__prose figure,
.site-v2__prose .wp-block-image {
  margin-block: 2rem;
}

.site-v2__content figcaption,
.entry-content figcaption,
.site-v2__prose figcaption {
  margin-top: 0.55rem;
  color: var(--home-v2-muted);
  font-size: 0.7rem;
  text-align: center;
}

.site-v2__content .wp-block-table,
.site-v2__content > table,
.entry-content .wp-block-table,
.entry-content > table,
.site-v2__prose .wp-block-table,
.site-v2__prose > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Wastewater cases use the classic editor as a focused reading page. */
.home-v2-page .site-v2--case-article .container--narrow {
  width: min(calc(100% - 104px), 860px);
  max-width: 860px;
}

.site-v2--case-article .site-v2__case-reading {
  display: grid;
  width: min(calc(100% - 104px), var(--home-v2-container));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 860px) minmax(0, 1fr);
}

.site-v2--case-article .site-v2__case-reading > .container--narrow {
  width: 100%;
  max-width: 860px;
  grid-column: 2;
}

.case-toc {
  width: 180px;
  margin-right: 3rem;
  align-self: stretch;
  justify-self: end;
}

.case-toc__nav {
  position: sticky;
  top: calc(var(--jy-header-height) + 2rem);
  max-height: calc(100vh - var(--jy-header-height) - 3rem);
  overflow-y: auto;
  padding-left: 1rem;
  border-left: 2px solid var(--home-v2-line);
}

.case-toc__label {
  margin: 0 0 0.8rem;
  color: var(--home-v2-blue-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-toc__list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.65rem;
  list-style: none;
}

.case-toc__list a {
  color: var(--home-v2-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.case-toc__list a:hover,
.case-toc__list a:focus-visible {
  color: var(--home-v2-blue-700);
}

.case-toc__toggle {
  display: none;
}

.site-v2--case-article .site-v2__article-section {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.site-v2--case-article .site-v2__prose {
  font-size: 1rem;
  line-height: 1.9;
}

.site-v2--case-article .site-v2__prose > p {
  margin-block: 0 1.45em;
}

.site-v2--case-article .site-v2__prose h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.site-v2--case-article .site-v2__prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
}

.site-v2--case-article .site-v2__prose ul,
.site-v2--case-article .site-v2__prose ol {
  margin-block: 1.25em 1.5em;
}

.site-v2--case-article .site-v2__prose figure,
.site-v2--case-article .site-v2__prose .wp-block-image {
  margin-block: 2.6rem;
}

.site-v2--case-article .site-v2__prose .wp-block-table,
.site-v2--case-article .site-v2__prose > table {
  margin-block: 2.2rem;
}

/* Knowledge articles use a dedicated, long-form reading layout. */
.home-v2-page .site-v2--article .article-v2__breadcrumbs {
  display: flex;
  width: min(calc(100% - 104px), 800px);
  max-width: 800px;
  min-height: 0;
  margin-inline: auto;
  padding-top: clamp(1.65rem, 3vw, 2.4rem);
  border: 0;
  background: transparent;
  color: var(--home-v2-muted);
  font-size: 0.66rem;
  line-height: 1.45;
  align-items: center;
}

.home-v2-page .site-v2--article .article-v2__breadcrumbs > .breadcrumbs {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.site-v2--article .article-v2__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.site-v2--article .article-v2__breadcrumbs a:hover,
.site-v2--article .article-v2__breadcrumbs a:focus-visible {
  color: var(--home-v2-blue-700);
}

.site-v2--article .article-v2__header {
  border-bottom: 1px solid var(--home-v2-line);
  background: #fff;
}

.home-v2-page .site-v2--article .article-v2__header-inner {
  width: min(calc(100% - 104px), 800px);
  max-width: 800px;
  margin-inline: auto;
  padding-block: 0.75rem clamp(2.25rem, 4vw, 3.25rem);
}

.site-v2--article .article-v2__header h1 {
  max-width: 720px;
  margin: 0;
  color: var(--home-v2-blue-950);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.042em;
  line-height: 1.18;
}

.site-v2--article .article-v2__meta {
  display: flex;
  margin: 1.2rem 0 0;
  padding: 0;
  color: var(--home-v2-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.5;
  text-transform: uppercase;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
}

.site-v2--article .article-v2__header h1 + .article-v2__meta {
  margin-top: 0.8rem;
}

.site-v2--article .article-v2__featured-media {
  max-width: 1120px;
  margin: clamp(1.75rem, 4vw, 3.5rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: #edf4fa;
}

.site-v2--article .article-v2__featured-media > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.site-v2--article .article-v2__featured-media figcaption {
  padding: 0.65rem 0.9rem;
  background: #fff;
  color: var(--home-v2-muted);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

.home-v2-page .site-v2--article .article-v2__reading {
  width: min(calc(100% - 104px), 800px);
  margin-inline: auto;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.home-v2-page .site-v2--article .article-v2__reading--has-toc.is-toc-ready {
  display: grid;
  width: min(calc(100% - 104px), 960px);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.75rem);
  grid-template-columns: 180px minmax(0, 720px);
}

.site-v2--article .article-v2__toc {
  position: sticky;
  top: calc(var(--jy-header-height) + 2rem);
  max-height: calc(100vh - var(--jy-header-height) - 3rem);
  min-width: 0;
  overflow-y: auto;
  padding-left: 1rem;
  border-left: 2px solid var(--home-v2-line);
  align-self: start;
}

.site-v2--article .article-v2__toc-label {
  margin: 0 0 0.8rem;
  color: var(--home-v2-blue-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-v2--article .article-v2__toc-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.65rem;
  list-style: none;
}

.site-v2--article .article-v2__toc-list [data-toc-level="h3"] {
  padding-left: 0.65rem;
}

.site-v2--article .article-v2__toc a {
  color: var(--home-v2-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.site-v2--article .article-v2__toc a:hover,
.site-v2--article .article-v2__toc a:focus-visible {
  color: var(--home-v2-blue-700);
}

.site-v2--article .article-v2__toc-toggle {
  display: none;
}

.site-v2--article .article-v2__content {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  color: var(--home-v2-text);
  font-size: 1rem;
  line-height: 1.9;
}

.site-v2--article .article-v2__content > p {
  margin-block: 0 1.45em;
}

.site-v2--article .article-v2__content h2,
.site-v2--article .article-v2__content h3,
.site-v2--article .article-v2__content h4 {
  margin-top: 2em;
}

.site-v2--article .article-v2__content h2 {
  margin-bottom: 0.7em;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.3;
}

.site-v2--article .article-v2__content h3 {
  margin-bottom: 0.65em;
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  line-height: 1.38;
}

.site-v2--article .article-v2__content h4 {
  margin-bottom: 0.6em;
  font-size: 1.06rem;
  line-height: 1.45;
}

.site-v2--article .article-v2__content :where(ul, ol) {
  margin-block: 1.25em 1.5em;
  padding-inline-start: 1.4em;
}

.site-v2--article .article-v2__content li + li {
  margin-top: 0.45em;
}

.site-v2--article .article-v2__content figure,
.site-v2--article .article-v2__content .wp-block-image {
  margin-block: 2.6rem;
}

.site-v2--article .article-v2__content .wp-block-table,
.site-v2--article .article-v2__content > table {
  margin-block: 2.2rem;
}

.site-v2--article .article-v2__related-section {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid var(--home-v2-line);
  background: var(--home-v2-pale);
}

.site-v2--article .article-v2__related-section .site-v2__section-heading {
  margin-bottom: 1.5rem;
}

.site-v2--article .article-v2__cta {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 104px), 960px);
  min-height: 0;
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: var(--home-v2-pale);
}

.site-v2--article .article-v2__cta::after {
  display: none;
}

.site-v2--article .article-v2__cta > .container {
  display: flex;
  min-height: 0;
  padding-block: 1.5rem;
  color: var(--home-v2-text);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-v2--article .article-v2__cta h2 {
  margin: 0 0 0.25rem;
  color: var(--home-v2-blue-950);
  font-size: 1.15rem;
  line-height: 1.35;
}

.site-v2--article .article-v2__cta p {
  max-width: 680px;
  margin: 0;
  color: var(--home-v2-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-v2--article .article-v2__cta .home-v2__button {
  min-width: 190px;
  border-color: var(--home-v2-blue-700);
  background: var(--home-v2-blue-700);
  color: #fff;
}

.site-v2--article .article-v2__cta .home-v2__button:hover,
.site-v2--article .article-v2__cta .home-v2__button:focus-visible {
  border-color: var(--home-v2-blue-900);
  background: var(--home-v2-blue-900);
  color: #fff;
}

@media (max-width: 1320px) {
  .site-v2--case-article .site-v2__case-reading {
    display: block;
    width: auto;
  }

  .site-v2--case-article .site-v2__case-reading > .container--narrow {
    width: min(calc(100% - 48px), 860px);
  }

  .site-v2--case-article .case-toc {
    width: min(calc(100% - 48px), 860px);
    margin: 0 auto 1.5rem;
  }

  .site-v2--case-article .case-toc__nav {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding: 0.9rem 1rem;
    border: 1px solid var(--home-v2-line);
    border-radius: 6px;
    background: var(--home-v2-pale);
  }

  .site-v2--case-article .case-toc__label {
    margin-bottom: 0.55rem;
  }
}

@media (max-width: 1180px) {
  .home-v2-page .site-v2--article .article-v2__reading--has-toc.is-toc-ready {
    width: min(calc(100% - 48px), 960px);
    gap: 2rem;
    grid-template-columns: 180px minmax(0, 720px);
  }

  .site-v2--article .article-v2__toc {
    top: calc(var(--jy-header-height) + 1.5rem);
  }

  .home-v2-page .site-v2--article .article-v2__breadcrumbs {
    width: min(calc(100% - 48px), 800px);
  }

  .home-v2-page .site-v2--article .article-v2__header-inner {
    width: min(calc(100% - 48px), 800px);
  }
}

@media (max-width: 860px) {
  .home-v2-page .site-v2--article .article-v2__reading {
    width: min(calc(100% - 48px), 800px);
  }

  .home-v2-page .site-v2--article .article-v2__reading--has-toc.is-toc-ready {
    display: block;
  }

  .site-v2--article .article-v2__toc {
    position: static;
    width: 100%;
    max-height: none;
    margin-bottom: 1.5rem;
    overflow-y: visible;
    padding: 0.9rem 1rem;
    border: 1px solid var(--home-v2-line);
    border-radius: 6px;
    background: var(--home-v2-pale);
  }

}

.site-v2__listing-section .site-v2__search-form + .site-v2__article-grid {
  margin-top: 1.5rem;
}

.site-v2__related-section {
  background: var(--home-v2-pale);
}

.site-v2__content-narrow {
  max-width: 860px;
}

.site-v2__article-meta {
  display: flex;
  margin: 0 0 0.5rem;
  color: var(--home-v2-blue-700);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.site-v2__article-card-title {
  flex: 0 0 auto;
}

.site-v2__page-links {
  display: flex;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--home-v2-line);
  color: var(--home-v2-muted);
  font-size: 0.72rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-v2__page-links a,
.site-v2__page-links > span {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  text-decoration: none;
  place-items: center;
}

.home-v2-page .site-v2--lien-he .container {
  max-width: 1120px;
}

.site-v2--lien-he .site-v2__page-intro {
  border: 0;
  background: var(--home-v2-white);
}

.site-v2--lien-he .site-v2__page-intro-inner {
  min-height: 0;
  padding-block: 0.75rem 1.75rem;
  align-items: flex-start;
}

.site-v2--lien-he .site-v2__page-intro h1 {
  margin-bottom: 0.65rem;
  font-size: 2.25rem;
}

.site-v2--lien-he .site-v2__lead {
  max-width: 800px;
  font-size: 0.96rem;
}

.site-v2__contact-section {
  padding-block: 0 2rem;
}

.site-v2__contact-content {
  min-width: 0;
}

.site-v2__contact-panel {
  display: grid;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: var(--home-v2-white);
  grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr);
}

.site-v2__contact-panel--without-image {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}

.site-v2__contact-content h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.site-v2__contact-visual {
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: var(--home-v2-pale);
  flex-direction: column;
}

.site-v2__contact-photo {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
}

.site-v2__contact-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-v2__contact-caption {
  display: grid;
  min-height: 88px;
  padding: 1.25rem 1.65rem;
  background: var(--home-v2-blue-900);
  color: var(--home-v2-white);
  gap: 0.2rem;
  flex: 0 0 auto;
}

.site-v2__contact-caption strong {
  color: inherit;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.site-v2__contact-caption span {
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-v2__contact-form {
  min-width: 0;
  padding: 1.75rem 2rem;
  background: var(--home-v2-white);
}

.site-v2__contact-form-content > :last-child {
  margin-bottom: 0;
}

.site-v2__contact-direct {
  min-width: 0;
  margin-top: 1.75rem;
}

.site-v2__contact-methods {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  list-style: none;
}

.site-v2__contact-methods li {
  display: grid;
  min-width: 0;
  padding: 0.85rem 0;
  border-block: 1px solid var(--home-v2-line);
  gap: 0.2rem;
}

.site-v2__contact-methods li > span {
  color: var(--home-v2-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-v2__contact-methods a,
.site-v2__contact-methods strong {
  min-width: 0;
  color: var(--home-v2-blue-950);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-v2__contact-methods a:hover,
.site-v2__contact-methods a:focus-visible {
  color: var(--home-v2-blue-700);
  text-decoration: underline;
}

.site-v2__contact-process {
  margin-top: 1.75rem;
  padding: 1.35rem 0;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: var(--home-v2-pale);
}

.site-v2__contact-process ol {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.site-v2__contact-process li {
  min-width: 0;
  padding-inline: 1.7rem;
}

.site-v2__contact-process li + li {
  border-left: 1px solid var(--home-v2-line);
}

.site-v2__contact-step {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--home-v2-blue-700);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.site-v2__contact-process h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-v2__contact-process p {
  margin: 0;
  color: var(--home-v2-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-v2__contact-product {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: var(--home-v2-pale);
}

.site-v2__contact-product p {
  margin: 0 0 0.45rem;
  color: var(--home-v2-muted);
  font-size: 0.85rem;
}

.site-v2__contact-product > a {
  display: block;
  color: var(--home-v2-blue-950);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.site-v2__contact-product > .site-v2__contact-product-clear {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--home-v2-blue-700);
  font-size: 0.8rem;
  font-weight: 400;
}

.site-v2__about-intro-grid,
.site-v2__about-project-grid {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}

.site-v2__about-intro-grid > *,
.site-v2__about-project-grid > * {
  min-width: 0;
}

.site-v2__about-copy h2 {
  margin: 0 0 0.8rem;
  color: var(--home-v2-blue-950);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.site-v2__about-copy > p:not(.site-v2__eyebrow) {
  margin: 0 0 0.85rem;
  color: var(--home-v2-muted);
  font-size: 0.88rem;
  line-height: 1.82;
}

.site-v2__about-points {
  display: grid;
  margin: 1.45rem 0 0;
  padding: 0;
  border-top: 1px solid var(--home-v2-line);
  list-style: none;
}

.site-v2__about-points li {
  position: relative;
  padding: 0.82rem 0 0.82rem 1rem;
  border-bottom: 1px solid var(--home-v2-line);
  color: var(--home-v2-text);
  font-size: 0.77rem;
  line-height: 1.7;
}

.site-v2__about-points li::before {
  position: absolute;
  top: 1.28rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home-v2-aqua);
  content: "";
}

.site-v2__about-office-media,
.site-v2__about-project-media {
  height: 390px;
  overflow: hidden;
  border-radius: 8px;
}

.site-v2__about-office-media > img,
.site-v2__about-project-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-v2__about-heading {
  align-items: end;
}

.site-v2__about-heading > p {
  max-width: 360px;
}

.site-v2__about-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: var(--home-v2-white);
  overflow: hidden;
}

.site-v2__about-stat {
  display: grid;
  min-width: 0;
  min-height: 142px;
  padding: 1.35rem;
  border-right: 1px solid var(--home-v2-line);
  align-content: space-between;
  gap: 1rem;
}

.site-v2__about-stat:last-child {
  border-right: 0;
}

.site-v2__about-stat strong {
  color: var(--home-v2-blue-700);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.site-v2__about-stat span {
  color: var(--home-v2-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.site-v2__about-certification {
  margin: 1rem 0 0;
  color: var(--home-v2-muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.site-v2__about-certification strong {
  color: var(--home-v2-blue-900);
}

.site-v2__about-project-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.82fr);
}

.site-v2__about-project-link {
  display: inline-flex;
  margin-top: 0.7rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--home-v2-blue-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.site-v2__about-project-link span {
  font-size: 1rem;
}

.site-v2--lien-he .fluentform {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-v2--lien-he .fluentform form > fieldset {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.15rem;
}

.site-v2--lien-he .fluentform form > fieldset > * {
  min-width: 0;
  grid-column: 1 / -1;
}

.site-v2--lien-he .fluentform form > fieldset > .jy-contact-field-half {
  display: flex;
  flex-direction: column;
  grid-column: auto;
}

.site-v2--lien-he .fluentform .jy-contact-field-half > .ff-el-input--label {
  flex-grow: 1;
}

.site-v2--lien-he .fluentform form > fieldset > legend {
  position: absolute;
}

.site-v2--lien-he .fluentform form > fieldset > input[type="hidden"] {
  display: none;
}

.site-v2--lien-he .fluentform .ff-el-group {
  margin-bottom: 0;
}

.site-v2--lien-he .fluentform .ff-el-input--label {
  margin-bottom: 0.42rem;
}

.site-v2--lien-he .fluentform .ff-el-input--label label {
  color: var(--home-v2-blue-950);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-v2--lien-he .fluentform .ff-el-is-required.asterisk-right label::after {
  color: var(--home-v2-aqua);
}

.site-v2--lien-he .fluentform .ff-el-form-control {
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: var(--home-v2-white);
  box-shadow: none;
  color: var(--home-v2-text);
  font-size: 1rem;
  line-height: 1.55;
}

.site-v2--lien-he .fluentform textarea.ff-el-form-control {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

.site-v2--lien-he .fluentform .ff-el-form-control::placeholder {
  color: #8794a6;
  opacity: 1;
}

.site-v2--lien-he .fluentform .ff-el-form-control:focus {
  border-color: var(--home-v2-blue-700);
  box-shadow: none;
  outline: 2px solid rgb(22 184 175 / 22%);
  outline-offset: 1px;
}

.site-v2--lien-he .fluentform .ff-btn-submit {
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--home-v2-blue-700);
  border-radius: 6px;
  background: var(--home-v2-blue-700);
  box-shadow: none;
  color: var(--home-v2-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-v2--lien-he .fluentform .ff-btn-submit:hover,
.site-v2--lien-he .fluentform .ff-btn-submit:focus-visible {
  border-color: var(--home-v2-blue-900);
  background: var(--home-v2-blue-900);
  box-shadow: none;
}

.site-v2--lien-he .fluentform .text-danger,
.site-v2--lien-he .fluentform .error.text-danger {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.site-v2--lien-he .fluentform .ff-message-success {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #b8e5df;
  border-radius: 6px;
  background: var(--home-v2-aqua-pale);
  color: #0b625c;
  font-size: 0.95rem;
}

.site-v2--lien-he .fluentform .ff-el-help-message {
  margin-top: 0.4rem;
  color: var(--home-v2-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.site-v2__search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #fff;
  color: var(--home-v2-text);
}

.site-v2__search-form input[type="search"]:focus {
  border-color: var(--home-v2-blue-700);
  outline: 2px solid rgb(22 184 175 / 22%);
  outline-offset: 1px;
}

.site-v2__empty,
.site-v2__error,
.site-v2__empty-state {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: var(--home-v2-pale);
  text-align: center;
}

.site-v2__empty h2,
.site-v2__error h2,
.site-v2__empty-state h2,
.site-v2__empty-state h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.site-v2__empty p,
.site-v2__error p,
.site-v2__empty-state p {
  max-width: 620px;
  margin: 0 auto 1.2rem;
  color: var(--home-v2-muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.site-v2__search-form {
  display: flex;
  width: 100%;
  max-width: 680px;
  margin: 0;
  align-items: stretch;
  gap: 0.65rem;
}

.site-v2__search-form button {
  flex: 0 0 auto;
}

.navigation.pagination {
  margin-top: 2.25rem;
}

.site-v2__pagination .navigation.pagination {
  margin-top: 0;
}

.site-v2__pagination {
  margin-top: 2.25rem;
}

.site-v2__error-section {
  display: flex;
  min-height: 62vh;
  padding-block: 4rem;
  background: var(--home-v2-pale);
  align-items: center;
}

.site-v2__error-card {
  max-width: 820px;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid var(--home-v2-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.site-v2__error-card > p:not(.site-v2__eyebrow):not(.site-v2__error-code) {
  max-width: 620px;
  margin: 0 auto 1.2rem;
  color: var(--home-v2-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.site-v2__error-code {
  margin: 0 0 0.25rem;
  color: #d2e3f3;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
}

.site-v2__actions {
  display: flex;
  margin-top: 1.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.navigation.pagination .page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--home-v2-line);
  border-radius: 6px;
  background: #fff;
  color: var(--home-v2-blue-700);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  place-items: center;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:focus-visible {
  border-color: var(--home-v2-blue-900);
  background: var(--home-v2-blue-900);
  color: #fff;
}

/* WordPress content helpers retained for the classic PHP theme. */

.alignwide,
.alignfull {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--home-v2-muted);
  font-size: 0.7rem;
}

.sticky {
  border-color: var(--home-v2-aqua);
}

.bypostauthor {
  font-weight: inherit;
}

@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - 48px), var(--home-v2-container));
  }
}

@media (max-width: 960px) {
  :root {
    --jy-header-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 44px;
  }

  .primary-nav {
    position: absolute;
    z-index: 99;
    top: 100%;
    right: 0;
    left: 0;
    max-width: 100vw;
    max-height: calc(100vh - var(--jy-header-height));
    margin: 0;
    overflow-y: auto;
    padding: 0 1.25rem 1.5rem;
    border-top: 1px solid var(--home-v2-line);
    border-bottom: 1px solid var(--home-v2-line);
    background: #fff;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-nav-open .primary-nav,
  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .primary-nav ul {
    display: grid;
    width: min(100%, var(--home-v2-container));
    margin-inline: auto;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--home-v2-line);
  }

  .primary-nav a {
    min-height: 52px;
    padding: 0.45rem 0;
  }

  .primary-nav > ul > li > a::after {
    display: none;
  }

  .primary-nav .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .primary-nav .sub-menu li {
    border-bottom: 0;
  }

  .primary-nav .sub-menu a {
    min-height: 42px;
    border-bottom: 0;
  }

  .site-v2__card-grid,
  .site-v2__article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-v2__page-intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  .site-v2__about-intro-grid,
  .site-v2__about-project-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 2rem;
  }

  .site-v2__about-office-media,
  .site-v2__about-project-media {
    height: 340px;
  }

  .site-v2__about-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-v2__about-stat:nth-child(2) {
    border-right: 0;
  }

  .site-v2__about-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-v2-line);
  }
}

@media (max-width: 700px) {
  :root {
    --jy-header-height: 64px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .home-v2-page .site-v2--case-article .container--narrow {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .site-v2--case-article .case-toc {
    width: calc(100% - 32px);
    margin-bottom: 1.15rem;
  }

  .site-v2--case-article .case-toc__toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--home-v2-line);
    border-radius: 6px;
    background: var(--home-v2-pale);
    color: var(--home-v2-blue-900);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
  }

  .site-v2--case-article .case-toc__nav {
    display: none;
    margin-top: 0.5rem;
  }

  .site-v2--case-article .case-toc.is-open .case-toc__nav {
    display: block;
  }

  .home-v2-page .site-v2--article .article-v2__header-inner {
    width: calc(100% - 32px);
    padding-block: 2rem 2.35rem;
  }

  .home-v2-page .site-v2--article .article-v2__breadcrumbs {
    width: calc(100% - 32px);
  }

  .site-v2--article .article-v2__header h1 {
    font-size: 1.85rem;
    line-height: 1.24;
  }

  .home-v2-page .site-v2--article .article-v2__reading {
    width: calc(100% - 32px);
    padding-block: 2.5rem;
  }

  .site-v2--article .article-v2__toc {
    margin-bottom: 1.15rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-v2--article .article-v2__toc-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--home-v2-line);
    border-radius: 6px;
    background: #fff;
    color: var(--home-v2-blue-900);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
  }

  .site-v2--article .article-v2__toc-nav {
    display: none;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--home-v2-line);
    border-radius: 6px;
    background: var(--home-v2-pale);
  }

  .site-v2--article .article-v2__toc.is-open .article-v2__toc-nav {
    display: block;
  }

  .site-v2--article .article-v2__content {
    font-size: 0.92rem;
    line-height: 1.82;
  }

  .site-v2--article .article-v2__content h2 {
    font-size: 1.45rem;
  }

  .site-v2--article .article-v2__content h3 {
    font-size: 1.16rem;
  }

  .site-v2--article .article-v2__cta > .home-v2__cta-inner {
    min-height: 166px;
    padding-block: 1.5rem;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .site-v2--article .article-v2__cta h2 {
    font-size: 1.05rem;
  }

  .site-v2--article .article-v2__cta p {
    font-size: 0.7rem;
  }

  .site-v2--article .article-v2__cta .home-v2__button {
    width: 100%;
    min-width: 0;
  }

  .site-v2--article .article-v2__cta {
    width: calc(100% - 32px);
    margin-block: 2rem;
  }

  .site-v2--case-article .site-v2__prose {
    font-size: 0.92rem;
    line-height: 1.82;
  }

  .site-branding .custom-logo {
    max-width: 145px;
    max-height: 38px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .button,
  button.button,
  input[type="submit"],
  .wp-block-button__link {
    min-height: 48px;
  }

  .site-v2__page-intro-inner {
    min-height: 0;
    padding-block: 2.6rem;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-v2__page-intro-inner--without-media {
    display: flex;
    min-height: 220px;
  }

  .site-v2__page-intro h1,
  .site-v2__error h1,
  .site-v2__error-card h1 {
    font-size: 2rem;
    line-height: 1.28;
  }

  .site-v2__lead {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .site-v2__section {
    padding-block: 2.5rem;
  }

  .site-v2__section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-v2__section-heading h2,
  .site-v2__split h2 {
    font-size: 1.18rem;
  }

  .site-v2__split,
  .site-v2__card-grid,
  .site-v2__article-grid,
  .site-v2__about-intro-grid,
  .site-v2__about-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-v2__split {
    gap: 1.6rem;
  }

  .site-v2__media {
    height: 240px;
  }

  .site-v2__about-office-media,
  .site-v2__about-project-media {
    height: 250px;
  }

  .site-v2__page-intro-media {
    height: 190px;
  }

  .site-v2__card-grid,
  .site-v2__article-grid {
    gap: 0.8rem;
  }

  .site-v2__card-media,
  .site-v2__article-media {
    height: 205px;
  }

  .site-v2__card-body,
  .site-v2__article-card-body {
    padding: 1rem;
  }

  .site-v2__about-stat {
    min-height: 116px;
    padding: 1rem;
  }

  .site-v2__search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .site-v2__search-form button {
    width: 100%;
  }

  .site-v2--lien-he .site-v2__page-intro-inner {
    padding-block: 0.4rem 1.25rem;
  }

  .site-v2--lien-he .site-v2__page-intro h1 {
    font-size: 1.85rem;
  }

  .site-v2__contact-section {
    padding-block: 0 1.75rem;
  }

  .site-v2__contact-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .site-v2__contact-visual {
    order: 1;
  }

  .site-v2__contact-photo {
    height: 200px;
    flex: 0 0 auto;
  }

  .site-v2__contact-caption {
    min-height: 0;
    padding: 1rem 1.1rem;
  }

  .site-v2__contact-form {
    padding: 1.25rem 1.1rem;
    order: 0;
  }

  .site-v2__contact-process {
    margin-top: 1.25rem;
    padding: 0 1.1rem;
  }

  .site-v2__contact-process ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-v2__contact-process li {
    padding: 1.1rem 0;
  }

  .site-v2__contact-process li + li {
    border-top: 1px solid var(--home-v2-line);
    border-left: 0;
  }

  .site-v2--lien-he .fluentform form > fieldset {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-v2--lien-he .fluentform form > fieldset > .jy-contact-field-half {
    grid-column: 1 / -1;
  }

  .site-v2--lien-he .fluentform .ff-btn-submit {
    width: 100%;
  }

  .navigation.pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
  }
}
