/* MeAriel v3 shell (brief v3 §4). Loaded only while the switch is on. Fibonacci values only. */
.mv-top,.mv-head,.mv-drawer,.mv-foot,.mv-bnav{direction:rtl;font-family:var(--mv-font-b);box-sizing:border-box}
.mv-top *,.mv-head *,.mv-drawer *,.mv-foot *,.mv-bnav *{box-sizing:border-box}
.mv-head ul,.mv-drawer ul,.mv-foot ul{list-style:none;margin:0;padding:0}
.mv-head a,.mv-drawer a,.mv-foot a,.mv-bnav a,.mv-top a{text-decoration:none}

.mv-skip{position:absolute;top:-89px;right:13px;z-index:100000;padding:8px 13px;border-radius:var(--mv-r);background:var(--mv-ink);color:#fff!important;font:700 16px/1.4 var(--mv-font-b)}
.mv-skip:focus{top:8px}

.mv-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--mv-ink);cursor:pointer;transition:background-color var(--mv-t2)}
.mv-icon-btn:hover{background:var(--mv-bg)}
/* Astra styles every <button> (blue fill on hover/focus); neutralise it inside the shell */
.mv-head :is(.mv-icon-btn,.mv-nav-link),.mv-head :is(.mv-icon-btn,.mv-nav-link):is(:hover,:focus,:active),
.mv-drawer .mv-icon-btn,.mv-drawer .mv-icon-btn:is(:hover,:focus,:active){border:0!important;border-radius:999px!important;box-shadow:none!important;color:var(--mv-ink)!important;background:transparent!important}
.mv-head .mv-nav-link,.mv-head .mv-nav-link:is(:hover,:focus,:active){border-radius:8px!important;font:500 16px/1 var(--mv-font-b)!important}
.mv-head .mv-icon-btn:hover,.mv-drawer .mv-icon-btn:hover{background:var(--mv-bg)!important}
.mv-head .mv-nav .is-active>.mv-nav-link{font-weight:700!important}

/* Top bar */
.mv-top{background:var(--mv-ink);color:#DCE6EF;font-size:13px;line-height:1}
.mv-top-in{display:flex;align-items:center;gap:21px;min-height:34px}
.mv-top-date{flex:0 0 auto;white-space:nowrap}
.mv-top-tick{flex:1 1 auto;min-width:0}
.mv-top-tg{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;min-height:34px;color:#fff!important;font-weight:700}
.mv-top-tg svg{color:var(--mv-sun)}
.mv-top-tg:hover{text-decoration:underline}

/* Header */
.mv-head{position:sticky;top:0;z-index:9991;background:var(--mv-surface);border-bottom:1px solid var(--mv-border);box-shadow:var(--mv-shadow)}
.admin-bar .mv-head{top:32px}
.mv-head-in{display:flex;align-items:center;gap:21px;min-height:89px}
.mv-logo{flex:0 0 auto;display:block;line-height:0}
.mv-head .mv-logo img{display:block;height:72px;width:auto}
.mv-burger{display:none}
.mv-nav{flex:1 1 auto;min-width:0}
.mv-nav>ul{display:flex;align-items:center;gap:2px}
.mv-nav li{position:relative}
.mv-nav-link{position:relative;display:inline-flex;align-items:center;gap:3px;min-height:44px;padding:0 13px;border:0;background:none;color:var(--mv-ink)!important;font:500 16px/1 var(--mv-font-b);cursor:pointer;white-space:nowrap}
.mv-nav-link::after{content:"";position:absolute;right:13px;left:13px;bottom:5px;height:3px;border-radius:3px;background:var(--mv-orange);transform:scaleX(0);transition:transform var(--mv-t3)}
.mv-nav-link:hover::after,.mv-nav .is-active>.mv-nav-link::after{transform:scaleX(1)}
.mv-nav .is-active>.mv-nav-link{font-weight:700}
.mv-nav-link svg{transition:transform var(--mv-t2)}
.mv-nav-link[aria-expanded="true"] svg{transform:rotate(180deg)}
.mv-menu{position:absolute;top:100%;right:0;z-index:2;min-width:144px;padding:8px;border:1px solid var(--mv-border);border-radius:var(--mv-r);background:var(--mv-surface);box-shadow:var(--mv-shadow-lg)}
.mv-menu[hidden]{display:none}
.mv-menu a{display:flex;align-items:center;min-height:44px;padding:0 13px;border-radius:8px;color:var(--mv-text)!important;font-size:16px}
.mv-menu a:hover{background:var(--mv-bg)}
.mv-head-act{flex:0 0 auto;display:flex;align-items:center;gap:8px}

.mv-search{border-top:1px solid var(--mv-border);background:var(--mv-bg);padding:13px 0}
.mv-search[hidden]{display:none}
.mv-search-form{display:flex;gap:8px}
.mv-search-form input{flex:1 1 auto;min-width:0;min-height:44px;padding:0 13px;border:1px solid var(--mv-border);border-radius:999px;background:#fff;font:16px var(--mv-font-b);color:var(--mv-text)}

/* Drawer (mobile) */
.mv-drawer{position:fixed;inset:0;z-index:99999}
.mv-drawer[hidden]{display:none}
.mv-drawer-bg{position:absolute;inset:0;background:rgb(11 34 54/.55);opacity:0;transition:opacity var(--mv-t3)}
.mv-drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(89vw,377px);display:flex;flex-direction:column;gap:21px;overflow-y:auto;padding:13px 21px 34px;background:var(--mv-surface);box-shadow:var(--mv-shadow-lg);transform:translateX(100%);transition:transform var(--mv-t3)}
.mv-drawer.is-open .mv-drawer-bg{opacity:1}
.mv-drawer.is-open .mv-drawer-panel{transform:none}
.mv-drawer-top{display:flex;align-items:center;justify-content:space-between}
.mv-drawer-top .mv-logo img{height:48px;width:auto}
.mv-drawer-nav li+li{border-top:1px solid var(--mv-border)}
.mv-drawer-nav a{display:flex;align-items:center;min-height:55px;color:var(--mv-ink)!important;font:500 20px/1.2 var(--mv-font-h)}
.mv-drawer-nav a[aria-current]{color:var(--mv-orange-h)!important;font-weight:700}
.mv-drawer-act{display:grid;gap:8px}

/* Footer */
.mv-foot{background:var(--mv-ink);color:#DCE6EF;font-size:16px;line-height:1.618}
.mv-foot-grid{display:grid;grid-template-columns:1.618fr 1fr 1fr 1fr;gap:34px;padding-top:55px;padding-bottom:55px}
.mv-foot-logo{display:inline-block;padding:5px;border-radius:13px;background:#fff;line-height:0}
.mv-foot-logo img{display:block;height:89px;width:auto}
.mv-foot-brand p{margin:13px 0 21px;max-width:377px}
.mv-social{display:flex;gap:8px}
.mv-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:rgb(255 255 255/.08);color:#fff!important;transition:background-color var(--mv-t2)}
.mv-social a:hover{background:var(--mv-blue)}
.mv-foot h2{margin:0 0 13px;color:#fff;font:700 16px/1.4 var(--mv-font-h)}
.mv-foot nav a{display:inline-flex;align-items:center;min-height:34px;color:#DCE6EF!important}
.mv-foot nav a:hover{color:var(--mv-sun)!important;text-decoration:underline}
.mv-foot-bottom{border-top:1px solid rgb(255 255 255/.13);font-size:13px}
.mv-foot-bottom-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 21px;min-height:55px;padding-top:13px;padding-bottom:13px}
.mv-foot-bottom p{margin:0}
.mv-foot-bottom a{color:#DCE6EF!important}
.mv-foot-bottom a:hover{color:#fff!important;text-decoration:underline}
.mv-credit a{font-weight:700;color:#fff!important}
.mv-credit span{color:#A78BFA}

/* Bottom nav (mobile only) */
.mv-bnav{display:none}

/* 987 to 1219: keep one row on smaller desktops */
@media (max-width:1219px){
  .mv-head-in{gap:13px}
  .mv-nav-link{padding:0 8px}
  .mv-nav-link::after{right:8px;left:8px}
  .mv-report{display:none}
}

/* Mobile (<987) */
@media (max-width:986px){
  .mv-top-date{display:none}
  .mv-top-in{gap:8px}
  .mv-top-tg{font-size:0;gap:0;min-width:34px;justify-content:center} /* icon only, text stays as the accessible name */
  .mv-head-in{min-height:55px;gap:8px}
  .mv-burger{display:inline-flex}
  .mv-head .mv-logo{flex:1 1 auto;display:flex;justify-content:center}
  .mv-head .mv-logo img{height:48px}
  .mv-nav,.mv-head-act .mv-btn{display:none}
  .mv-foot-grid{grid-template-columns:1fr 1fr;gap:34px 21px;padding-top:34px;padding-bottom:34px}
  .mv-foot-brand{grid-column:1/-1}
  .mv-bnav{position:fixed;right:0;left:0;bottom:0;z-index:9992;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;height:calc(55px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--mv-surface);border-top:1px solid var(--mv-border);box-shadow:0 -3px 8px rgb(11 34 54/.08)}
  .mv-bnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:55px;color:var(--mv-muted)!important;font:500 13px/1 var(--mv-font-b)}
  .mv-bnav a[aria-current]{color:var(--mv-blue)!important;font-weight:700}
  .mv-bnav-dot{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-21px;border:3px solid var(--mv-surface);border-radius:999px;background:var(--mv-orange);color:var(--mv-ink);box-shadow:var(--mv-shadow)}
  .mv-bnav .mv-bnav-add{color:var(--mv-ink)!important;font-weight:700}
  body.mv3{padding-bottom:calc(55px + env(safe-area-inset-bottom))}
  body.mv3 .mear-tg-float{display:none!important}
}
@media (max-width:782px){.admin-bar .mv-head{top:46px}}
@media (max-width:600px){.admin-bar .mv-head{top:0}}
@media (max-width:377px){.mv-foot-grid{grid-template-columns:1fr}}

@media (prefers-reduced-motion:reduce){
  .mv-nav-link::after,.mv-nav-link svg,.mv-drawer-bg,.mv-drawer-panel,.mv-icon-btn,.mv-social a{transition:none}
}

/* Touch screens: the thin 34px bar and footer links grow to 44px touch targets (brief §0); mouse layouts keep the design */
@media (pointer:coarse){
  .mv-top-in,.mv-top-tg{min-height:44px}
  .mv-top-tg{min-width:44px}
  .mv-tt{height:44px}
  .mv-tt .mv-tick-a{min-height:44px}
  .mv-foot nav a{min-height:44px}
  .mv-foot-bottom a{display:inline-flex;align-items:center;min-height:44px}
}
