/* FeliFam V5.8.3 — shared navigation & vector icons across all 13 pages.
   Fixes iPhone safe areas and prevents mobile header / bottom dock from drifting.
   No page section / typography / media layout is changed. */
.ff-arrow {
  display:inline-block;
  width:1.06em;
  height:1.06em;
  flex:0 0 auto;
  vertical-align:-.15em;
  overflow:visible;
  color:inherit;
  stroke:currentColor;
  transition:transform .25s ease;
}
a:hover > .ff-arrow--ne,
button:hover > .ff-arrow--ne,
a:hover span > .ff-arrow--ne,
button:hover span > .ff-arrow--ne { transform:translate(2px,-2px); }
.nx-tile-arrow .ff-arrow,
.space-arrow .ff-arrow,
.ed-small-arrow .ff-arrow,
.s-frame__action .ff-arrow {width:20px;height:20px;vertical-align:middle;}
.share-item .ff-arrow {width:21px;height:21px;}
.back-top .ff-arrow {width:22px;height:22px;}
/* CSS-generated textual arrow replaced by a vector shape. */
.space-overlay h3::after {
  content:"" !important;
  display:inline-block;
  width:.42em;
  height:.42em;
  margin-left:.24em;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f8f5ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15 15 5M6 5h9v9'/%3E%3C/svg%3E");
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  vertical-align:middle;
}
@media(max-width:760px) {
  /* Single, consistent viewport-based positioning, including Safari's home bar. */
  html {scroll-padding-top:68px;}
  .header {
    position:fixed !important;
    inset:0 0 auto 0 !important;
    width:100% !important;
    height:66px !important;
    z-index:310 !important;
    transform:none !important;
    box-sizing:border-box;
  }
  .header .wrap.header-inner {
    width:calc(100% - 34px) !important;
    height:66px !important;
    min-height:66px !important;
    display:flex !important;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-inline:auto !important;
    padding:0 !important;
  }
  .header .logo {max-width:min(56vw,220px);min-width:0;flex-shrink:1;}
  .header .logo .official-logo{width:min(51vw,190px);max-width:100%;height:auto;max-height:51px;object-fit:contain;}
  .header .logo .logo-fallback strong {font-size:clamp(21px,5.9vw,26px);}
  .header .nav,.header .header-cta {display:none !important;}
  .header .header-tools {margin-left:auto;flex-shrink:0;display:flex;gap:10px;align-items:center;}
  .header .search-trigger {flex-shrink:0;width:38px;height:42px;display:grid;place-items:center;}
  .header .burger {
    flex:0 0 38px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:38px;
    height:42px;
    margin:0;
    padding:6px;
    background:transparent;
    border:0;
    border-radius:0;
  }
  .header .burger span {width:22px;height:1.8px;border-radius:0;}
  .bottom-nav {
    display:grid !important;
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    width:100% !important;
    min-width:0 !important;
    height:calc(66px + env(safe-area-inset-bottom,0px)) !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    align-items:start !important;
    gap:0 !important;
    padding:4px 7px calc(4px + env(safe-area-inset-bottom,0px)) !important;
    background:rgba(250,248,245,.98) !important;
    border-top:1px solid rgba(38,61,50,.12) !important;
    box-shadow:0 -5px 25px rgba(22,51,41,.055);
    z-index:295 !important;
    transform:none !important;
    backdrop-filter:blur(15px);
    -webkit-backdrop-filter:blur(15px);
  }
  .bottom-nav > a,.bottom-nav > button {
    min-width:0 !important;
    width:100% !important;
    height:55px !important;
    align-content:center;
    justify-items:center;
    gap:3px !important;
    padding:5px 1px !important;
    line-height:1.2;
    text-align:center;
    border-radius:0;
    overflow:hidden;
  }
  .bottom-nav .bottom-action {
    border-radius:10px !important;
    width:calc(100% - 6px) !important;
    margin:0 3px;
    height:54px !important;
  }
  .bottom-nav svg {width:21px;height:21px;flex:none;}
  .bottom-nav small {display:block;line-height:1.2;font-size:10px;white-space:nowrap;}
  .floaters {
    position:fixed !important;
    right:12px !important;
    bottom:calc(82px + env(safe-area-inset-bottom,0px)) !important;
    z-index:270 !important;
    gap:9px;
  }
  .floaters .share-main,.floaters .back-top,.floaters .share-item {width:43px;height:43px;}
  .menu-backdrop {z-index:360 !important;position:fixed !important;inset:0 !important;}
  .mobile-menu {
    z-index:361 !important;
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    left:auto !important;
    bottom:auto !important;
    width:min(390px,100vw) !important;
    height:100vh;
    height:100dvh !important;
    max-height:100dvh;
    padding:calc(20px + env(safe-area-inset-top,0px)) 24px calc(20px + env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-menu .menu-end {margin-top:auto;padding-top:20px;}
  .search-panel {top:66px !important;max-height:calc(100dvh - 66px);overflow-y:auto;}
  body:not(.no-scroll) {overflow-x:clip;}
  body.no-scroll {overscroll-behavior:none;}
}
@media(max-width:359px) {
 .header .wrap.header-inner{width:calc(100% - 22px)!important;gap:5px;}
 .header .header-tools{gap:3px;}
 .header .logo .official-logo{width:49vw;}
 .bottom-nav small{font-size:9px;}
}
@media(min-width:761px){.bottom-nav{display:none!important}.header .burger{display:none!important}}
/* Modal and search must sit above the fixed mobile header, never behind it. */
@media(max-width:760px){
  .search-panel{z-index:320!important;}
  .modal{z-index:410!important;}
  .film-modal{z-index:420!important;}
}
