/* Phone only: app chrome, not a website squeezed into a narrow column.
   Sticky app bar, card surfaces, app gutters, the existing bottom tab bar as the navigation.
   Tablet (700px and up) and laptop are untouched by every rule in this file. */
@media (max-width:699px),(pointer:coarse) and (max-height:560px){
  html,body{background:#f2f2f7}
  /* app bar */
  header.brand{position:sticky;inset-block-start:0;z-index:70;background:rgba(255,255,255,.96);
    -webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);
    border-block-end:1px solid rgba(0,0,0,.07);box-shadow:none;padding:7px 12px!important;min-block-size:52px;
    display:flex;align-items:center;gap:8px}
  header.brand .logo img{max-block-size:26px}
  /* desktop links live in the header menu on the phone, not in the bar */
  header.brand>a.faqbtn,header.brand>a.homebtn,header.brand>span.lang{display:none!important}
  header.brand .verbtn,header.brand .accbtn{min-block-size:36px!important;min-inline-size:36px;padding:0 8px!important}
  /* content: app gutters and card surfaces */
  main{padding:10px 10px 86px!important;background:transparent}
  main>article.card,main>section.card{background:var(--card,#fff);border:0!important;border-radius:18px!important;
    box-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 22px rgba(0,0,0,.05);padding:16px!important;margin:0 0 12px!important}
  main nav.nvcrumbs{font-size:.72rem;opacity:.6;padding:2px 6px;margin-block-end:4px}
  main>a.nvback{display:inline-flex;margin:0 4px 8px}
  main h1{font-size:1.32rem;line-height:1.3;letter-spacing:-.01em;margin:2px 4px 10px}
  main h2.group{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;color:#6e6e73;margin:16px 8px 6px;font-weight:700}
  main ul.cards{display:grid;gap:10px;margin:0;padding:0;list-style:none}
  main ul.cards>li{background:var(--card,#fff);border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.06);overflow:hidden}
  main .field.coursesel{background:var(--card,#fff);border-radius:14px;padding:10px 12px;box-shadow:0 1px 2px rgba(0,0,0,.05);margin:0 0 10px}
  main .certcentres{background:var(--card,#fff);border-radius:16px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.05);margin:0 0 12px}
  /* reading-first: the lesson sheet keeps one column and generous padding, it does not become a feed */
  main>article.card{padding:18px 16px!important}
  /* landscape phone: keep the reading column centred instead of a full-width card with a blank half */
  main>article.card,main>section.card{max-inline-size:40rem!important;margin-inline:auto!important}
  /* app-like: no breadcrumb trail on the phone, the app bar and the back control carry the position */
  main nav.nvcrumbs{display:none!important}
  /* the hero reads as an app header block, not a desktop hero */
  main h1,body .hero h1{font-size:1.55rem!important;line-height:1.35!important}
  body .hero{min-block-size:auto!important;padding-block:8px 4px!important}

  main>article.card #lContent,main>article.card .nvlesson-p{font-size:1rem;line-height:1.75}
  /* the bottom bar is the navigation: keep it fixed, clear of the safe area */
  body>div[class*=bar],body>nav{--x:0}
}
/* phone landscape: the app bar stays, the gutters tighten, the sheet keeps its reading width */
@media (max-width:699px) and (orientation:landscape),(pointer:coarse) and (max-height:560px) and (orientation:landscape){
  header.brand{min-block-size:44px;padding:4px 10px!important}
  main{padding:8px 8px 70px!important}
  main>article.card{padding:14px 16px!important}
  main h1{font-size:1.15rem;margin-block:0 8px}
}
@media (max-width:699px),(pointer:coarse) and (max-height:560px){
  /* pages that carry their own fixed header (the TV app) keep clearance under it */
  body>header.top~main,body>header.top+main{padding-block-start:72px!important}
}
@media (max-width:699px),(pointer:coarse) and (max-height:560px){
  /* the guest strip injected on pages with a fixed header sits under it, not behind it */
  body>div.nvguest{margin-block-start:80px!important;padding:0 10px!important;background:transparent!important}
  /* and the TV profile screen should not hold a full empty viewport under the strip */
  body>div.nvguest+main .center{min-height:auto!important;padding-block-start:26px!important}
}
@media (max-width:699px),(pointer:coarse) and (max-height:560px){
  /* the TV page is its own dark app: the light phone chrome must not repaint its canvas */
  body:has(>header.top){background:#141414!important;color:#fff!important}
  body:has(>header.top) main{background:transparent!important}
}

/* RULE (Ahmed, 2026-12-05): the founder bio is never shown on phones.
   Hidden entirely on phones; kept on tablet and laptop.
   Applies to: the founder-bio button injected into headers (#bioBtn), every
   footer link into bio-page/, and on the bio page itself the hero header and
   the article.page body, replaced by a one-line note. */
.nvbio-note{display:none}
@media (max-width:699px),(pointer:coarse) and (max-height:560px){
  #bioBtn,#nvMore .nvgrid .nvit[href*="bio-page"],#nvMore .nvlist a[href*="bio-page"],#nvMore a[href*="bio-page"]{display:none!important}
  footer a[href*="bio-page"]{display:none!important}
  body.nvbio>article.page,body.nvbio>.nav,body.nvbio>.topbar{display:none!important}
  body.nvbio .nvbio-note{display:block!important;margin:18px 16px;padding:16px;border-radius:14px;background:#fff;color:#1c1c1e;font-size:.95rem;line-height:1.7;box-shadow:0 1px 2px #0000000f}
}
