:root {
  --editorial-width: 73rem;
  --editorial-gutter: clamp(1rem, 3.5vw, 2.5rem);
  --editorial-measure: 68ch;
  --editorial-h1: clamp(1.85rem, 1.24rem + 1.8vw, 2.9rem);
  --editorial-h2: clamp(1.32rem, 1.1rem + .75vw, 1.95rem);
  --editorial-h3: clamp(1.05rem, .98rem + .34vw, 1.3rem);
  --editorial-card-title: 1.125rem;
  --editorial-section: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  --editorial-gap: clamp(.875rem, 1.65vw, 1.5rem);
  --editorial-padding: clamp(.875rem, 1.5vw, 1.375rem);
  --editorial-radius: .625rem;
  --editorial-action: #a2262e;
  --editorial-action-hover: #842027;
}

/* Older templates declare some heading and hero properties as !important.
   Keep the cross-template overrides together in an important cascade layer. */
@layer editorial-refinement {
  main h1 {
    font-size: var(--editorial-h1) !important;
    font-weight: 650 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
  }

  main h2 {
    font-size: var(--editorial-h2) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -.023em !important;
  }

  main h3 {
    font-size: var(--editorial-h3) !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    letter-spacing: -.012em !important;
  }

  main :is(.v103-title-row, .interests-hero, .v106-hero, .medical-hero, .blog-home-hero, .article-hero, .v55-city-hero) h1 {
    max-width: min(100%, 27ch) !important;
  }

  main :is(.interest-feature-card, .medical-plan, .medical-service-areas, .medical-steps) {
    --editorial-h2: var(--editorial-card-title);
    --editorial-h3: var(--editorial-card-title);
  }

  main .medical-plan {
    --editorial-h3: 1.35rem;
  }

  main :is(.v103-title-row p:not(.v103-kicker), .interests-hero .lead,
    .v106-hero-copy > p:not(.v106-kicker), .blog-home-hero > div > p:not(.eyebrow), .article-deck, .blog-deck) {
    max-width: var(--editorial-measure) !important;
    font-size: 1.025rem !important;
    line-height: 1.58 !important;
  }

  main :is(.article-body, .publication-body) :is(p, li) {
    line-height: 1.66 !important;
  }

  header :is(.main-nav, .benchmark-nav) a,
  header :is(.benchmark-actions, .header-actions) a,
  .section-subnav a {
    font-size: .9rem !important;
    font-weight: 600 !important;
  }

  body :is(.v105-interests-main, .v106-plan-main, .blog-home, .medical-travel),
  .destination-v103 .v55-city-main {
    width: min(var(--editorial-width), calc(100% - 2 * var(--editorial-gutter))) !important;
    max-width: none !important;
    padding-inline: 0 !important;
  }

  body :is(.v105-interests-main, .v106-plan-main, .blog-home),
  .destination-v103 .v55-city-main {
    padding-top: var(--editorial-section) !important;
  }

  .destination-v103 .v103-destination-portal {
    padding: 0 0 var(--editorial-section) !important;
  }

  .destination-v103 .v103-region-tabs {
    margin-block: 0 !important;
  }

  main.phase1d {
    --editorial-h1: clamp(1.85rem, 1.3rem + 1.6vw, 2.65rem);
    --editorial-h2: clamp(1.3rem, 1.15rem + .55vw, 1.75rem);
  }

  main :is(.interests-hero, .blog-home-hero, .v106-hero, .medical-hero) {
    padding: 0 0 var(--editorial-section) !important;
    min-height: 0 !important;
    gap: var(--editorial-gap) !important;
  }

  main .medical-hero {
    padding-top: var(--editorial-section) !important;
  }

  main :is(.blog-home-hero, .v106-hero, .medical-hero) {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important;
    align-items: center !important;
  }

  main :is(.interest-feature-grid, .blog-feature-grid, .v106-content-grid) {
    margin-top: var(--editorial-gap) !important;
    gap: var(--editorial-gap) !important;
  }

  main .interest-feature-grid {
    padding-top: 0 !important;
  }

  main .interest-feature-card {
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 0 var(--editorial-padding) !important;
  }

  main .v106-hero-photo {
    max-width: none !important;
  }

  main :is(.v106-hero-photo img, .blog-lead-card img, .blog-feature-grid img) {
    height: auto !important;
  }

  @media (max-width: 699px) {
    main :is(.blog-home-hero, .v106-hero, .medical-hero) {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    header :is(.main-nav, .benchmark-nav) a {
      font-size: .84rem !important;
    }
  }
}

main :is(h1, h2, h3) {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

main :is(.article-body, .publication-body, .blog-section) > :is(p, ul, ol, dl) {
  max-width: 72ch;
}

.benchmark-header {
  gap: clamp(.75rem, 1.5vw, 1.5rem);
}

.benchmark-header .benchmark-nav {
  gap: clamp(.85rem, 1.8vw, 1.65rem);
}

.site-header .theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 1.75rem;
  padding: .22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}

.site-header .theme-toggle__dot {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: var(--muted);
}

[data-theme="dark"] .site-header .theme-toggle {
  justify-content: flex-end;
}

nav.section-subnav {
  width: min(var(--editorial-width), calc(100% - 2 * var(--editorial-gutter)));
  justify-content: flex-start;
  column-gap: clamp(.875rem, 2vw, 1.75rem);
  padding-inline: .25rem;
}

nav.section-subnav a {
  padding-inline: .375rem;
}

main :is(.blog-home-hero, .v106-hero, .medical-hero, .interests-hero) > * {
  min-width: 0;
}

main :is(.blog-related-card, .v106-side-news, .v106-survey-card) {
  border: 1px solid var(--line);
  border-radius: var(--editorial-radius);
  background: var(--card);
  box-shadow: none;
}

main :is(.blog-related-card, .v106-side-news, .v106-decision-grid, .v106-tools-grid) a {
  font-weight: 600;
  line-height: 1.4;
}

main :is(.blog-hero-actions, .v106-hero-actions, .medical-actions, .interest-quick-tools) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .875rem;
}

main :is(.blog-hero-actions, .v106-hero-actions, .interest-quick-tools) a,
.medical-travel .medical-button,
.phase1d.p1d-home .medical-home-entry .medical-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 2.625rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: var(--text);
  background: var(--card);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

main :is(.blog-hero-actions, .v106-hero-actions) a:first-child,
.medical-travel .medical-button:not(.medical-button-secondary),
.phase1d.p1d-home .medical-home-entry .medical-button {
  border-color: var(--editorial-action);
  background: var(--editorial-action);
  color: #fff;
}

main :is(.blog-hero-actions, .v106-hero-actions) a:first-child:hover,
.medical-travel .medical-button:not(.medical-button-secondary):hover {
  background: var(--editorial-action-hover);
}

main :is(.blog-hero-actions, .v106-hero-actions) a:not(:first-child):hover,
main .interest-quick-tools a:hover,
.medical-travel .medical-button-secondary:hover {
  background: var(--card-soft);
  color: var(--text);
}

main :is(.blog-home-hero, .v106-hero-copy, .interests-hero) :is(.eyebrow, .v106-kicker),
.destination-v103 .v103-title-row .v103-kicker,
.destination-v103 .v57-finder-head .v55-kicker {
  margin: 0 0 .4rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

/* Destinations */
.destination-v103 .v103-destination-portal {
  width: 100%;
  max-width: none;
}

.destination-v103 .v103-destination-portal > span[id] {
  display: block;
}

.destination-v103 .v103-title-row {
  max-width: none;
  margin-bottom: 1.15rem;
}

.destination-v103 .v103-title-row h1 {
  margin: 0;
}

.destination-v103 .v103-title-row p:not(.v103-kicker) {
  margin: .55rem 0 0;
}

.destination-v103 #regions-of-china {
  --editorial-h2: 1.15rem;
  margin: 0;
  padding: .875rem 0 0;
  border-top: 1px solid var(--line);
}

.destination-v103 #regions-of-china h2 {
  margin: 0 0 .4rem;
}

.destination-v103 .v103-region-tabs,
.destination-v103 .v57-finder-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .375rem;
  margin: 0;
  padding: 0;
}

.destination-v103 :is(.v103-region-tabs a, .v57-finder-controls button) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.25rem;
  max-width: 100%;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--text);
  background: var(--card);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  box-shadow: none;
}

.destination-v103 :is(.v103-region-tabs a:hover, .v57-finder-controls button:hover) {
  color: var(--text);
  background: var(--card-soft);
}

.destination-v103 .v57-finder-controls button.is-active {
  border-color: var(--editorial-action);
  color: #fff;
  background: var(--editorial-action);
}

.destination-v103 .v57-city-finder {
  margin: 1rem 0 var(--editorial-section);
  padding: var(--editorial-padding);
  border: 1px solid var(--line);
  border-radius: var(--editorial-radius);
  background: var(--bg);
}

.destination-v103 .v57-finder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  align-items: center;
  gap: var(--editorial-gap);
  margin: 0 0 1rem;
}

.destination-v103 .v57-finder-head > div {
  min-width: 0;
}

.destination-v103 .v57-finder-head h2 {
  margin: 0 0 .3rem;
}

.destination-v103 .v57-finder-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.5;
}

.destination-v103 .v57-finder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .875rem;
}

.destination-v103 .v57-finder-grid a {
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: 0;
  border-color: var(--line);
  border-radius: var(--editorial-radius);
  color: var(--text);
  background: var(--card);
  box-shadow: none;
}

.destination-v103 .v57-finder-grid .city-photo {
  min-height: 0;
  height: auto;
  aspect-ratio: 2.15;
}

.destination-v103 .v57-finder-grid strong {
  padding: .65rem .875rem .18rem;
  font-size: var(--editorial-card-title);
  font-weight: 650;
  line-height: 1.3;
}

.destination-v103 .v57-finder-grid :is(em, small) {
  padding-inline: .875rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.4;
}

.destination-v103 .v57-finder-grid small {
  padding-block: .3rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: none;
}

.destination-v103 .v55-guide-links {
  gap: .55rem;
  margin-top: 0;
}

.destination-v103 .v55-guide-links a {
  font-size: .925rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Medical Travel */
.medical-travel .medical-hero h1 {
  margin: .4rem 0 .65rem;
}

.medical-travel .medical-lead {
  margin-bottom: .85rem;
  font-size: clamp(1.02rem, 1rem + .25vw, 1.22rem);
  font-weight: 600;
  line-height: 1.4;
}

.medical-travel .medical-hero-copy > p {
  max-width: var(--editorial-measure);
}

.medical-travel .medical-hero-copy > p + p {
  margin-top: .45rem;
}

.medical-travel .medical-hero-image {
  aspect-ratio: 16 / 11;
  border-radius: var(--editorial-radius);
}

.medical-travel .medical-section {
  padding-block: var(--editorial-section);
}

.medical-travel .medical-section-intro {
  margin-bottom: 1rem;
}

.medical-travel :is(.medical-service-areas article, .medical-plan, .medical-steps li) {
  padding: var(--editorial-padding);
}

/* Interests */
.interests-v105 .interests-hero {
  max-width: none;
  margin-bottom: 0;
}

.interests-v105 .interests-hero h1,
.blog-index-v95 .blog-home-hero h1 {
  margin: 0 0 .65rem;
}

.interests-v105 .interest-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--editorial-section);
}

.interests-v105 .interest-feature-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--editorial-radius);
  color: var(--text);
  background: var(--card);
  box-shadow: none;
}

.interests-v105 .interest-feature-card::after {
  content: none;
}

.interests-v105 .interest-feature-card img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
  object-fit: cover;
  border-radius: 0;
}

.interests-v105 .interest-feature-card :is(span, h2, p) {
  display: block;
  max-width: none;
  margin-inline: var(--editorial-padding);
  color: var(--text);
}

.interests-v105 .interest-feature-card span {
  margin-block: .7rem .2rem;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 600;
}

.interests-v105 .interest-feature-card h2 {
  margin-block: 0 .3rem;
}

.interests-v105 .interest-feature-card p {
  margin-block: 0;
  color: var(--muted);
}

.interests-v105 .interest-section {
  margin-block: var(--editorial-section);
}

.interests-v105 :is(.interest-card-list, .interest-compact-grid, .interest-business-row, .interest-more) a {
  font-weight: 600;
  line-height: 1.45;
}

/* Plan a trip and Blog */
.plan-trip-v106 .v106-content-grid {
  grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
}

.plan-trip-v106 .v106-decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-trip-v106 :is(.v106-decision-panel, .v106-route-section, .v106-timeline, .v106-tool-row) {
  margin-bottom: var(--editorial-section);
}

.plan-trip-v106 :is(.v106-decision-panel, .v106-route-section, .v106-timeline, .v106-tool-row) h2 {
  margin-bottom: .8rem;
}

.plan-trip-v106 .v106-decision-grid article {
  min-height: 0;
  padding: var(--editorial-padding);
  border: 1px solid var(--line);
  border-radius: var(--editorial-radius);
  background: var(--card);
  box-shadow: none;
}

.plan-trip-v106 .v106-decision-grid span {
  width: 1.65rem;
  height: 1.65rem;
  background: var(--editorial-action);
  font-size: .78rem;
  font-weight: 600;
}

.plan-trip-v106 .v106-decision-grid h3 {
  margin: .5rem 0 .25rem;
}

.plan-trip-v106 .v106-hero-copy > p:not(.v106-kicker) {
  margin-top: .75rem;
}

.plan-trip-v106 .v106-hero-photo,
.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid a, .blog-category-row > div > a) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--editorial-radius);
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}

.plan-trip-v106 .v106-hero-photo img,
.blog-index-v95 .blog-lead-card img {
  aspect-ratio: 2.25;
}

.blog-index-v95 .blog-feature-grid img {
  aspect-ratio: 1.85;
}

.plan-trip-v106 .v106-hero-photo figcaption {
  padding: .75rem var(--editorial-padding) .9rem;
}

.plan-trip-v106 .v106-hero-photo figcaption strong {
  font-size: var(--editorial-card-title);
  font-weight: 600;
  line-height: 1.35;
}

.blog-index-v95 .blog-feature-grid {
  padding-block: 0 var(--editorial-section);
}

.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid > a, .blog-category-row > div > a) {
  padding-bottom: var(--editorial-padding);
}

.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid > a, .blog-category-row > div > a) :is(span, strong, em) {
  margin-inline: var(--editorial-padding);
}

.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid > a, .blog-category-row > div > a) span {
  margin-block: .7rem .3rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}

.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid > a, .blog-category-row > div > a) strong {
  color: var(--text);
  font-size: var(--editorial-card-title);
  font-weight: 650;
  line-height: 1.32;
}

.blog-index-v95 :is(.blog-lead-card, .blog-feature-grid > a, .blog-category-row > div > a) em {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.blog-index-v95 .blog-section-head {
  margin-block: var(--editorial-section) 1rem;
}

.blog-v95 .blog-article-shell {
  width: min(var(--editorial-width), calc(100% - 2 * var(--editorial-gutter)));
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: var(--editorial-section);
}

.blog-v95 .blog-article,
.blog-v95 .blog-side {
  min-width: 0;
}

.blog-v95 .blog-hero-image {
  margin-block: var(--editorial-gap);
  border-radius: var(--editorial-radius);
  box-shadow: none;
}

.blog-v95 .blog-hero-image img {
  max-height: clamp(12rem, 27vw, 21rem);
}

@media (max-width: 950px) {
  .destination-v103 .v57-finder-grid,
  .interests-v105 .interest-feature-grid,
  .blog-index-v95 .blog-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-trip-v106 .v106-content-grid,
  .blog-v95 .blog-article-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 699px) {
  nav.section-subnav {
    column-gap: .75rem;
  }

  .benchmark-header .benchmark-nav {
    gap: .68rem;
  }

  .destination-v103 .v103-title-row {
    margin-bottom: .85rem;
  }

  .destination-v103 .v57-city-finder {
    margin-top: .85rem;
  }

  .destination-v103 .v57-finder-head {
    grid-template-columns: minmax(0, 1fr);
    gap: .625rem;
  }

  .destination-v103 :is(.v103-region-tabs, .v57-finder-controls) {
    gap: .3rem;
  }

  .destination-v103 :is(.v103-region-tabs a, .v57-finder-controls button) {
    min-height: 2.1rem;
    padding-inline: .5rem;
  }

  .medical-travel .medical-hero-image,
  .plan-trip-v106 .v106-hero-photo img,
  .blog-index-v95 .blog-lead-card img {
    aspect-ratio: 2.35;
  }
}

@media (max-width: 540px) {
  .destination-v103 .v57-finder-grid,
  .interests-v105 .interest-feature-grid,
  .blog-index-v95 .blog-feature-grid,
  .plan-trip-v106 .v106-decision-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .medical-travel .medical-hero .medical-button {
    flex: 0 1 auto;
  }
}
