:root {
  --yr-edge: clamp(20px, 4vw, 80px);
  --yr-header-height: 88px;
  --yr-wide-size: 1280px;
  --yr-on-dark-accent: #e6c89c;
  --yr-focus: var(--wp--preset--color--muted-bronze);
  --yr-transition: 140ms cubic-bezier(.2,.7,.2,1);
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
  width: 100%;
}

.yr-main--dark {
  background: var(--wp--preset--color--charcoal);
}

.wp-site-blocks > header,
.wp-site-blocks > footer {
  flex: 0 0 auto;
  width: 100%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img {
  height: auto;
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  transition:
    color var(--yr-transition),
    background-color var(--yr-transition),
    border-color var(--yr-transition),
    box-shadow var(--yr-transition),
    transform var(--yr-transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yr-focus);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--wp--preset--color--warm-ivory);
  clip: auto !important;
  clip-path: none;
  color: var(--wp--preset--color--ink);
  display: block;
  font-size: 15px;
  font-weight: 600;
  height: auto;
  left: 16px;
  padding: 12px 16px;
  top: 12px;
  width: auto;
  z-index: 100000;
}

.yr-site-header {
  background: var(--wp--preset--color--charcoal);
  border-bottom: 1px solid rgba(247, 244, 237, .14);
  color: var(--wp--preset--color--warm-ivory);
  min-height: var(--yr-header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.yr-site-header__inner {
  min-height: var(--yr-header-height);
  padding-inline: var(--yr-edge);
}

.yr-site-header .custom-logo-link {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.yr-site-header .custom-logo {
  height: auto;
  max-height: 62px;
  width: clamp(190px, 20vw, 300px);
}

.yr-site-header .wp-block-navigation {
  color: var(--wp--preset--color--warm-ivory);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.yr-site-header .wp-block-navigation-item__content {
  color: inherit;
  text-decoration: none;
}

.yr-site-header .current-menu-item > .wp-block-navigation-item__content,
.yr-site-header .wp-block-navigation-item__content:hover {
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--muted-bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.yr-header-cta .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--warm-ivory);
  min-height: 48px;
  white-space: nowrap;
}

.yr-header-cta .wp-block-button__link:hover {
  background: var(--wp--preset--color--warm-ivory);
  color: var(--wp--preset--color--charcoal);
}

.yr-section {
  padding-block: clamp(64px, 8vw, 128px);
}

.yr-section--compact {
  padding-block: clamp(48px, 6vw, 96px);
}

.yr-section--dark {
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--warm-ivory);
}

.yr-section--tide {
  background: var(--wp--preset--color--deep-tide);
  color: var(--wp--preset--color--warm-ivory);
}

.yr-section--stone {
  background: color-mix(in srgb, var(--wp--preset--color--soft-stone) 55%, var(--wp--preset--color--warm-ivory));
}

.yr-section--dark h1,
.yr-section--dark h2,
.yr-section--dark h3,
.yr-section--tide h1,
.yr-section--tide h2,
.yr-section--tide h3 {
  color: var(--wp--preset--color--warm-ivory) !important;
}

.yr-section--dark a,
.yr-section--tide a {
  color: var(--yr-on-dark-accent) !important;
}

.yr-kicker {
  color: var(--wp--preset--color--bronze-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.yr-section--dark .yr-kicker,
.yr-section--tide .yr-kicker {
  color: var(--yr-on-dark-accent) !important;
}

.yr-hero {
  align-items: center;
  background:
    url("../images/review/concept-yacht-underway-wide.webp") center center / cover no-repeat,
    var(--wp--preset--color--charcoal);
  display: grid;
  min-height: clamp(620px, calc(100svh - var(--yr-header-height)), 860px);
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) var(--yr-edge);
  position: relative;
  width: 100%;
}

.yr-hero::before {
  background:
    linear-gradient(90deg, rgba(18, 23, 25, .94) 0%, rgba(18, 23, 25, .86) 36%, rgba(18, 23, 25, .52) 58%, rgba(18, 23, 25, .18) 76%, rgba(18, 23, 25, .08) 100%),
    linear-gradient(180deg, rgba(18, 23, 25, .18) 0%, rgba(18, 23, 25, .04) 52%, rgba(18, 23, 25, .22) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.yr-hero::after {
  background: radial-gradient(ellipse at 78% 70%, rgba(169, 133, 88, .18), transparent 32%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.yr-hero > * {
  position: relative;
  z-index: 1;
}

.yr-hero__content {
  color: var(--wp--preset--color--warm-ivory);
  margin: 0;
  max-width: 680px;
}

.yr-hero__content h1 {
  color: inherit;
  font-size: var(--wp--preset--font-size--display);
}

.yr-hero__content .wp-block-buttons {
  margin-top: 40px;
}

.yr-hero__content .is-style-yachtrev-light .wp-block-button__link {
  background: var(--wp--preset--color--warm-ivory);
  border-color: var(--wp--preset--color--warm-ivory);
  color: var(--wp--preset--color--charcoal);
  min-height: 56px;
}

.yr-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 3vw, 48px);
}

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

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

.is-style-yachtrev-card,
.yr-card {
  border: 2px solid var(--wp--preset--color--soft-stone);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(24px, 3vw, 40px);
}

.yr-card > * {
  width: 100%;
}

.yr-card > .yr-text-link {
  margin-top: auto;
  padding-top: 16px;
}

.is-style-yachtrev-card:hover,
.yr-card:hover {
  border-color: var(--wp--preset--color--muted-bronze);
  transform: translateY(-2px);
}

.yr-card--featured {
  border-color: var(--wp--preset--color--muted-bronze);
  padding: clamp(32px, 4vw, 56px);
}

.yr-card--tide {
  background: var(--wp--preset--color--deep-tide);
  color: var(--wp--preset--color--warm-ivory);
}

.yr-card--tide :is(h1, h2, h3, h4, h5, h6, p, li, strong) {
  color: var(--wp--preset--color--warm-ivory) !important;
}

.yr-card--tide :is(.yr-kicker, a) {
  color: var(--yr-on-dark-accent) !important;
}

.yr-text-link {
  display: inline-block;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.yr-text-link a {
  text-wrap: pretty;
}

.yr-link-tail {
  white-space: nowrap;
}

.yr-proof-grid,
.yr-method-grid,
.yr-scope-grid {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
 * Saved constrained-layout blocks can reapply the reading measure to nested
 * grids. Center each structured grid on the viewport and explicitly restore
 * the approved wide measure so existing pages update without reinsertion.
 */
.yr-section :is(.yr-grid, .yr-proof-grid, .yr-method-grid, .yr-scope-grid) {
  left: 50%;
  margin-inline: 0 !important;
  max-width: var(--yr-wide-size) !important;
  position: relative;
  transform: translateX(-50%);
  width: min(var(--yr-wide-size), calc(100vw - (2 * var(--yr-edge)))) !important;
}

/*
 * WordPress flow-layout spacing remains in saved block markup even after the
 * parent becomes a CSS grid. Reset it so every card and process item begins on
 * the same row line and stretches to the same row height.
 */
.yr-grid > *,
.yr-proof-grid > *,
.yr-method-grid > *,
.yr-scope-grid > * {
  height: 100%;
  margin-block-start: 0 !important;
  min-width: 0;
}

.yr-proof-item,
.yr-method-step,
.yr-scope-item {
  border-left: 1px solid rgba(247, 244, 237, .24);
  min-width: 0;
  padding: 24px 32px;
}

.yr-proof-item:nth-child(3n+1),
.yr-method-step:nth-child(3n+1),
.yr-scope-item:nth-child(3n+1) {
  border-left: 0;
}

.yr-method-step,
.yr-scope-item {
  border-color: var(--wp--preset--color--soft-stone);
}

.yr-step-number {
  color: var(--wp--preset--color--bronze-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
}

.yr-split {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.yr-media-placeholder {
  aspect-ratio: 16 / 10;
  background:
    url("../images/production/advisory-support-desktop.webp") center center / cover no-repeat,
    var(--wp--preset--color--deep-tide);
  overflow: hidden;
  position: relative;
}

.yr-hero.yr-media-placeholder {
  aspect-ratio: auto;
  background:
    url("../images/review/concept-yacht-underway-wide.webp") center center / cover no-repeat,
    var(--wp--preset--color--charcoal);
}

.yr-media-placeholder:not(.yr-hero)::before {
  background: linear-gradient(145deg, rgba(18, 23, 25, .04), transparent 52%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

/*
 * Production photography — staging population, July 2026.
 *
 * Page-scoped selectors preserve the reusable locked patterns while allowing
 * each approved page to use its own production hero and supporting image.
 */
body.page-id-630 .yr-hero {
  background-image:
    url("../images/production/home-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 52%;
}

body.page-id-630 .yr-section:has(a[href$="/about/"]) .yr-media-placeholder {
  background-image:
    url("../images/production/home-about-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-635 .yr-hero {
  background-image:
    url("../images/production/buy-yacht-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 48%;
}

body.page-id-635 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/buy-yacht-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-652 .yr-hero {
  background-image:
    url("../images/production/sell-yacht-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 48%;
}

body.page-id-652 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/sell-yacht-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-653 .yr-hero {
  background-image:
    url("../images/production/new-construction-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 52%;
}

body.page-id-653 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/new-construction-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-654 .yr-hero {
  background-image:
    url("../images/production/performance-boats-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 55%;
}

body.page-id-654 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/performance-boats-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-655 .yr-hero {
  background-image:
    url("../images/production/ownership-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 50%;
}

body.page-id-655 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/ownership-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-656 .yr-hero {
  background-image:
    url("../images/production/about-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 50%;
}

body.page-id-656 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/about-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

/*
 * Crop-aware desktop hero compositions.
 *
 * A modest page-specific zoom creates horizontal cropping room so each yacht
 * can be repositioned independently of the copy. The text then moves inward
 * only as far as the newly created negative space allows. Mobile keeps the
 * established cover crop and bottom-weighted copy treatment.
 */
@media (min-width: 901px) {
  body.page-id-630 .yr-hero {
    background-position: left 50%, center;
    background-size: 116% auto, auto;
  }

  body.page-id-630 .yr-hero__content {
    margin-left: clamp(48px, 10vw, 240px) !important;
    max-width: 520px !important;
    width: min(36vw, 520px) !important;
  }

  body.page-id-635 .yr-hero {
    background-position: right 48%, center;
    background-size: 114% auto, auto;
  }

  body.page-id-635 .yr-hero__content {
    margin-right: clamp(48px, 10vw, 240px) !important;
    max-width: 570px !important;
    width: min(39vw, 570px) !important;
  }

  body.page-id-654 .yr-hero {
    background-position: left 43%, center;
    background-size: 113% auto, auto;
  }

  body.page-id-654 .yr-hero__content {
    margin-left: clamp(48px, 10vw, 210px) !important;
    max-width: 390px !important;
    width: min(30vw, 390px) !important;
  }
}

/*
 * Page-specific desktop hero compositions.
 *
 * Keep the production photography as the focal point by placing copy in each
 * image's natural negative space. Mobile retains the established bottom-copy
 * treatment and its stronger vertical overlay.
 */
@media (min-width: 901px) {
  body.page-id-630 .yr-hero__content,
  body.page-id-654 .yr-hero__content {
    justify-self: start;
    margin-left: clamp(24px, 5vw, 120px) !important;
    margin-right: auto !important;
    max-width: 600px !important;
    width: min(43vw, 600px) !important;
  }

  body.page-id-635 .yr-hero__content {
    justify-self: end;
    margin-left: auto !important;
    margin-right: clamp(24px, 5vw, 120px) !important;
    max-width: 610px !important;
    width: min(43vw, 610px) !important;
  }

  body.page-id-635 .yr-hero::before {
    background:
      linear-gradient(270deg, rgba(18, 23, 25, .92) 0%, rgba(18, 23, 25, .82) 35%, rgba(18, 23, 25, .44) 58%, rgba(18, 23, 25, .12) 82%, rgba(18, 23, 25, .06) 100%),
      linear-gradient(180deg, rgba(18, 23, 25, .18) 0%, rgba(18, 23, 25, .04) 52%, rgba(18, 23, 25, .22) 100%);
  }
}

/* Approved Step 1 treatment: large, legible single-selection cards. */
.yr-radio-cards .gfield_radio {
  display: grid;
  gap: 12px;
}

.yr-radio-cards .gchoice {
  align-items: center;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(38, 56, 64, .25);
  border-radius: 4px;
  display: flex !important;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  transition: background-color .2s ease, border-color .2s ease;
}

.yr-radio-cards .gchoice:focus-within,
.yr-radio-cards .gchoice:hover {
  background: rgba(255, 255, 255, .72);
  border-color: var(--wp--preset--color--muted-gold);
}

.yr-radio-cards .gfield-choice-input {
  flex: 0 0 20px;
  height: 20px !important;
  margin: 0 !important;
  width: 20px !important;
}

.yr-radio-cards .gform-field-label--type-inline {
  cursor: pointer;
  flex: 1;
  margin: 0 !important;
  max-width: none !important;
}

.yr-consultation-close {
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--warm-ivory);
  padding-block: clamp(80px, 10vw, 160px);
}

.yr-consultation-close h2 {
  color: inherit;
  max-width: 760px;
}

.yr-consultation-close p {
  max-width: 680px;
}

.yr-form-shell {
  align-self: start;
  background: var(--wp--preset--color--warm-ivory);
  border-radius: 3px;
  color: var(--wp--preset--color--ink);
  padding: clamp(24px, 4vw, 56px);
  width: 100%;
}

.yr-form-shell input,
.yr-form-shell select,
.yr-form-shell textarea {
  background: #fff;
  border: 2px solid var(--wp--preset--color--soft-stone);
  border-radius: 3px;
  color: var(--wp--preset--color--ink);
  font: inherit;
  min-height: 48px;
  padding: 11px 14px;
  width: 100%;
}

.yr-form-shell input:focus,
.yr-form-shell select:focus,
.yr-form-shell textarea:focus {
  border-color: var(--wp--preset--color--bronze-text);
}

.yr-confirmation {
  max-width: 760px;
  padding-block: clamp(80px, 10vw, 160px);
}

.yr-confirmation h1 {
  color: var(--wp--preset--color--warm-ivory);
}

.yr-legal h2 {
  margin-top: clamp(40px, 6vw, 64px);
}

.yr-review-line {
  border-top: 1px solid var(--wp--preset--color--soft-stone);
  color: var(--wp--preset--color--muted-text);
  font-size: var(--wp--preset--font-size--small);
  margin-top: 48px;
  padding-top: 16px;
}

.wp-block-search {
  margin-block: 32px 64px;
  max-width: 760px;
}

.wp-block-search__input {
  border: 2px solid var(--wp--preset--color--soft-stone);
  border-radius: 3px;
  font: inherit;
  min-height: 48px;
  padding: 11px 14px;
}

.wp-block-search__button {
  min-height: 48px;
}

.yr-search-form .wp-block-search__label {
  color: var(--wp--preset--color--ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.yr-search-form .wp-block-search__inside-wrapper {
  align-items: stretch;
  background: #fff;
  border: 2px solid var(--wp--preset--color--muted-text);
  border-radius: 3px;
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.yr-search-form .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--wp--preset--color--bronze-text);
  box-shadow: 0 0 0 3px rgba(169, 133, 88, .2);
}

.yr-search-form .wp-block-search__input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  min-width: 0;
  outline: 0;
}

.yr-search-form .wp-block-search__button {
  background: var(--wp--preset--color--deep-tide);
  border: 0;
  border-left: 1px solid var(--wp--preset--color--soft-stone);
  border-radius: 0;
  color: var(--wp--preset--color--warm-ivory);
  margin: 0;
  padding-inline: 28px;
}

.yr-search-form .wp-block-search__button:hover {
  background: var(--wp--preset--color--charcoal);
}

.yr-search-results .wp-block-post-template {
  margin-top: 32px;
}

.yr-search-results .wp-block-post {
  border-top: 1px solid var(--wp--preset--color--soft-stone);
  padding-block: 32px;
}

.yr-search-result__title {
  margin-bottom: 12px;
}

.yr-search-result__title a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.yr-search-result__excerpt {
  color: var(--wp--preset--color--muted-text);
  max-width: 760px;
}

.yr-search-result__excerpt p {
  margin: 0;
}

.yr-site-footer {
  background: var(--wp--preset--color--charcoal);
  border-top: 1px solid rgba(247, 244, 237, .14);
  color: var(--wp--preset--color--warm-ivory);
  padding: clamp(64px, 8vw, 96px) var(--yr-edge) 32px;
}

.yr-site-footer h2,
.yr-site-footer h3 {
  color: inherit;
}

.yr-site-footer a {
  color: inherit;
}

.yr-site-footer .custom-logo {
  height: auto;
  max-width: 300px;
}

.yr-footer-grid {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  margin-inline: auto;
  max-width: var(--yr-wide-size);
  width: 100%;
}

.yr-footer-heading {
  color: var(--wp--preset--color--muted-bronze);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.yr-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yr-footer-list li {
  margin-bottom: 12px;
}

.yr-footer-meta {
  border-top: 1px solid rgba(247, 244, 237, .14);
  margin-inline: auto;
  margin-top: 64px;
  max-width: var(--yr-wide-size);
  padding-top: 24px;
  width: 100%;
}

@media (max-width: 1120px) {
  :root {
    --yr-edge: 32px;
    --yr-header-height: 72px;
  }

  .yr-site-header .wp-block-navigation__container {
    gap: 18px;
  }

  .yr-site-header .wp-block-navigation-item__content {
    font-size: 13px;
  }

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

@media (max-width: 900px) {
  .yr-site-header .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .yr-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .yr-grid--3,
  .yr-proof-grid,
  .yr-method-grid,
  .yr-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yr-proof-item:nth-child(3n+1),
  .yr-method-step:nth-child(3n+1),
  .yr-scope-item:nth-child(3n+1) {
    border-left: 1px solid currentColor;
  }

  .yr-proof-item:nth-child(2n+1),
  .yr-method-step:nth-child(2n+1),
  .yr-scope-item:nth-child(2n+1) {
    border-left: 0;
  }

  .yr-split {
    gap: 48px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --yr-edge: 20px;
    --yr-header-height: 64px;
  }

  /*
   * WordPress can drop its root padding when an already-saved full-width
   * section contains constrained or wide children. Keep section backgrounds
   * full bleed while restoring the approved 20 px mobile content edge across
   * current and future page patterns.
   */
  .yr-section,
  .yr-consultation-close {
    padding-inline: var(--yr-edge) !important;
  }

  /*
   * The desktop grid-centering repair assumes a full-width parent. Once the
   * mobile section gutter is present, return structured grids to normal flow
   * so they share the same single 20 px edge instead of receiving two insets.
   */
  .yr-section :is(.yr-grid, .yr-proof-grid, .yr-method-grid, .yr-scope-grid) {
    left: auto;
    transform: none;
    width: 100% !important;
  }

  .yr-site-header__inner {
    gap: 12px !important;
  }

  .yr-site-header .custom-logo {
    max-height: 46px;
    width: clamp(146px, 46vw, 210px);
  }

  .yr-header-cta .wp-block-button__link {
    font-size: 12px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .yr-hero,
  .yr-hero.yr-media-placeholder {
    align-items: end;
    background:
      url("../images/review/concept-yacht-underway.webp") 68% center / cover no-repeat,
      var(--wp--preset--color--charcoal);
    min-height: 720px;
  }

  .yr-hero::before {
    background:
      linear-gradient(180deg, rgba(18, 23, 25, .22) 0%, rgba(18, 23, 25, .38) 48%, rgba(18, 23, 25, .94) 100%),
      linear-gradient(90deg, rgba(18, 23, 25, .72) 0%, rgba(18, 23, 25, .22) 100%);
  }

  .yr-grid--2,
  .yr-grid--3,
  .yr-proof-grid,
  .yr-method-grid,
  .yr-scope-grid,
  .yr-footer-grid {
    grid-template-columns: 1fr;
  }

  .yr-proof-item,
  .yr-method-step,
  .yr-scope-item,
  .yr-proof-item:nth-child(n),
  .yr-method-step:nth-child(n),
  .yr-scope-item:nth-child(n) {
    border-left: 0;
    border-top: 1px solid currentColor;
    padding: 24px 0;
  }

  .yr-proof-item:first-child,
  .yr-method-step:first-child,
  .yr-scope-item:first-child {
    border-top: 0;
  }

  .yr-site-footer {
    padding-inline: 20px;
  }

  .yr-search-form .wp-block-search__button {
    padding-inline: 18px;
  }

  /*
   * The consultation pattern is saved inside a default-layout post-content
   * block, so its wide split does not inherit WordPress's constrained mobile
   * gutters. Restore the shared edge measure without changing desktop layout.
   */
  main.yr-main--dark .yr-section > .yr-split {
    margin-inline: auto !important;
    max-width: var(--yr-wide-size) !important;
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .yr-header-cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/*
 * Production photography — final cascade overrides, July 2026.
 *
 * These page-scoped declarations intentionally follow the responsive theme
 * rules so the approved production assets override every concept fallback.
 */
body.page-id-630 .yr-hero {
  background-image:
    url("../images/production/home-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 52%;
}

body.page-id-630 .yr-section:has(a[href$="/about/"]) .yr-media-placeholder {
  background-image:
    url("../images/production/home-about-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-635 .yr-hero {
  background-image:
    url("../images/production/buy-yacht-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 48%;
}

body.page-id-635 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/buy-yacht-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-652 .yr-hero {
  background-image:
    url("../images/production/sell-yacht-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 48%;
}

body.page-id-652 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/sell-yacht-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-653 .yr-hero {
  background-image:
    url("../images/production/new-construction-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 52%;
}

body.page-id-653 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/new-construction-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-654 .yr-hero {
  background-image:
    url("../images/production/performance-boats-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 55%;
}

body.page-id-654 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/performance-boats-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-655 .yr-hero {
  background-image:
    url("../images/production/ownership-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 50%;
}

body.page-id-655 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/ownership-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

body.page-id-656 .yr-hero {
  background-image:
    url("../images/production/about-hero-desktop.webp"),
    linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  background-position: center 50%;
}

body.page-id-656 .yr-hero + .yr-section .yr-media-placeholder {
  background-image:
    url("../images/production/about-support-desktop.webp"),
    linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  background-position: center center;
}

/*
 * Approved desktop hero refinements — Theme 0.2.9.
 *
 * Keep the current Performance Boats composition unchanged. On the Homepage,
 * move the yacht and copy right by the same responsive distance. On Buy a
 * Yacht, preserve the approved horizontal crop and move the yacht farther
 * down so it is centered more evenly by height beneath the header. Mobile
 * remains unchanged.
 */
@media (min-width: 901px) {
  body.page-id-630 .yr-hero {
    --yr-home-hero-shift-x: clamp(40px, 4.4vw, 64px);
    background-position:
      calc(50% + var(--yr-home-hero-shift-x)) 52%,
      center;
  }

  body.page-id-630 .yr-hero__content {
    margin-left:
      calc(clamp(24px, 5vw, 120px) + var(--yr-home-hero-shift-x)) !important;
  }

  body.page-id-635 .yr-hero {
    background-position:
      50% calc(48% + clamp(84px, 6.1vw, 118px)),
      center;
  }
}

/*
 * Responsive production media — Theme 0.2.13.
 *
 * Mobile and tablet widths receive smaller WebP derivatives while retaining
 * the approved focal points, overlays, and cover-crop behavior. The untouched
 * licensed masters remain outside the theme package.
 */
@media (max-width: 900px) {
  .yr-media-placeholder:not(.yr-hero) {
    background-image:
      url("../images/production/advisory-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-630 .yr-hero {
    background-image:
      url("../images/production/home-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-630 .yr-section:has(a[href$="/about/"]) .yr-media-placeholder {
    background-image:
      url("../images/production/home-about-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-635 .yr-hero {
    background-image:
      url("../images/production/buy-yacht-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-635 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/buy-yacht-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-652 .yr-hero {
    background-image:
      url("../images/production/sell-yacht-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-652 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/sell-yacht-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-653 .yr-hero {
    background-image:
      url("../images/production/new-construction-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-653 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/new-construction-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-654 .yr-hero {
    background-image:
      url("../images/production/performance-boats-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-654 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/performance-boats-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-655 .yr-hero {
    background-image:
      url("../images/production/ownership-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-655 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/ownership-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }

  body.page-id-656 .yr-hero {
    background-image:
      url("../images/production/about-hero-mobile.webp"),
      linear-gradient(var(--wp--preset--color--charcoal), var(--wp--preset--color--charcoal));
  }

  body.page-id-656 .yr-hero + .yr-section .yr-media-placeholder {
    background-image:
      url("../images/production/about-support-mobile.webp"),
      linear-gradient(var(--wp--preset--color--deep-tide), var(--wp--preset--color--deep-tide));
  }
}
