/* JTV Visual Layer 1.0.0. Every selector is scoped to approved body classes. */
:root {
  --jtvv-ink: #1f2937;
  --jtvv-heading: #313c4d;
  --jtvv-body: #484c50;
  --jtvv-green: #1b6343;
  --jtvv-green-dark: #154f36;
  --jtvv-orange: #ffa41c;
  --jtvv-orange-dark: #ed8f00;
  --jtvv-surface: #f3f7ff;
  --jtvv-soft: #f1f4f6;
  --jtvv-border: #c6d0d8;
  --jtvv-white: #fff;
  --jtvv-radius: 18px;
  --jtvv-shadow: 0 10px 30px rgba(31, 41, 55, .10);
  --jtvv-width: 1200px;
}

body.jtv-visual-v1 {
  color: var(--jtvv-body);
  background: var(--jtvv-white);
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.jtv-visual-v1 .entry-content {
  color: var(--jtvv-body);
}

.jtv-visual-v1:not(.jtvv-template-s01) .entry-content:not(:has(.jtv-editorial-page)) {
  width: min(calc(100% - 2rem), 920px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) 5rem;
}

.jtv-visual-v1 .site-main > article > .entry-header:not(.ast-no-title) {
  width: min(calc(100% - 2rem), var(--jtvv-width));
  margin: 1.5rem auto 0;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid rgba(198, 208, 216, .75);
  border-radius: var(--jtvv-radius);
  background: var(--jtvv-surface);
  box-shadow: var(--jtvv-shadow);
  text-align: center;
}

.jtv-visual-v1 .site-main > article > .entry-header .entry-title {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--jtvv-ink);
  font-family: Sora, sans-serif;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.jtv-visual-v1 .entry-content :where(h1, h2, h3, h4):not(.jtv-booking *) {
  color: var(--jtvv-heading);
  font-family: Sora, sans-serif;
  text-wrap: balance;
}

.jtv-visual-v1 .entry-content h1:not(.jtv-booking *) {
  color: var(--jtvv-ink);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.jtv-visual-v1 .entry-content h2:not(.jtv-booking *) {
  margin: 3.5rem 0 1.1rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.jtv-visual-v1 .entry-content h3:not(.jtv-booking *) {
  margin: 2.25rem 0 .7rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.3;
}

.jtv-visual-v1 .entry-content :where(p, li, figcaption):not(.jtv-booking *) {
  color: var(--jtvv-body);
  font-family: Manrope, sans-serif;
}

.jtv-visual-v1 .entry-content a:not(.jtv-booking *):not(.wp-block-button__link) {
  color: var(--jtvv-green);
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.jtv-visual-v1 .entry-content a:not(.jtv-booking *):hover {
  color: var(--jtvv-green-dark);
}

.jtv-visual-v1 :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--jtvv-orange) !important;
  outline-offset: 3px !important;
}

.jtv-visual-v1 .entry-content :where(.wp-block-button__link, .jtv-cta a):not(.jtv-booking *) {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.35rem;
  border: 0;
  border-radius: 30px;
  background: var(--jtvv-orange);
  box-shadow: none;
  color: #000;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.jtv-visual-v1 .entry-content :where(.wp-block-button__link, .jtv-cta a):not(.jtv-booking *):hover {
  background: var(--jtvv-orange-dark);
  color: #000;
}

.jtv-visual-v1 .jtv-editorial-page {
  width: min(100%, var(--jtvv-width));
  margin-inline: auto;
}

.jtv-visual-v1 .jtv-editorial-content {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

.jtv-visual-v1 .jtv-editorial-content > :where(p, ul, ol):not(.jtv-booking *) {
  max-width: 72ch;
}

.jtv-visual-v1 .jtv-editorial-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  overflow: hidden;
  margin: 1.5rem auto 0;
  border: 1px solid rgba(198, 208, 216, .75);
  border-radius: var(--jtvv-radius);
  background: var(--jtvv-surface);
  box-shadow: var(--jtvv-shadow);
}

.jtv-visual-v1 .jtv-editorial-hero::before,
.jtv-visual-v1 .jtv-editorial-hero::after {
  content: none !important;
  display: none !important;
}

.jtv-visual-v1 .jtv-editorial-hero > img {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: 100%;
  min-height: 430px;
  grid-column: 2;
  grid-row: 1;
  object-fit: cover;
}

.jtv-visual-v1 .jtv-editorial-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  background: var(--jtvv-surface);
}

.jtv-visual-v1 .jtv-editorial-hero-inner h1 {
  margin: 0 0 1rem;
  text-align: left;
}

.jtv-visual-v1 .jtv-editorial-hero-inner p {
  max-width: 58ch;
  margin: 0;
  font-size: 1.08rem;
}

.jtv-visual-v1 .jtv-editorial-content > figure,
.jtv-visual-v1 .jtv-editorial-content > .jtv-planning-example,
.jtv-visual-v1 .jtv-editorial-content > blockquote {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--jtvv-border);
  border-radius: var(--jtvv-radius);
  background: var(--jtvv-surface);
  box-shadow: 0 5px 18px rgba(31, 41, 55, .08);
}

.jtv-visual-v1 .jtv-editorial-content > figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
}

.jtv-visual-v1 .jtv-editorial-content figcaption {
  padding: .9rem 1.1rem 1.1rem;
  font-size: .94rem;
}

.jtv-visual-v1 .jtv-planning-example,
.jtv-visual-v1 .entry-content blockquote {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.jtv-visual-v1 .jtv-editorial-content > h2 {
  padding-top: .7rem;
  border-top: 1px solid rgba(198, 208, 216, .8);
}

.jtv-visual-v1:not(.jtvv-template-s01) .entry-content:not(:has(.jtv-editorial-page)) > h2 {
  padding-top: .7rem;
  border-top: 1px solid rgba(198, 208, 216, .8);
}

.jtv-visual-v1:not(.jtvv-template-s01) .entry-content:not(:has(.jtv-editorial-page)) > figure {
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--jtvv-border);
  border-radius: var(--jtvv-radius);
  background: var(--jtvv-surface);
  box-shadow: 0 5px 18px rgba(31, 41, 55, .08);
}

.jtv-visual-v1:not(.jtvv-template-s01) .entry-content:not(:has(.jtv-editorial-page)) > figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
}

.jtv-visual-v1 .jtv-editorial-content > h2:first-child,
.jtv-visual-v1 .jtv-editorial-content > .jtv-lead + .jtv-cta + .jtv-secondary-cta + h2 {
  border-top: 0;
}

.jtv-visual-v1 .jtv-editorial-content .jtv-lead {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  color: var(--jtvv-heading);
  font-size: 1.15rem;
  line-height: 1.65;
  text-align: center;
}

.jtv-visual-v1 .jtv-editorial-content .jtv-cta {
  margin: 1.35rem 0;
}

.jtv-visual-v1 .jtv-editorial-content .jtv-secondary-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: .65rem 1.15rem;
  border: 1px solid var(--jtvv-border);
  border-radius: 10px;
  background: var(--jtvv-soft);
  color: #263943;
  text-decoration: none;
}

.jtv-visual-v1 .jtv-table-scroll,
.jtv-visual-v1 .entry-content > table,
.jtv-visual-v1 .jtv-editorial-content > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--jtvv-border);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.jtv-visual-v1 table:not(.jtv-booking *) {
  width: 100%;
  border-collapse: collapse;
}

.jtv-visual-v1 :where(th, td):not(.jtv-booking *) {
  padding: .85rem 1rem;
  border-bottom: 1px solid #dfe6eb;
  text-align: left;
  vertical-align: top;
}

.jtv-visual-v1 th:not(.jtv-booking *) {
  background: var(--jtvv-surface);
  color: var(--jtvv-heading);
  font-family: Sora, sans-serif;
  font-weight: 600;
}

.jtv-visual-v1 .jtv-booking {
  width: 100%;
  margin: 3rem auto 1rem;
}

.jtv-visual-v1 .jtv-booking__shell {
  border-radius: var(--jtvv-radius);
  box-shadow: var(--jtvv-shadow);
}

/* Services pilot: DOM grouping is progressive and all text remains visible without JS. */
.jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover {
  width: min(calc(100% - 2rem), var(--jtvv-width));
  min-height: 500px;
  overflow: hidden;
  margin: 1.5rem auto 0;
  border-radius: var(--jtvv-radius);
  box-shadow: var(--jtvv-shadow);
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover .wp-block-cover__inner-container {
  width: min(100% - 2.5rem, 880px);
  margin-inline: auto;
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover h1 {
  color: #fff;
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover .wp-block-button__link {
  background: var(--jtvv-orange) !important;
  color: #000 !important;
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > section {
  width: min(calc(100% - 2rem), var(--jtvv-width));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > section:nth-of-type(even) {
  border-radius: var(--jtvv-radius);
  background: var(--jtvv-surface);
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > section > h2 {
  max-width: 28ch;
  margin: 0 auto 1rem;
  text-align: center;
}

.jtv-visual-v1.jtvv-template-s01 .entry-content > section > h2 + p {
  max-width: 72ch;
  margin: 0 auto 2rem;
  text-align: center;
}

.jtv-visual-v1 .jtvv-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.jtv-visual-v1 .jtvv-section-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}

.jtv-visual-v1 .jtvv-section-media img {
  display: block;
  width: 100%;
  height: clamp(210px, 28vw, 330px);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(31, 41, 55, .10);
  object-fit: cover;
}

.jtv-visual-v1 .jtvv-service-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--jtvv-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 41, 55, .08);
}

.jtv-visual-v1 .jtvv-service-card h3 {
  margin: 0 0 .7rem;
}

.jtv-visual-v1 .jtvv-service-card p {
  margin: 0;
}

.jtv-visual-v1.jtvv-template-p08 .jtv-editorial-content,
.jtv-visual-v1.jtvv-template-p09 .jtv-editorial-content {
  width: min(100%, 1040px);
}

.jtv-visual-v1.jtvv-template-p09 .entry-content:not(:has(.jtv-editorial-page)),
.jtv-visual-v1.jtvv-template-p11 .entry-content:not(:has(.jtv-editorial-page)) {
  width: min(calc(100% - 2rem), 1100px);
}

.jtv-visual-v1.jtvv-template-p10 .jtv-editorial-content,
.jtv-visual-v1.jtvv-template-p11 .jtv-editorial-content,
.jtv-visual-v1.jtvv-template-p12 .jtv-editorial-content,
.jtv-visual-v1.jtvv-template-p13 .jtv-editorial-content,
.jtv-visual-v1.jtvv-template-p14 .jtv-editorial-content {
  width: min(100%, 880px);
}

@media (max-width: 900px) {
  .jtv-visual-v1 .jtv-editorial-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .jtv-visual-v1 .jtv-editorial-hero > img {
    min-height: 280px;
    max-height: 420px;
    grid-column: 1;
    grid-row: 2;
  }

  .jtv-visual-v1 .jtv-editorial-hero-inner {
    grid-column: 1;
    grid-row: 1;
  }

  .jtv-visual-v1 .jtvv-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jtv-visual-v1 .jtvv-section-media img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  body.jtv-visual-v1 {
    font-size: 15.504px;
    line-height: 1.6;
  }

  .jtv-visual-v1 .entry-content h1:not(.jtv-booking *) {
    font-size: 30px;
    line-height: 1.2;
  }

  .jtv-visual-v1 .site-main > article > .entry-header .entry-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .jtv-visual-v1 .site-main > article > .entry-header:not(.ast-no-title) {
    padding-top: 6.5rem;
  }

  .jtv-visual-v1 .entry-content h2:not(.jtv-booking *) {
    margin-top: 2.8rem;
    font-size: 25px;
    line-height: 1.3;
  }

  .jtv-visual-v1 .entry-content h3:not(.jtv-booking *) {
    margin-top: 1.8rem;
    font-size: 20px;
    line-height: 1.3;
  }

  .jtv-visual-v1 .jtv-editorial-page,
  .jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover,
  .jtv-visual-v1.jtvv-template-s01 .entry-content > section {
    width: calc(100% - 1.5rem);
  }

  .jtv-visual-v1 .jtv-editorial-hero {
    margin-top: .75rem;
    border-radius: 14px;
  }

  .jtv-visual-v1 .jtv-editorial-hero > img {
    min-height: 220px;
    max-height: 300px;
  }

  .jtv-visual-v1 .jtv-editorial-hero-inner,
  .jtv-visual-v1 .jtv-editorial-content {
    padding-inline: 1.25rem;
  }

  .jtv-visual-v1 .jtv-editorial-content {
    padding-top: 2.25rem;
    padding-bottom: 4rem;
  }

  .jtv-visual-v1 .jtv-editorial-hero-inner h1 {
    text-align: left;
  }

  .jtv-visual-v1 .jtvv-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover {
    min-height: 520px;
  }

  .jtv-visual-v1.jtvv-template-s01 .entry-content > .wp-block-cover .wp-block-cover__inner-container {
    padding-top: 4rem;
  }

  .jtv-visual-v1.jtvv-template-s01 .entry-content > section {
    padding: 3rem .75rem;
  }

  .jtv-visual-v1 .entry-content :where(.wp-block-button__link, .jtv-cta a):not(.jtv-booking *) {
    width: 100%;
    min-height: 48px;
  }

  .jtv-visual-v1 :where(th, td):not(.jtv-booking *) {
    min-width: 8.5rem;
    padding: .75rem .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtv-visual-v1 *,
  .jtv-visual-v1 *::before,
  .jtv-visual-v1 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .jtv-visual-v1 :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid Highlight;
  }
}
