/* jd19-header-tablet-octagon-build (2026-11-27). Yan picked "2 Tablet + octagon" from the header concepts: a painted name tablet
   (hanging tablet, cord dropped, 3-slice so the middle stretches with the name) and an octagon mirror day/night button that shows
   the current theme. Art: members/nav/tablet.webp, mirror-{day,night}[-plain].webp (Codex, flat 2D). */

/* ---------- day / night button: the octagon mirror (plain octagon at 1100 px and under) ---------- */
body .site-header>.theme-toggle{position:relative;width:46px;height:46px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
body .site-header>.theme-toggle svg{display:none}
body .site-header>.theme-toggle::before{content:'';position:absolute;left:50%;top:0;width:46px;height:46px;transform:translateX(-50%);
  background:url('../img/members/nav/mirror-day-plain.webp?v=20261127hp1') center/100% 100% no-repeat;
  filter:drop-shadow(0 3px 6px #06132666);transition:filter .25s,transform .25s var(--ease)}
html[data-theme="night"] body .site-header>.theme-toggle::before{background-image:url('../img/members/nav/mirror-night-plain.webp?v=20261127hp1')}
@media(hover:hover){body .site-header>.theme-toggle:hover::before{filter:drop-shadow(0 0 8px #FFE08Aa6) brightness(1.08);transform:translateX(-50%) translateY(-1px)}}
body .site-header>.theme-toggle:focus-visible{outline:2px solid var(--focus-on-dark);outline-offset:4px;border-radius:6px}

@media(min-width:1101px){
  /* desktop: the mirror with its cloud tassel (the tassel tucks behind the balance plate) */
  body .site-header>.theme-toggle::before{top:-1px;width:49px;height:70px;background-image:url('../img/members/nav/mirror-day.webp?v=20261127hp1')}
  html[data-theme="night"] body .site-header>.theme-toggle::before{background-image:url('../img/members/nav/mirror-night.webp?v=20261127hp1')}

  /* ---------- the name tablet ---------- */
  body .board-header>.header-account{isolation:isolate;min-width:212px;height:48px;padding:0 60px;border:0;border-radius:0;background:none;box-shadow:none!important;
    color:#EAF4FF;text-shadow:0 1px 2px #061326}
  body .board-header>.header-account::before{content:'';position:absolute;z-index:-1;left:0;right:0;top:0;width:auto;height:92px;margin:0;
    background:none;transform:none;border-style:solid;border-color:transparent;border-width:0 59px;
    border-image:url('../img/members/nav/tablet.webp?v=20261127hp1') 0 118 fill / 0 59px / 0 stretch;
    filter:drop-shadow(0 4px 8px #06132680);transition:filter .25s}
  body .board-header>.header-account::after,body .board-header>.header-account svg{display:none}
  body .board-header>.header-account span{max-width:150px}
  @media(hover:hover){body .board-header>.header-account:hover{transform:translateY(-1px);color:#fff;box-shadow:none;border-color:transparent}
    body .board-header>.header-account:hover::before{filter:drop-shadow(0 4px 8px #06132680) drop-shadow(0 0 8px #8FD3FF66) brightness(1.08)}}
  body .board-header>.header-account[aria-current]{color:#FFF4D6;text-shadow:0 0 10px #FFC24799,0 1px 2px #061326;box-shadow:none}
  body .board-header>.header-account[aria-current] span{margin-top:0;padding-bottom:0;background:none}
  body .board-header>.header-account:focus-visible{outline:2px solid var(--focus-on-dark);outline-offset:3px}
}
