/* iTravelEurope — shared UI polish. Loaded last on every page. */
:root{--font:'Plus Jakarta Sans',Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);overflow-x:clip}
h1,h2,h3,h4{font-family:var(--font);overflow-wrap:break-word}
img,svg,video{max-width:100%}
table{max-width:100%}
.prose-page,.article-body,main p,main li{overflow-wrap:break-word}
:focus-visible{outline:3px solid #f5a524;outline-offset:2px}

/* ---------- Header: identical on every page ---------- */
.site-header{background:rgba(255,255,255,.98);border-bottom:1px solid #e3e8f5;box-shadow:0 6px 24px rgba(31,47,107,.04)}
.header-inner{height:72px;gap:24px}
.brand{width:190px;flex:none}
.site-nav{gap:26px;margin-left:auto}
.site-nav a{font-size:14.5px;font-weight:600;padding:8px 0;white-space:nowrap}
.site-nav .nav-cta{background:linear-gradient(180deg,#5873f6,#4058e6);color:#fff;padding:11px 20px;border-radius:12px;font-weight:700;box-shadow:0 6px 16px rgba(74,99,240,.3)}
.site-nav .nav-cta:hover{color:#fff;filter:brightness(1.08)}
.nav-toggle{border-radius:10px;min-width:44px;min-height:44px;display:none;align-items:center;justify-content:center;flex-direction:column;margin-left:auto}
@media(max-width:1020px){
  .header-inner{height:64px;width:min(calc(100% - 28px),var(--max))}
  .brand{width:164px}
  .nav-toggle{display:flex}
  .site-nav{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:1px solid #e3e8f5;padding:12px 14px 18px;flex-direction:column;align-items:stretch;gap:2px;box-shadow:0 18px 30px rgba(18,52,91,.12);max-height:calc(100vh - 64px);overflow:auto;margin-left:0}
  .site-nav.open{display:flex}
  .site-nav a{padding:14px 12px;border-radius:10px;font-size:16px}
  .site-nav a:hover{background:#f3f6fd}
  .site-nav .nav-cta{margin-top:8px;text-align:center;padding:14px}
}

/* ---------- Home ---------- */
body.reference-home .rh-wrap{width:min(calc(100% - 40px),1180px);max-width:none;padding:0}
body.reference-home .rh-hero{padding-top:48px}
body.reference-home .rh-hero h1{max-width:470px}
body.reference-home .rh-chip i{color:#fff}
body.reference-home .rh-chip.c1 i{background:#2f9e6e}
body.reference-home .rh-search{padding:28px 30px 22px;margin-bottom:8px}
body.reference-home .rh-fields{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
body.reference-home .rh-f label{font-size:12.5px}
body.reference-home .rh-f select,body.reference-home .rh-f input{height:50px;font-size:14px;border:2px solid transparent}
body.reference-home .rh-f .invalid{border-color:#ff7a7a}
body.reference-home .rh-go{grid-column:1/-1;height:54px;font-size:16px;border-radius:14px;margin-top:4px;box-shadow:0 8px 20px rgba(0,0,0,.25)}
body.reference-home .rh-go:hover{filter:brightness(1.08)}
body.reference-home .rh-sec{padding:56px 0 6px}
body.reference-home .rh-routes{padding:24px 0 8px}
body.reference-home .rh-route{min-height:72px}
body.reference-home .rh-feats{padding:28px 0 64px;border-top:1px solid var(--rh-line);margin-top:24px}
body.reference-home .rh-fi svg{display:block}
body.reference-home .section{padding-top:5rem;padding-bottom:5rem}
body.reference-home .section-heading h2,body.reference-home .split-feature h2,body.reference-home .cta-band h2{font-weight:800;letter-spacing:-.03em}
body.reference-home .cta-band{margin-top:2rem}

@media(max-width:1020px){
  body.reference-home .rh-fields{grid-template-columns:1fr 1fr}
  body.reference-home .rh-f:nth-child(5){grid-column:1/-1}
}
@media(max-width:900px){
  body.reference-home .rh-hero{grid-template-columns:1fr;gap:0;padding-top:32px}
  body.reference-home .rh-hero h1{font-size:clamp(34px,8vw,46px);max-width:none}
  body.reference-home .rh-hero p{font-size:17px;max-width:520px}
  body.reference-home .rh-art{max-width:520px;margin:12px auto 0;width:100%}
}
@media(max-width:620px){
  body.reference-home .rh-wrap{width:calc(100% - 28px)}
  body.reference-home .rh-hero{display:block;padding-top:26px}
  body.reference-home .rh-hero-copy{padding-top:0}
  body.reference-home .rh-kicker{font-size:11px;letter-spacing:.22em}
  body.reference-home .rh-hero h1{font-size:34px;line-height:1.08;margin:8px 0 12px;max-width:none}
  body.reference-home .rh-hero p{font-size:16px;line-height:1.5;max-width:none;margin:0 0 16px}
  body.reference-home .rh-chips{display:flex;gap:8px}
  body.reference-home .rh-chip{padding:8px 12px;font-size:13px;border-radius:12px}
  body.reference-home .rh-chip i{width:22px;height:22px}
  body.reference-home .rh-art{height:auto;max-width:440px;margin:6px auto 0}
  body.reference-home .rh-art img{width:100%;max-width:100%;height:auto;transform:none;-webkit-mask-image:linear-gradient(#000 90%,transparent);mask-image:linear-gradient(#000 90%,transparent)}
  body.reference-home .rh-search{margin-top:-8px;padding:18px 16px 16px;border-radius:18px}
  body.reference-home .rh-search h2{font-size:18px;margin-bottom:14px}
  body.reference-home .rh-search h2 svg{width:26px;height:26px}
  body.reference-home .rh-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  body.reference-home .rh-f{width:auto}
  body.reference-home .rh-f:nth-child(1),body.reference-home .rh-f:nth-child(2),body.reference-home .rh-f:nth-child(5){grid-column:1/-1}
  body.reference-home .rh-f label{font-size:13px;margin-bottom:5px}
  body.reference-home .rh-f select,body.reference-home .rh-f input{height:48px;font-size:16px;border-radius:12px;padding:0 12px}
  body.reference-home .rh-go{height:52px;min-height:52px;font-size:16px;border-radius:12px}
  body.reference-home .rh-trust{display:grid;gap:8px;justify-content:start;margin-top:14px;font-size:13px}
  body.reference-home .rh-trust span::before{width:18px;height:18px;font-size:10px;margin-right:8px}
  body.reference-home .rh-sec{padding:40px 0 4px}
  body.reference-home .rh-sec h2{font-size:22px}
  body.reference-home .rh-sec p{font-size:14px}
  body.reference-home .rh-routes{gap:10px;padding:16px 0 4px}
  body.reference-home .rh-route{gap:10px;padding:12px;border-radius:14px;min-height:64px}
  body.reference-home .rh-flag{width:34px;height:34px}
  body.reference-home .rh-route b{font-size:13px}
  body.reference-home .rh-route small{font-size:12px}
  body.reference-home .rh-feats{grid-template-columns:1fr;gap:14px;padding:22px 0 40px}
  body.reference-home .rh-feat{gap:12px;font-size:14px}
  body.reference-home .rh-feat b{font-size:15px}
  body.reference-home .rh-fi{width:44px;height:44px}
  body.reference-home .section{padding-top:3.5rem;padding-bottom:3.5rem}
  body.reference-home .section-heading{display:block}
  body.reference-home .section-heading .text-link{display:inline-block;margin-top:.75rem}
}

/* ---------- Inner pages: mobile safety ---------- */
@media(max-width:720px){
  .hero-inner{min-height:0;padding:3rem 0}
  .results-grid,.contact-grid{grid-template-columns:1fr}
  .cta-band .button{width:100%;text-align:center}
  .footer-grid{grid-template-columns:1fr;gap:1.75rem}
  .footer-bottom{flex-direction:column;gap:.5rem}
  .cookie-banner{left:10px;right:10px;bottom:10px;width:auto}
  .cookie-actions{flex-wrap:wrap}
  .cookie-actions .button{flex:1}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- Home refinements ---------- */
body.reference-home .rh-art img{-webkit-mask-image:linear-gradient(to right,transparent,#000 14%),linear-gradient(to bottom,transparent,#000 10%,#000 88%,transparent);mask-image:linear-gradient(to right,transparent,#000 14%),linear-gradient(to bottom,transparent,#000 10%,#000 88%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
body.reference-home .rh-f label{min-height:2.5em;display:flex;align-items:flex-end;line-height:1.25}
@media(max-width:1020px){body.reference-home .rh-f label{min-height:0}}
@media(max-width:620px){body.reference-home .rh-chips{margin-bottom:6px}body.reference-home .rh-art{margin-top:14px}}

/* ---------- Small-screen overflow guards ---------- */
.rh-f,.rh-f select,.rh-f input,.article-content,.article-layout>*,.callout,.scenario-list{min-width:0;max-width:100%}
@media(max-width:620px){body.reference-home .rh-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:960px){.article-layout{grid-template-columns:minmax(0,1fr)!important}}


/* Home questions visual 2026-10-04 */
body.reference-home .home-questions-feature{
  align-items:start;
  gap:3rem;
}
body.reference-home .home-questions-feature .questions-copy{
  min-width:0;
}
body.reference-home .questions-visual{
  margin:2rem 0 0;
  border-radius:24px;
  overflow:hidden;
  background:#eaf4ff;
  border:1px solid #d7e4f2;
  box-shadow:0 18px 40px rgba(19,55,99,.12);
}
body.reference-home .questions-visual img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center center;
}
@media(max-width:960px){
  body.reference-home .home-questions-feature{
    grid-template-columns:1fr;
    gap:2rem;
  }
  body.reference-home .questions-visual{
    max-width:680px;
    margin-top:1.5rem;
  }
}
@media(max-width:620px){
  body.reference-home .questions-visual{
    margin-top:1.25rem;
    border-radius:18px;
  }
}
