/* Tap-a-word gloss: tap a word in a story -> it is read aloud and a small popup
   shows the meaning. Shared by the reading pages and the Q&A practice pages. */
.gw{cursor:pointer;border-bottom:1px dotted rgba(61,140,143,.45);transition:background .15s,border-color .15s;border-radius:3px}
@media(hover:hover){.gw:hover{background:rgba(61,140,143,.08)}}
.gw.gw-active{background:rgba(61,140,143,.14);border-bottom-color:var(--gold)}
.gw-pop{position:absolute;z-index:200;background:var(--bg-card);border:1px solid var(--gold-line);border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.12);padding:12px 14px;min-width:150px;max-width:260px;display:none}
.gw-pop.show{display:block}
.gw-pop-th{font-family:var(--font-th);font-weight:300;font-size:18px;color:var(--ivory);line-height:1.4}
.gw-pop-mean{font-family:var(--font-en);font-size:15px;color:var(--ivory-sub);line-height:1.5;margin-top:3px}
.gw-pop-mean span[data-lang="cn"]{font-family:var(--font-cn)}
.gw-pop-snd{width:15px;height:15px;flex:none;color:var(--gold);opacity:.85;margin-top:4px}
.gw-pop-row{display:flex;align-items:flex-start;gap:9px}
.gw-pop.no-audio .gw-pop-snd{display:none}
.gw-pop::after{content:'';position:absolute;left:var(--arrow-x,24px);bottom:-6px;width:10px;height:10px;background:var(--bg-card);border-right:1px solid var(--gold-line);border-bottom:1px solid var(--gold-line);transform:rotate(45deg)}
.gw-pop.below::after{bottom:auto;top:-6px;transform:rotate(225deg)}
