/* FCE Classic – Desktop: compact brand + refined horizontal navigation.
   Smartphones keep their original bottom navigation (<=760px). */
.fce-desktop-nav{display:none}
@media(min-width:761px){
  body.theme-admin .site-shell.role-admin .trainer-mobile-bottom-nav,
  body.theme-parent .site-shell.role-parent .parent-bottom-nav{display:none!important}
  body.theme-admin .site-shell.role-admin .container,
  body.theme-parent .site-shell.role-parent .container{padding-bottom:48px!important}
  body.theme-admin .site-shell.role-admin .topnav,
  body.theme-parent .site-shell.role-parent .topnav{display:none!important}

  body.theme-admin .site-shell.role-admin .topbar-inner,
  body.theme-parent .site-shell.role-parent .topbar-inner{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    min-height:0;
    padding:8px 0 0;
  }
  body.theme-admin .site-shell.role-admin .topbar-brand-row,
  body.theme-parent .site-shell.role-parent .topbar-brand-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:40px;
    gap:14px;
    width:100%;
  }
  body.theme-admin .site-shell.role-admin .topbar-brand-row .brand-mark,
  body.theme-parent .site-shell.role-parent .topbar-brand-row .brand-mark{
    width:35px;
    height:35px;
    flex:0 0 35px;
    font-size:12px;
  }
  body.theme-admin .site-shell.role-admin .topbar-brand-row .brand,
  body.theme-parent .site-shell.role-parent .topbar-brand-row .brand{
    gap:10px;
  }
  body.theme-admin .site-shell.role-admin .brand-copy strong,
  body.theme-parent .site-shell.role-parent .brand-copy strong{
    font-size:14px;
    line-height:1.25;
  }
  body.theme-admin .site-shell.role-admin .brand-copy span,
  body.theme-parent .site-shell.role-parent .brand-copy span{
    font-size:11px;
    opacity:.84;
  }
  body.theme-admin .site-shell.role-admin .trainer-mobile-header-actions,
  body.theme-parent .site-shell.role-parent .topbar-logout{
    margin-left:auto;
  }
  body.theme-admin .site-shell.role-admin .trainer-mobile-header-logout,
  body.theme-parent .site-shell.role-parent .topbar-logout{
    min-height:36px;
    padding:7px 13px;
    font-size:12px;
    border-radius:9px;
  }

  body.theme-admin .site-shell.role-admin .fce-desktop-nav,
  body.theme-parent .site-shell.role-parent .fce-desktop-nav{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:2px;
    width:100%;
    margin-top:5px;
    padding:0 0 6px;
  }
  .fce-desktop-nav-entry{
    position:relative;
    display:flex;
    align-items:stretch;
    min-width:0;
    margin:0;
  }
  .fce-desktop-nav-link{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:37px;
    padding:8px 12px 10px;
    color:rgba(255,255,255,.87);
    background:transparent;
    border:0;
    border-radius:7px 7px 3px 3px;
    text-decoration:none;
    font:inherit;
    font-size:13px;
    line-height:1.2;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    list-style:none;
    touch-action:manipulation;
    transition:background-color .14s ease,color .14s ease;
  }
  .fce-desktop-nav-link::-webkit-details-marker{display:none}
  .fce-desktop-nav-link::marker{content:""}
  .fce-desktop-nav-link:hover,
  .fce-desktop-nav-entry:hover>.fce-desktop-nav-link,
  .fce-desktop-nav-entry[open]>.fce-desktop-nav-link{
    color:#fff;
    background:rgba(255,255,255,.10);
  }
  .fce-desktop-nav-link.is-current{
    color:#fff;
    background:rgba(255,255,255,.055);
    font-weight:850;
  }
  .fce-desktop-nav-link.is-current::after{
    content:"";
    position:absolute;
    bottom:1px;
    left:12px;
    right:12px;
    height:2px;
    border-radius:3px;
    background:#f6c9d4;
  }
  body.theme-parent .site-shell.role-parent .fce-desktop-nav-link.is-current::after{
    background:#c8f3dc;
  }
  .fce-desktop-nav-chevron{
    width:12px;
    height:12px;
    flex:0 0 12px;
    opacity:.75;
    transition:transform .14s ease;
  }
  .fce-desktop-nav-with-sub[open]>.fce-desktop-nav-link .fce-desktop-nav-chevron{
    transform:rotate(180deg);
  }
  .fce-desktop-nav-link:focus-visible,
  .fce-desktop-nav-sub-links a:focus-visible{
    outline:3px solid #f7c948;
    outline-offset:2px;
  }
  .fce-desktop-nav-sub-links{
    position:absolute;
    top:100%;
    left:0;
    z-index:1500;
    display:grid;
    gap:2px;
    min-width:192px;
    width:max-content;
    max-width:min(320px,90vw);
    padding:7px;
    background:#fff;
    color:#35242b;
    border:1px solid #e7d0d7;
    border-radius:11px;
    box-shadow:0 12px 28px rgba(42,21,29,.18);
  }
  .fce-desktop-nav-with-sub:not([open])>.fce-desktop-nav-sub-links{
    display:none;
  }
  /* Hover reveals the same menu without toggling the native details state.
     Click on its single summary opens it for touch devices. */
  .fce-desktop-nav-with-sub:hover>.fce-desktop-nav-sub-links,
  .fce-desktop-nav-with-sub:focus-within>.fce-desktop-nav-sub-links{
    display:grid!important;
  }
  .fce-desktop-nav-entry:nth-last-child(-n+2)>.fce-desktop-nav-sub-links{
    left:auto;
    right:0;
  }
  .fce-desktop-nav-sub-links a{
    display:flex;
    align-items:center;
    min-height:39px;
    padding:9px 12px;
    border-radius:7px;
    color:#35242b;
    background:#fff;
    font-size:13px;
    font-weight:650;
    line-height:1.3;
    text-decoration:none;
  }
  .fce-desktop-nav-sub-links a:hover{
    background:#f6e9ed;
    color:#632235;
  }
  body.theme-parent .site-shell.role-parent .fce-desktop-nav-sub-links a:hover{
    background:#e5f3eb;
    color:#115a3e;
  }
  body.theme-admin .site-shell.role-admin .admin-subnav{display:none!important}

  /* Move the dashboard header closer to navigation; privacy details are in
     account settings and the persistent footer, not the main visual headline. */
  body.theme-admin .site-shell.role-admin #main-content{
    padding-top:17px!important;
  }
  body.theme-admin .site-shell.role-admin .trainer-desktop-intro{
    margin:0 0 15px;
    padding:0;
    align-items:center;
  }
  body.theme-admin .site-shell.role-admin .trainer-desktop-intro h2{
    font-size:23px;
    line-height:1.2;
    margin:0;
    letter-spacing:-.025em;
  }
  body.theme-admin .site-shell.role-admin .trainer-desktop-intro .trainer-intro-brief{
    display:block;
    max-width:690px;
    margin:4px 0 0;
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
  }
  body.theme-admin .site-shell.role-admin .trainer-desktop-intro .trainer-intro-privacy{
    display:none;
  }
}
@media(min-width:761px) and (max-width:970px){
  .fce-desktop-nav-link{
    gap:4px;
    padding-left:9px;
    padding-right:9px;
    font-size:12px;
  }
  .fce-desktop-nav-link.is-current::after{left:9px;right:9px}
}
@media(max-width:760px){
  .site-shell .fce-desktop-nav{display:none!important}
  .trainer-desktop-intro .trainer-intro-brief{display:none!important}
  .trainer-desktop-intro .trainer-intro-privacy{display:block}
}
@media(prefers-reduced-motion:reduce){
  .fce-desktop-nav-link,.fce-desktop-nav-chevron{transition:none}
}
@media print{
  .site-shell .fce-desktop-nav{display:none!important}
}
