/*
 * NEET Exam Suite visual language, adapted for the NEET2MBBS static site.
 * The source theme files in C:\Sep-01-NES are read-only references.
 */

:root {
  color-scheme: dark;
  --nes-paper: #0f0d08;
  --nes-paper-2: #1a160d;
  --nes-card: #181410;
  --nes-ink: #f1ead3;
  --nes-ink-soft: #a89a78;
  --nes-ink-faint: #81775f;
  --nes-rule: rgba(212, 168, 67, 0.28);
  --nes-rule-soft: rgba(212, 168, 67, 0.14);
  --nes-line: rgba(241, 234, 211, 0.16);
  --nes-stamp: #d4a843;
  --nes-stamp-deep: #b8862b;
  --nes-blue: #7fa8d9;
  --nes-red: #e2665a;
  --nes-green: #6fbd76;
  --bg: var(--nes-paper);
  --surface: var(--nes-paper-2);
  --surface-hover: #241d12;
  --card: var(--nes-card);
  --card-border: var(--nes-rule);
  --card-border-hover: rgba(212, 168, 67, 0.58);
  --line: var(--nes-rule-soft);
  --text: var(--nes-ink);
  --text-muted: var(--nes-ink-soft);
  --text-subtle: var(--nes-ink-faint);
  --primary: var(--nes-stamp);
  --primary-hover: #edcf91;
  --primary-glow: rgba(212, 168, 67, 0.2);
  --secondary: #f0d69d;
  --tag-bg: rgba(212, 168, 67, 0.1);
  --tag-border: var(--nes-rule);
  --header-bg: rgba(15, 13, 8, 0.92);
  --spiritual-bg: rgba(212, 168, 67, 0.05);
  --spiritual-border: var(--nes-rule);
  --chat-bg: var(--nes-card);
  --hero-gradient: linear-gradient(135deg, #fff8e8 22%, #d4a843 100%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --nes-paper: #f4efe4;
  --nes-paper-2: #ebe3d2;
  --nes-card: #fffdf8;
  --nes-ink: #29251e;
  --nes-ink-soft: #675f52;
  --nes-ink-faint: #887d6d;
  --nes-rule: rgba(139, 101, 40, 0.26);
  --nes-rule-soft: rgba(139, 101, 40, 0.14);
  --nes-line: rgba(41, 37, 30, 0.14);
  --nes-stamp: #986d2d;
  --nes-stamp-deep: #78521d;
  --nes-blue: #526f9b;
  --nes-red: #b8493f;
  --nes-green: #367247;
  --bg: var(--nes-paper);
  --surface: var(--nes-paper-2);
  --surface-hover: #e5dac4;
  --card: var(--nes-card);
  --card-border: var(--nes-rule);
  --card-border-hover: rgba(139, 101, 40, 0.5);
  --line: var(--nes-rule-soft);
  --text: var(--nes-ink);
  --text-muted: var(--nes-ink-soft);
  --text-subtle: var(--nes-ink-faint);
  --primary: var(--nes-stamp);
  --primary-hover: #78521d;
  --primary-glow: rgba(152, 109, 45, 0.15);
  --secondary: #875f25;
  --tag-bg: rgba(152, 109, 45, 0.08);
  --tag-border: var(--nes-rule);
  --header-bg: rgba(244, 239, 228, 0.94);
  --spiritual-bg: rgba(152, 109, 45, 0.05);
  --spiritual-border: var(--nes-rule);
  --chat-bg: var(--nes-card);
  --hero-gradient: linear-gradient(135deg, #332719 20%, #926b31 100%);
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--nes-paper) !important;
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(212, 168, 67, 0.08), transparent 32%),
    radial-gradient(ellipse at 88% 18%, rgba(127, 168, 217, 0.035), transparent 28%) !important;
  color: var(--nes-ink) !important;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif !important;
  line-height: 1.62;
}
body, button, input, select, textarea {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif !important;
}
h1, h2, h3, h4, .brand-name, .hero-title, .section-header h2,
.portal-card h3, .blog-card-title {
  color: var(--nes-ink) !important;
  font-family: "Zilla Slab", Georgia, serif !important;
  font-weight: 700;
  letter-spacing: -0.015em !important;
}
.mono, [class*="countdown"], [class*="timer-time"], .metric-value,
.subj-stat-metric, .timer-time-display, .metric-label, .metric-sub,
.section-kicker, .portal-art-topline, .portal-art-bottom span {
  font-family: "IBM Plex Mono", Consolas, monospace !important;
  font-feature-settings: "tnum" on, "zero" on;
}
::selection { background: var(--nes-stamp); color: var(--nes-paper); }

/* Navigation and organization identity */
.top-ribbon {
  min-height: 31px;
  height: auto;
  padding: 5px 14px;
  background: var(--nes-paper-2) !important;
  border-bottom: 1px solid var(--nes-rule-soft);
  color: var(--nes-ink-soft) !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.045em;
}
.ribbon-brand { color: var(--nes-stamp) !important; }
.ribbon-sep { color: var(--nes-stamp-deep) !important; }
.ribbon-link { color: var(--nes-blue) !important; }
header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--nes-rule) !important;
  backdrop-filter: blur(14px);
}
.nav { min-height: 66px; height: auto; }
.brand-logo-svg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--nes-rule), 0 5px 18px rgba(0, 0, 0, 0.2) !important;
}
.brand-name { color: var(--nes-ink) !important; font-size: 1.08rem; }
.nav-center { gap: clamp(10px, 1.5vw, 22px); }
.nav-center a {
  color: var(--nes-ink-soft) !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.78rem;
}
.nav-center a:hover, .nav-center a:focus-visible { color: var(--nes-stamp) !important; }
.theme-toggle {
  background: var(--nes-card) !important;
  border: 1px solid var(--nes-rule) !important;
  color: var(--nes-stamp) !important;
}
.theme-toggle:hover { background: var(--nes-paper-2) !important; }
.nav-btn-wa {
  min-height: 36px;
  border: 1px solid rgba(111, 189, 118, 0.42) !important;
  border-radius: 4px !important;
  background: rgba(111, 189, 118, 0.1) !important;
  box-shadow: none !important;
  color: var(--nes-green) !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  letter-spacing: 0.01em;
}
.nav-btn-wa:hover { background: rgba(111, 189, 118, 0.16) !important; transform: translateY(-1px); }

/* Hero: editorial introduction beside a flat, printed study record */
.hero {
  overflow: visible;
  padding: 64px 0 0 !important;
  border-bottom: 1px solid var(--nes-rule);
  background:
    radial-gradient(ellipse at 76% 12%, rgba(212, 168, 67, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(26, 22, 13, 0.9), rgba(15, 13, 8, 0.35)) !important;
}
:root[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 76% 12%, rgba(190, 147, 72, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(235, 227, 210, 0.9), rgba(244, 239, 228, 0.45)) !important;
}
.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: 28px clamp(36px, 6vw, 88px);
  padding-bottom: 0;
}
.hero-copy { max-width: 650px; }
.hero-eyebrow-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: var(--tag-bg) !important;
  color: var(--nes-ink-soft) !important;
  font-family: "IBM Plex Mono", Consolas, monospace !important;
  font-size: 0.67rem;
  letter-spacing: 0.025em;
}
.eyebrow-icon {
  color: var(--nes-stamp) !important;
  font-family: "Zilla Slab", Georgia, serif !important;
  font-size: 0.82rem;
  font-weight: 700;
}
.eyebrow-sanskrit { color: var(--nes-stamp) !important; }
.eyebrow-sep { color: var(--nes-blue) !important; }
.eyebrow-trans { color: var(--nes-ink-soft) !important; }
.hero-title {
  max-width: 700px;
  margin: 0 0 16px !important;
  font-size: clamp(2.45rem, 5vw, 4.2rem) !important;
  line-height: 1.06 !important;
  font-weight: 700 !important;
}
.hero-title .accent-gradient, .accent-gradient {
  background-image: linear-gradient(110deg, #f2d89f, #c39343 72%, #f3e2bd) !important;
}
:root[data-theme="light"] .hero-title .accent-gradient,
:root[data-theme="light"] .accent-gradient {
  background-image: linear-gradient(110deg, #805717, #b88736 72%, #9a6a24) !important;
}
.hero-subhead {
  max-width: 58ch;
  margin: 0 0 24px !important;
  color: var(--nes-ink-soft) !important;
  font-size: 0.99rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.hero-actions .btn-primary, .hero-actions .btn-ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 3px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-actions .btn-primary {
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  color: #171108 !important;
  box-shadow: 0 6px 22px rgba(212, 168, 67, 0.15) !important;
}
.hero-actions .btn-ghost {
  border: 1px solid var(--nes-rule) !important;
  background: transparent !important;
  color: var(--nes-ink) !important;
}
.hero-actions .btn-primary:hover, .hero-actions .btn-ghost:hover { transform: translateY(-1px); }

.admit-wrap { width: 100%; max-width: 490px; justify-self: end; perspective: 1000px; }
.admit-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--nes-stamp) !important;
  border-radius: 5px !important;
  background: var(--nes-card) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3) !important;
  transform: rotate(-0.8deg);
}
.admit-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(110deg, var(--nes-stamp), var(--nes-stamp-deep));
  color: #171108;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admit-masthead { display: flex; align-items: center; gap: 15px; padding: 22px 22px 17px; }
.admit-seal {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nes-stamp);
  border-radius: 50%;
  color: var(--nes-stamp);
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.13rem;
  font-weight: 700;
}
.admit-masthead h2 { margin: 0 0 3px; font-size: 1.05rem !important; }
.admit-masthead p { margin: 0; color: var(--nes-ink-soft); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admit-rule { height: 1px; margin: 0 22px; background: var(--nes-rule); }
.admit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px 22px 10px; }
.admit-field { padding: 11px 12px 10px 0; border-bottom: 1px solid var(--nes-rule-soft); }
.admit-field:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--nes-rule-soft); }
.admit-field .k { margin-bottom: 2px; color: var(--nes-ink-soft); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; }
.admit-field .v { color: var(--nes-ink); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.78rem; font-weight: 600; }
.admit-barcode {
  height: 27px;
  margin: 12px 22px 0;
  opacity: 0.65;
  background: repeating-linear-gradient(90deg, var(--nes-ink) 0 2px, transparent 2px 5px, var(--nes-ink) 5px 6px, transparent 6px 10px);
}
.admit-tear { display: flex; align-items: center; gap: 9px; padding: 10px 22px; color: var(--nes-ink-soft); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase; }
.admit-tear .line { flex: 1; border-top: 1px dashed var(--nes-rule); }
.admit-stub { display: flex; align-items: center; gap: 14px; padding: 14px 22px 20px; border-top: 1px dashed var(--nes-rule); background: rgba(212, 168, 67, 0.035); }
.admit-stub-mark { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border: 1px solid var(--nes-rule); color: var(--nes-stamp); font-family: "IBM Plex Mono", Consolas, monospace; font-weight: 700; }
.admit-stub p { margin: 0; color: var(--nes-ink-soft); font-size: 0.72rem; line-height: 1.45; }
.admit-stub strong { display: block; margin-bottom: 2px; color: var(--nes-ink); font-family: "Zilla Slab", Georgia, serif; font-size: 0.92rem; }

/* A single brass strip carries the four live study indicators. */
.dynamic-metrics-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
  margin: 8px 0 0 !important;
  border: 1px solid rgba(15, 13, 8, 0.28);
  border-bottom: 0;
  background: linear-gradient(120deg, #d4a843, #b8862b 50%, #d4a843);
}
.metric-card {
  min-width: 0;
  padding: 17px 20px !important;
  border: 0 !important;
  border-right: 1px solid rgba(15, 13, 8, 0.2) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #171108;
  transform: none !important;
}
.metric-card:last-child { border-right: 0 !important; }
.metric-card:hover { border-color: rgba(15, 13, 8, 0.2) !important; box-shadow: none !important; }
.metric-label { color: rgba(23, 17, 8, 0.7) !important; font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; }
.metric-value { margin: 4px 0 0; color: #171108 !important; font-size: clamp(0.95rem, 1.7vw, 1.28rem) !important; font-weight: 700; }
.metric-sub { color: rgba(23, 17, 8, 0.67) !important; font-size: 0.6rem; line-height: 1.4; }

/* Section headings and destination portals */
section:not(.hero) { position: relative; }
#modules { background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.045), transparent 60%) !important; }
#blogs { background: linear-gradient(180deg, rgba(26, 22, 13, 0.52), rgba(15, 13, 8, 0.88)) !important; }
:root[data-theme="light"] #blogs { background: linear-gradient(180deg, #eee6d6, #f4efe4) !important; }
.section-header { max-width: 720px; margin-bottom: 27px !important; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--nes-stamp) !important;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}
.section-kicker::before { content: "§"; color: var(--nes-blue); }
.section-header h2 { margin-bottom: 8px !important; font-size: clamp(1.7rem, 3vw, 2.2rem) !important; line-height: 1.16; }
.section-header p { color: var(--nes-ink-soft) !important; font-size: 0.94rem; line-height: 1.7; }
.portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
.portal-card {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--nes-rule) !important;
  border-radius: 5px !important;
  background: var(--nes-card) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14) !important;
  transform: none !important;
  transition: border-color 220ms ease, box-shadow 220ms ease !important;
}
.portal-card:hover { border-color: rgba(212, 168, 67, 0.64) !important; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important; }
.portal-art {
  min-height: 145px !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid var(--nes-rule) !important;
  border-radius: 0 !important;
  background: var(--nes-paper-2) !important;
}
.portal-art::before, .portal-art::after { border-color: rgba(212, 168, 67, 0.15) !important; }
.art-practice { background: linear-gradient(120deg, #21190f, #463318 60%, #1a160d) !important; }
.art-ranks { background: linear-gradient(120deg, #111923, #24354a 62%, #141a20) !important; }
.art-library { background: linear-gradient(120deg, #171b12, #34351e 62%, #17170f) !important; }
.art-guidance { background: linear-gradient(120deg, #201711, #49321d 62%, #17120d) !important; }
:root[data-theme="light"] .art-practice { background: linear-gradient(120deg, #e7d7b7, #caa45b) !important; }
:root[data-theme="light"] .art-ranks { background: linear-gradient(120deg, #d7e0e9, #8ca8c9) !important; }
:root[data-theme="light"] .art-library { background: linear-gradient(120deg, #e4e1cf, #a9a278) !important; }
:root[data-theme="light"] .art-guidance { background: linear-gradient(120deg, #e6d4bc, #bf9560) !important; }
.portal-art-topline { color: rgba(241, 234, 211, 0.72) !important; font-size: 0.59rem !important; letter-spacing: 0.08em !important; text-transform: uppercase; }
.portal-art > svg { color: var(--nes-stamp) !important; opacity: 0.9; }
.portal-art-bottom strong { color: var(--nes-ink) !important; font-family: "Zilla Slab", Georgia, serif !important; font-size: 1.05rem; }
.portal-art-bottom span { color: var(--nes-ink-soft) !important; font-size: 0.6rem; }
.portal-card-content { padding: 18px 20px 20px !important; }
.portal-card h3 { margin: 0 0 7px !important; font-size: 1.2rem !important; line-height: 1.22; }
.portal-card p.description { max-width: 54ch; margin: 0 0 16px !important; color: var(--nes-ink-soft) !important; font-size: 0.87rem !important; line-height: 1.62; }
.portal-open-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: rgba(212, 168, 67, 0.06) !important;
  color: var(--nes-stamp) !important;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.portal-open-link:hover { background: rgba(212, 168, 67, 0.12) !important; border-color: var(--nes-stamp) !important; }
.portal-open-link svg { color: currentColor !important; }

/* Editorial cards and the study tools */
.blogs-control-bar, .balance-chart-card, .subject-balance-card,
.journal-card, .journal-log-card, .journal-history-card, .mentor-panel,
.faq-card, .spiritual-card, .timer-card, .timer-panel, .focus-card {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 5px !important;
  background: var(--nes-card) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}
.blogs-control-bar { padding: 14px 16px !important; }
.blogs-daily-status, .blogs-actions-row { color: var(--nes-ink-soft) !important; }
.blog-pill {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--nes-ink-soft) !important;
  font-family: "IBM Plex Mono", Consolas, monospace !important;
  font-size: 0.65rem !important;
}
.blog-pill:hover, .blog-pill.active {
  border-color: var(--nes-stamp) !important;
  background: linear-gradient(135deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  color: #171108 !important;
}
.blog-card {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 5px !important;
  background: var(--nes-card) !important;
  box-shadow: none !important;
}
.blog-card:hover { border-color: rgba(212, 168, 67, 0.6) !important; transform: translateY(-2px); }
.blog-card-title { color: var(--nes-ink) !important; }
.blog-card-excerpt, .blog-card-meta, .blog-author-info p { color: var(--nes-ink-soft) !important; }
.blog-card-cat, .blog-read-action { color: var(--nes-stamp) !important; }
.journal-input, .journal-textarea, .journal-select, .apple-input,
input[type="text"], input[type="number"], input[type="email"], input[type="search"],
textarea, select {
  border-color: var(--nes-rule) !important;
  border-radius: 3px !important;
  background: var(--nes-paper-2) !important;
  color: var(--nes-ink) !important;
}
input::placeholder, textarea::placeholder { color: var(--nes-ink-faint) !important; }
input:focus, textarea:focus, select:focus { border-color: var(--nes-stamp) !important; box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12) !important; }
.btn-primary, .btn-quick-log, .btn-sync, .btn-balance-reset {
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  background: linear-gradient(135deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  color: #171108 !important;
  box-shadow: 0 5px 16px rgba(155, 111, 45, 0.13) !important;
}
.btn-outline, .btn-secondary {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--nes-ink) !important;
}
.faq-question, .journal-card label, .journal-history-card h3, .journal-log-card h3 { color: var(--nes-ink) !important; }
.faq-answer, .field-hint, .journal-history-empty { color: var(--nes-ink-soft) !important; }
.faq-card.open .faq-arrow { color: var(--nes-stamp) !important; }
footer {
  border-top: 1px solid var(--nes-rule) !important;
  background: var(--nes-paper-2) !important;
  color: var(--nes-ink-soft) !important;
}
footer strong { color: var(--nes-ink) !important; }
.chatbot-toggle-btn, .chatbot-avatar {
  border: 1px solid rgba(241, 234, 211, 0.55) !important;
  background: linear-gradient(140deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  color: #171108 !important;
  box-shadow: 0 9px 24px rgba(155, 111, 45, 0.22) !important;
}
:focus-visible { outline: 2px solid var(--nes-stamp) !important; outline-offset: 3px; }

/* Digital library shares the same print-inspired palette and controls. */
body.n2m-library-page {
  min-height: 100vh;
  color: var(--nes-ink) !important;
  background-color: var(--nes-paper) !important;
  background-image:
    radial-gradient(ellipse at 14% 0%, rgba(212, 168, 67, 0.08), transparent 36%),
    radial-gradient(ellipse at 92% 12%, rgba(127, 168, 217, 0.035), transparent 28%) !important;
}
.n2m-library-page .topnav {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--nes-rule) !important;
  box-shadow: none !important;
}
.n2m-library-page .home-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--nes-rule);
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.08);
  color: var(--nes-ink);
  font: 700 0.82rem/1 "IBM Plex Sans", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.n2m-library-page .home-nav-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.n2m-library-page .home-nav-link:hover {
  border-color: var(--nes-stamp);
  background: var(--nes-stamp);
  color: #171108;
  transform: translateY(-1px);
}
.n2m-library-page .home-nav-link:focus-visible {
  outline: 2px solid var(--nes-stamp);
  outline-offset: 3px;
}
.n2m-library-page .brand-mark { color: var(--nes-ink) !important; }
.n2m-library-page .brand-logo {
  border: 1px solid var(--nes-stamp);
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  box-shadow: none !important;
  color: #171108 !important;
  font-family: "Zilla Slab", Georgia, serif !important;
}
.n2m-library-page .brand-text { color: var(--nes-ink) !important; font-family: "Zilla Slab", Georgia, serif !important; }
.n2m-library-page .brand-text span { color: var(--nes-ink-soft) !important; font-family: "IBM Plex Mono", Consolas, monospace !important; }
.n2m-library-page .topnav-tabs, .n2m-library-page .mobile-tabs {
  border-color: var(--nes-rule) !important;
  background: var(--nes-paper-2) !important;
}
.n2m-library-page .topnav-tab {
  border-radius: 3px !important;
  color: var(--nes-ink-soft) !important;
  font-family: "IBM Plex Sans", sans-serif !important;
}
.n2m-library-page .topnav-tab:hover { color: var(--nes-ink) !important; background: rgba(212, 168, 67, 0.08) !important; }
.n2m-library-page .topnav-tab.active, .n2m-library-page .mobile-tabs .topnav-tab.active {
  border-color: var(--nes-stamp) !important;
  background: linear-gradient(135deg, var(--nes-stamp), var(--nes-stamp-deep)) !important;
  color: #171108 !important;
}
.n2m-library-page .nav-progress-num { color: var(--nes-ink) !important; }
.n2m-library-page .nav-progress-num span { color: var(--nes-ink-soft) !important; }
.n2m-library-page .nav-ring circle:first-child { stroke: var(--nes-rule) !important; }
.n2m-library-page #navRingFill, .n2m-library-page #heroRingFill { stroke: var(--nes-stamp) !important; }
.n2m-library-page .main { max-width: 1080px !important; }
.n2m-library-page .hero-card {
  border: 1px solid var(--nes-stamp) !important;
  border-radius: 5px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 168, 67, 0.12), transparent 32%),
    linear-gradient(120deg, var(--nes-card), var(--nes-paper-2)) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18) !important;
}
.n2m-library-page .hero-text .eyebrow {
  color: var(--nes-stamp) !important;
  font-family: "IBM Plex Mono", Consolas, monospace !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}
.n2m-library-page .hero-text h1 { color: var(--nes-ink) !important; font-family: "Zilla Slab", Georgia, serif !important; }
.n2m-library-page .hero-text p, .n2m-library-page .hero-progress-label { color: var(--nes-ink-soft) !important; }
.n2m-library-page .hero-progress { border-color: var(--nes-rule) !important; background: rgba(212, 168, 67, 0.06) !important; }
.n2m-library-page .hero-reset { border-color: var(--nes-rule) !important; color: var(--nes-ink-soft) !important; }
.n2m-library-page .hero-reset:hover { border-color: var(--nes-stamp) !important; color: var(--nes-stamp) !important; }
.n2m-library-page .toolbar-heading h2, .n2m-library-page .section-head h2 { color: var(--nes-ink) !important; font-family: "Zilla Slab", Georgia, serif !important; }
.n2m-library-page .toolbar-heading p, .n2m-library-page .section-subtitle { color: var(--nes-ink-soft) !important; }
.n2m-library-page .search-wrap input {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: var(--nes-card) !important;
  color: var(--nes-ink) !important;
}
.n2m-library-page .search-wrap input:focus { border-color: var(--nes-stamp) !important; box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12) !important; }
.n2m-library-page .pill { border-color: var(--nes-rule) !important; background: var(--nes-card) !important; color: var(--nes-ink-soft) !important; }
.n2m-library-page .pill.active, .n2m-library-page .pill[data-subj="All"].active { border-color: var(--nes-stamp) !important; background: var(--nes-stamp) !important; color: #171108 !important; }
.n2m-library-page .section {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 5px !important;
  background: var(--nes-card) !important;
  box-shadow: none !important;
}
.n2m-library-page .section:hover { border-color: rgba(212, 168, 67, 0.56) !important; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important; }
.n2m-library-page .section-dot { background: linear-gradient(145deg, var(--nes-stamp), var(--nes-stamp-deep)) !important; }
.n2m-library-page .section-progress { border-color: var(--nes-rule) !important; background: var(--nes-paper-2) !important; color: var(--nes-ink-soft) !important; }
.n2m-library-page .item {
  border: 1px solid var(--nes-rule-soft) !important;
  border-radius: 3px !important;
  background: rgba(212, 168, 67, 0.035) !important;
  color: var(--nes-ink) !important;
}
.n2m-library-page .item:hover { border-color: var(--nes-stamp) !important; background: rgba(212, 168, 67, 0.08) !important; }
.n2m-library-page .item-label { color: var(--nes-ink) !important; }
.n2m-library-page .item-meta, .n2m-library-page .item-source { color: var(--nes-ink-soft) !important; }
.n2m-library-page .item-open {
  border: 1px solid var(--nes-rule) !important;
  border-radius: 3px !important;
  background: rgba(212, 168, 67, 0.08) !important;
  color: var(--nes-stamp) !important;
}
.n2m-library-page .item-open:hover { border-color: var(--nes-stamp-deep) !important; background: var(--nes-stamp) !important; color: #171108 !important; }
.n2m-library-page .item-check { accent-color: var(--nes-stamp); }
.n2m-library-page :focus-visible { outline-color: var(--nes-stamp) !important; }

@media (max-width: 860px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.85fr); gap: 26px; }
  .nav-center { gap: 10px; }
  .nav-center a { font-size: 0.72rem; }
}
@media (max-width: 700px) {
  .hero { padding-top: 45px !important; }
  .hero > .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 100%; }
  .admit-wrap { max-width: 560px; justify-self: center; }
  .dynamic-metrics-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(2) { border-right: 0 !important; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 13, 8, 0.2) !important; }
  .portal-grid { grid-template-columns: 1fr !important; }
  .nav-center { display: none; }
}
@media (max-width: 460px) {
  .top-ribbon { font-size: 0.58rem; }
  .nav { min-height: 58px; }
  .brand-name { font-size: 0.93rem; }
  .nav-btn-wa { width: 36px; min-width: 36px; padding: 0 !important; justify-content: center; overflow: hidden; }
  .nav-btn-wa span { font-size: 0; }
  .nav-btn-wa span::before { content: "WA"; font-size: 0.65rem; }
  .hero-eyebrow-pill { gap: 6px; font-size: 0.58rem; }
  .hero-title { font-size: 2.3rem !important; }
  .admit-fields { padding-right: 15px; padding-left: 15px; }
  .admit-masthead { padding-right: 15px; padding-left: 15px; }
  .admit-rule, .admit-barcode { margin-right: 15px; margin-left: 15px; }
  .admit-tear, .admit-stub { padding-right: 15px; padding-left: 15px; }
  .metric-card { padding: 13px 12px !important; }
  .metric-value { font-size: 0.94rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Home page: concise portal-first layout */
.n2m-home-page .hero {
  padding: 42px 0 36px !important;
}
.n2m-home-page .hero > .wrap {
  display: block;
}
.n2m-home-page .hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.n2m-home-page .hero-eyebrow-pill {
  margin-bottom: 14px;
}
.n2m-home-page .hero-title {
  max-width: 760px;
  margin: 0 auto 12px !important;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem) !important;
}
.n2m-home-page .hero-subhead {
  max-width: 52ch;
  margin: 0 auto 20px !important;
  font-size: 1rem;
  line-height: 1.55;
}
.n2m-home-page .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}
.n2m-home-page #modules {
  padding: 42px 0 48px !important;
}
.n2m-home-page #modules .section-header {
  max-width: 100%;
  margin-bottom: 22px !important;
}
.n2m-home-page #modules .section-header h2 {
  font-size: clamp(2.1rem, 3.3vw, 2.8rem) !important;
}
.n2m-home-page #modules .section-header p {
  margin-top: 5px;
  font-size: 0.94rem;
}
.n2m-home-page .portal-grid {
  gap: 16px;
}
.n2m-home-page .portal-card {
  gap: 13px;
  padding: 14px !important;
}
.n2m-home-page .portal-art {
  min-height: 112px;
  padding: 13px 15px;
}
.n2m-home-page .portal-art-topline {
  top: 13px;
  left: 15px;
  right: 15px;
}
.n2m-home-page .portal-art > svg {
  top: 34px;
  right: 20px;
  width: 50px;
  height: 50px;
}
.n2m-home-page .portal-card h3 {
  margin-bottom: 5px;
  font-size: 1.16rem;
}
.n2m-home-page .portal-card p.description {
  font-size: 0.88rem;
  line-height: 1.45;
}
.n2m-home-page .portal-open-link {
  min-height: 42px;
  margin-top: 14px;
}
.n2m-home-page #modules .dynamic-metrics-bar {
  max-width: 1000px;
  margin: 24px auto 0 !important;
  gap: 12px;
}
.n2m-home-page #modules .metric-card {
  padding: 14px 16px !important;
  border-radius: 12px;
}
.n2m-home-page #modules .metric-label {
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.n2m-home-page #modules .metric-value {
  margin-bottom: 2px;
  font-size: 1.1rem;
}
.n2m-home-page #modules .metric-sub {
  font-size: 0.72rem;
}
@media (max-width: 700px) {
  .n2m-home-page .hero {
    padding: 34px 0 30px !important;
  }
  .n2m-home-page .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.2rem) !important;
  }
  .n2m-home-page #modules {
    padding: 34px 0 38px !important;
  }
  .n2m-home-page .portal-grid {
    grid-template-columns: 1fr !important;
  }
  .n2m-home-page .portal-art {
    min-height: 104px;
  }
}

/* Portal titles and readable light-theme contrast */
.n2m-home-page .portal-art-title {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 17px;
  max-width: calc(100% - 112px);
  margin: 0 !important;
  color: #fff7e7 !important;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem) !important;
  line-height: 1.16 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}
.n2m-home-page .portal-art-topline {
  color: rgba(255, 249, 235, 0.92) !important;
}
:root[data-theme="light"] .n2m-home-page .portal-art-title {
  color: #241c10 !important;
  text-shadow: none;
}
:root[data-theme="light"] .n2m-home-page .portal-art-topline {
  color: #302617 !important;
}
:root[data-theme="light"] .n2m-home-page .portal-art > svg {
  color: #5b411a !important;
  opacity: 1;
}
:root[data-theme="light"] .n2m-home-page .portal-art::before,
:root[data-theme="light"] .n2m-home-page .portal-art::after {
  border-color: rgba(41, 37, 30, 0.18) !important;
}
.n2m-home-page .metric-value .countdown-days,
.n2m-home-page .metric-value .countdown-time {
  color: #171108;
}
.n2m-home-page .metric-value .countdown-days {
  font-weight: 800;
}
.n2m-home-page .metric-value .countdown-seconds {
  color: #463217;
}

/* NEET to MBBS journey and small-screen layouts */
.n2m-home-page .hero-eyebrow-pill {
  padding: 9px 15px;
  font-size: 0.96rem;
}
.n2m-home-page .eyebrow-icon {
  font-size: 1.08em;
}
.n2m-home-page .brand-name {
  font-size: 1.2rem;
}
.n2m-home-page .hero-title {
  text-wrap: balance;
  overflow-wrap: anywhere;
  line-height: 1.08 !important;
}
.n2m-home-page #about {
  padding: 52px 0 58px !important;
  background: linear-gradient(180deg, transparent, rgba(212, 168, 67, 0.035), transparent);
}
.n2m-home-page #about .section-header {
  max-width: 760px;
  margin-bottom: 34px !important;
}
.n2m-home-page #about .section-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem) !important;
  line-height: 1.15;
}
.n2m-home-page #about .section-header p {
  color: var(--nes-ink-soft);
  max-width: 65ch;
}
.n2m-home-page .journey-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.n2m-home-page .journey-timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--nes-rule);
}
.n2m-home-page .journey-timeline li {
  min-width: 0;
  position: relative;
  padding-top: 48px;
}
.n2m-home-page .journey-step-number {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--nes-stamp);
  border-radius: 50%;
  background: var(--nes-paper);
  color: var(--nes-stamp);
  font: 700 0.76rem/1 "IBM Plex Mono", Consolas, monospace;
}
.n2m-home-page .journey-timeline h3 {
  margin: 0 0 6px !important;
  font: 700 1.08rem/1.25 "Zilla Slab", Georgia, serif !important;
  color: var(--nes-ink) !important;
}
.n2m-home-page .journey-timeline p {
  margin: 0;
  color: var(--nes-ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}
.n2m-home-page .journey-timeline li > div { text-align: center; }

@media (max-width: 900px) {
  .n2m-home-page .pomodoro-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .n2m-home-page .journey-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 24px;
  }
  .n2m-home-page .journey-timeline::before { display: none; }
}

@media (max-width: 960px) {
  .n2m-home-page .nav {
    min-height: 0;
    height: auto;
    padding-top: 10px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .n2m-home-page .nav-actions { margin-left: auto; }
  .n2m-home-page .nav-center {
    display: flex !important;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 1px 0 5px;
    scrollbar-width: none;
  }
  .n2m-home-page .nav-center::-webkit-scrollbar { display: none; }
  .n2m-home-page .nav-center a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid var(--nes-rule-soft);
    border-radius: 999px;
    font-size: 0.76rem;
  }
}

@media (max-width: 700px) {
  .n2m-home-page { overflow-x: hidden; }
  .n2m-home-page .top-ribbon-flex {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 7px;
    line-height: 1.45;
    text-align: center;
  }
  .n2m-home-page .nav {
    min-height: 0;
    height: auto;
    padding-top: 10px;
    padding-bottom: 9px;
    flex-wrap: wrap;
    row-gap: 9px;
  }
  .n2m-home-page .brand-group { min-width: 0; }
  .n2m-home-page .brand-name { font-size: 1.08rem; }
  .n2m-home-page .nav-actions { margin-left: auto; }
  .n2m-home-page .nav-center {
    display: flex !important;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 1px 0 5px;
    scrollbar-width: none;
  }
  .n2m-home-page .nav-center::-webkit-scrollbar { display: none; }
  .n2m-home-page .nav-center a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--nes-rule-soft);
    border-radius: 999px;
    font-size: 0.76rem;
  }
  .n2m-home-page .hero {
    padding: 32px 0 28px !important;
  }
  .n2m-home-page .hero-eyebrow-pill {
    padding: 7px 11px;
    font-size: 0.76rem;
    gap: 8px;
  }
  .n2m-home-page .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 8.7vw, 3rem) !important;
    line-height: 1.08 !important;
  }
  .n2m-home-page .hero-subhead {
    max-width: 38ch;
    font-size: 0.96rem;
  }
  .n2m-home-page .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .n2m-home-page .hero-actions > a { min-height: 44px; }
  .n2m-home-page #modules,
  .n2m-home-page #about,
  .n2m-home-page main > section {
    scroll-margin-top: 112px;
  }
  .n2m-home-page .journey-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 1px;
  }
  .n2m-home-page .journey-timeline::before {
    display: block;
    top: 17px;
    bottom: 20px;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .n2m-home-page .journey-timeline li {
    min-height: 74px;
    padding: 2px 0 20px 50px;
  }
  .n2m-home-page .journey-step-number { left: 0; transform: none; }
  .n2m-home-page .journey-timeline li > div { text-align: left; }
  .n2m-home-page #about .section-header { margin-bottom: 25px !important; }
  .n2m-home-page .timer-main-card { padding: 24px 16px; }
  .n2m-home-page .timer-info-card { padding: 22px 18px; }
  .n2m-home-page .timer-circle-wrap { width: min(250px, 100%); height: auto; aspect-ratio: 1; max-width: 100%; margin-right: auto; margin-left: auto; }
  .n2m-home-page .timer-controls-row { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .n2m-home-page .timer-controls-row .btn { flex: 1 1 42%; min-width: 120px; }
  .n2m-home-page .timer-stats-footer { flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .n2m-home-page .custom-timer-box { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .n2m-home-page .blog-cards-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .n2m-home-page .blog-card { min-width: 0; padding: 20px; }
  .n2m-home-page .discourse-video-card { flex-basis: min(320px, calc(100vw - 56px)); }
  .n2m-home-page .blogs-control-bar { align-items: stretch; padding: 13px; }
  .n2m-home-page .blogs-filter-pills { gap: 6px; }
  .n2m-home-page .blog-pill { padding: 7px 10px; }
  .n2m-home-page .journal-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
  .n2m-home-page .journal-card { min-width: 0; padding: 19px 15px; }
  .n2m-home-page .add-task-form { flex-wrap: wrap; }
  .n2m-home-page .add-task-form input { flex: 1 1 180px; min-width: 0; }
  .n2m-home-page .mentor-panel { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .n2m-home-page .faq-question { gap: 12px; padding: 15px 16px; font-size: 0.92rem; }
  .n2m-home-page .faq-answer { padding: 0 16px 16px; }
  .n2m-home-page .apple-modal-overlay { padding: 12px; }
  .n2m-home-page .apple-modal-box,
  .n2m-home-page .apple-modal-box.reader-box {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }
  .n2m-home-page .apple-modal-footer { flex-wrap: wrap; gap: 8px; }
  .n2m-home-page .chatbot-window { right: 12px; bottom: 78px; width: calc(100vw - 24px); height: min(480px, calc(100dvh - 112px)); max-height: calc(100dvh - 100px); }
  .n2m-home-page .chatbot-launcher { right: 12px; bottom: 12px; }
  .n2m-home-page .chatbot-tooltip { display: none; }
  .n2m-home-page .n2m-toast { width: calc(100vw - 28px); justify-content: center; text-align: center; }
  .n2m-home-page .footer-flex { gap: 12px; text-align: center; }
}

@media (max-width: 460px) {
  .n2m-home-page .brand-logo-svg { width: 34px; height: 34px; }
  .n2m-home-page .brand-name { font-size: 1rem; }
  .n2m-home-page .theme-toggle { width: 40px; height: 40px; }
  .n2m-home-page .nav-btn-wa { min-width: 40px; width: 40px; min-height: 40px; }
  .n2m-home-page .hero-title { font-size: clamp(1.9rem, 9vw, 2.45rem) !important; }
  .n2m-home-page .hero-actions > a { width: 100%; justify-content: center; }
  .n2m-home-page #modules .dynamic-metrics-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n2m-home-page #modules .metric-card { min-width: 0; padding: 12px 9px !important; }
  .n2m-home-page #modules .metric-value { font-size: 0.96rem; overflow-wrap: anywhere; }
  .n2m-home-page .timer-time-display { font-size: clamp(2.5rem, 14vw, 4rem); }
  .n2m-home-page .timer-subject-bar { gap: 6px; }
  .n2m-home-page .timer-subj-btn { padding: 7px 9px; font-size: 0.72rem; }
}

@media (max-width: 540px) {
  .n2m-library-page .topnav { min-height: 58px; padding: 0 12px; }
  .n2m-library-page .brand-logo { flex: 0 0 36px; width: 36px; height: 36px; }
  .n2m-library-page .topnav-right { margin-left: auto; }
  .n2m-library-page .mobile-tabs { top: 58px; padding: 9px 12px; }
  .n2m-library-page .mobile-tabs .topnav-tab { flex: 0 0 auto; min-height: 40px; }
  .n2m-library-page .main { padding: 17px 12px 54px; }
  .n2m-library-page .hero-card { padding: 17px; }
  .n2m-library-page .hero-progress { min-width: 0; }
  .n2m-library-page .toolbar { gap: 12px; }
  .n2m-library-page .toolbar-heading { min-width: 0; }
  .n2m-library-page .search-wrap input { min-width: 0; width: 100%; }
  .n2m-library-page .section { min-width: 0; }
  .n2m-library-page .section-head { gap: 10px; }
  .n2m-library-page .section-progress { flex: 0 0 auto; }
  .n2m-library-page .item { min-width: 0; gap: 8px; padding: 10px; }
  .n2m-library-page .item-body { min-width: 0; }
  .n2m-library-page .item-label { min-width: 0; overflow-wrap: anywhere; }
  .n2m-library-page .item-open { flex: 0 0 36px; width: 36px; height: 36px; }
}

/* Put About first, then make the offerings a jump list followed by a guided tour. */
.n2m-home-page #about .wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--nes-rule);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(212, 168, 67, 0.13), transparent 36%),
    linear-gradient(135deg, rgba(212, 168, 67, 0.075), rgba(127, 168, 217, 0.035) 72%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13), 0 0 28px rgba(212, 168, 67, 0.055);
}
.n2m-home-page #about .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nes-stamp), var(--nes-blue), transparent);
}
.n2m-home-page #about .section-header,
.n2m-home-page #about .journey-timeline { position: relative; z-index: 1; }
.n2m-home-page #about .section-kicker::before { color: var(--nes-stamp); }

.n2m-home-page #modules .section-header { margin-bottom: 20px !important; }
.n2m-home-page .offer-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 1000px;
  margin: 0 auto 26px;
}
.n2m-home-page .offer-index a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--nes-rule);
  border-radius: 6px;
  background: var(--nes-card);
  color: var(--nes-ink);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.n2m-home-page .offer-index a:hover,
.n2m-home-page .offer-index a:focus-visible {
  border-color: var(--nes-stamp);
  background: var(--surface-hover);
  transform: translateX(3px);
}
.n2m-home-page .offer-index-number {
  color: var(--nes-stamp);
  font: 700 0.72rem/1 "IBM Plex Mono", Consolas, monospace;
}
.n2m-home-page .offer-index-arrow {
  color: var(--nes-stamp);
  font-size: 1rem;
  text-align: right;
}
.n2m-home-page .offer-flow-shell {
  position: relative;
  width: min(100%, 1100px);
  margin: 2px auto 34px;
}
.n2m-home-page .offer-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.n2m-home-page .offer-flow-rail {
  position: absolute;
  z-index: 0;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--nes-rule);
}
.n2m-home-page .offer-flow-rail span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--nes-stamp), var(--nes-blue), var(--nes-stamp));
}
.n2m-home-page .offer-flow li { min-width: 0; position: relative; z-index: 1; }
.n2m-home-page .offer-flow-step {
  display: flex;
  min-height: 222px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
  border: 1px solid var(--nes-rule);
  border-radius: 9px;
  background: linear-gradient(165deg, var(--nes-card), color-mix(in srgb, var(--nes-card) 88%, var(--nes-stamp) 12%));
  color: var(--nes-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.n2m-home-page .offer-flow-step:hover,
.n2m-home-page .offer-flow-step:focus-visible {
  transform: translateY(-4px);
  border-color: var(--nes-stamp);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 168, 67, 0.1);
}
.n2m-home-page .offer-flow-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border: 1px solid var(--nes-stamp);
  border-radius: 50%;
  background: var(--nes-paper);
  color: var(--nes-stamp);
  font: 700 0.72rem/1 "IBM Plex Mono", Consolas, monospace;
  box-shadow: 0 0 0 5px var(--nes-card);
}
.n2m-home-page .offer-flow-step strong {
  color: var(--nes-ink);
  font: 700 1.05rem/1.25 "Zilla Slab", Georgia, serif;
}
.n2m-home-page .offer-flow-detail {
  display: block;
  max-width: 27ch;
  margin: 9px 0 12px;
  color: var(--nes-ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}
.n2m-home-page .offer-flow-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--nes-stamp);
  font: 650 0.72rem/1.3 "IBM Plex Mono", Consolas, monospace;
}
.n2m-home-page .offer-flow-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.n2m-home-page .offer-flow-step:hover .offer-flow-action svg { transform: translateX(3px); }
.n2m-home-page #modules .portal-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  max-width: 1040px;
  margin: 0 auto;
}
.n2m-home-page #modules .portal-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  min-height: 218px;
  border-radius: 10px !important;
  scroll-margin-top: 120px;
}
.n2m-home-page #modules .portal-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
}
.n2m-home-page #modules .portal-card:nth-child(even) .portal-art {
  grid-column: 2;
  grid-row: 1;
  border-right: 0 !important;
  border-left: 1px solid var(--nes-rule) !important;
}
.n2m-home-page #modules .portal-card:nth-child(even) .portal-card-content {
  grid-column: 1;
  grid-row: 1;
}
.n2m-home-page #modules .portal-art {
  height: 100%;
  min-height: 218px !important;
  border-right: 1px solid var(--nes-rule) !important;
  border-bottom: 0 !important;
}
.n2m-home-page #modules .portal-art-topline { top: 20px; left: 22px; right: 20px; }
.n2m-home-page #modules .portal-art > svg {
  top: 52px;
  right: 28px;
  width: 64px;
  height: 64px;
}
.n2m-home-page #modules .portal-art-title {
  left: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
}
.n2m-home-page #modules .portal-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px clamp(22px, 4vw, 40px) !important;
}
.n2m-home-page #modules .portal-card p.description {
  margin-bottom: 18px !important;
  font-size: 0.96rem !important;
}
.n2m-home-page #modules .portal-open-link {
  min-height: 44px;
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .n2m-home-page #modules .portal-card {
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  }
  .n2m-home-page #modules .portal-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  }
}
@media (max-width: 700px) {
  .n2m-home-page #about .wrap { padding: 24px 18px; border-radius: 13px; }
  .n2m-home-page .offer-index { gap: 7px; margin-bottom: 20px; }
  .n2m-home-page .offer-index a { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 8px; padding: 9px 10px; font-size: 0.82rem; }
  .n2m-home-page #modules .portal-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .n2m-home-page #modules .portal-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .n2m-home-page #modules .portal-art {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 154px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--nes-rule) !important;
  }
  .n2m-home-page #modules .portal-card:nth-child(even) .portal-art {
    grid-column: 1;
    grid-row: 1;
    border-left: 0 !important;
    border-bottom: 1px solid var(--nes-rule) !important;
  }
  .n2m-home-page #modules .portal-card-content { grid-column: 1; grid-row: 2; }
  .n2m-home-page #modules .portal-card:nth-child(even) .portal-card-content { grid-column: 1; grid-row: 2; }
  .n2m-home-page #modules .portal-art-title { max-width: calc(100% - 104px); }
  .n2m-home-page #modules .portal-card-content { padding: 18px !important; }
}
@media (max-width: 460px) {
  .n2m-home-page .offer-index { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the document bands viewport-wide and center their content containers. */
html,
body.n2m-home-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.n2m-home-page > .top-ribbon,
body.n2m-home-page > header,
body.n2m-home-page > main,
body.n2m-home-page > footer {
  width: 100%;
  max-width: none;
}
.n2m-home-page .wrap {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}
.n2m-home-page #modules .offer-index {
  width: min(100%, 1000px);
}
.n2m-home-page #modules .portal-grid {
  width: min(100%, 1040px);
}

/* Countdown in the open space beneath the homepage actions. */
.n2m-home-page .hero-countdown {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 22px;
  width: min(100%, 760px);
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--nes-rule);
  border-left: 3px solid var(--nes-stamp);
  border-radius: 6px;
  background: linear-gradient(100deg, rgba(212, 168, 67, 0.14), rgba(212, 168, 67, 0.045));
  text-align: left;
}
.n2m-home-page .hero-countdown-label {
  color: var(--nes-stamp);
  font: 700 0.66rem/1.35 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.09em;
}
.n2m-home-page .hero-countdown .metric-value {
  margin: 0;
  color: var(--nes-ink) !important;
  font-size: clamp(1.02rem, 2vw, 1.45rem) !important;
  white-space: nowrap;
}
.n2m-home-page .hero-countdown .countdown-days,
.n2m-home-page .hero-countdown .countdown-time { color: var(--nes-ink) !important; }
.n2m-home-page .hero-countdown .countdown-seconds { color: var(--nes-stamp) !important; }
.n2m-home-page .hero-countdown .metric-sub {
  color: var(--nes-ink-soft) !important;
  font-size: 0.72rem;
  text-align: right;
}

/* The remaining three study indicators share one balanced row. */
.n2m-home-page #modules .dynamic-metrics-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.n2m-home-page .portal-art-stat {
  position: absolute;
  z-index: 1;
  top: 68px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--nes-stamp);
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.n2m-home-page .portal-art-stat strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.n2m-home-page .portal-art-stat span {
  margin-top: 4px;
  color: var(--nes-ink-soft);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.n2m-home-page #portal-codegrammer .portal-open-link {
  width: 100%;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

/* Codegrammer offer dialog. */
.n2m-home-page.has-codegrammer-modal { overflow: hidden; }
.codegrammer-modal[hidden] { display: none; }
.codegrammer-modal:not([hidden]) {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background: rgba(5, 4, 2, 0.78);
  backdrop-filter: blur(7px);
}
.codegrammer-modal-panel {
  position: relative;
  width: min(100%, 540px);
  padding: clamp(26px, 5vw, 42px) !important;
  border: 1px solid var(--nes-rule);
  border-top: 3px solid var(--nes-stamp);
  border-radius: 10px;
  background: var(--nes-card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}
.codegrammer-modal-kicker {
  display: block;
  margin: 0 36px 12px 0;
  color: var(--nes-stamp);
  font: 700 0.66rem/1.4 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.1em;
}
.codegrammer-modal-panel h2 {
  margin: 0 36px 14px 0 !important;
  color: var(--nes-ink) !important;
  font-size: clamp(1.55rem, 4vw, 2rem) !important;
  line-height: 1.15;
}
.codegrammer-modal-panel p {
  margin: 0 0 24px;
  color: var(--nes-ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.codegrammer-modal-panel p strong { color: var(--nes-stamp); }
.codegrammer-modal-panel p a { color: var(--nes-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.codegrammer-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--nes-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--nes-ink);
  font-size: 1.5rem;
  cursor: pointer;
}
.codegrammer-modal-close:hover { background: rgba(212, 168, 67, 0.1); }
.codegrammer-modal-cta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--nes-stamp);
  border-radius: 5px;
  background: linear-gradient(120deg, var(--nes-stamp), var(--nes-stamp-deep));
  color: #171108;
  font-weight: 750;
  text-decoration: none;
}
.codegrammer-modal-cta:hover { filter: brightness(1.08); }

/* Focused NEET-to-admission flow, adapted for smaller screens. */
@media (max-width: 1050px) {
  .n2m-home-page .offer-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n2m-home-page .offer-flow-rail { display: none; }
}
@media (max-width: 620px) {
  .n2m-home-page .offer-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .n2m-home-page .offer-flow-step { min-height: 0; align-items: flex-start; padding: 16px 18px; text-align: left; }
  .n2m-home-page .offer-flow-number { margin: 0 0 10px; }
  .n2m-home-page .offer-flow-detail { max-width: 42ch; }
  .n2m-home-page .offer-flow-action { margin-top: 2px; }
  .n2m-home-page .blog-post-card { gap: 20px; }
}

.nav-auth-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--nes-rule);
  border-radius: 4px;
  color: var(--nes-ink) !important;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth-link:hover { border-color: var(--nes-stamp); color: var(--nes-stamp) !important; }
.blog-post-card { display: flex !important; flex-direction: column; justify-content: space-between; gap: 24px; color: inherit; text-decoration: none !important; }
.blog-post-card[hidden] { display: none !important; }
.blog-post-card h3 { margin: 15px 0 10px; }
.blog-post-card .blog-card-meta { display: flex; justify-content: space-between; gap: 12px; }
.blog-post-card .blog-read-action { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 700; }
.blog-index-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--nes-stamp); font-weight: 700; text-decoration: none; }
.blog-index-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-post-card .blog-author-avatar { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--nes-rule); border-radius: 50%; color: var(--nes-stamp); font: 700 0.75rem "IBM Plex Mono", monospace; }

/* Crawlable article, login and tracker pages share the site's visual system. */
.n2m-content-page { min-height: 100vh; background: var(--nes-paper); color: var(--nes-ink); }
.content-nav { position: sticky; z-index: 50; top: 0; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(18px, 5vw, 72px); border-bottom: 1px solid var(--nes-rule); background: color-mix(in srgb, var(--nes-paper) 92%, transparent); backdrop-filter: blur(14px); }
.content-nav .brand { color: var(--nes-ink); text-decoration: none; }
.content-nav nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.content-nav nav a { color: var(--nes-ink-soft); font-size: 0.9rem; text-decoration: none; }
.content-nav nav a:hover { color: var(--nes-stamp); }
.article-wrap { width: min(100% - 36px, 900px); margin: 0 auto; padding: 32px 0 88px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; color: var(--nes-ink-faint); font: 600 0.7rem "IBM Plex Mono", monospace; }
.article-breadcrumb a, .article-footer a { color: var(--nes-stamp); text-decoration: none; }
.article-header { max-width: 780px; margin: 0 auto; }
.article-category { color: var(--nes-blue); font: 700 0.72rem "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.article-header h1 { margin: 15px 0 16px; color: var(--nes-ink); font: 700 clamp(2.1rem, 6vw, 4.1rem)/1.05 "Zilla Slab", Georgia, serif; letter-spacing: -0.035em; }
.article-deck { max-width: 66ch; margin: 0; color: var(--nes-ink-soft); font-size: clamp(1.03rem, 2.2vw, 1.24rem); line-height: 1.7; }
.article-byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 30px; color: var(--nes-ink); line-height: 1.45; }
.article-byline small { color: var(--nes-ink-faint); }
.article-takeaway { max-width: 780px; margin: 0 auto 34px; padding: 18px 22px; border-left: 3px solid var(--nes-stamp); background: var(--nes-paper-2); }
.article-takeaway strong { color: var(--nes-stamp); font: 700 0.68rem "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.article-takeaway p { margin: 8px 0 0; color: var(--nes-ink); line-height: 1.6; }
.article-body { max-width: 720px; margin: auto; color: var(--nes-ink-soft); font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { margin: 34px 0 10px; color: var(--nes-ink); font: 700 1.55rem/1.2 "Zilla Slab", Georgia, serif; }
.article-body p { margin: 0 0 19px; }
.article-body ol { padding-left: 1.4rem; }
.article-body li { margin: 7px 0; }
.article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; max-width: 780px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--nes-rule); font-weight: 700; }
.blog-index-list { display: grid; gap: 10px; margin-top: 30px; }
.blog-index-list a { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--nes-rule); border-radius: 5px; color: var(--nes-ink); text-decoration: none; }
.blog-index-list a:hover { border-color: var(--nes-stamp); }
.blog-index-list a span:first-child { color: var(--nes-stamp); font: 700 0.68rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.blog-index-list a span:last-child { color: var(--nes-ink-soft); font-size: 0.8rem; }

.account-shell { width: min(100% - 36px, 760px); margin: 0 auto; padding: clamp(36px, 8vw, 88px) 0; }
.account-card { padding: clamp(24px, 5vw, 44px); border: 1px solid var(--nes-rule); border-radius: 8px; background: var(--nes-card); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.13); }
.account-kicker { color: var(--nes-blue); font: 700 0.72rem "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.account-card h1 { margin: 14px 0 10px; font: 700 clamp(2rem, 5vw, 3rem)/1.05 "Zilla Slab", Georgia, serif; }
.account-card > p, .account-note { color: var(--nes-ink-soft); line-height: 1.65; }
.account-status { min-height: 24px; margin: 18px 0; color: var(--nes-ink-soft); font-size: 0.9rem; }
.google-button-slot { min-height: 44px; margin: 22px 0 14px; }
.account-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--nes-rule); font-size: 0.84rem; }
.account-link { display: inline-flex; margin-top: 16px; color: var(--nes-stamp); font-weight: 700; text-decoration: none; }
.tracker-dashboard[hidden], .tracker-gate[hidden] { display: none !important; }
.tracker-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.tracker-subject { padding: 19px; border: 1px solid var(--nes-rule); border-radius: 6px; background: var(--nes-card); }
.tracker-subject span { color: var(--nes-ink-soft); font-size: 0.8rem; }
.tracker-subject strong { display: block; margin: 9px 0; color: var(--nes-ink); font: 700 1.8rem "IBM Plex Mono", monospace; }
.tracker-meter { height: 5px; overflow: hidden; background: var(--nes-rule); }
.tracker-meter i { display: block; height: 100%; background: var(--nes-stamp); transition: width 300ms ease; }
.tracker-actions { display: grid; gap: 16px; margin-top: 24px; }
.tracker-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--nes-rule); border-radius: 5px; }
.tracker-action-row strong { flex: 1 0 100%; }
.tracker-action-row button, .tracker-signout { min-height: 40px; padding: 8px 13px; border: 1px solid var(--nes-rule); border-radius: 4px; background: var(--nes-paper-2); color: var(--nes-ink); cursor: pointer; }
.tracker-action-row button:hover, .tracker-signout:hover { border-color: var(--nes-stamp); }
.tracker-user { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--nes-ink-soft); }

@media (max-width: 650px) {
  .content-nav { min-height: 58px; gap: 10px; padding: 9px 16px; }
  .content-nav nav { gap: 10px; }
  .content-nav nav a { font-size: 0.76rem; }
  .content-nav .nav-auth-link { min-height: 36px; padding: 6px 9px; font-size: 0.76rem; }
  .blog-index-list a { grid-template-columns: 1fr auto; gap: 8px; }
  .blog-index-list a strong { grid-column: 1 / -1; grid-row: 2; }
  .tracker-summary { grid-template-columns: 1fr; }
  .article-wrap { padding-top: 22px; }
}

/* Persistent, keyboard and touch movable server visit counter. */
.visitor-counter {
  position: fixed;
  z-index: 80;
  left: 18px;
  bottom: 18px;
  display: flex;
  min-width: 148px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--nes-rule);
  border-radius: 8px;
  background: color-mix(in srgb, var(--nes-card) 92%, transparent);
  color: var(--nes-ink);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  user-select: none;
}
.visitor-counter-grip {
  display: grid;
  width: 32px;
  height: 36px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--nes-rule-soft);
  border-radius: 5px;
  background: rgba(212, 168, 67, 0.08);
  color: var(--nes-stamp);
  font-size: 1.1rem;
  cursor: grab;
  touch-action: none;
}
.visitor-counter-grip:active { cursor: grabbing; }
.visitor-counter-grip:focus-visible { outline: 2px solid var(--nes-stamp); outline-offset: 2px; }
.visitor-counter-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.visitor-counter-label {
  color: var(--nes-ink-soft);
  font: 700 0.58rem/1.3 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.1em;
}
.visitor-counter-value {
  color: var(--nes-stamp);
  font: 700 1.08rem/1.2 "IBM Plex Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .n2m-home-page #modules .dynamic-metrics-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n2m-home-page .hero-countdown {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    margin-top: 22px;
    padding: 12px 14px;
  }
  .n2m-home-page .hero-countdown-label { grid-column: 1 / -1; }
  .n2m-home-page .hero-countdown .metric-sub { text-align: right; }
  .n2m-home-page #modules .metric-card:last-child {
    grid-column: 1 / -1;
    border-right: 0 !important;
  }
  .visitor-counter { left: 12px; bottom: 78px; }
}

@media (max-width: 420px) {
  .n2m-home-page .hero-countdown {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .n2m-home-page .hero-countdown-label { grid-column: auto; }
  .n2m-home-page .hero-countdown .metric-sub { text-align: center; }
  .n2m-home-page .portal-art-stat { top: 55px; }
}
