/* Sakura Gate shared sky theme. Presentation only: preserve each surface's existing markup and handlers. */

/* Main website: daylight sky and cloud paper. */
html.zn {
  --bg: #e9f5ff;
  --bg-soft: #dceeff;
  --bg-band: rgba(211, 233, 249, .82);
  --card: rgba(255, 255, 255, .94);
  --card-2: rgba(248, 252, 255, .96);
  --line: rgba(26, 69, 108, .16);
  --line-strong: rgba(26, 69, 108, .28);
  --ink: #0c2743;
  --muted: #46637f;
  --sakura: #2f6bd8;
  --sakura-ink: #174f9c;
  --pink-soft: #dcecff;
  --blush: #dcecff;
  --lilac: #e4f0ff;
  --peach: #e7f3fd;
  --mint: #dff2ee;
  --dark: #0c2743;
  --btn-bg: #102a49;
  --btn-fg: #ffffff;
  --pk: #2f6bd8;
  --lav: #2f6bd8;
  --pl: #dceeff;
  --gl: rgba(255, 255, 255, .9);
  --ln: rgba(26, 69, 108, .16);
  --shadow: 0 22px 52px -28px rgba(14, 52, 86, .34);
  --shadow-s: 0 10px 24px -14px rgba(14, 52, 86, .24);
}
html.zn:not(.zl) {
  color-scheme: dark;
  --bg: #0b1d34;
  --bg-soft: #102945;
  --bg-band: rgba(16, 41, 69, .9);
  --card: rgba(15, 39, 65, .94);
  --card-2: rgba(20, 49, 79, .96);
  --line: rgba(190, 219, 245, .17);
  --line-strong: rgba(190, 219, 245, .31);
  --ink: #f3f8ff;
  --muted: #b6cbe0;
  --sakura: #78b2e2;
  --sakura-ink: #a9d0f0;
  --pink-soft: #183552;
  --blush: #183552;
  --lilac: #1c3a59;
  --peach: #3b3d49;
  --mint: #173c3b;
  --dark: #071326;
  --btn-bg: #eaf5ff;
  --btn-fg: #0c2743;
  --pk: #a9d0f0;
  --lav: #83b9e7;
  --pl: #14314f;
  --gl: rgba(17, 44, 72, .92);
  --ln: rgba(190, 219, 245, .17);
  --shadow: 0 22px 58px -24px rgba(0, 0, 0, .62);
  --shadow-s: 0 10px 26px -14px rgba(0, 0, 0, .46);
}
html.zn body:not(:where(#sky, #sky *)) {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(225, 241, 253, .70), rgba(242, 249, 255, .84)), url('/bg/sky-clouds.jpg') center 34% / cover fixed no-repeat, var(--bg);
}
html.zn:not(.zl) body:not(:where(#sky, #sky *)) {
  background: linear-gradient(180deg, rgba(6, 21, 40, .84), rgba(8, 27, 49, .93)), url('/bg/sky-clouds.jpg') center 35% / cover fixed no-repeat, var(--bg);
}
html.zn header:not(:where(#sky, #sky *)) {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html.zn .card:not(:where(#sky, #sky *)),
html.zn .gl:not(:where(#sky, #sky *)),
html.zn .h-card:not(:where(#sky, #sky *)),
html.zn .h-tool:not(:where(#sky, #sky *)),
html.zn .h-dest:not(:where(#sky, #sky *)),
html.zn .h-trip:not(:where(#sky, #sky *)) {
  background-color: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}
html.zn button:not(:where(#sky, #sky *)), html.zn .btn:not(:where(#sky, #sky *)) {
  border-color: var(--line-strong);
}
html.zn button.p:not(:where(#sky, #sky *)), html.zn .btn.p:not(:where(#sky, #sky *)) {
  background: #102a49;
  border-color: #102a49;
  color: #fff;
}
html.zn:not(.zl) button.p:not(:where(#sky, #sky *)), html.zn:not(.zl) .btn.p:not(:where(#sky, #sky *)) {
  background: #eaf5ff;
  border-color: #eaf5ff;
  color: #0c2743;
}
html.zn input:not(:where(#sky, #sky *)), html.zn select:not(:where(#sky, #sky *)), html.zn textarea:not(:where(#sky, #sky *)) {
  border-color: var(--line-strong);
  background: var(--card-2);
  color: var(--ink);
}
html.zn :not(:where(#sky, #sky *))::placeholder { color: var(--muted); opacity: .82; }
html.zn .h-stamp:not(:where(#sky, #sky *)), html.zn .h-brush:not(:where(#sky, #sky *)) { color: #2f6bd8; }
html.zn:not(.zl) .h-stamp:not(:where(#sky, #sky *)), html.zn:not(.zl) .h-brush:not(:where(#sky, #sky *)) { color: #a9d0f0; }
@media (max-width: 700px) {
  html.zn body:not(:where(#sky, #sky *)), html.zn:not(.zl) body:not(:where(#sky, #sky *)) { background-attachment: scroll; }
}

/* Installed/app mode follows the same day-sky / night-sky system. */
html.appui.app-light {
  color-scheme: light;
  --bg: #e9f5ff; --ink: #0c2743; --mut: #46637f; --pk: #174f9c;
  --lav: #2f6bd8; --pl: #dceeff; --gl: rgba(255,255,255,.94); --ln: rgba(26,69,108,.16);
  --d1: #78b2e2; --d2: #eaf5ff; --d3: #cbe5fa; --dglow: #7cb6e6;
}
html.appui:not(.app-light) {
  color-scheme: dark;
  --bg: #0b1d34; --ink: #f3f8ff; --mut: #b6cbe0; --pk: #a9d0f0;
  --lav: #83b9e7; --pl: #14314f; --gl: rgba(17,44,72,.92); --ln: rgba(190,219,245,.17);
  --d1: #153758; --d2: #061326; --d3: #27537b; --dglow: #83b9e7;
}
html.appui.app-light body { background: linear-gradient(180deg, rgba(225,241,253,.65), rgba(242,249,255,.92)), url('/bg/sky-clouds.jpg') center 36% / cover fixed no-repeat, var(--bg); }
html.appui:not(.app-light) body { background: linear-gradient(180deg, rgba(6,21,40,.78), rgba(8,27,49,.96)), url('/bg/sky-clouds.jpg') center 35% / cover fixed no-repeat, var(--bg); }
html.appui.app-light #apptabs { background: rgba(238,247,255,.94); border-color: rgba(26,69,108,.14); }
html.appui:not(.app-light) #apptabs { background: rgba(8,27,49,.95); border-color: rgba(190,219,245,.17); }
html.appui.app-light #appv .as-trip, html.appui.app-light #appv .as-pick, html.appui.app-light #appv .as-tile, html.appui.app-light #appv .as-feat, html.appui.app-light #appv .as-empty { background: rgba(255,255,255,.94); border-color: rgba(26,69,108,.16); color: #0c2743; }
html.appui:not(.app-light) #appv .as-trip, html.appui:not(.app-light) #appv .as-pick, html.appui:not(.app-light) #appv .as-tile, html.appui:not(.app-light) #appv .as-feat, html.appui:not(.app-light) #appv .as-empty { background: rgba(17,44,72,.92); border-color: rgba(190,219,245,.17); color: #f3f8ff; }
@media (max-width: 700px) {
  html.appui.app-light body, html.appui:not(.app-light) body { background-attachment: scroll; }
}

/* Admin consoles keep their data/status semantics and theme switch, but use Sakura sky colours. */
:root {
  --sky: #78b2e2; --sakura: #2f6bd8; --sakura-ink: #174f9c;
  --hi: #dceeff; --lilac: #dceeff; --mint: #dff2ee;
  --paper: linear-gradient(180deg, rgba(225,241,253,.72), rgba(242,249,255,.9)), url('/bg/sky-clouds.jpg') center 32% / cover fixed no-repeat;
  --bg: #e9f5ff; --bg-band: rgba(226,241,252,.9); --card: rgba(255,255,255,.96); --card-2: #f6fbff;
  --line: rgba(26,69,108,.18); --ink: #0c2743; --muted: #46637f;
  --shadow-pop: 0 4px 14px -8px rgba(14,52,86,.35); --shadow-card: 0 14px 32px -20px rgba(14,52,86,.32); --bw: 1.5px;
  --mut: var(--muted); --pk: #2f6bd8; --ln: var(--line); --gl: var(--card); color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #0b1d34; --bg-band: rgba(16,41,69,.92); --card: rgba(15,39,65,.96); --card-2: #14314f;
  --line: rgba(190,219,245,.18); --ink: #f3f8ff; --muted: #b6cbe0;
  --sky: #83b9e7; --sakura: #78b2e2; --sakura-ink: #a9d0f0; --hi: #1c3a59; --lilac: #1c3a59; --mint: #173c3b;
  --paper: linear-gradient(180deg, rgba(6,21,40,.85), rgba(8,27,49,.94)), url('/bg/sky-clouds.jpg') center 35% / cover fixed no-repeat;
  --shadow-pop: 0 4px 16px -8px rgba(0,0,0,.48); --shadow-card: 0 14px 32px -20px rgba(0,0,0,.5); --bw: 1.5px;
  --mut: var(--muted); --pk: #a9d0f0; --ln: var(--line); --gl: var(--card); color-scheme: dark;
}
:root[data-theme] body { background: var(--paper), var(--bg); }
:root[data-theme] .ad-top { background: color-mix(in srgb, var(--bg) 82%, transparent); }
:root[data-theme] .ad-badge { background: var(--sky); color: #0c2743; border-color: var(--line); }
:root[data-theme] .kpi { border-color: var(--line); box-shadow: var(--shadow-card); transform: none; }
:root[data-theme] .kpi, :root[data-theme] .kpi .mut, :root[data-theme] .kpi span { color: #0c2743; }
:root[data-theme] .kpi:nth-child(2n) { --kc: #dceeff; }
:root[data-theme] .kpi:nth-child(3n) { --kc: #dff2ee; }
:root[data-theme] .kpi:nth-child(4n) { --kc: #fce9d8; }
:root[data-theme] .ad-nav a[aria-current=true] { background: var(--sky); color: #0c2743; }
:root[data-theme] button, :root[data-theme] input, :root[data-theme] select, :root[data-theme] textarea { border-color: var(--line); box-shadow: none; }

/* Shared light editorial pages (guides, destinations, packages, help and legal pages). */
html:root:not(.zn):not(.appui) {
  color-scheme: light;
  --bg: #e9f5ff; --card: rgba(255,255,255,.96); --ln: rgba(26,69,108,.18); --line: rgba(26,69,108,.18);
  --ink: #0c2743; --mut: #46637f; --muted: #46637f; --accent: #174f9c; --acc: #2f6bd8;
  --ok: #11744a; --warn: #8c5b00; --bad: #b4321f; --err: #b4321f;
}
html:not(.zn):not(.appui) body { background: linear-gradient(180deg,rgba(225,241,253,.74),rgba(242,249,255,.92)),url('/bg/sky-clouds.jpg') center 32% / cover fixed no-repeat,#e9f5ff !important; color: #0c2743 !important; }
html:not(.zn):not(.appui) h1, html:not(.zn):not(.appui) h2 { color: #0c2743; }
html:not(.zn):not(.appui) a { color: #174f9c; }
html:not(.zn):not(.appui) .card, html:not(.zn):not(.appui) details, html:not(.zn):not(.appui) .c, html:not(.zn):not(.appui) .pk-card { background: rgba(255,255,255,.96); border-color: rgba(26,69,108,.16); box-shadow: 0 16px 36px -24px rgba(14,52,86,.3); }
html:not(.zn):not(.appui) .hint, html:not(.zn):not(.appui) .muted, html:not(.zn):not(.appui) .lead, html:not(.zn):not(.appui) .note, html:not(.zn):not(.appui) footer { color: #46637f !important; }
html:not(.zn):not(.appui) textarea, html:not(.zn):not(.appui) input, html:not(.zn):not(.appui) select { background: rgba(255,255,255,.96) !important; color: #0c2743 !important; border-color: rgba(26,69,108,.24) !important; }
html:not(.zn):not(.appui) button:not(.pk-chip):not(.pk-go):not(.pk-search-go), html:not(.zn):not(.appui) .b.p { background: #102a49 !important; color: #fff !important; border-color: #102a49 !important; }
html:not(.zn):not(.appui) .b { color: #0c2743; border-color: rgba(26,69,108,.24); }
@media (max-width: 700px) {
  html:not(.zn):not(.appui) body { background-attachment: scroll !important; }
  :root[data-theme] body { --paper: linear-gradient(180deg,rgba(225,241,253,.72),rgba(242,249,255,.9)),url('/bg/sky-clouds.jpg') center 32% / cover no-repeat; }
}

/* Cinematic camera drift and soft scene reveals. Keep movement calm and content readable. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sg-scene-out .38s ease both; }
::view-transition-new(root) { animation: sg-scene-in .62s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sg-scene-out { to { opacity: 0; filter: blur(3px); transform: scale(.985); } }
@keyframes sg-scene-in { from { opacity: 0; filter: blur(3px); transform: scale(1.015); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes sg-sky-drift {
  0% { background-position: center, 48% 34%, center; }
  100% { background-position: center, 54% 40%, center; }
}
html.zn body:not(:where(#sky, #sky *)),
html.appui body {
  animation: sg-sky-drift 42s ease-in-out infinite alternate;
  background-size: auto, 112% auto, auto;
}
html.zn header, html.appui #apptabs,
:root[data-theme] .ad-top {
  transition: background-color .55s ease, border-color .55s ease, backdrop-filter .55s ease;
}
html.zn .h-pc-ph, html.zn .h-pc-ph img,
html.appui #appv img, :root[data-theme] main>section, :root[data-theme] #out {
  transition: transform .75s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease, background-color .55s ease;
}
html.zn #home .h-pc:hover .h-pc-ph img { transform: scale(1.065); }
/* Borrow Careers' flying-plane route for the main "Where to next?" hero. */
html.zn #home .h-hero { position: relative; isolation: isolate; }
html.zn #home .h-hero > .h-wrap { position: relative; z-index: 2; }
html.zn #home .h-hero::before {
  content: ""; position: absolute; z-index: 0; top: clamp(132px, 17vw, 206px); left: 8%; width: 75%; height: 2px;
  pointer-events: none; opacity: .34; transform: rotate(-3deg); transform-origin: left center;
  background: repeating-linear-gradient(90deg, var(--sakura-ink) 0 5px, transparent 5px 12px);
}
html.zn #home .h-hero::after {
  content: "✈"; position: absolute; z-index: 1; top: clamp(115px, 14.5vw, 188px); left: 0;
  pointer-events: none; color: var(--sakura-ink); font: 700 clamp(18px, 2.2vw, 28px)/1 sans-serif;
  opacity: 0; filter: drop-shadow(0 2px 4px rgba(12,39,67,.22));
  animation: sg-hero-flight 17s cubic-bezier(.35,.05,.65,.95) 1.5s infinite;
}
@keyframes sg-hero-flight {
  0%, 8% { opacity: 0; transform: translate3d(-7vw, 12px, 0) rotate(-7deg); }
  14%, 78% { opacity: .42; }
  94%, 100% { opacity: 0; transform: translate3d(105vw, -26px, 0) rotate(-7deg); }
}
html.appui #appv .as-tile:hover, html.appui #appv .as-trip:hover,
:root[data-theme] main>section:hover, :root[data-theme] #out:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px -30px rgba(14,52,86,.42);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html.zn body:not(:where(#sky, #sky *)), html.appui body { animation: none; }
  html.zn #home .h-hero::after { animation: none; opacity: .28; transform: translate3d(10vw, 0, 0) rotate(-7deg); }
  html.appui #appv .as-tile:hover, html.appui #appv .as-trip:hover,
  :root[data-theme] main>section:hover, :root[data-theme] #out:hover { transform: none; }
}
