/* nav.css - the look of the app's navigation (nav.js; NAV 0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders' (CONCEPT_ART §1c, §1d, §1e,
   §1f, §1g, §1j): Concept Art/sprints_tab.html for the tab bar, its dot and
   the menu, upright (.tabs, .tdot, .menu, .mrow, .mlabel, .mlock, .msep)
   and wide (.mgrid, .mcol, .mvsep); nav_12_weeks.html for a page that is
   not Study (← · its name · ☰, 44 px) and the menu's drop below a top bar;
   wide_navigation.html and reading_tab.html for a wide page that is not
   Study (the 52 px top row, the five tiles filling the bottom row);
   locks.html and exams.html for the two pop-ups; the icon set's sizes for
   the drawings (a tab's 17 px and a tile's 22 px at 1.24 x 1.18 em, the
   🔒 at 1.18 em). Loaded from this origin, which is what the page's Content
   Security Policy allows: style-src 'self', so there is no inline style
   anywhere; a size nav.js computes (a page's frame, the menu's place and
   rows, the bean) is set through the element's style object.

   ⛔ THE APP FILLS THE SCREEN (D1027): a page's frame (.nv-column) is the
      screen's width and height divided by the scale s, scaled by s from its
      top left corner; every number below is before that scaling. Upright
      is the default; .nv-wide on a page's screen is the wide layout
      (nav.js decides which, from the page's shape alone). */

.nv-screen,
.nv-screen * {
  box-sizing: border-box;
}

.nv-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: #0E1526;
  color: #C8D3E4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Every button of the navigation: one class, so every rule below it
   decides its own look. */
.nv-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nv-icon {
  display: block;
  overflow: visible;
}

/* A page's frame: the whole screen at every size, ⛔ never a centered
   column. nav.js sets its width and height (the screen's, divided by s)
   and its scale. */
.nv-column {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

/* Upright, the page runs from Telegram's inset to 80 px above the frame's
   bottom (10 for the home indicator, 70 for the tab bar of the Founder's
   ruling 8, D1657); wide, to the frame's bottom, the bottom row 10 px above
   it. With no bars (kiosk mode, the Assessment flow, F0) it runs to the
   bottom. nav.js sets its top (frameOf's TOP). */
.nv-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
}

.nv-bars .nv-page {
  bottom: 80px;
  padding-bottom: 10px;
}

.nv-wide.nv-bars .nv-page {
  bottom: 0;
}

.nv-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* ══ A PAGE'S TOP BAR, UPRIGHT (nav_12_weeks.html .topbar.plain): 44 px; ←
   32 px from the left, the page's name in the exact center, ☰ 32 px from
   the right, both 28 px. ══ */
.nv-topbar {
  flex: none;
  position: relative;
  height: 44px;
}

.nv-left,
.nv-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
}

.nv-left {
  left: 32px;
}

.nv-right {
  right: 32px;
}

.nv-title {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.tb-title)). */
  font-family: var(--font-headline);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 16.5px;
  font-weight: 600;
  color: #EAF0FA;
}

/* Our ←, drawn (the icon set's .ic-m-back), never Telegram's (D525): the
   tap fills the 28 px box, the drawing is the icon set's .tb-left .ic.m,
   .8 of it (22.4 px), in its middle (the_icon_set.html; ART_FIX 0001). */
.nv-back {
  display: block;
  width: 28px;
  height: 28px;
  color: #DCE5F2;
}

.nv-back-icon {
  width: 22.4px;
  height: 22.4px;
  margin: 2.8px;
}

/* The ☰ upright: the icon set's drawing in its 28 px box. */
.nv-menu {
  display: block;
  width: 100%;
  height: 100%;
  color: #96A5BD;
}

.nv-menu-icon {
  width: 100%;
  height: 100%;
}

/* ☰ DRAWN as three bars, never typed (§1g): 26 px wide, bars 2.5 px thick
   and 5 px apart. */
.nv-wmenu {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.nv-wbar {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #96A5BD;
}

/* ══ A WIDE PAGE'S TOP ROW (wide_navigation.html W5, D1242 (3)): 52 px, 40
   px side padding, three columns, the outer two equal, so the page's name
   sits in the EXACT center; ← on the left, ☰ as bars on the right, no 🌞.
   ══ */
.nv-wtop {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 52px;
  padding: 0 40px;
}

.nv-wside {
  display: flex;
  align-items: center;
}

.nv-wright {
  justify-content: flex-end;
  /* 20 px between the window button and the ☰ (wide_window_size.html's
     .wright; one child but on a computer, FULLSCREEN 0001). */
  gap: 20px;
}

.nv-wtitle {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.tb-title)). */
  font-family: var(--font-headline);
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  color: #EAF0FA;
}

/* The render's .wmenu: 30 px tall, the bars centered, 1.1 px down. */
.nv-wtop .nv-wmenu {
  height: 30px;
  justify-content: center;
  transform: translateY(1.1px);
}

/* ══ THE WINDOW BUTTON (FULLSCREEN 0001; D2368; wide_window_size.html's
   .wwin, kit.html §3 Window size): a computer's wide top row only, the
   first of its right group, nav's and Study's. The mark 22 px in the ☰'s
   grey, the box 30 px tall and as wide as the mark, no background, border
   or ring (the render's dashed ring only marks what was new). Its centre
   is the row's, as the sun's; in nav's row the ☰'s, 1.1 px down. ══ */
.nv-window-button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 30px;
  color: #96A5BD;
}

.nv-window-icon {
  width: 22px;
  height: 22px;
}

.nv-wtop .nv-window-button {
  transform: translateY(1.1px);
}

/* ══ THE TAB BAR, 10 px above the frame's bottom, Reading · Pulses · Cards
   · Sprints · Writing (D1483); unlit tabs dim to .55. ⛔ THE ONE PLACE THE
   APP IS BUILT DIFFERENTLY FROM ITS DRAWINGS (the Founder's ruling 8 of
   2026-10-25, D1657): 70 px where sprints_tab.html draws 58, and its icons
   and names 20% larger in the same proportions, 1.2 times each drawn
   number: the icon 17 px x 1.2 = 20.4 px (1.24 x 1.18 em, so 25.30 x
   24.07), the name 10.5 x 1.2 = 12.6 px, the gap 3 x 1.2 = 3.6 px, the
   red dot 8 x 1.2 = 9.6 px. Wide tiles are unchanged. ══ */
.nv-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 70px;
  display: flex;
  border-top: 1px solid #1C2740;
}

.nv-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.6px;
}

/* The icon's holder, which the dot sits on (sprints_tab.html .tico): it is
   not dimmed with the unlit icon. */
.nv-tico {
  position: relative;
  display: block;
}

.nv-tab-icon {
  width: 25.296px;
  height: 24.072px;
  opacity: .55;
}

.nv-tab-name {
  font-size: 12.6px;
  font-weight: 500;
  color: #6E7E99;
}

.nv-tab.nv-on .nv-tab-icon {
  opacity: 1;
}

.nv-tab.nv-on .nv-tab-name {
  font-weight: 600;
  color: #EAF0FA;
}

/* The red dot on Sprints while a quiz is open and not done (D1411), 1.2
   times on the tab bar (ruling 8), as drawn on a tile. */
.nv-tdot {
  position: absolute;
  right: -5px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ED6A76;
  box-shadow: 0 0 0 2px #0E1526;
}

.nv-tab .nv-tdot {
  right: -6px;
  top: -3.6px;
  width: 9.6px;
  height: 9.6px;
  box-shadow: 0 0 0 2.4px #0E1526;
}

.nv-tdot[hidden] {
  display: none;
}

/* ══ THE TILES, WIDE: 84 x 84, 12 px corners, 10 px apart, outlined (§1b);
   the icon 22 px (1.24 x 1.18 em), the label 11.5; the page's own tile
   lit. On a page that is not Study the five fill the bottom row (D1262),
   10 px under the body, 24 px from each side. ══ */
.nv-tiles {
  display: flex;
  gap: 10px;
}

.nv-tile {
  flex: none;
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}

.nv-tile-icon {
  width: 27.28px;
  height: 25.96px;
  opacity: .55;
}

.nv-tile-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #6E7E99;
}

.nv-tile.nv-on {
  border-color: rgba(255, 255, 255, .30);
}

.nv-tile.nv-on .nv-tile-icon {
  opacity: 1;
}

.nv-tile.nv-on .nv-tile-name {
  font-weight: 600;
  color: #EAF0FA;
}

.nv-wbottom {
  flex: none;
  display: flex;
  gap: 34px;
  margin: 10px 24px 0;
}

.nv-wtall {
  flex: 1;
}

.nv-wtall .nv-tile {
  flex: 1;
  width: auto;
}

/* THE BOTTOM ROW'S SLOT (nav.js; wide_awards_and_get_cards.html G5,
   wide_my_cards.html M2: .wtabs, .wact, .btn): split, Reading · Pulses ·
   Cards and Sprints · Writing as the 84 px tiles, the page's buttons in the
   middle sharing the width 12 px apart, 84 px tall, 20 px words; not split,
   the five tiles fill the row. */
.nv-wsplit,
.nv-wact,
.nv-wbottom.nv-split .nv-wtall {
  display: none;
}

.nv-wbottom.nv-split .nv-wsplit {
  display: flex;
}

.nv-wbottom.nv-split .nv-wact {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
}

.nv-wbottom.nv-split .nv-wact > * {
  flex: 1;
  min-width: 0;
  height: 84px;
  font-size: 20px;
}

/* ══ THE MENU (D504, D1427): a popover dropping from the ☰, 206 px wide,
   #22304A with a 1 px #37476B edge, 18 px corners, 6 px above and below
   the rows, ⛔ NO SCRIM. Ten rows of 54 px in three groups split by 1 px
   lines, 13 px each with their margins: 580 px. nav.js sets its top, its
   right and, when the page is short, its rows' height. ══ */
.nv-menu-panel,
.nv-mgrid {
  position: absolute;
  z-index: 7;
  border: 1px solid #37476B;
  border-radius: 18px;
  background: #22304A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .50);
}

.nv-menu-panel {
  width: 206px;
  overflow: hidden;
}

/* The rows scroll inside the menu only when even 44 px rows cannot fit. */
.nv-mscroll {
  padding: 6px 0;
}

.nv-menu-panel.nv-scrolls {
  display: flex;
  flex-direction: column;
}

.nv-menu-panel.nv-scrolls .nv-mscroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nv-mscroll::-webkit-scrollbar {
  display: none;
}

.nv-mrow {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  text-align: left;
}

/* ⛔ THE NAME IS NEVER DIMMED (D923): a locked row's name is an open
   row's; the 🔒 is the only mark. */
.nv-mlabel {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: #EAF0FA;
}

.nv-mlock {
  flex: none;
  display: block;
}

.nv-lock-icon {
  width: 17.7px;
  height: 17.7px;
}

.nv-msep {
  height: 1px;
  margin: 6px 18px;
  background: #37476B;
}

/* Wide: the three groups side by side (D1242 (2)), each 206 px, 1 px
   upright lines 12 px short of the top and bottom; it never scrolls. */
.nv-mgrid {
  display: flex;
  padding: 6px 0;
}

.nv-mcol {
  width: 206px;
}

.nv-mvsep {
  width: 1px;
  margin: 12px 0;
  background: #37476B;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the right
   of what scrolls, 10 px clear of its top and bottom; only where something
   scrolls; its length visible / total. */
.nv-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}

.nv-bean-track.nv-scrolls {
  visibility: visible;
}

.nv-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ THE POP-UPS: the overlay family (§1c): 330 px inside a 390 px phone,
   a 20 px corner, #22304A on navy with a 1 px #37476B border, the 🔒 34 px
   12 px above the title (locks.html .dicon), the title 18 px / 600 white,
   the body 15.5 px #AEBBD0 8 px under it, every word centered (D979), 54 px
   outlined buttons side by side 10 px apart, 20 px under the words, a
   scrim behind over everything (D607), the ဘာသာပြန် link 10 px under the
   buttons (D1238), flat (D1699). ══ */
.nv-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}

.nv-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

.nv-dialog,
.nv-dialog * {
  box-sizing: border-box;
}

.nv-dicon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* The drawn padlock at the icon set's size: 1.1 em of the 34 px line
   (the_icon_set.html's .dicon .ic; ART_FIX 0001). */
.nv-dicon-lock {
  width: 37.4px;
  height: 37.4px;
}

.nv-dtitle {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.dtitle)). */
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

.nv-dialog .nv-dbody {
  display: block;
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.nv-dialog [lang="my"] .tt-text p,
.nv-dialog translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.nv-drow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.nv-dbtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
}

.nv-dbtn.nv-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

/* ══ THE CLASS PICKER (CLASS_PICKER 0001; D1893, D1716 (7)): one row and
   popover for Reading, Sprints, Pulses and Writing, sprints_tab.html C1's
   .csw and C2's .cpop, .crow, .cname, .ctick and .odot, kit.html's caret
   3. The row: 44 px under the top bar, the class's name in its family's
   color alone on the row's center line, the caret 8 px to its left,
   outside the centering (three columns, the outer two equal). The popover:
   230 px, centered, 6 px under the row, 54 px lines, the class shown first,
   bold and ticked in blue; flat and unlit (D1699 ruling 7). ══ */
.nv-csw {
  flex: none;
  height: 44px;
  margin-top: -4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  font-size: 16.5px;
  font-weight: 600;
  color: #EAF0FA;
  white-space: nowrap;
  text-align: center;
}

.nv-ckbox {
  grid-column: 1;
  justify-self: end;
  position: relative;
  flex: none;
  width: 18px;
  height: 22px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-ccaret {
  position: relative;
  top: -2px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 2px solid #6E7E99;
  border-bottom: 2px solid #6E7E99;
}

.nv-cswn {
  grid-column: 2;
}

.nv-cswn.nv-earth {
  color: var(--earth);
}

.nv-cswn.nv-water {
  color: var(--water);
}

.nv-cswn.nv-fire {
  color: var(--fire);
}

.nv-cswn.nv-air {
  color: var(--air);
}

.nv-cpop {
  position: absolute;
  left: 50%;
  z-index: 7;
  width: 230px;
  margin-left: -115px;
  padding: 6px 0;
  border: 1px solid #37476B;
  border-radius: 18px;
  background: #22304A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .50);
}

.nv-crow {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  text-align: left;
}

.nv-cname {
  display: flex;
  align-items: center;
  column-gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #EAF0FA;
  white-space: nowrap;
}

.nv-cname.nv-ccur {
  font-weight: 700;
  color: #FFFFFF;
}

.nv-cdot {
  flex: none;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ED6A76;
}

.nv-ctick {
  flex: none;
  width: 16px;
  height: 16px;
  color: #6FAEFF;
}
