/* nnvns2026: the Broadside system laid over the varanasi4 markup, loaded after custom.css.
 * Only this template uses it; switching Home back to "varanasi4 - Default" restores the old look. */

:root {
  --paper: #f5f7fa; --paper-2: #e8edf4; --paper-3: #dce3ec;
  --ink: #1d1916; --ink-2: #3a332d; --muted: #6b5d50; --rule: #d5dde8;
  --accent: #b5361f; --accent-ink: #fff4e7; --focus: #b5361f;
  --font-body: "Archivo Narrow", "Hind", "Arial Narrow", sans-serif;
  --font-deva: "Hind", "Archivo Narrow", sans-serif;
  --font-head: "Bevan", Georgia, serif;
  --wrap: 1760px; --gut: 48px; --gap: 40px;
  --bar: 5px; --hair: 1px;
}
body.dark-mode {
  --paper: #1d1a17; --paper-2: #26221e; --paper-3: #302b26;
  --ink: #f1e6d3; --ink-2: #ddd0bb; --muted: #b9a993; --rule: #3e3731;
  --accent: #e0694f; --accent-ink: #1d1a17; --focus: #e0694f;
}

/* Base */
html, body { overflow-x: clip; }
body { background: var(--paper) !important; color: var(--ink) !important; font-family: var(--font-body) !important; font-size: 18px; line-height: 1.55; }
:lang(hi), html[lang^="hi"] body { font-family: var(--font-deva) !important; }
a { color: var(--ink); text-decoration-color: var(--rule); }
a:hover, a:focus { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
body .container { width: 100% !important; max-width: var(--wrap) !important; padding: 0 var(--gut) !important; background: transparent !important; box-shadow: none !important; }

/* Header: logo left, text size + helpline + UP seal right */
.header-section { background: var(--paper) !important; border: 0 !important; }
.header-section > .row { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin: 0; padding: 16px 0; border-bottom: var(--hair) solid var(--rule); }
.header-section > .row::before, .header-section > .row::after { display: none; }
.header-section > .row > .col-sm-6 { width: auto; float: none; padding: 0; }
.header-section .logo img { height: 84px; width: auto; }
.header-section .logo p, .header-section p { margin: 0; }
.logo-rt, body.dark-mode .logo-rt { background: transparent !important; padding: 0 !important; }
.logo-rt .rt-inner > .row { display: flex; align-items: center; gap: 24px; margin: 0; }
.logo-rt .rt-inner > .row::before, .logo-rt .rt-inner > .row::after { display: none; }
.logo-rt .rt-inner > .row > div { width: auto; float: none; padding: 0; }
.words { display: inline-flex; gap: 0; margin: 0 0 8px; }
.words a, body.dark-mode .words a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; margin-left: -1px; border: var(--hair) solid var(--ink) !important; background: transparent !important; color: var(--ink) !important; font-weight: 600; text-decoration: none; border-radius: 0 !important; }
.words a.selected { background: var(--ink) !important; color: var(--paper) !important; }
.infobox, body.dark-mode .infobox { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 16px !important; background: var(--paper-2) !important; border: 0 !important; border-top: var(--bar) solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; }
.infobox .icon-wrap { background: transparent !important; color: var(--accent) !important; width: auto !important; height: auto !important; font-size: 22px; line-height: 1; }
.text-wrap h4, .text-wrap .title { margin: 0 0 2px; font-family: var(--font-head); font-size: 17px; letter-spacing: 0; color: var(--ink) !important; text-transform: uppercase; }
.text-wrap p { margin: 0; color: var(--ink) !important; font-size: 16px; font-weight: 600; line-height: 1.45; }
.nsymbol { height: 72px; width: auto; }

/* The three marquees: moving ticker bars in the paper, one accent */
.header-section > div[style] , .header-section > .text-center { background: var(--paper-2) !important; border-bottom: var(--hair) solid var(--rule); }
.header-section marquee { display: block; padding: 6px 0; }
.header-section marquee p { margin: 0; font-family: var(--font-deva) !important; font-size: 17px !important; font-weight: 500; color: var(--ink) !important; }
.header-section marquee a { color: var(--accent) !important; font-weight: 600; text-decoration: underline; }
.header-section > div[style]:first-of-type { border-top: var(--bar) solid var(--ink); }

/* Weather */
.weather-wrap { padding: 12px 0; background: transparent !important; }
.weather-wrap .weatherwidget-io { outline: var(--hair) solid var(--rule); }

/* Main menu: the slab */
.navbar.navbar-default { margin: 0; min-height: 52px; background: var(--paper) !important; background-image: none !important; border: 0 !important; border-top: var(--bar) solid var(--ink) !important; border-bottom: var(--hair) solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; }
.navbar-default .container-fluid { padding: 0; }
.navbar-default .navbar-nav > li > a, .navbar-nav > li > a { padding: 16px 14px !important; color: var(--ink) !important; background: transparent !important; font-family: var(--font-body); font-size: 17px !important; font-weight: 600; text-transform: none !important; text-shadow: none !important; }
html[lang^="hi"] .navbar-nav > li > a { font-family: var(--font-deva); }
.navbar-default .navbar-nav > li:first-child > a { padding-left: 0 !important; }
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > li:hover > a { background: var(--paper-2) !important; color: var(--ink) !important; }
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .current > a { color: var(--accent) !important; background: transparent !important; }
.dropdown-menu, .dropdown-menu .dropdown-menu { padding: 8px 0 !important; background: var(--paper) !important; border: var(--hair) solid var(--ink) !important; border-top: var(--bar) solid var(--ink) !important; border-radius: 0 !important; box-shadow: 0 1px 2px rgba(29, 25, 22, .08) !important; min-width: 260px; }
.dropdown-menu > li > a { padding: 9px 20px !important; color: var(--ink) !important; font-size: 16px; white-space: normal; border-bottom: var(--hair) solid var(--rule); }
.dropdown-menu > li:last-child > a { border-bottom: 0; }
.dropdown-menu > li > a:hover, .dropdown-menu > li.open > a { background: var(--paper-2) !important; color: var(--accent) !important; }
.navbar-toggle { border-color: var(--ink) !important; border-radius: 0 !important; }
.navbar-toggle .icon-bar { background: var(--ink) !important; }

/* Language switcher */
.mod-languages { padding: 8px 0; }
.mod-languages .btn, .mod-languages__select .btn { min-height: 36px; border: var(--hair) solid var(--ink) !important; border-radius: 0 !important; background: var(--paper) !important; color: var(--ink) !important; font-weight: 600; box-shadow: none !important; }
.mod-languages .lang-block { border-radius: 0 !important; }

/* Slider: the DJ-ImageSlider keeps its own size and 3:1 ratio (1320 x 440); the frame is an outline
   outside it, so it never squeezes the slides */
.djslider-loader { margin: 32px auto 40px !important; background: transparent !important; outline: 3px solid var(--ink); outline-offset: 6px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); }
.djslider-default .navigation-container img { opacity: .9; }

/* Body: three columns on desktop, then missions and media as one row */
.body-content.bg-white, .bg-white { background: transparent !important; }
.body-content { padding: 0 0 64px !important; }
.body-content > .row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); grid-template-areas: "left main side" "media media media"; gap: 40px var(--gap); margin: 0; }
.body-content > .row::before, .body-content > .row::after, .left-section > .row::before, .left-section > .row::after, .right-section > .row::before, .right-section > .row::after { display: none; }
.left-section, .right-section, .left-section > .row, .right-section > .row { display: contents; }
.left-section .col-sm-7 { grid-area: main; }
.left-section .col-sm-5 { grid-area: left; }
.right-section > .row > div:first-child { grid-area: media; }
.right-section > .row > div:last-child { grid-area: side; }
.left-section [class*="col-"], .right-section [class*="col-"] { width: auto !important; float: none !important; left: auto !important; right: auto !important; padding: 0 !important; min-width: 0; }

/* Panel heads (were orange and red gradient bars) */
.list-group { margin-bottom: 24px !important; box-shadow: none !important; }
.list-group-item.active, .list-group-item.active.grade1, .list-group-item.active.grade2, .grade1, .grade2 {
  margin: 0 0 4px !important; padding: 0 0 10px !important; background: transparent !important; background-image: none !important; border: 0 !important; border-bottom: var(--bar) solid var(--ink) !important; border-radius: 0 !important;
  color: var(--ink) !important; font-family: var(--font-head); font-size: 22px !important; text-transform: uppercase; line-height: 1.1; text-shadow: none !important;
}
html[lang^="hi"] .grade1, html[lang^="hi"] .grade2 { font-family: var(--font-deva); font-weight: 600; text-transform: none; font-size: 24px !important; }
.list-group-item.active span { font-size: inherit !important; }
.list-group-item.active img { display: none; }

/* List rows */
a.list-group-item, .list-group-item.itm1, .list-group-item.itm2 { display: block; padding: 12px 0 !important; background: transparent !important; border: 0 !important; border-bottom: var(--hair) solid var(--rule) !important; border-radius: 0 !important; color: var(--ink) !important; font-size: 17px; font-weight: 500; line-height: 1.45; }
a.list-group-item:hover, a.list-group-item:focus { background: var(--paper-2) !important; color: var(--accent) !important; }
a.list-group-item[style] { color: var(--ink) !important; }
.other-links strong { font-weight: inherit; }
.gif-img { position: relative; }
.gif-img::after { content: "New" !important; display: inline-block; margin-left: 8px; padding: 1px 6px !important; width: auto !important; height: auto !important; background: var(--accent) !important; color: var(--accent-ink); font: 600 12px/1.4 var(--font-body); vertical-align: middle; position: static !important; }
html[lang^="hi"] .gif-img::after { content: "नया" !important; font-family: var(--font-deva); }

/* Leaders: larger portraits */
#mod-custom97 ul.list-group li, .left-section ul.list-group > li.list-group-item { padding: 0 0 20px !important; background: transparent !important; border: 0 !important; text-align: left !important; font-size: 17px; color: var(--muted); }
.left-section ul.list-group > li img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border: 0 !important; outline: var(--hair) solid var(--rule); margin-bottom: 8px; }
.left-section ul.list-group > li br:first-of-type { display: none; }
.left-section ul.list-group > li strong { color: var(--ink); font-size: 18px; }

/* Scrolling notices box in the left column */
.news-scroll { border-top: var(--bar) solid var(--ink); background: var(--paper-2); }
.scroll-item { border-bottom: var(--hair) solid var(--rule) !important; background: transparent !important; }
.scroll-item:hover { background: var(--paper-3) !important; }
.scroll-item a, .scroll-item span[style], .scroll-item li[style] { color: var(--ink) !important; text-shadow: none !important; animation: none !important; font-size: 15px !important; text-transform: none !important; }

/* Latest updates: the register */
.blog-featured .item-title, .item-page h2, .blog-item h2.item-title { margin: 0 0 4px; padding-bottom: 12px; border-bottom: var(--bar) solid var(--ink); font-family: var(--font-head); font-size: 36px; text-transform: uppercase; color: var(--ink); }
html[lang^="hi"] .item-page h1, html[lang^="hi"] .page-header h1 { font-family: var(--font-deva); font-weight: 600; font-size: 34px; border-bottom: var(--bar) solid var(--ink); padding-bottom: 12px; }
.blog-item .item-content > ul { margin: 0; padding: 0; list-style: none; }
.blog-item .item-content > ul > li { padding: 14px 0 14px 28px; border-bottom: var(--hair) solid var(--rule); position: relative; font-size: 16px; line-height: 1.5; }
.blog-item .item-content > ul > li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; background: var(--accent); }
.blog-item .item-content > ul > li a, .blog-item .item-content > ul > li span[style], .blog-item .item-content > ul > li strong { color: var(--ink) !important; font-size: 16px !important; font-weight: 500; text-shadow: none !important; }
.blog-item .item-content > ul > li a { text-decoration: none; }
.blog-item .item-content > ul > li a:hover { color: var(--accent) !important; text-decoration: underline; }
.blog-item .item-content > ul > li[style] { animation: none !important; text-shadow: none !important; background: var(--paper-2) !important; font-weight: 500 !important; color: var(--ink) !important; text-transform: none !important; }
.blog-item p { font-size: 18px; line-height: 1.7; max-width: 70ch; text-align: left !important; }
.items-leading { margin-bottom: 40px; }
.attachmentsContainer { display: none; }

/* Media and missions. nnvns2026.js regroups the module into .nn-media cards and one .nn-missions row;
   without the script the module stacks as before. */
.right-section > .row > div:first-child .mod-custom { padding-top: 32px; border-top: var(--bar) solid var(--ink); }
.right-section > .row > div:first-child .mod-custom p { margin: 0; }
.right-section > .row > div:first-child .mod-custom img { max-width: 100%; height: auto !important; }
.nn-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px var(--gap); align-items: start; }
.nn-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nn-card > p img, .nn-card > a img { width: 100% !important; }
.nn-card center p { display: flex; gap: 12px; justify-content: flex-start; }
.nn-card center img { width: 44px !important; height: 44px !important; }
.nn-missions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px !important; }
.nn-missions a { display: block; }
.nn-missions img { width: 100% !important; height: auto !important; aspect-ratio: 15 / 7; object-fit: cover; margin: 0 !important; outline: var(--hair) solid var(--rule); }
.right-section iframe { display: block; width: 100%; max-width: 100% !important; margin-top: 8px; }

/* Footer: ink band */
.footer { margin-top: 0; padding: 40px 0 24px !important; background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; text-align: left !important; }
.footer p { margin: 0; color: var(--paper) !important; font-size: 17px; line-height: 2; }
.footer a { color: var(--paper) !important; text-decoration: underline; text-decoration-color: var(--muted); }
body .container > .footer { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding-left: var(--gut) !important; padding-right: var(--gut) !important; }
body .container > .text-right { background: var(--ink); color: var(--paper); margin: 0 calc(-1 * var(--gut)); padding: 8px var(--gut) 24px !important; text-align: left !important; }

/* WhatsApp popup */
.popup-content { border-radius: 0 !important; border-top: var(--bar) solid var(--ink) !important; background: var(--paper) !important; box-shadow: 0 1px 2px rgba(29, 25, 22, .1) !important; }
.popup-title { font-family: var(--font-head); text-transform: uppercase; color: var(--ink) !important; }
.button-89 { border-radius: 0 !important; background: var(--ink) !important; color: var(--paper) !important; box-shadow: none !important; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.close-btn { border-radius: 0 !important; }

/* Dark mode toggle that the template adds */
.theme-toggle { border-radius: 0 !important; border: var(--hair) solid var(--ink) !important; background: var(--paper) !important; }

/* Tablet */
@media (max-width: 1199px) {
  .body-content > .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "left side" "media media"; }
}

/* Phones and small tablets */
@media (max-width: 767px) {
  :root { --gut: 16px; }
  .header-section > .row { flex-wrap: wrap; }
  .header-section .logo img { height: 60px; }
  .logo-rt .rt-inner > .row { gap: 12px; flex-wrap: wrap; }
  .nsymbol { height: 52px; }
  .body-content > .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "main" "side" "media"; }
  .left-section .col-sm-5 #mod-custom97 ul.list-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nn-missions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .navbar-default .navbar-nav > li:first-child > a { padding-left: 14px !important; }
  .blog-featured .item-title, .blog-item h2.item-title { font-size: 28px; }
}

/* Content-level tidy-ups (inline styles inside articles and modules) */
.blog-item .item-content > p[style*="gradient"], .item-page p[style*="gradient"] { display: none !important; }
.mod-languages > p:first-child, .mod-languages .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.navbar-collapse { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0 !important; }
.navbar-collapse::before, .navbar-collapse::after { display: none; }
@media (max-width: 767px) {
  .navbar-collapse { display: none !important; }
  .navbar-collapse.in, .navbar-collapse.collapsing { display: block !important; }
}

/* Devanagari matras that sit left of the letter (ि) need room at the edge */
a.list-group-item, .list-group-item.active, .grade1, .grade2, .blog-item h2.item-title, .page-header h1 { padding-left: 3px !important; overflow: visible !important; }
.navbar-default .navbar-nav > li:first-child > a { padding-left: 3px !important; }


/* The scrolling box under the commissioner's photo is removed in this template */
.left-section .mod-custom:has(> .news-scroll) { display: none !important; }

/* Latest updates: a moving box (part of the list) with View all */
.nn-updates { margin-bottom: 32px; }
.nn-updates__top { display: flex; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: var(--bar) solid var(--ink); }
.nn-updates__head { margin: 0; font-family: var(--font-head); font-size: 38px; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
html[lang^="hi"] .nn-updates__head { font-family: var(--font-deva); font-weight: 600; text-transform: none; font-size: 40px; }
.nn-updates__count { color: var(--muted); font-size: 16px; font-weight: 500; }
.nn-updates__pause { margin-left: auto; min-height: 36px; padding: 0 14px; border: var(--hair) solid var(--ink); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--font-body); cursor: pointer; }
.nn-updates__pause:hover { background: var(--paper-2); }
.nn-updates__view { position: relative; height: 560px; overflow: hidden; background: var(--paper); }
.nn-updates__view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(245, 247, 250, 0), var(--paper)); pointer-events: none; }
body.dark-mode .nn-updates__view::after { background: linear-gradient(rgba(29, 26, 23, 0), var(--paper)); }
.nn-updates__track { margin: 0; padding: 0; list-style: none; animation: nn-up var(--nn-dur, 60s) linear infinite; }
.nn-updates__view:hover .nn-updates__track, .nn-updates__view:focus-within .nn-updates__track, .nn-updates.is-paused .nn-updates__track { animation-play-state: paused; }
@keyframes nn-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.nn-updates__track > li { position: relative; padding: 16px 0 16px 28px; border-bottom: var(--hair) solid var(--rule); font-size: 18px; line-height: 1.5; color: var(--ink); list-style: none; }
.nn-updates__track > li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 9px; height: 9px; background: var(--accent); }
.nn-updates__track > li a, .nn-updates__track > li span, .nn-updates__track > li strong { color: var(--ink) !important; font-size: 18px !important; font-weight: 500; text-shadow: none !important; animation: none !important; text-transform: none !important; }
.nn-updates__track > li a { text-decoration: none; }
.nn-updates__track > li a:hover { color: var(--accent) !important; text-decoration: underline; }
.nn-updates__all { display: inline-flex; align-items: center; min-height: 48px; margin-top: 20px; padding: 0 28px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 16px/1 var(--font-body); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.nn-updates__all:hover { background: var(--ink-2); }
html[lang^="hi"] .nn-updates__all { font-family: var(--font-deva); text-transform: none; font-size: 17px; }
/* View all: the full list, still, without the copy */
.nn-updates.is-open .nn-updates__view { height: auto; }
.nn-updates.is-open .nn-updates__view::after { display: none; }
.nn-updates.is-open .nn-updates__track { animation: none; }
.nn-updates.is-open .nn-updates__track > li[aria-hidden="true"] { display: none; }
.nn-updates.is-open .nn-updates__pause { display: none; }
@media (max-width: 767px) {
  .nn-updates__view { height: 440px; }
  .nn-updates__head { font-size: 28px; }
  html[lang^="hi"] .nn-updates__head { font-size: 30px; }
  .nn-updates__track > li, .nn-updates__track > li a, .nn-updates__track > li span, .nn-updates__track > li strong { font-size: 17px !important; }
}

/* Header right: text size, helpline and UP seal on one centred row */
.logo-rt .rt-inner > .row { align-items: center !important; }
.logo-rt .col-md-9 { display: flex !important; align-items: center; gap: 16px; }
.logo-rt .col-md-9 > a { display: block; text-decoration: none; }
.words { position: static !important; margin: 0 !important; float: none !important; }
.infobox { min-height: 84px; box-sizing: border-box; }
.logo-rt .col-sm-3 { display: flex !important; align-items: center; }
.logo-rt .col-sm-3 p:not(:has(img)) { display: none !important; }
.logo-rt .col-sm-3 .mod-custom, .logo-rt .col-sm-3 p { margin: 0 !important; line-height: 0; }
.nsymbol { height: 84px !important; width: auto !important; }

/* Language switcher: sits at the right end of the menu row */
.navbar-collapse > .mod-languages, .navbar .mod-languages { width: auto !important; flex: 0 0 auto; margin: 0 0 0 auto !important; padding: 0 !important; display: flex; align-items: center; float: none !important; }
.mod-languages__select { display: flex; align-items: center; }
.mod-languages .btn { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; justify-content: space-between; padding: 0 12px !important; font-size: 16px !important; }
.mod-languages .lang-block { right: 0; left: auto; min-width: 160px; padding: 4px 0 !important; border: var(--hair) solid var(--ink) !important; background: var(--paper) !important; }
.mod-languages .lang-block a { display: block; padding: 8px 14px !important; color: var(--ink) !important; font-size: 16px; }
.mod-languages .lang-block a:hover { background: var(--paper-2) !important; }

/* One social media card */
.nn-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nn-social a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: var(--hair) solid var(--ink); background: var(--paper); color: var(--ink) !important; font-size: 17px; font-weight: 600; text-decoration: none; }
.nn-social a:hover { background: var(--ink); color: var(--paper) !important; }
.nn-social svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 767px) {
  .logo-rt .col-md-9 { flex-wrap: wrap; gap: 10px; }
  .infobox { min-height: 0; }
  .nsymbol { height: 56px !important; }
  .navbar-collapse > .mod-languages, .navbar .mod-languages { margin: 8px 0 !important; }
}
@media (min-width: 768px) {
  .navbar-default .navbar-collapse.collapse { display: flex !important; align-items: center; }
  .navbar-collapse.collapse > .navbar-nav { float: none; margin-right: auto !important; }
}
.infobox { min-width: 270px; }
.text-wrap p { white-space: nowrap; }
@media (max-width: 767px) { .infobox { min-width: 0; } .text-wrap p { white-space: normal; } }
.nn-missions img[src*="Newsletter"] { object-fit: contain; background: #c07f3e; }


/* ===== Round 3 ===== */

/* Hindi heads: room above for matras (ि ी ें) */
html[lang^="hi"] .grade1, html[lang^="hi"] .grade2, html[lang^="hi"] .list-group-item.active,
html[lang^="hi"] .nn-updates__head, html[lang^="hi"] .page-header h1, html[lang^="hi"] .item-page h1 { line-height: 1.6 !important; padding-top: 6px !important; overflow: visible !important; }

/* Gap above About: the hidden article leaves no space */
.blog-featured .items-leading { margin-bottom: 24px !important; }
.blog-featured .items-leading .blog-item, .blog-featured .items-leading .item-content { margin: 0 !important; padding: 0 !important; }

/* Mark Twain */
.nn-quote { margin: 8px 0 32px; padding: 28px 0 24px; border-top: var(--bar) solid var(--ink); border-bottom: var(--hair) solid var(--rule); }
.nn-quote p { margin: 0; font-family: var(--font-head); font-size: 26px; line-height: 1.3; text-transform: uppercase; color: var(--ink); max-width: 34ch; text-wrap: balance; }
html[lang^="hi"] .nn-quote p { font-family: var(--font-deva); font-weight: 600; text-transform: none; font-size: 26px; line-height: 1.6; }
.nn-quote footer { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--accent); }

/* X timeline */
.nn-x { margin-top: 8px; }
.nn-x .twitter-timeline { display: block; padding: 16px 0; color: var(--ink); font-weight: 600; }
.nn-x iframe { width: 100% !important; max-width: 100% !important; }

/* Dark-mode button sits with A− A A+ */
.words .theme-toggle { position: static !important; display: inline-grid; place-items: center; width: 36px !important; height: 36px !important; min-width: 36px; margin: 0 0 0 8px !important; padding: 0 !important; font-size: 16px !important; line-height: 1; border: var(--hair) solid var(--ink) !important; background: var(--paper) !important; color: var(--ink) !important; box-shadow: none !important; }

/* Hindi page while the English modules load */
.body-content.nn-syncing .left-section .col-sm-5, .body-content.nn-syncing .right-section { opacity: 0; }

/* Background options (preview with ?nnbg=…) */
body[data-nnbg="white"] { --paper: #ffffff; --paper-2: #f4f4f2; --paper-3: #e9e8e4; --rule: #dedcd6; }
body[data-nnbg="ivory"] { --paper: #fbf9f4; --paper-2: #f3efe6; --paper-3: #e9e3d6; --rule: #e0d9ca; }
body[data-nnbg="mist"]  { --paper: #f5f7f9; --paper-2: #eaeef2; --paper-3: #dde3e9; --rule: #d3dae2; }
body[data-nnbg="white"] .nn-updates__view::after { background: linear-gradient(rgba(255,255,255,0), var(--paper)); }
body[data-nnbg="ivory"] .nn-updates__view::after { background: linear-gradient(rgba(251,249,244,0), var(--paper)); }
body[data-nnbg="mist"] .nn-updates__view::after { background: linear-gradient(rgba(245,247,249,0), var(--paper)); }

/* Dark mode: every surface and text pair */
body.dark-mode .header-section, body.dark-mode .navbar, body.dark-mode .dropdown-menu, body.dark-mode .popup-content { background: var(--paper) !important; }
body.dark-mode .header-section > div[style], body.dark-mode .header-section > .text-center { background: var(--paper-2) !important; }
body.dark-mode .weather-wrap .weatherwidget-io { filter: invert(.88) hue-rotate(180deg); }
body.dark-mode .footer, body.dark-mode body .container > .text-right, body.dark-mode .container > .text-right { background: #0f0d0b !important; color: #f1e6d3 !important; }
body.dark-mode .footer p, body.dark-mode .footer a { color: #f1e6d3 !important; }
body.dark-mode .nn-updates__all { background: var(--ink); color: var(--paper); }
body.dark-mode .button-89 { background: var(--ink) !important; color: var(--paper) !important; }
body.dark-mode .blog-item p, body.dark-mode .item-page p, body.dark-mode .item-page, body.dark-mode .blog-item, body.dark-mode .text-wrap, body.dark-mode .left-section ul.list-group > li { color: var(--ink) !important; }
body.dark-mode .item-page [style*="color"], body.dark-mode .blog-item [style*="color"] { color: var(--ink) !important; }
body.dark-mode .nn-missions img, body.dark-mode .left-section ul.list-group > li img { outline-color: var(--rule); }

/* Tablet (768–1199): two columns, header in two rows */
@media (max-width: 1199px) {
  :root { --gut: 32px; --gap: 28px; }
  .nn-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones and small tablets */
@media (max-width: 767px) {
  :root { --gut: 16px; --gap: 20px; }
  body { font-size: 17px; }
  .header-section > .row { flex-direction: column; align-items: stretch; gap: 14px; }
  .header-section > .row > .col-sm-6 { width: 100% !important; }
  .header-section .logo { text-align: center; }
  .header-section .logo img { height: auto !important; width: min(100%, 440px) !important; }
  .logo-rt .rt-inner > .row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .logo-rt .col-md-9 { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  .words { justify-content: flex-start; }
  .logo-rt .col-md-9 > a, .infobox { width: 100%; min-width: 0 !important; }
  .infobox { min-height: 0; }
  .text-wrap p { white-space: normal; }
  .logo-rt .col-sm-3 { justify-content: center; }
  .nsymbol { height: 64px !important; }
  .weather-wrap { overflow: hidden; }
  .djslider-loader { margin: 20px auto 24px !important; outline-offset: 4px; }
  .nn-quote p, html[lang^="hi"] .nn-quote p { font-size: 21px; }
  .nn-social { grid-template-columns: 1fr 1fr; }
  .navbar-collapse .navbar-nav > li > a { padding: 14px 4px !important; }
  .navbar-collapse .dropdown-menu { position: static !important; float: none; width: 100%; border: 0 !important; border-left: var(--bar) solid var(--ink) !important; }
}
@media (max-width: 560px) {
  .nn-missions { grid-template-columns: minmax(0, 1fr); }
  .left-section .col-sm-5 #mod-custom97 ul.list-group { grid-template-columns: 1fr 1fr; }
  .nn-updates__top { flex-wrap: wrap; }
  .nn-updates__head, html[lang^="hi"] .nn-updates__head { font-size: 26px; }
}

/* Desktop logo a step larger on the wider page */
@media (min-width: 768px) { .header-section .logo img { height: 100px !important; } }

/* View all is now a link to the full list page */
a.nn-updates__all { text-decoration: none; color: var(--paper) !important; }
a.nn-updates__all:hover { color: var(--paper) !important; }
/* X fallback card */
.nn-x__link { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; border: var(--hair) solid var(--ink); background: var(--paper-2); color: var(--ink) !important; text-decoration: none; font-size: 16px; line-height: 1.4; }
.nn-x__link:hover { background: var(--ink); color: var(--paper) !important; }
.nn-x__link svg { width: 28px; height: 28px; flex-shrink: 0; }
.nn-x__link strong { display: block; font-size: 18px; }

/* Phone header and weather: let the logo and the widget take their own height */
.header-section .logo, .header-section .logo .mod-custom, .header-section .logo p { height: auto !important; min-height: 0 !important; line-height: 0; overflow: visible !important; }
.weather-wrap, .weather-wrap .weatherwidget-io { overflow: visible !important; max-height: none !important; }
@media (max-width: 767px) {
  .weather-wrap { overflow: visible !important; }
  .header-section > .row > .col-sm-6 + .col-sm-6 { margin-top: 4px; }
}
.weather-wrap .weatherwidget-io iframe { height: 100% !important; max-height: none !important; }
.header-section .logo, .header-section > .row > .col-sm-6 { max-height: none !important; height: auto !important; }
.other-links, #home-other-links, .right-section .list-group, .right-section .other-links a { background: transparent !important; }
body[data-nnbg="lavender"] { --paper: #f4f1fa; --paper-2: #e6dff2; --paper-3: #d9cfea; --rule: #d6cce6; }
body[data-nnbg="lavender"] .nn-updates__view::after { background: linear-gradient(rgba(244,241,250,0), var(--paper)); }
.nn-x .nn-fb { display: block; width: 100% !important; max-width: 100% !important; height: 640px; margin-top: 12px; background: var(--paper-2); }

/* Media row: darshan narrower, social card holds the four banners in two rows */
@media (min-width: 768px) {
  .nn-media { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .nn-card img[src*="vishwanath"] { max-height: 300px; object-fit: cover; }
  .left-section ul.list-group > li img { width: 80% !important; }
}
.nn-card .nn-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px !important; }

/* Five pictures on one level: darshan + e-Newsletter + three missions */
.nn-missions, .nn-card .nn-missions { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 24px !important; align-items: start; }
.nn-missions img, .nn-missions__darshan img { width: 100% !important; height: auto !important; aspect-ratio: 15 / 7; object-fit: cover; max-height: none !important; }
.nn-missions__darshan { display: block; position: relative; text-decoration: none; }
.nn-missions__darshan span { display: block; margin-top: 6px; font-family: var(--font-deva); font-size: 15px; font-weight: 600; color: var(--ink); }
@media (min-width: 768px) { .nn-media { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .nn-missions, .nn-card .nn-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nn-missions__darshan { grid-column: 1 / -1; } }
.nn-x .nn-fb { height: 687px; }
.nn-xpost { margin-top: 12px; }
.nn-xpost .twitter-tweet { margin: 0 auto !important; }
.nn-fbbox { margin-top: 32px; }
.nn-fbbox .nn-fb { display: block; width: 100% !important; max-width: 100% !important; height: 687px; margin-top: 12px; border: none; }
.nn-x { margin-top: 0; }
.nn-fbbox { margin-top: 24px; }
.nn-fbbox iframe:not(.nn-fb) { display: block; width: 100% !important; margin-top: 16px; }

/* ===== Round 4: footer block ===== */
.nn-fbbox iframe.nn-swachh { height: 130px !important; }
.nn-fbbox .nn-fb { margin-left: auto; margin-right: auto; height: auto; }
.nn-xpost .twitter-tweet-rendered { display: block !important; }
.nn-xpost .twitter-tweet, .nn-xpost iframe { max-width: 100% !important; min-width: 0 !important; }
.right-section > .row > div:first-child .mod-custom { padding-top: 40px; }
.nn-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.nn-foot .nn-missions__darshan { position: relative; display: block; min-height: 420px; overflow: hidden; background: var(--ink); text-decoration: none; }
.nn-foot .nn-missions__darshan img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover; margin: 0 !important; outline: 0; transition: transform .4s ease; }
.nn-foot .nn-missions__darshan:hover img { transform: scale(1.03); }
.nn-foot .nn-missions__darshan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20, 14, 8, .85)); }
.nn-foot .nn-missions__darshan span { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; margin: 0; color: #fff; font-family: var(--font-deva); font-size: 30px; font-weight: 600; line-height: 1.3; }
.nn-foot .nn-missions__darshan span small { display: inline-block; margin-bottom: 8px; padding: 2px 10px; background: #d71920; color: #fff; font: 700 13px/1.6 var(--font-body); letter-spacing: .08em; }
.right-section .mod-custom .nn-foot a.nn-missions__darshan img { height: 100% !important; max-height: none !important; }
.nn-foot .nn-missions__darshan span small { display: table; margin-right: 10px; }
.nn-foot__play { position: absolute; z-index: 1; left: 50%; top: 45%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.nn-foot__play::before { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #d71920; }
.nn-foot__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.nn-follow h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: var(--bar) solid var(--ink); font-family: var(--font-head); font-size: 22px; text-transform: uppercase; color: var(--ink); }
html[lang^="hi"] .nn-follow h2 { font-family: var(--font-deva); font-weight: 600; text-transform: none; font-size: 24px; line-height: 1.6; }
.nn-icons { display: flex; flex-wrap: wrap; gap: 14px; }
.nn-icons a.nn-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; min-height: 0; padding: 0; border: 0; border-radius: 50%; color: #fff !important; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.nn-icons a.nn-ic:hover, .nn-icons a.nn-ic:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .2); color: #fff !important; }
.nn-icons a.nn-ic svg { width: 26px; height: 26px; }
.nn-ic--fb { background: #1877f2 !important; }
.nn-ic--x { background: #000 !important; }
.nn-ic--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
.nn-ic--yt { background: #ff0000 !important; }
body.dark-mode .nn-ic--x { background: #fff !important; color: #000 !important; }
.nn-foot .nn-missions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; margin: 0 !important; }
.nn-foot .nn-missions a { display: block; overflow: hidden; outline: var(--hair) solid var(--rule); transition: transform .15s ease, box-shadow .15s ease; }
.nn-foot .nn-missions a:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.nn-foot .nn-missions img { aspect-ratio: 15 / 7; outline: 0; }
@media (max-width: 767px) {
  .nn-foot { grid-template-columns: minmax(0, 1fr); }
  .nn-foot .nn-missions__darshan { min-height: 0; aspect-ratio: 4 / 3; }
  .nn-foot .nn-missions__darshan span { font-size: 22px; left: 16px; bottom: 14px; }
  .nn-foot__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .nn-foot__play::before { left: 24px; top: 18px; border-width: 12px 0 12px 18px; }
  .nn-foot .nn-missions { gap: 10px; }
}

/* ===== All updates page (article 237 through its hidden menu item) ===== */
body.nn-allpage .djslider-loader, body.nn-allpage .left-section .col-sm-5, body.nn-allpage .right-section,
body.nn-allpage .left-section .mod-custom:has(> .news-scroll) { display: none !important; }
body.nn-allpage .body-content > .row { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "main" !important; }
body.nn-allpage .left-section .col-sm-7 { max-width: 1100px; width: 100% !important; margin: 0 auto; padding-top: 40px !important; }
.nn-allhead { padding-bottom: 16px; margin-bottom: 8px; border-bottom: var(--bar) solid var(--ink); }
.nn-allhead__back { display: inline-block; margin-bottom: 14px; color: var(--muted) !important; font-size: 16px; font-weight: 600; text-decoration: none; }
.nn-allhead__back:hover { color: var(--accent) !important; }
.nn-allhead h1 { margin: 0; font-family: var(--font-head); font-size: 44px; line-height: 1.1; text-transform: uppercase; color: var(--ink); border: 0 !important; padding: 0 !important; }
html[lang^="hi"] .nn-allhead h1 { font-family: var(--font-deva); font-weight: 600; text-transform: none; line-height: 1.5; }
.nn-allhead p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
body.nn-allpage .com-content-article__body > p:empty, body.nn-allpage .com-content-article__body > p:has(> br:only-child) { display: none; }
body.nn-allpage .com-content-article__body ul { margin: 0; padding: 0; list-style: none; }
body.nn-allpage .com-content-article__body li { position: relative; padding: 16px 0 16px 30px; border-bottom: var(--hair) solid var(--rule); font-size: 18px; line-height: 1.5; color: var(--ink); list-style: none; }
body.nn-allpage .com-content-article__body li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 9px; height: 9px; background: var(--accent); }
body.nn-allpage .com-content-article__body li a { color: var(--ink) !important; text-decoration: none; font-weight: 500; }
body.nn-allpage .com-content-article__body li a:hover { color: var(--accent) !important; text-decoration: underline; }
body.nn-allpage .com-content-article__body li:hover { background: var(--paper-2); }
@media (max-width: 767px) {
  .nn-allhead h1 { font-size: 32px; }
  body.nn-allpage .left-section .col-sm-7 { padding-top: 24px !important; }
  body.nn-allpage .com-content-article__body li { font-size: 17px; }
}

/* Other Links: varanasi4 floats the list on phones, so the Facebook box below slid over it and covered the links */
.right-section .other-links { float: none !important; width: 100% !important; }
.right-section .mod-custom, .right-section .list-group { display: flow-root; height: auto !important; }

/* WhatsApp popup on phones: varanasi4 sets "* { transform: translateZ(0) }", which turns body into the box that
   position:fixed is measured from, so the popup sat at the top of the page. Without it the popup opens where the visitor is. */
html, body, #popup, .popup-overlay { transform: none !important; }
.popup-overlay { position: fixed !important; inset: 0 !important; height: 100% !important; height: 100dvh !important; align-items: center !important; justify-content: center; overflow-y: auto; }
.popup-overlay .popup-content { max-height: calc(100dvh - 24px); overflow-y: auto; }

/* ===== Phone header: UP seal small above the Nagar Nigam logo, then one tidy helpline strip ===== */
@media (max-width: 767px) {
  .header-section > .row { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 10px !important; padding: 12px 0 14px !important; }
  .header-section > .row > .col-sm-6:last-child, .header-section .logo-rt, .header-section .logo-rt .rt-inner,
  .header-section .logo-rt .rt-inner > .row { display: contents !important; }
  .logo-rt .col-sm-3 { order: -1; display: flex !important; justify-content: center; width: auto !important; padding: 0 !important; }
  .logo-rt .col-sm-3 img.nsymbol { height: 40px !important; width: auto !important; }
  .header-section > .row > .col-sm-6:first-child { order: 0; margin: 0 !important; }
  .logo-rt .col-md-9 { order: 1; display: flex !important; flex-direction: column-reverse; gap: 10px; width: 100% !important; padding: 0 !important; }
  .logo-rt .col-md-9 > a { display: block; width: 100%; }
  .header-section .infobox, body.dark-mode .header-section .infobox { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 0 !important; margin: 0 !important; padding: 10px 14px !important; border-top: 0 !important; border-left: var(--bar) solid var(--accent) !important; }
  .header-section .infobox .icon-wrap { font-size: 22px; }
  .header-section .infobox .text-wrap .mod-custom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
  .header-section .infobox .text-wrap h4 { width: 100%; margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--accent) !important; }
  .header-section .infobox .text-wrap p { font-size: 15px; white-space: nowrap; }
  .header-section .words { justify-content: flex-end; align-self: stretch; }
  .header-section .words a, .header-section .words .theme-toggle { min-width: 32px !important; width: 32px !important; height: 32px !important; font-size: 14px !important; }
  /* slider moved above the weather by nnvns2026.js */
  .header-section .nn-mslider { margin: 4px 0 12px; }
  .header-section .nn-mslider .djslider-loader { margin: 0 auto !important; }
}
@media (max-width: 767px) {
  .header-section > .row { gap: 6px !important; }
  .header-section .logo, .header-section .logo .mod-custom, .header-section .logo p { margin: 0 !important; padding: 0 !important; }
  .header-section .infobox .text-wrap, .header-section .infobox .text-wrap h4 { text-align: left !important; }
  .header-section .infobox .text-wrap p { font-size: 14px; line-height: 1.4; }
  .header-section .infobox { padding: 8px 12px !important; }
  .logo-rt .col-md-9 { margin-top: 6px; }
  .header-section .words .theme-toggle { max-height: 32px !important; min-height: 0 !important; overflow: hidden; }
}

/* Text size buttons: A− A A+ */
.words a#small, .words a#medium, .words a#large { min-width: 40px !important; padding: 0 6px; font-weight: 700; letter-spacing: 0; }
.words a#small { font-size: 14px !important; }
.words a#medium { font-size: 17px !important; }
.words a#large { font-size: 20px !important; }
@media (max-width: 767px) { .header-section .words a#small, .header-section .words a#medium, .header-section .words a#large { width: auto !important; min-width: 38px !important; } }
body.nn-text-sm .body-content { zoom: .9; }
body.nn-text-lg .body-content { zoom: 1.15; }

/* 768–1199px (tablets, phones in "desktop site" mode ~980px): the three desktop columns, a little tighter */
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --gut: 20px; --gap: 20px; }
  body { font-size: 16px; }
  .body-content > .row { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr) !important; grid-template-areas: "left main side" "media media media" !important; }
  .nn-updates__head { font-size: 28px; }
  .nn-quote p { font-size: 20px; }
  .list-group-item.active, .grade1, .grade2 { font-size: 18px !important; }
  a.list-group-item { font-size: 15px; }
  .header-section .logo img { height: 72px !important; }
  .nsymbol { height: 64px !important; }
  .infobox { min-width: 0; }
  .text-wrap p { white-space: normal; font-size: 14px; }
  .navbar-default .navbar-nav > li > a { padding: 14px 8px !important; font-size: 15px !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .text-wrap p { white-space: nowrap; font-size: 13px; }
  .infobox { padding: 8px 12px !important; }
  .nn-updates__head { font-size: 24px; }
  .nn-updates__top { flex-wrap: wrap; gap: 6px 12px; }
}

/* Latest updates: still for 5 seconds after it comes into view (set by nnvns2026.js) */
.nn-updates.is-waiting .nn-updates__track { animation-play-state: paused; }

/* ===== Round 5: inner pages (non-home) ===== */
.body-content > .row:not(:has(> .left-section, > .right-section)) { display: block !important; max-width: 1100px; margin: 0 auto !important; }
.body-content > .row:not(:has(> .left-section, > .right-section)) > [class*="col-"] { float: none; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
.item-page, .blog, .category-list { max-width: 100%; overflow-wrap: anywhere; }
.page-header, .item-page .page-header { border-bottom: var(--bar, 2px) solid var(--ink, #1a2230) !important; border-color: var(--ink, #1a2230) !important; }
.page-header h1, .page-header h2, .item-page h1, .item-page h2 { color: var(--ink, #1a2230) !important; font-family: inherit; }
.item-page img { max-width: 100%; height: auto; }
.item-page table { border-collapse: collapse; max-width: 100%; }
.item-page th, .item-page td { padding: 8px 10px; border: 1px solid var(--rule, #d5dde8); }
@media (max-width: 767px) {
  .item-page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100% !important; }
}
/* Round 5b: phone tables scroll sideways, numbers stay whole */
.item-page table, .item-page th, .item-page td { overflow-wrap: normal; word-break: normal; }
.item-page [style*="height"]:not(img):not(iframe) { height: auto !important; max-height: none !important; }
@media (max-width: 767px) {
  .item-page table { display: block; width: 100% !important; height: auto !important; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
  .item-page table > tbody:only-child { display: table; min-width: 100%; width: max-content; max-width: 720px; }
  .item-page th, .item-page td { min-width: 5.5em; white-space: normal; }
  .item-page td:only-child, .item-page th:only-child { min-width: 0; }
  .item-page div[style*="overflow"] { overflow: visible !important; }
}
/* Round 5c: clear table lines */
.item-page table { border-collapse: collapse !important; border: 1px solid #7d8a9c !important; }
.item-page th, .item-page td { border: 1px solid #7d8a9c !important; }
body.dark-mode .item-page table, body.dark-mode .item-page th, body.dark-mode .item-page td { border-color: #5a6678 !important; }
