/* Existing navy, country imagery and heritage serif are the visual authority.
   Type: 5/3/4 for Services, 6/3/3 for Explore. Eight-pixel media/button corners.
   Native YouTube controls provide the sound, pause and blocked-autoplay path. */
.qy-entry-refined{--entry-surface:#fbfcfd;--entry-panel:#f0f4f6;--entry-ink:#102c40;--entry-copy:#405b6c;--entry-line:#c9d4dc;--entry-accent:#866427}
.qy-entry-refined{--sans:'DM Sans',system-ui,sans-serif;--serif:'Libre Caslon Display',Georgia,serif;font-family:var(--sans)}
.qy-entry-refined :is(h1,h2,h3){text-wrap:balance}
.qy-entry-refined :is(a,button,summary):focus-visible{outline:3px solid var(--entry-accent);outline-offset:5px}
.qy-entry-refined ::selection{background:#d7b67b;color:#071a2d}
.qy-entry-refined summary{cursor:pointer;touch-action:manipulation}
.qy-entry-refined summary::marker{color:var(--entry-accent)}
.qy-entry-refined a{text-underline-offset:.25em}
.qy-services-page.qy-entry-refined main{background:var(--entry-surface);color:var(--entry-ink)}
.qy-services-page.qy-entry-refined main :is(.qy-services-hero,.qy-international-offer,.qy-service-directory,.qy-local-services,.qy-services-process,.qy-services-guidance){background:var(--entry-surface);color:var(--entry-ink)}
.qy-services-page.qy-entry-refined .qy-services-hero{padding:48px 0 32px;border-bottom:1px solid var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-services-hero-grid{display:block}
.qy-services-page.qy-entry-refined .qy-services-hero h1{max-width:22ch;font-size:clamp(40px,4.8vw,64px);line-height:1.1;letter-spacing:-.025em;color:var(--entry-ink);margin:0 0 20px}
.qy-services-page.qy-entry-refined .qy-services-hero-grid p{max-width:58ch;font-size:18px;line-height:1.6;color:var(--entry-copy);margin:0 0 24px}
.qy-services-page.qy-entry-refined .qy-entry-consult{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border-radius:8px;background:#102c40;color:#fff;font-size:16px;font-weight:600;text-decoration:none}
.qy-services-page.qy-entry-refined .qy-entry-consult:hover{background:#24495f}
.qy-services-page.qy-entry-refined .qy-services-proof{display:flex;flex-wrap:wrap;gap:8px 32px;border:0;margin-top:26px;padding:0}
.qy-services-page.qy-entry-refined .qy-services-proof span{border:0;padding:0;font-size:14px;line-height:1.65;color:var(--entry-copy)}
.qy-services-page.qy-entry-refined .qy-service-shortcuts{margin-top:24px;padding-top:16px;border-color:var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-service-shortcuts a{color:var(--entry-ink)}
.qy-services-page.qy-entry-refined :is(.qy-international-heading,.qy-service-directory-heading){display:block;max-width:72ch;margin-bottom:32px}
.qy-services-page.qy-entry-refined :is(.qy-international-heading,.qy-service-directory-heading) h2{color:var(--entry-ink);font-size:clamp(30px,3vw,42px);margin-bottom:16px}
.qy-services-page.qy-entry-refined :is(.qy-international-heading,.qy-service-directory-heading) p{color:var(--entry-copy);font-size:17px;line-height:1.7}
.qy-services-page.qy-entry-refined .qy-international-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;border:0;background:none}
.qy-services-page.qy-entry-refined .qy-international-grid article{border:0;border-top:1px solid var(--entry-line);padding:26px 0;display:block;background:none}
.qy-services-page.qy-entry-refined .qy-international-grid h3{font-size:30px;line-height:1.2;margin:0 0 14px}
.qy-services-page.qy-entry-refined .qy-international-grid h3 a{color:var(--entry-ink)}
.qy-services-page.qy-entry-refined .qy-international-grid h3 a::after{color:var(--entry-accent)}
.qy-services-page.qy-entry-refined .qy-international-grid p{color:var(--entry-copy);max-width:55ch;margin:0;font-size:17px}
.qy-services-page.qy-entry-refined .qy-international-value{display:block;padding:28px 32px;margin-top:16px;border:0;background:var(--entry-panel)}
.qy-services-page.qy-entry-refined .qy-international-value h3{font-size:28px;color:var(--entry-ink);max-width:48ch;margin-bottom:16px}
.qy-services-page.qy-entry-refined .qy-international-value p{max-width:70ch;color:var(--entry-copy);margin:0}
.qy-services-page.qy-entry-refined :is(.qy-service-detail h2,.qy-services-process h2,.qy-services-process h3,.qy-services-guidance h2){color:var(--entry-ink)}
.qy-services-page.qy-entry-refined .qy-service-detail :is(p,small){color:var(--entry-copy)}
.qy-services-page.qy-entry-refined .qy-service-detail li a{color:var(--entry-ink)}
.qy-services-page.qy-entry-refined :is(.qy-service-detail,.qy-service-detail li,.qy-service-directory-grid){border-color:var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-local-services{padding-block:56px;border-block:1px solid var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-local-services #qy-local-services-title{color:var(--entry-ink);font-size:clamp(30px,3vw,42px)}
.qy-services-page.qy-entry-refined .qy-local-services p{color:var(--entry-copy)}
.qy-services-page.qy-entry-refined .qy-service-groups{margin-top:28px}
.qy-services-page.qy-entry-refined .qy-service-groups details{border-top:1px solid var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-service-groups details:last-child{border-bottom:1px solid var(--entry-line)}
.qy-services-page.qy-entry-refined .qy-service-groups summary{padding:22px 8px;font-size:20px;line-height:1.4;font-weight:600;color:var(--entry-ink)}
.qy-services-page.qy-entry-refined .qy-service-groups summary:hover{background:var(--entry-panel)}
.qy-services-page.qy-entry-refined .qy-service-groups .qy-local-services-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px;padding:0 28px 24px}
.qy-services-page.qy-entry-refined .qy-local-services-list li{border:0}
.qy-services-page.qy-entry-refined .qy-local-services-list a{color:var(--entry-ink);padding:12px 0;min-height:48px;text-decoration:underline}
.qy-services-page.qy-entry-refined :is(.qy-services-process-grid p,.qy-services-guidance p){color:var(--entry-copy)}
.qy-services-page.qy-entry-refined .qy-services-process-grid h3{margin-top:0}
.qy-services-page.qy-entry-refined .qy-services-process-grid article{border-color:var(--entry-line)}
/* The firm's navy anchors the introduction; pale blue groups international help. */
.qy-services-page.qy-entry-refined .qy-services-hero{--entry-surface:#0b2942;--entry-ink:#f6f9fc;--entry-copy:#ccdce9;--entry-line:#526e85}
.qy-services-page.qy-entry-refined .qy-services-hero .qy-entry-consult{background:#d7b67b;color:#0b2942}
.qy-services-page.qy-entry-refined .qy-services-hero .qy-entry-consult:hover{background:#e8cc9a;color:#0b2942}
.qy-services-page.qy-entry-refined .qy-international-offer{--entry-surface:#edf4fa;--entry-panel:#dfeaf3;--entry-ink:#123754;--entry-copy:#385771;--entry-line:#bdcfde}
.explore-home.qy-entry-refined{--entry-surface:#fbfaf7;--entry-ink:#082c36;--entry-copy:#3c5961;--entry-line:#c7d4d3;background:var(--entry-surface);color:var(--entry-ink)}
.explore-home.qy-entry-refined .qy-explore-film-hero{min-height:0;background:var(--entry-surface);color:var(--entry-ink);overflow:visible;border-bottom:1px solid var(--entry-line)}
.explore-home.qy-entry-refined .qy-explore-film-hero::before,.explore-home.qy-entry-refined .qy-explore-film-hero::after{content:none}
.explore-home.qy-entry-refined .qy-explore-film-hero .hero-content{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);align-items:center;gap:clamp(28px,4vw,56px);padding:48px 0 42px}
.explore-home.qy-entry-refined .hero h1{font-size:clamp(40px,4.8vw,62px);line-height:1.08;letter-spacing:-.025em;max-width:12ch;margin:0 0 22px;color:var(--entry-ink)}
.explore-home.qy-entry-refined .hero-lead{font-size:18px;line-height:1.65;max-width:38ch;margin:0;color:var(--entry-copy)}
.explore-home.qy-entry-refined .hero-actions{margin-top:24px}
.explore-home.qy-entry-refined .hero .button{min-height:48px;border-radius:8px;background:#082c36;color:#fff}
.explore-home.qy-entry-refined .hero .button:hover{background:#164957}
.explore-home.qy-entry-refined .hero .panama-video-frame{min-height:0;aspect-ratio:16/9;border-radius:8px;box-shadow:0 16px 36px rgb(8 44 54 / .10);background:#082c36 url('/assets/explore/explore-panama-city.webp') center/cover no-repeat}
.explore-home.qy-entry-refined .hero .panama-brand-video figcaption{font-size:13px;line-height:1.5;color:var(--entry-copy);padding-top:12px;align-items:baseline;gap:4px 16px;min-height:56px}
.explore-home.qy-entry-refined .hero .panama-brand-video figcaption a{min-height:44px;display:inline-flex;align-items:center;color:var(--entry-ink)}
.explore-home.qy-entry-refined .hero .panama-video-status{font-size:14px;line-height:1.5}
.explore-home.qy-entry-refined .portal-section-head{display:block;max-width:72ch;margin-bottom:32px}
.explore-home.qy-entry-refined .portal-section-head h2{margin:0 0 16px}
.explore-home.qy-entry-refined .portal-section-head p{margin:0;font-size:17px;line-height:1.7;max-width:65ch}
.explore-home.qy-entry-refined #explore-servicios.qy-brand-without-film .panama-brand-content{display:block}
.explore-home.qy-entry-refined #explore-servicios.qy-brand-without-film .panama-brand-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.explore-home.qy-entry-refined .santa-fact-grid h3{margin-top:0}
.explore-home.qy-entry-refined :is(.search-open,.menu-toggle){min-width:44px;min-height:44px}
.explore-home.qy-entry-refined .language a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:44px}
@media(max-width:980px){
  .explore-home.qy-entry-refined .qy-explore-film-hero .hero-content{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px}
  .explore-home.qy-entry-refined .hero h1{font-size:42px}
  .qy-services-page.qy-entry-refined .qy-services-proof{gap:8px 22px}
}
@media(max-width:767px){
  .explore-home.qy-entry-refined .header-row{display:grid;grid-template-columns:minmax(124px,1fr) 40px 40px 86px;gap:3px;min-height:72px;padding-block:8px}
  .explore-home.qy-entry-refined .explore-brand strong{font-size:20px;white-space:nowrap}
  .explore-home.qy-entry-refined .explore-brand span{font-size:10px;letter-spacing:.02em;white-space:nowrap}
  .explore-home.qy-entry-refined .header-row :is(.search-open,.menu-toggle){margin:0;padding:0;min-width:40px;background:transparent;color:var(--entry-ink);border-color:var(--entry-line)}
  .explore-home.qy-entry-refined .header-row .language{gap:0;margin:0;padding-left:2px}
  .explore-home.qy-entry-refined .header-row .language a{min-width:27px;padding:0;font-size:11px}
  .qy-services-page.qy-entry-refined .qy-services-hero{padding:32px 0 24px}
  .qy-services-page.qy-entry-refined .qy-services-hero h1{font-size:40px}
  .qy-services-page.qy-entry-refined .qy-services-hero-grid p{font-size:17px}
  .qy-services-page.qy-entry-refined .qy-services-proof{display:grid;gap:6px}
  .qy-services-page.qy-entry-refined .qy-service-shortcuts{gap:4px 24px}
  .qy-services-page.qy-entry-refined .qy-international-grid{grid-template-columns:1fr}
  .qy-services-page.qy-entry-refined .qy-international-value{padding:24px}
  .qy-services-page.qy-entry-refined .qy-service-groups .qy-local-services-list{grid-template-columns:1fr;padding:0 8px 20px}
  .qy-services-page.qy-entry-refined .qy-service-groups summary{font-size:18px}
  .explore-home.qy-entry-refined .qy-explore-film-hero .hero-content{grid-template-columns:1fr;padding:28px 0 24px;gap:26px}
  .explore-home.qy-entry-refined .hero h1{font-size:38px;max-width:100%;margin-bottom:12px}
  .explore-home.qy-entry-refined .hero-lead{font-size:16px;line-height:1.6;max-width:45ch}
  .explore-home.qy-entry-refined .hero-actions{margin-top:18px}
  .explore-home.qy-entry-refined .hero .panama-brand-video figcaption{gap:0 10px}
  .explore-home.qy-entry-refined #explore-servicios.qy-brand-without-film .panama-brand-paths{grid-template-columns:1fr}
}
@media(prefers-color-scheme:dark){
  .qy-entry-refined{--entry-surface:#0d2232;--entry-panel:#173447;--entry-ink:#eff5f8;--entry-copy:#c2d1dc;--entry-line:#466174;--entry-accent:#dab879}
  .qy-services-page.qy-entry-refined .qy-international-offer{--entry-surface:#102f4a;--entry-panel:#1a3e5c;--entry-ink:#f0f6fc;--entry-copy:#c9ddea;--entry-line:#547690}
  .explore-home.qy-entry-refined{--entry-surface:#102d34;--entry-panel:#1a3a42;--entry-ink:#eff6f6;--entry-copy:#c5d9dc;--entry-line:#486a70;--entry-accent:#dab879;--deep:#eff6f6;--ink:#eff6f6;--muted:#c5d9dc;--paper:#102d34;--white:#17363e;--line:#486a70}
  .qy-services-page.qy-entry-refined .qy-entry-consult,.explore-home.qy-entry-refined .hero .button{background:#d7b67b;color:#0d2232}
  .qy-services-page.qy-entry-refined .qy-entry-consult:hover,.explore-home.qy-entry-refined .hero .button:hover{background:#e8cc9a;color:#0d2232}
  .explore-home.qy-entry-refined :is(main>.section,.site-header,.main-nav,.panama-brand-feature,.portal-planning,.portal-plan-card,.recommendation-copy,.decision-card-grid article,.search-shell,.search-results a,.trip-planner){background:var(--entry-surface);color:var(--entry-ink)}
  .explore-home.qy-entry-refined :is(.main-nav a,.explore-brand span,.search-open,.menu-toggle,.language a){color:var(--entry-ink)}
  .explore-home.qy-entry-refined :is(.portal-section-head p,.santa-story-copy,.source-note,.editorial-source,.article-card p,.article-card span,.trip-result p,.trip-result li,.trip-result span){color:var(--entry-copy)}
  .explore-home.qy-entry-refined :is(.article-card h3,.article-card b,.question-link,.trip-planner h2,.trip-planner h3,.santa-fact-grid h3){color:var(--entry-ink)}
  .explore-home.qy-entry-refined .trip-options button{background:var(--entry-panel);color:var(--entry-ink);border-color:var(--entry-line)}
  .explore-home.qy-entry-refined .trip-options button[aria-pressed="true"]{background:#d7b67b;color:#0d2232}
  .explore-home.qy-entry-refined :is(.panama-brand-feature,.portal-plan-card,.recommendation-copy,.decision-card-grid article,.trip-planner) :is(h2,h3,p,a,strong,span,figcaption){color:var(--entry-ink)}
  .explore-home.qy-entry-refined .panama-brand-mark{background:#fff;padding:20px;border-radius:8px}
  .explore-home.qy-entry-refined .panama-brand-mark figcaption :is(a,span){color:#3c5961}
  .explore-home.qy-entry-refined .panama-brand-actions .panama-brand-discover{background:#d7b67b;color:#0d2232}
  .explore-home.qy-entry-refined .santa-fact-grid article{background:var(--entry-panel)}
}
