/* Pronunciation navigation (03/11/2026): initials group picker, sidebar flyout, collapsible column. */
.phon-panel{margin-top:22px}

/* Initials: group picker (letters on top, place of articulation below). */
/* 7 tabs: one row when the card is wide, otherwise 4 + 3 centred (2 per row on phones). */
.phon-library{container-type:inline-size}
.phon-group-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:7px;margin-top:18px;background:#eaf2fd;border:1px solid #deebfa;border-radius:17px}
@container (min-width:700px){.phon-group-tab{flex-basis:calc((100% - 48px) / 7) !important}}
.phon-group-tab{flex:0 0 calc(25% - 6px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px;padding:10px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:#4f6585;cursor:pointer;text-align:center;transition:.15s}
.phon-group-tab strong{font-size:17px;font-weight:750;letter-spacing:.5px;color:#2066c8}
.phon-group-tab span{font-size:11.5px;font-weight:650;line-height:1.35}
.phon-group-tab:hover{background:#f7fbff}
.phon-group-tab.selected{background:#2066c8;border-color:#2066c8;box-shadow:0 6px 16px #2066c840}
.phon-group-tab.selected strong{color:#fff}
.phon-group-tab.selected span{color:#e3eeff}
.phon-group-current{margin-top:22px}
.phon-group-current h3{font-size:15px;color:#2b4a70;font-weight:750}
.phon-group-current h3 small{font-size:13px;color:#4f6585;font-weight:600}
.phon-group-note{margin:-4px 0 14px;padding:9px 13px;font-size:13px;line-height:1.65;color:#5a6f8c;background:#f6faff;border-left:3px solid #9cc5f5;border-radius:0 10px 10px 0}
/* Teacher's guidance for the selected initial. */
.phon-guide{margin-top:16px;padding:16px 18px;background:#fff;border:1px solid #dcebfd;border-radius:14px;box-shadow:0 4px 14px #497ac30f}
.phon-guide h4{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0 0 9px;font-size:15px;color:#2b4a70}
.phon-guide h4 .py{font-size:20px;color:#2066c8}
.phon-guide-type{font-size:11.5px;font-weight:700;color:#3f6fa8;background:#eaf3ff;border-radius:20px;padding:4px 10px}
.phon-guide p{margin:0;font-size:14px;line-height:1.75;color:#3d5272}
.phon-guide-callout{margin-top:10px !important;padding:9px 12px;border-radius:10px;font-size:13.5px !important}
.phon-guide-callout.note{background:#fff6ec;color:#7a5326 !important}
.phon-guide-callout.note strong{color:#965a10}
.phon-guide-callout.tip{background:#eefaf3;color:#2f6b49 !important}
.phon-guide-callout.tip strong{color:#23875a}
.phon-guide-audio{font-size:13.5px;line-height:1.7}
.phon-guide-audio audio{display:block;width:100%;max-width:360px;height:40px;margin-top:8px}
.phon-guide-pending{margin-top:10px !important;font-size:12px !important;color:#4f6585 !important;font-style:italic}
.phon-guide.pending p{color:#4f6585;font-size:13px}
.phon-detail-group{margin:-4px 0 0;font-weight:700;color:#2066c8 !important}
@media(max-width:600px){
  .phon-group-tabs{gap:6px;padding:6px}
  .phon-group-tab{flex:0 0 calc(50% - 3px);min-height:58px;padding:8px 6px}
  .phon-group-tab strong{font-size:15px}
  .phon-group-tab span{font-size:11px}
}

/* Flyout beside "Luyện phát âm"; fixed so the scrolling sidebar does not clip it. */
/* The sidebar's classic scrollbar sat on top of the flyout and stole the pointer; it still scrolls by wheel/touch. */
.sidebar{scrollbar-width:none}
.sidebar::-webkit-scrollbar{display:none}
.nav-group{position:relative}
.nav-group .nav-btn{position:relative;padding-right:26px}
.nav-caret{position:absolute;right:7px;top:50%;margin-top:-7.5px;display:grid;place-items:center;opacity:.55;transition:transform .16s}
.nav-group:hover .nav-caret,.nav-group:focus-within .nav-caret{opacity:1;transform:translateX(2px)}
.nav-flyout{position:fixed;z-index:40;min-width:210px;display:flex;flex-direction:column;gap:2px;padding:8px;margin-left:10px;background:#fff;border:1px solid #dcebfd;border-radius:14px;box-shadow:0 14px 34px #2a5b9526;opacity:0;visibility:hidden;transform:translateX(-6px);transition:opacity .15s ease .3s,transform .15s ease .3s,visibility 0s linear .45s}
/* Closing is delayed so a diagonal move across "Luyện Shadowing" can still reach the flyout. */
/* Invisible bridge keeps hover alive while the pointer crosses the gap. */
.nav-flyout::before{content:"";position:absolute;left:-14px;top:0;bottom:0;width:14px}
.nav-flyout::after{content:"";position:absolute;left:-7px;top:22px;width:12px;height:12px;background:#fff;border-left:1px solid #dcebfd;border-bottom:1px solid #dcebfd;transform:rotate(45deg)}
.nav-group:hover .nav-flyout,.nav-group:focus-within .nav-flyout{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.nav-flyout button{display:flex;align-items:center;gap:10px;border:0;background:transparent;border-radius:10px;padding:11px 13px;text-align:left;color:#4f6789;font-weight:650;font-size:14px;cursor:pointer;transition:.14s}
.nav-flyout button span{font-size:10px;font-weight:700;color:#93a8c4;min-width:16px}
.nav-flyout button:hover,.nav-flyout button:focus-visible{background:#ebf3ff;color:var(--blue)}
.nav-flyout button.active{background:#dfeeff;color:#246cdb}
.nav-flyout button.active span{color:#2066c8}

/* Collapse toggle and edge hot zone (desktop only). */
.side-toggle{position:absolute;top:5px;right:6px;z-index:3;width:24px;height:24px;display:grid;place-items:center;border:1px solid #dcebfd;border-radius:50%;background:#fff;color:#5b8ed6;cursor:pointer;box-shadow:0 3px 10px #2a5b9514;transition:.16s}
.side-toggle .ic{transform:rotate(180deg)}
.side-toggle:hover{background:#ebf3ff;color:var(--blue)}
.side-hotzone{display:none}
@media(min-width:761px){
  .shell.side-hidden{grid-template-columns:minmax(0,1fr)}
  .shell.side-hidden .sidebar{position:fixed;top:0;bottom:0;left:calc(-1 * var(--sidebar) - 20px);width:var(--sidebar);height:100vh;z-index:30;transition:left .22s ease,box-shadow .22s}
  .shell.side-hidden .side-hotzone{display:block;position:fixed;left:0;top:0;bottom:0;width:16px;z-index:29}
  .shell.side-hidden .side-hotzone span{position:absolute;left:0;top:50%;transform:translateY(-50%);width:16px;height:54px;display:grid;place-items:center;background:#dfeeff;color:#3b7fe0;border-radius:0 10px 10px 0;box-shadow:0 4px 12px #2a5b9520}
  .shell.side-hidden.side-peek .sidebar,.shell.side-hidden .sidebar:hover,.shell.side-hidden .sidebar:focus-within{left:0;box-shadow:0 15px 40px #2a5b9533}
  .shell.side-hidden .side-toggle .ic{transform:none}
}
@media(max-width:760px){
  .side-toggle{display:none}
  /* No hover on phones: list the five sections under the menu item. */
  .nav-caret{display:none}
  .nav-flyout{position:static;opacity:1;visibility:visible;transform:none;transition:none;margin:4px 0 0 30px;padding:0 0 0 10px;min-width:0;border:0;border-left:2px solid #dcebfd;border-radius:0;box-shadow:none;background:transparent}
  .nav-flyout::before,.nav-flyout::after{display:none}
  .nav-flyout button{padding:9px 10px;font-size:13px}
}
