/* Pronunciation-only shell (25/11/2026): sticky brand bar with the 5 sections, banner hero, content.
   Màu đậm hơn (25/11): chữ phụ ≥4.5:1, xanh chính tô đặc cho mục đang chọn, banner hiện rõ tranh. */
:root{--nr-primary:#2066c8;--nr-ink:#163a66;--nr-muted:#4f6585}
body{background:#e9f1fb;margin:0}
#app{min-height:100vh;display:flex;flex-direction:column}
::selection{background:#cfe2ff;color:var(--nr-ink)}
:focus-visible{outline:3px solid var(--nr-primary);outline-offset:2px}

.nr-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:24px;padding:10px clamp(16px,4vw,48px);background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid #d6e5f7}
.nr-brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:0 0 auto}
.nr-brand img{width:44px;height:44px;object-fit:cover;object-position:50% 20%;border-radius:50%;background:#eaf3ff;border:2px solid #fff;box-shadow:0 3px 10px #2a5b9520}
.nr-brand strong{display:block;font-size:18px;letter-spacing:.6px;color:var(--nr-primary);line-height:1.1}
.nr-brand small{display:block;font-size:12px;color:var(--nr-muted)}
.nr-tabs{display:flex;gap:4px;margin-left:auto;padding:5px;background:#e1ecfa;border-radius:14px}
.nr-tabs button{display:flex;align-items:center;border:0;background:transparent;border-radius:10px;padding:9px 16px;font:inherit;font-size:14.5px;font-weight:650;color:#475d80;cursor:pointer;white-space:nowrap;transition:background-color .15s,color .15s}
.nr-tabs button:hover{background:#fff;color:var(--nr-primary)}
.nr-tabs button.active{background:var(--nr-primary);color:#fff;box-shadow:0 4px 12px #2066c840}

.nr-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px clamp(16px,4vw,48px) 0;padding:30px clamp(20px,4vw,44px);min-height:200px;border-radius:24px;overflow:hidden;background:linear-gradient(90deg,rgba(244,249,255,.95) 0%,rgba(244,249,255,.75) 36%,rgba(244,249,255,0) 62%),url("../assets/nana_banner_main.webp") center 60%/cover;border:1px solid #cfe2f8;box-shadow:0 8px 24px #2a5b9512}
.nr-hero-text{max-width:min(560px,50%)}
.nr-hero h1{margin:0 0 8px;font-size:clamp(30px,4.2vw,46px);color:var(--nr-ink);letter-spacing:-.4px;line-height:1.15}
.nr-hero p{margin:0;color:#3d5577;font-size:15.5px;line-height:1.6}
.nr-hero img{width:150px;height:150px;object-fit:contain;flex:0 0 auto;margin:-14px 0 -26px;filter:drop-shadow(0 10px 18px #2a5b9530)}

.nr-main{flex:1;padding:22px clamp(16px,4vw,48px) 10px;max-width:1440px;width:100%;box-sizing:border-box;margin:0 auto}
/* The hero above replaces the page heading that phonetics.js renders. */
.nr-main .phon-heading{display:none}
.nr-main .phon-panel{margin-top:0}
.nr-main .card{border:1px solid #d6e5f7;box-shadow:0 6px 20px #2a5b9514}
.nr-foot{padding:18px clamp(16px,4vw,48px) 26px;text-align:center;font-size:12.5px;color:var(--nr-muted)}

@media(max-width:1100px){
  .nr-top{flex-wrap:wrap;gap:8px}
  .nr-tabs{margin-left:0;width:100%;overflow-x:auto;scrollbar-width:none}
  .nr-tabs::-webkit-scrollbar{display:none}
  .nr-tabs button{flex:1 0 auto;justify-content:center}
}
@media(max-width:600px){
  .nr-top{padding:8px 12px}
  .nr-brand img{width:38px;height:38px}
  .nr-tabs button{padding:8px 12px;font-size:13.5px}
  /* Narrow screens: text sits over the picture, so keep a stronger veil. */
  .nr-hero{margin:14px 12px 0;padding:18px;min-height:0;border-radius:18px;background:linear-gradient(90deg,rgba(244,249,255,.95) 0%,rgba(244,249,255,.85) 60%,rgba(244,249,255,.3) 100%),url("../assets/nana_banner_main.webp") 70% 60%/cover}
  .nr-hero-text{max-width:none}
  .nr-hero p{font-size:14px}
  .nr-hero img{width:84px;height:84px;margin:0}
  .nr-main{padding:14px 12px 6px}
}
