/* Version 4.4: permanent dark appearance and shared touch navigation. */
html { color-scheme: dark; }
#theme-toggle, .theme-toggle { display: none !important; }

.tby-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.12em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v44-compact-heading {
  font-size: clamp(27px, 3.2vw, 44px) !important;
  line-height: 1.5 !important;
  letter-spacing: -.035em;
  max-width: 100%;
  text-wrap: balance;
}
.section-top > div { min-width: 0; }
.vip-hero h1.v44-compact-heading {
  font-size: clamp(30px, 4vw, 60px) !important;
  margin-inline: auto;
}
.vip-hero h1.v44-compact-heading em { white-space: normal; }
@media (min-width: 1000px) {
  .section-top .v44-compact-heading { white-space: nowrap; }
}
@media (max-width: 700px) {
  .v44-compact-heading { font-size: clamp(25px, 6.2vw, 35px) !important; }
  .vip-hero h1.v44-compact-heading { font-size: clamp(28px, 6.9vw, 44px) !important; }
}

.site-dock { display: none; }
@media (pointer: coarse) and (max-width: 1400px) {
  body { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }
  .site-dock {
    --dock-scale: 1;
    display: block;
    position: fixed;
    z-index: 45;
    inset-inline: 0;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(430px, calc(100% - 30px));
    margin-inline: auto;
    padding: 7px;
    isolation: isolate;
    border: 1px solid #d6e6ff3b;
    border-radius: 46px;
    background: linear-gradient(145deg, #334055cc, #172438d9 60%, #17263de6);
    box-shadow: 0 15px 45px #0006, inset 0 1px 1px #ffffff29, inset 0 -1px 1px #9ab8ea12;
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    backdrop-filter: blur(28px) saturate(165%);
    transform: scale(var(--dock-scale));
    transform-origin: center bottom;
    transition: transform .32s ease, padding .32s ease;
  }
  .site-dock__items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    direction: rtl;
  }
  .site-dock__glass {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--dock-glass-width, 0px);
    border: 1px solid #e8f3ff45;
    border-radius: 32px;
    background: linear-gradient(140deg, #b8d9ff31, #b3d0ff0d 65%, #a4cfff28);
    box-shadow: inset 0 1px 2px #ffffff35, 0 3px 12px #0003;
    transform: translateX(var(--dock-glass-x, 0px));
    opacity: 0;
    transition: transform .4s cubic-bezier(.22,.8,.2,1), width .3s ease, opacity .2s ease;
    pointer-events: none;
  }
  .site-dock[data-selection="true"] .site-dock__glass { opacity: 1; }
  .site-dock__link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 2px;
    border-radius: 32px;
    color: #aebed6;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, min-height .32s ease;
  }
  .site-dock__link svg { width: 23px; height: 23px; flex: none; }
  .site-dock__label {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    opacity: .92;
    max-height: 14px;
    overflow: hidden;
    transition: opacity .2s ease, max-height .32s ease;
  }
  .site-dock__link[aria-current="page"],
  .site-dock__link:hover, .site-dock__link:focus-visible { color: #eef7ff; }
  .site-dock__link:focus-visible { outline: 2px solid #abd4ff; outline-offset: -3px; }
  .site-dock.is-compact { --dock-scale: .94; padding-block: 5px; }
  .site-dock.is-compact .site-dock__link { min-height: 48px; gap: 0; }
  .site-dock.is-compact .site-dock__label { opacity: 0; max-height: 0; }
  body:has(dialog[open]) .site-dock { visibility: hidden; }
  .site-dock[hidden] { display: none; }
}
@supports not (backdrop-filter: blur(10px)) {
  .site-dock { background: #1c2a40f5; }
}
@media (prefers-reduced-motion: reduce) {
  .site-dock, .site-dock *, .site-dock__glass { transition: none !important; }
}
