/* One quiet bilingual sans system. Inter faces load through the shared header. */
:root {
  --jl-font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jl-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jl-type-hero: clamp(2.75rem, 4vw, 3.5rem);
  --jl-type-page: clamp(2.5rem, 3.4vw, 3rem);
  --jl-type-section: clamp(1.75rem, 2.5vw, 2.125rem);
  --jl-type-body: 1.0625rem;
  --jl-type-meta: .875rem;
  --jl-type-control: .9375rem;
  --jl-type-reading: 67ch;
  --jl-v2-serif: var(--jl-font-display);
  --jl-v2-sans: var(--jl-font-body);
}
html[lang^="zh"] {
  --jl-font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --jl-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --jl-type-reading: 36em;
}
body:not(.jl-admin) {
  font-family: var(--jl-font-body);
  font-size: var(--jl-type-body);
  line-height: 1.7;
}
body:not(.jl-admin) :is(button, input, select, textarea) {
  font-family: var(--jl-font-body);
  font-size: max(1rem, var(--jl-type-control));
}
body:not(.jl-admin) :is(.jl-header, .jl-footer, .jl-card, .jl-archive, .discovery-hub-page, .project-premium-page, .home-refresh-page) {
  font-family: var(--jl-font-body);
}
body:not(.jl-admin) main :is(h1, h2) {
  font-family: var(--jl-font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body:not(.jl-admin) main h1 {
  font-size: var(--jl-type-page);
  overflow-wrap: normal;
}
body:not(.jl-admin) main h2 { font-size: var(--jl-type-section); }
body:not(.jl-admin) main h3 {
  font-family: var(--jl-font-body);
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.015em;
}
body:not(.jl-admin) main :is(p, li, dd) { line-height: 1.7; }
body:not(.jl-admin) main p { text-wrap: pretty; }
body:not(.jl-admin) main :is(.hero-intro, .hero-subtitle, .reader-lead, .article-body, .article-body-band, .seo-article-body) p {
  max-width: var(--jl-type-reading);
}
body:not(.jl-admin) :is(.price, .price-label, .price-highlight, .hero-price-guide, .jl-card-price, .monthly-result) {
  font-family: var(--jl-font-body);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.02em;
}
body:not(.jl-admin) :is(.jl-header, .jl-header a, .jl-header button, .jl-header summary) {
  font-family: var(--jl-font-body);
}
.jl-header .jl-menu > nav { font-size: var(--jl-type-control); font-weight: 500; }
.jl-header .jl-brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.jl-header .jl-brand small { font-size: .7rem; font-weight: 500; letter-spacing: .07em; }
body:not(.jl-admin) main :is(.eyebrow, .section-kicker, .home-section-kicker, .home-kicker, .hub-kicker, .jl-directory-kicker) {
  font-family: var(--jl-font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
}
.home-refresh-page #top h1 { font-family: var(--jl-font-display); font-size: var(--jl-type-hero); font-weight: 600; line-height: 1.12; letter-spacing: -.03em !important; }
.project-premium-page.original-media .hero-editorial-copy h1 { font-family: var(--jl-font-display); font-size: var(--jl-type-page); font-weight: 600; line-height: 1.15; letter-spacing: -.025em !important; }
.jl-project-directory .jl-directory-hero h1,
.project-premium-page .hero h1,
body:has(.article-body-band) .hero h1 { font-family: var(--jl-font-display); font-weight: 600; letter-spacing: -.025em; }
body:has(.article-body-band) .hero:not(.hero--compact) h1 { font-size: var(--jl-type-page); line-height: 1.16; }
.project-premium-page.detail-reader .reader-section h2,
.project-premium-page .section-title,
.discovery-hub-page .hub-section-head h2,
.home-refresh-page .home-section-head h2,
.home-refresh-page .home-service-intro h2,
body:has(.article-body-band) .longform-section h2,
body:not(.jl-admin) .lead-planner-copy h2 { font-family: var(--jl-font-display); font-size: var(--jl-type-section); font-weight: 600; line-height: 1.22; letter-spacing: -.02em; }
html[lang^="zh"] body:not(.jl-admin) { line-height: 1.78; }
html[lang^="zh"] body:not(.jl-admin) main :is(h1, h2),
html[lang^="zh"] body:not(.jl-admin) main :is(.section-title, .reader-section h2) {
  font-family: var(--jl-font-display) !important;
  font-weight: 600 !important;
  letter-spacing: .005em !important;
  line-height: 1.25;
}
html[lang^="zh"] body:not(.jl-admin) main :is(p, li, dd) { line-height: 1.78; }
html[lang^="zh"] body:not(.jl-admin) main :is(.eyebrow, .section-kicker, .home-section-kicker, .home-kicker, .hub-kicker, .jl-directory-kicker) {
  letter-spacing: .04em;
  text-transform: none;
}
@media (min-width: 821px) {
  html[lang^="zh"] .home-refresh-page #top h1 { font-size: clamp(2.5rem, 4vw, 3.25rem); }
}
@media (max-width: 820px) {
  :root {
    --jl-type-hero: clamp(2rem, 8.3vw, 2.25rem);
    --jl-type-page: clamp(1.875rem, 8vw, 2.25rem);
    --jl-type-section: clamp(1.5rem, 6.7vw, 1.875rem);
  }
  body:not(.jl-admin) { font-size: 1.0625rem; }
  body:not(.jl-admin) .jl-header .jl-menu > summary { font-size: var(--jl-type-control); font-weight: 600; white-space: nowrap; }
  body:not(.jl-admin) .jl-header .jl-menu > nav > a:not(.jl-button),
  body:not(.jl-admin) .jl-header .jl-menu .jl-locations summary,
  body:not(.jl-admin) .jl-header .jl-more > summary,
  body:not(.jl-admin) .jl-header .jl-locations a { min-height: 44px; }
  body.home-refresh-page #top h1 { font-size: var(--jl-type-hero); line-height: 1.12; }
  .project-premium-page .hero h1,
  .jl-project-directory .jl-directory-hero h1,
  body:has(.article-body-band) .hero h1,
  body:has(.article-body-band) .hero:not(.hero--compact) h1,
  body.parkcity-decision-guide:has(.article-body-band) .hero:not(.hero--compact) h1 { font-size: var(--jl-type-page); line-height: 1.2; }
  .project-premium-page.detail-reader .reader-section h2,
  .project-premium-page .section-title,
  .discovery-hub-page .hub-section-head h2 { font-size: var(--jl-type-section); }
}

/* Reading rhythm: comfortable prose, compact facts, no inherited article gaps in cards. */
.project-premium-page.detail-reader main .reader-grid { gap: 0; }
.project-premium-page.detail-reader main .reader-section,
body:has(.article-body-band) main .longform-section { padding-block: 32px; }
.project-premium-page.detail-reader main .reader-section h2,
body:has(.article-body-band) main .longform-section h2 {
  margin-block: 0 16px;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.3;
}
.project-premium-page.detail-reader main .reader-section > :is(p, ul, ol),
body:has(.article-body-band) main .longform-section > :is(p, ul, ol) {
  max-width: min(100%, 700px, var(--jl-type-reading));
  margin-bottom: 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.project-premium-page.detail-reader main #answer .reader-intro {
  max-width: min(100%, 700px, var(--jl-type-reading));
  font-size: 1.125rem;
  line-height: 1.7;
}
.project-premium-page.detail-reader main .reader-section > :is(.reader-note, .reader-byline),
.project-premium-page.detail-reader main .reader-sources > p {
  font-size: .875rem;
  line-height: 1.6;
}
.project-premium-page.detail-reader main .reader-section > :last-child,
body:has(.article-body-band) main .longform-section > :last-child { margin-bottom: 0; }
.project-premium-page.detail-reader main .reader-section h3 { margin-block: 24px 8px; }

/* Keep the highlighted verdict within the same readable measure. */
.project-premium-page.detail-reader main #answer .reader-verdict {
  max-width: min(100%, 700px, var(--jl-type-reading));
  padding: 20px;
}

/* Each recommendation is a self-contained group, not eight shared subgrid rows. */
:is(.detail-reader .reader-section, body:has(.article-body-band)) :is(.jl-grid, .project-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) :is(.jl-grid, .project-grid) > .jl-card {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  gap: 0;
  padding: 0;
  min-width: 0;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-body > * { margin: 0; }
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-body h3 {
  min-height: 0;
  /* Override the legacy global card heading !important declaration. */
  font-size: 1.125rem !important;
  line-height: 1.35 !important;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-area {
  padding: 0;
  font-size: .875rem;
  line-height: 1.5;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-price { font-size: .9375rem; line-height: 1.5; }
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-body dl {
  grid-row: auto;
  grid-template-rows: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-top: 12px;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card dl > div:first-child { grid-column: 1 / -1; }
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card dt { font-size: .8125rem; line-height: 1.4; }
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card dd {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: .875rem;
  line-height: 1.5;
}
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-actions { padding-top: 2px; align-self: stretch; }
:is(.detail-reader .reader-section, body:has(.article-body-band)) .jl-card .jl-card-link { min-height: 44px; }
@media (max-width: 960px) {
  :is(.detail-reader .reader-section, body:has(.article-body-band)) :is(.jl-grid, .project-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .project-premium-page.detail-reader main .reader-section,
  body:has(.article-body-band) main .longform-section { padding-block: 24px; }
  .project-premium-page.detail-reader main .reader-section h2,
  body:has(.article-body-band) main .longform-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
  .project-premium-page.detail-reader main #answer .reader-intro { font-size: 1.0625rem; }
  .project-premium-page.detail-reader main .reader-section > :is(p, ul, ol),
  body:has(.article-body-band) main .longform-section > :is(p, ul, ol) { margin-bottom: 14px; }
  :is(.detail-reader .reader-section, body:has(.article-body-band)) :is(.jl-grid, .project-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Continuous reading track; media and comparisons retain their wider canvas. */
.project-premium-page.detail-reader main .reader-main,
.project-premium-page.detail-reader main .reader-section {
  background: #fff !important;
}
.project-premium-page.detail-reader main .reader-section > :is(h2, h3, p, ul, ol, .reader-highlights, .reader-text-link),
body:has(.article-body-band) main .longform-section > :is(h2, h3, p, ul, ol) {
  width: 100%;
  max-width: min(100%, 700px) !important;
  margin-inline: auto;
}
.project-premium-page.detail-reader main .reader-section > .reader-text-link { display: block; }
.project-premium-page.detail-reader main #answer .reader-verdict {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 500;
  line-height: 1.7 !important;
}
.project-premium-page.detail-reader main #answer .reader-verdict .jl-prose-segment:first-child { font-weight: inherit; }
.project-premium-page.detail-reader main #answer .reader-intro { font-size: 1.0625rem; }
.project-premium-page.detail-reader main .reader-highlights { display: block; }
.project-premium-page.detail-reader main .reader-highlights > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--reader-line);
}
.project-premium-page.detail-reader main .reader-highlights > div > :is(h3, p) { margin: 0; font-size: 1rem; line-height: 1.6; }
@media (max-width: 640px) {
  .project-premium-page.detail-reader main .reader-highlights > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.project-premium-page.detail-reader main #answer > :is(.reader-intro, .reader-verdict, .reader-early-link) {
  width: 100%;
  max-width: min(100%, 700px) !important;
  margin-inline: auto;
}

/* Keep article leads and section summaries on the same readable body scale. */
body:has(.article-body-band) main :is(.editorial-lead, .section-intro) {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: min(100%, 700px);
}
