/* Tenshoku V7.20 — surgical mobile navigation for Education access.
   Self-contained: does not modify site.css. */
.tp-mobile-nav{display:none}
.tp-footer-bottom a{color:#b8bbc1;text-decoration:none;border-bottom:1px solid rgba(229,27,35,.35)}
.tp-footer-bottom a:hover{color:#fff;border-bottom-color:#e51b23}

@media(max-width:950px){
  body.tp-mobile-nav-open{overflow:hidden}
  .menu{
    position:relative;
    z-index:3;
    width:38px;
    height:38px;
    display:grid!important;
    place-items:center;
    padding:0;
    border-radius:11px;
    transition:background-color .18s ease,color .18s ease,transform .18s ease;
  }
  .menu[aria-expanded="true"]{
    color:#ff3d43;
    background:rgba(229,27,35,.10);
    transform:rotate(2deg);
  }

  .tp-mobile-nav{
    position:fixed;
    display:block;
    z-index:1002;
    top:104px;
    left:0;
    right:0;
    height:calc(100dvh - 104px);
    padding:12px;
    overflow:auto;
    overscroll-behavior:contain;
    background:rgba(3,3,4,.74);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate3d(0,-10px,0);
    transition:opacity .2s ease,transform .28s cubic-bezier(.16,.8,.2,1),visibility .2s step-end;
  }
  .tp-mobile-nav.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate3d(0,0,0);
    transition:opacity .2s ease,transform .28s cubic-bezier(.16,.8,.2,1),visibility 0s;
  }
  .tp-mobile-nav-panel{
    width:min(100%,720px);
    margin:0 auto;
    padding:12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;
    background:
      radial-gradient(circle at 86% 12%,rgba(229,27,35,.11),transparent 16rem),
      linear-gradient(180deg,#101115,#090a0c);
    box-shadow:0 30px 70px rgba(0,0,0,.44);
  }
  .tp-mobile-nav-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:14px;
    padding:8px 9px 15px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }
  .tp-mobile-nav-head span{
    color:#ff454b;
    font-size:9px;
    font-weight:950;
    letter-spacing:.16em;
  }
  .tp-mobile-nav-head small{
    color:#6f7279;
    font-size:9px;
  }
  .tp-mobile-nav-link{
    min-height:55px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:13px 10px;
    color:#e8e8e7;
    border-bottom:1px solid rgba(255,255,255,.065);
    font-size:14px;
    font-weight:800;
  }
  .tp-mobile-nav-link:last-child{border-bottom:0}
  .tp-mobile-nav-link>b{
    color:#6e7177;
    font-size:10px;
    letter-spacing:.12em;
  }
  .tp-mobile-nav-link:active{transform:scale(.985)}

  .tp-mobile-nav-education{
    margin:8px 0;
    padding:15px 13px;
    border:1px solid rgba(229,27,35,.38)!important;
    border-radius:15px;
    background:
      radial-gradient(circle at 90% 0,rgba(229,27,35,.18),transparent 10rem),
      rgba(229,27,35,.055);
    box-shadow:0 12px 28px rgba(0,0,0,.20);
  }
  .tp-mobile-nav-education>span{
    display:grid;
    gap:4px;
  }
  .tp-mobile-nav-education strong{
    color:#fff;
    font-size:14px;
    letter-spacing:.025em;
  }
  .tp-mobile-nav-education small{
    color:#9699a0;
    font-size:9px;
    font-weight:500;
    line-height:1.35;
  }
  .tp-mobile-nav-education em{
    flex:0 0 auto;
    color:#ff4147;
    font-size:10px;
    font-style:normal;
    font-weight:950;
    letter-spacing:.08em;
  }
}

@media(max-width:620px){
  .tp-mobile-nav{
    top:92px;
    height:calc(100dvh - 92px);
    padding:10px;
  }
  .tp-mobile-nav-panel{border-radius:17px;padding:10px}
  .tp-mobile-nav-head small{display:none}
  .tp-mobile-nav-link{min-height:52px}
}

@media(prefers-reduced-motion:reduce){
  .tp-mobile-nav,.menu{transition:none!important}
}

/* V8.0 bilingual language controls */
.tp-lang-switch{
  display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;
  padding:7px 10px;border:1px solid rgba(229,27,35,.45);border-radius:999px;
  background:rgba(9,10,12,.72);font-size:10px;font-weight:900;letter-spacing:.08em
}
.tp-lang-switch a{color:#8e9198;text-decoration:none;line-height:1}
.tp-lang-switch a.active{color:#ff4047}
.tp-lang-switch span{color:#4e5056}
.tp-mobile-language{margin-top:10px;padding:13px 10px 5px;border-top:1px solid rgba(255,255,255,.07)}
.tp-mobile-language>small{display:block;margin-bottom:8px;color:#777b82;font-size:8px;font-weight:900;letter-spacing:.16em}
.tp-mobile-language>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tp-mobile-language a{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#aeb1b7;font-size:11px;font-weight:800;text-decoration:none;background:#0d0e11}
.tp-mobile-language a.active{color:#fff;border-color:rgba(229,27,35,.5);background:rgba(229,27,35,.09)}
@media(max-width:950px){.tp-lang-switch{display:none}}
.tp-footer-lang{display:inline-flex;align-items:center;gap:7px}.tp-footer-lang i{font-style:normal;color:#565960}.tp-footer-lang a{color:#8f9298;border-bottom:0!important}.tp-footer-lang a.active{color:#ff444a}
@media(max-width:620px){.tp-footer-lang{width:100%;justify-content:center;margin-top:7px}}
