/* Phase 1 is opt-in: the two homepages and the bilingual hotel-booking guide.
   Status colours, scoring and pages outside this pilot keep their existing rules. */
.visual-pilot {
  --surface: #fffefa;
  --ink: #243c39;
  --muted: #56645e;
  --line: #d9ded3;
  --mint: #edf1e9;
  --pilot-amber: #8c612d;
  --pilot-radius: 16px;
  --pilot-width: 1240px;
  --pilot-gutter: clamp(20px, 4vw, 56px);
  --shadow: 0 8px 24px rgb(36 60 57 / 5%);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Use the site-wide paper and landmark backdrop from styles.css so the pilot pages match the guides. */
.visual-pilot main { overflow: visible; animation: none; }
.visual-pilot :is(a, button, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.visual-pilot :is(button, select, a, summary) { -webkit-tap-highlight-color: transparent; }
.visual-pilot :is(h1, h2, h3) { color: var(--ink); text-wrap: balance; }
.visual-pilot .eyebrow { color: var(--teal); font-size: .76rem; font-weight: 700; letter-spacing: .06em; }
.visual-pilot .pilot-skip {
  position: absolute;
  z-index: 30;
  left: 16px;
  top: -100px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--teal-dark);
}
.visual-pilot .pilot-skip:focus { top: 12px; }

/* All existing links remain. Topics stay visible in a second row instead of a menu. */
.visual-pilot .site-header {
  position: relative;
  padding: 16px var(--pilot-gutter);
  min-height: 84px;
  background: rgb(250 248 241 / 90%);
  backdrop-filter: none;
  animation: none;
  gap: 24px;
}
.visual-pilot .brand { gap: 10px; flex-shrink: 0; }
.visual-pilot .brand-mark { width: 48px; height: 48px; }
.visual-pilot .brand strong { font-size: .96rem; line-height: 1.35; }
.visual-pilot .brand small { margin-top: 3px; font-size: .72rem; }
.visual-pilot .main-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.home-pilot .home-tool-first {
  width: 100%;
  max-width: var(--pilot-width);
  margin: 0 auto;
  padding: 44px var(--pilot-gutter) 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "intro art" "panel panel";
  gap: 36px 44px;
  min-height: 0;
  overflow: visible;
}
.home-pilot .home-intro { align-self: center; max-width: none; }
.visual-pilot.home-pilot .home-tool-first h1 {
  font-family: "Iowan Old Style", "Yu Mincho", "Noto Serif CJK TC", "Songti TC", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -.025em;
}
.visual-pilot.home-pilot .home-tool-first .hero-message {
  margin: 20px 0 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 400;
  max-width: 42ch;
}
.visual-pilot .pilot-start { font-size: .92rem; gap: 28px; border-radius: 6px; font-weight: 650; }
.home-pilot .pilot-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.home-pilot .pilot-plan { border-radius: 6px; font-size: .92rem; font-weight: 650; background: var(--surface); border-color: var(--teal); }
.visual-pilot .editorial-art { margin: 0; min-width: 0; }
.visual-pilot .editorial-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.visual-pilot .editorial-art figcaption { padding-top: 9px; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.home-pilot .hero-art { grid-area: art; align-self: center; }
.home-pilot .hero-art img { border-radius: 90px 12px 12px 12px; }
.home-pilot .hero-art figcaption { text-align: right; }
.home-pilot .tool-panel { min-width: 0; border-radius: var(--pilot-radius); box-shadow: var(--shadow); }
.visual-pilot.home-pilot .home-tool-first .tool-instructions { margin: 0; padding: 24px 28px 0; border: 0; }
.visual-pilot.home-pilot .tool-instructions h2 { font-size: 1.38rem; line-height: 1.4; }
.home-pilot .calculator-help { margin: 0; padding: 0 28px 18px; font-size: .84rem; line-height: 1.7; color: var(--muted); }
.home-pilot .selector-grid { grid-template-columns: 1.15fr .75fr 1fr auto; padding: 22px 28px; gap: 16px; align-items: end; }
.home-pilot .selector-grid label { min-width: 0; }
.home-pilot .selector-grid select { background: var(--surface); border-color: #889b94; border-radius: 6px; }
.home-pilot .calculate-button { grid-column: auto; min-width: 144px; min-height: 46px; font-size: .95rem; }
.home-pilot .calculator-status { margin: 0 28px; }
.home-pilot .calculator-status:empty { min-height: 0; }
.home-pilot .result-card { gap: 12px; padding: 24px 28px; }
.home-pilot .result-card > p { margin: 0; }
.home-pilot #result-title { font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.4; }
.home-pilot .result-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.home-pilot .result-metrics dd { font-size: 1.5rem; }
.home-pilot :is(.result-disclaimer, .result-advice, .result-method-link) { font-size: .84rem; line-height: 1.7; }
/* Results are a reading surface: analysis is never behind a disclosure. */
.home-pilot .result-overview {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 24px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 14px;
}
.home-pilot .result-overview > p { margin: 0; }
.home-pilot .result-overview-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.home-pilot .result-overview-heading > div:first-child { min-width: 0; }
.home-pilot .result-overview-heading h2 { margin: 0; }
.home-pilot .result-overview-heading .season-badge { flex: 0 0 auto; min-width: 0; font-size: .85rem; }
.home-pilot .result-overview .result-metrics > div { background: var(--surface); }
.home-pilot .result-analysis { display: grid; min-width: 0; gap: 24px; padding-top: 16px; }
.home-pilot .result-analysis-label { margin: 0; letter-spacing: .06em; }
.home-pilot .result-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.home-pilot .result-evidence-card { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.home-pilot .result-evidence-card > h3 { margin: 0 0 16px; color: var(--teal-dark); font-size: 1.05rem; }
.home-pilot .result-evidence-grid .breakdown-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.home-pilot .result-evidence-grid .breakdown-value { grid-column: 2; grid-row: 1; }
.home-pilot .result-evidence-grid .breakdown-bar { grid-column: 1 / -1; grid-row: 2; }
.home-pilot .result-evidence-grid .month-strip-track { grid-template-columns: minmax(0, 1fr); }
.home-pilot .result-evidence-grid .strip-seg { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; }
.home-pilot .result-evidence-grid .strip-label { grid-row: 1 / span 2; }
.home-pilot .result-evidence-grid .strip-note { grid-column: 2; line-height: 1.6; }
.home-pilot .result-evidence-grid .month-strip-legend { font-size: .75rem; line-height: 1.6; }
.home-pilot .result-analysis > .major-events { margin-top: 0; }
.home-pilot .result-analysis > .comfort-alternatives:not(.spot-suggestions, .itinerary-section) { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.home-pilot .result-guidance-title { margin: 8px 0 -12px; font-size: 1.05rem; }
.home-pilot .home-planning-links > summary { padding: 16px 0; cursor: pointer; color: var(--teal-dark); font-size: .94rem; font-weight: 600; }
.home-pilot .result-actions { border-top: 1px solid var(--line); padding-top: 16px; gap: 8px; }
.home-pilot .result-actions button { font-size: .84rem; min-height: 44px; padding: 8px 14px; }
.home-pilot .share-status:empty { min-height: 0; }
.home-pilot .poster-disclosure { font-size: .88rem; }

/* Scenic editorial cards do not claim to depict specific properties. */
.home-pilot .journey-ideas,
.home-pilot .home-discovery { max-width: var(--pilot-width); margin: 0 auto; padding: 40px var(--pilot-gutter); background: transparent; border: 0; }
.home-pilot .section-heading { max-width: 760px; }
.home-pilot .section-heading h2,
.home-pilot .home-discovery-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.4; }
.home-pilot .section-heading > p:not(.eyebrow),
.home-pilot .home-discovery-heading p { font-size: .96rem; color: var(--muted); }
.home-pilot .journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.home-pilot .journey-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pilot-radius); overflow: hidden; }
.home-pilot .journey-card .editorial-art figcaption { padding: 10px 24px 0; }
.home-pilot .journey-card-copy { padding: 20px 24px 28px; }
.home-pilot .journey-card h3 { font-size: 1.45rem; line-height: 1.45; }
.home-pilot .journey-card p { font-size: .95rem; color: var(--muted); }
.home-pilot .journey-card .journey-planning-note { font-size: .83rem; color: var(--pilot-amber); padding-top: 14px; border-top: 1px solid var(--line); }
.home-pilot .journey-card a { display: inline-block; padding-top: 6px; font-weight: 650; font-size: .9rem; }
.home-pilot .illustration-note { color: var(--muted); font-size: .76rem; margin: 14px 0 24px; }
.home-pilot .home-planning-links { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-pilot .home-planning-links .home-support { margin: 0 0 24px; }
.home-pilot .hero-actions { margin-top: 14px; }
.home-pilot .hero-actions a { font-size: .88rem; }

.home-pilot .home-discovery-heading { align-items: baseline; }
.home-pilot .home-discovery-heading > a { font-size: .88rem; }
.home-pilot .home-discovery-controls { margin: 24px 0; }
.home-pilot .home-discovery-grid { gap: 18px; }
.home-pilot .home-discovery-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--pilot-radius); background: var(--surface); }
.home-pilot .home-discovery-card h3 { margin: 12px 0; font-size: 1.18rem; }
.home-pilot .home-discovery-card > p { line-height: 1.75; }
.home-pilot .home-discovery-card .home-discovery-booking { padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: .88rem; font-weight: 500; }
.home-pilot .home-discovery-actions { margin-bottom: 14px; }
.home-pilot .home-discovery-details { border-top: 1px solid var(--line); }
.home-pilot .home-discovery-details > summary { padding: 14px 0 0; cursor: pointer; color: var(--teal-dark); font-size: .82rem; }
.home-pilot .home-discovery-details[open] > summary { padding-bottom: 12px; }
.home-pilot .home-discovery-details .home-discovery-sources { padding-top: 8px; }
.home-pilot .home-discovery-sources li { overflow-wrap: anywhere; }

/* Quieter supporting cards; meaningful score/risk indicators keep their colours. */
.home-pilot :is(.snapshot-card, .guide-card, .cluster-card, .deep-card) { border-color: var(--line); background: var(--surface); box-shadow: none; }
.home-pilot .snapshot-card { border-left-width: 1px; }
.home-pilot .snapshot-card h3::before { color: var(--teal-dark); background: var(--mint); }
.home-pilot .upcoming-calendar-home { background: rgb(237 241 233 / 78%); }
.home-pilot .upcoming-calendar-home::before { display: none; }
.home-pilot .upcoming-calendar-home-card { background: var(--surface); }
.home-pilot .upcoming-calendar-home-card > span { color: var(--teal); }
.home-pilot .upcoming-calendar-home-head p:not(.eyebrow),
.home-pilot .upcoming-calendar-home-verified { color: var(--muted); }

/* One existing article, both languages. All factual content stays in place. */
.guide-pilot .article-shell { max-width: var(--pilot-width); padding: 40px var(--pilot-gutter) 72px; }
.guide-pilot .article-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: none; margin-bottom: 56px; }
.guide-pilot .article-hero h1 { font-family: "Iowan Old Style", "Yu Mincho", "Songti TC", Georgia, serif; font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.3; font-weight: 600; }
.guide-pilot .article-hero .lead { font-size: 1rem; line-height: 1.8; }
.guide-pilot .guide-art img { border-radius: 80px 12px 12px 12px; }
.guide-pilot .article-summary { background: transparent; border: 0; border-left: 2px solid var(--pilot-amber); border-radius: 0; padding: 0 0 0 16px; font-size: .92rem; }
.guide-pilot :is(.article-section, .source-box, .related-guides) { max-width: 860px; margin-left: auto; margin-right: auto; }
.guide-pilot .article-section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.guide-pilot .article-section h2 { font-size: 1.65rem; line-height: 1.5; }
.guide-pilot .article-section p,
.guide-pilot .article-section li { line-height: 1.9; }
.guide-pilot .article-table { background: var(--surface); border-radius: 12px; }
.guide-pilot .source-box { background: var(--mint); border-color: var(--line); }

@media (max-width: 1100px) {
  .visual-pilot .site-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .visual-pilot .main-nav { align-items: stretch; width: 100%; }
  .visual-pilot .nav-primary-links { justify-content: flex-start; }
  .home-pilot .home-tool-first { gap: 28px; }
  .home-pilot .selector-grid { grid-template-columns: 1fr 1fr; }
  .home-pilot .calculate-button { width: 100%; }
  .guide-pilot .article-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 680px) {
  .visual-pilot .site-header { padding: 12px 20px; }
  .visual-pilot .brand-mark { width: 40px; height: 40px; }
  .visual-pilot .brand strong { font-size: .88rem; }
  .visual-pilot .main-nav { flex-wrap: wrap; gap: 4px 18px; }
  .home-pilot .home-tool-first { padding-top: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "art" "panel"; gap: 18px; }
  .visual-pilot.home-pilot .home-tool-first h1 { font-size: 2rem; }
  .visual-pilot.home-pilot .home-tool-first .hero-message { margin: 10px 0 14px; font-size: .94rem; line-height: 1.6; }
  .home-pilot .hero-art img { height: auto; border-top-left-radius: 48px; }
  .home-pilot .hero-art figcaption { font-size: .65rem; }
  /* Keep both tools and the full illustration within a compact mobile introduction. */
  .home-pilot .site-header { gap: 8px; }
  .home-pilot .home-intro > .eyebrow { font-size: .68rem; line-height: 1.5; }
  html[lang="en"] .visual-pilot.home-pilot .home-tool-first h1 { font-size: 1.625rem; line-height: 1.22; }
  .home-pilot .pilot-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-pilot .pilot-actions a { min-width: 0; min-height: 48px; padding: 10px; font-size: .85rem; line-height: 1.4; text-align: center; }
  .home-pilot .pilot-start { gap: 8px; }
  .home-pilot .hero-art { width: min(100%, 280px); justify-self: center; }
  .visual-pilot.home-pilot .home-tool-first .tool-instructions { padding: 20px 18px 0; }
  .home-pilot .selector-grid { padding: 18px; gap: 16px 12px; }
  .home-pilot .selector-grid label:first-child { grid-column: 1 / -1; }
  .home-pilot .calculate-button { grid-column: 1 / -1; }
  .home-pilot .selector-grid select { font-size: 1rem; padding-left: 10px; }
  .home-pilot .result-card { padding: 20px 18px; }
  .home-pilot .result-overview { padding: 18px; gap: 14px; }
  .home-pilot .result-overview-heading { flex-direction: column; gap: 12px; }
  .home-pilot .result-overview .result-metrics > div { min-width: 0; padding: 10px 8px; }
  .home-pilot .result-evidence-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-pilot .result-evidence-card,
  .home-pilot .result-analysis > .comfort-alternatives:not(.spot-suggestions, .itinerary-section) { padding: 16px; }
  .home-pilot .result-evidence-grid .strip-seg { grid-template-columns: 48px minmax(0, 1fr); padding: 10px; }
  .home-pilot .result-metrics { gap: 8px; }
  .home-pilot .result-metrics dd { font-size: 1.24rem; }
  .home-pilot .result-metrics dt { font-size: .72rem; }
  .home-pilot .calculator-status { margin: 0 18px; }
  .home-pilot .calculator-help { padding: 0 18px 16px; }
  .home-pilot .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pilot .result-actions button { min-width: 0; width: 100%; }
  .home-pilot .journey-ideas,
  .home-pilot .home-discovery { padding-top: 24px; padding-bottom: 28px; }
  .home-pilot .journey-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-pilot .home-discovery-card { padding: 20px; }
  .home-pilot .home-discovery-heading { display: block; }
  .home-pilot .home-discovery-controls select { min-width: 0; flex: 1 1 65%; }
  .guide-pilot .article-shell { padding-top: 24px; }
  .guide-pilot .article-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; }
  .guide-pilot .article-hero h1 { font-size: 2rem; }
  .guide-pilot .guide-art img { border-top-left-radius: 48px; }
}

/* The sourced homepage illustration keeps its full paper vignette and visible disclosure. */
.home-pilot .hero-art > .page-location-scene--home-hero { width: 100%; max-width: none; margin: 0; }
.home-pilot .hero-art > .page-location-scene--home-hero img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; }
.home-pilot .hero-art > .page-location-scene--home-hero figcaption { display: block; visibility: visible; font-size: 12px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .visual-pilot * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .visual-pilot :is(a, button, select, summary, [tabindex]):focus-visible { outline-color: Highlight; }
}

@media print {
  .visual-pilot .site-header,
  .visual-pilot .pilot-skip { display: none; }
  .visual-pilot .editorial-art { break-inside: avoid; }
}
