/* Orbit single-source desktop sidebar navigation.
   Shared by Discover/app, Birth Chart, and Synastry.
   All three use the same grid, same wordmark, and same nav item geometry. */
@media (min-width:701px) {
  :root {
    --orbit-canonical-extra:clamp(0px,calc(100vw - 1050px),192px);
    --orbit-canonical-inset:calc(31px + var(--orbit-canonical-extra));
    --orbit-canonical-rule:rgba(240,210,166,.17);
    --orbit-canonical-gold:#f0d6ab;
    --orbit-canonical-ink:#eee1f2;
  }
  html body:has(> .chart-app) { margin:0!important; padding:0!important; }
  html body :is(.app,.chart-app,.orbit-synastry-layout):has(> aside.orbit-canonical-sidebar) {
    display:grid!important;
    grid-template-columns:calc(230px + var(--orbit-canonical-extra)) minmax(0,1fr)!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:1660px!important;
    min-height:100vh!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  html body :is(.app,.chart-app,.orbit-synastry-layout) > aside.orbit-canonical-sidebar {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
    min-width:0!important;
    padding:20px 16px!important;
    border:0!important;
    background:linear-gradient(90deg,rgba(25,13,44,.36),rgba(25,13,44,.10))!important;
  }
  html body :is(.app,.chart-app,.orbit-synastry-layout) > aside.orbit-canonical-sidebar > .orbit-sidebar-wordmark {
    display:flex!important;
    flex:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    align-self:stretch!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
    margin:-88px 0 30px var(--orbit-canonical-inset)!important;
    padding:0!important;
    width:calc(100% - var(--orbit-canonical-inset))!important;
    max-width:calc(100% - var(--orbit-canonical-inset))!important;
    min-width:0!important;
    min-height:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }
  html body :is(.app,.chart-app,.orbit-synastry-layout) > aside.orbit-canonical-sidebar > .orbit-sidebar-wordmark img {
    display:block!important;
    flex:none!important;
    width:150px!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links {
    display:flex!important;
    flex:none!important;
    flex-direction:column!important;
    align-self:stretch!important;
    box-sizing:border-box!important;
    position:relative!important;
    left:var(--orbit-canonical-inset)!important;
    right:auto!important;
    transform:none!important;
    width:calc(100% - var(--orbit-canonical-inset))!important;
    min-width:0!important;
    margin:0!important;
    padding:10px 0 0!important;
    gap:3px!important;
    border:0!important;
    border-top:1px solid var(--orbit-canonical-rule)!important;
    background:transparent!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > a,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > a {
    display:flex!important;
    flex:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    position:relative!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:43px!important;
    margin:0!important;
    padding:10px 5px 10px 13px!important;
    border:1px solid transparent!important;
    border-radius:11px!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:var(--orbit-canonical-ink)!important;
    -webkit-text-fill-color:var(--orbit-canonical-ink)!important;
    font:500 15.2px/1.38 Palatino,"Palatino Linotype",Georgia,serif!important;
    letter-spacing:.005em!important;
    text-align:left!important;
    text-decoration:none!important;
    white-space:normal!important;
    cursor:pointer!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav.active,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > a.active,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > a.active {
    background:rgba(149,94,181,.16)!important;
    border-color:rgba(240,210,166,.14)!important;
    box-shadow:none!important;
    color:var(--orbit-canonical-gold)!important;
    -webkit-text-fill-color:var(--orbit-canonical-gold)!important;
    font-weight:600!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav.active::before,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > a.active::before,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > a.active::before {
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:9px!important;
    bottom:9px!important;
    width:2px!important;
    border-radius:4px!important;
    background:var(--orbit-canonical-gold)!important;
    box-shadow:0 0 8px rgba(240,214,171,.27)!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav:not(.active):hover,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > a:not(.active):hover,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > a:not(.active):hover {
    background:rgba(148,97,174,.12)!important;
    border-color:rgba(240,210,166,.11)!important;
    color:var(--orbit-canonical-gold)!important;
    -webkit-text-fill-color:var(--orbit-canonical-gold)!important;
  }
  html body :is(.app,.chart-app,.orbit-synastry-layout) > aside.orbit-canonical-sidebar > :is(.side-note,.chart-side-note,.orbit-synastry-side-note) {
    box-sizing:border-box!important;
    flex:none!important;
    width:calc(100% - var(--orbit-canonical-inset))!important;
    margin:clamp(44px,8vh,76px) 0 0 var(--orbit-canonical-inset)!important;
    padding:17px 5px 0!important;
    border:0!important;
    border-top:1px solid var(--orbit-canonical-rule)!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    font:400 11px/1.6 Inter,system-ui,sans-serif!important;
    color:rgba(231,209,239,.77)!important;
  }
}


/* Standalone page correction based on the actual Birth Chart screenshot:
   the inherited 192px sidebar inset was applied to the links AND the logo,
   leaving a narrow menu at the far right of an otherwise empty sidebar.
   Keep the main app's layout untouched. Make both chart pages use the
   same broad left-aligned navigation treatment as Discover. */
@media(min-width:701px){
  html body :is(.chart-app,.orbit-synastry-layout):has(> aside.orbit-canonical-sidebar){
    --orbit-canonical-inset:31px;
  }
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links{
    left:31px!important;
    right:auto!important;
    width:calc(100% - 46px)!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 0 0!important;
  }
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark{
    margin-left:calc(31px + .7 * var(--orbit-canonical-extra))!important;
    width:calc(100% - 31px - .7 * var(--orbit-canonical-extra))!important;
    max-width:none!important;
    padding:0!important;
  }
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > :is(.chart-side-note,.orbit-synastry-side-note),
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > :is(.chart-side-note,.orbit-synastry-side-note){
    margin-left:31px!important;
    width:calc(100% - 46px)!important;
    max-width:none!important;
  }
}


/* True parity: Birth Chart and Synastry now use the same .nav buttons and
   labels as index.html, not page-specific anchors. Apply exactly the same
   desktop font geometry, including weight and selected states. */
@media(min-width:701px){
 html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > button.nav,
 html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > button.nav{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:flex!important;
    position:relative!important;
    flex:none!important;
    box-sizing:border-box!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    min-height:43px!important;
    margin:0!important;
    padding:10px 5px 10px 13px!important;
    border:1px solid transparent!important;
    border-radius:11px!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#eee1f2!important;
    -webkit-text-fill-color:#eee1f2!important;
    font-family:Palatino,"Palatino Linotype",Georgia,serif!important;
    font-size:15.2px!important;
    font-style:normal!important;
    font-weight:500!important;
    line-height:1.38!important;
    letter-spacing:.005em!important;
    text-align:left!important;
    text-decoration:none!important;
    text-transform:none!important;
    white-space:normal!important;
    cursor:pointer!important;
 }
 html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > button.nav.active,
 html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > button.nav.active{
    background:rgba(149,94,181,.16)!important;
    border-color:rgba(240,210,166,.14)!important;
    color:#f0d6ab!important;
    -webkit-text-fill-color:#f0d6ab!important;
    font-weight:600!important;
 }
 html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > button.nav.active::before,
 html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > button.nav.active::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:9px!important;
    bottom:9px!important;
    width:2px!important;
    border-radius:4px!important;
    background:#f0d6ab!important;
 }
 html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > nav.chart-side-links.orbit-canonical-links > button.nav:not(.active):hover,
 html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > nav.orbit-synastry-side-links.orbit-canonical-links > button.nav:not(.active):hover{
    background:rgba(148,97,174,.12)!important;
    border-color:rgba(240,210,166,.11)!important;
    color:#f0d6ab!important;
    -webkit-text-fill-color:#f0d6ab!important;
 }
}


/* 2026-11-17: make Discover, Likes, Profile, Connections, Messages and
   Account follow the Birth Chart sidebar shown in the user's reference.
   The old main-app inset narrowed the selected pill and made the nav appear
   bigger and farther right. Birth Chart is the reference; do not change it. */
@media(min-width:701px){
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links{
    left:31px!important;
    right:auto!important;
    width:calc(100% - 46px)!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:10px 0 0!important;
    gap:3px!important;
    border-top:1px solid rgba(240,210,166,.17)!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:flex!important;
    flex:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    box-sizing:border-box!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    min-height:43px!important;
    height:auto!important;
    margin:0!important;
    padding:10px 5px 10px 13px!important;
    border:1px solid transparent!important;
    border-radius:11px!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#eee1f2!important;
    -webkit-text-fill-color:#eee1f2!important;
    font-family:Palatino,"Palatino Linotype",Georgia,serif!important;
    font-size:15.2px!important;
    font-style:normal!important;
    font-weight:500!important;
    line-height:1.38!important;
    letter-spacing:.005em!important;
    text-align:left!important;
    text-transform:none!important;
    white-space:normal!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav.active{
    background:rgba(149,94,181,.16)!important;
    border-color:rgba(240,210,166,.14)!important;
    box-shadow:none!important;
    color:#f0d6ab!important;
    -webkit-text-fill-color:#f0d6ab!important;
    font-weight:600!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav.active::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:9px!important;
    bottom:9px!important;
    left:0!important;
    width:2px!important;
    border-radius:4px!important;
    background:#f0d6ab!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > nav#desktopNav.orbit-canonical-links > button.nav:not(.active):hover{
    background:rgba(148,97,174,.12)!important;
    border-color:rgba(240,210,166,.11)!important;
    color:#f0d6ab!important;
    -webkit-text-fill-color:#f0d6ab!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > .side-note{
    margin-left:31px!important;
    width:calc(100% - 46px)!important;
    max-width:none!important;
  }
}


/* Desktop wordmark position: use Birth Chart as the sole reference.
   Apply the exact same horizontal offset, width and vertical rhythm to
   Discover / Likes / Profile / Connections / Messages / Account.
   Birth Chart and Synastry already use this offset. */
@media(min-width:701px){
  html body .app > aside.side.orbit-canonical-sidebar > .orbit-sidebar-wordmark,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:none!important;
    box-sizing:border-box!important;
    margin:-88px 0 30px calc(31px + .7 * var(--orbit-canonical-extra))!important;
    padding:0!important;
    width:calc(100% - 31px - .7 * var(--orbit-canonical-extra))!important;
    max-width:calc(100% - 31px - .7 * var(--orbit-canonical-extra))!important;
    min-width:0!important;
    min-height:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  html body .app > aside.side.orbit-canonical-sidebar > .orbit-sidebar-wordmark img,
  html body .chart-app > aside.chart-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark img,
  html body .orbit-synastry-layout > aside.orbit-synastry-sidebar.orbit-canonical-sidebar > .orbit-sidebar-wordmark img{
    display:block!important;
    width:150px!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
  }
}
