/* Modern Indian History subject hub */
:root {
  --mh-bg: #f7f9f8;
  --mh-surface: #ffffff;
  --mh-surface-soft: #edf3f1;
  --mh-text: #17211e;
  --mh-muted: #41514c;
  --mh-line: rgba(23, 33, 30, 0.16);
  --mh-line-soft: rgba(23, 33, 30, 0.1);
  --mh-accent: #0b7768;
  --mh-accent-strong: #075e53;
  --mh-accent-soft: rgba(11, 119, 104, 0.09);
  --mh-warm: #b5842a;
  --mh-danger: #a9443e;
  --mh-shadow: 0 10px 28px rgba(23, 33, 30, 0.07);
  --mh-radius: 8px;
  --mh-sidebar-width: 300px;
  --mh-topbar-height: var(--shared-topbar-height, 64px);
}

html[data-theme="dark"] {
  --mh-bg: #111315;
  --mh-surface: #181c1f;
  --mh-surface-soft: #20252a;
  --mh-text: #f3f6f5;
  --mh-muted: #c3cdca;
  --mh-line: rgba(243, 246, 245, 0.17);
  --mh-line-soft: rgba(243, 246, 245, 0.1);
  --mh-accent: #5cc7b2;
  --mh-accent-strong: #7bd8c5;
  --mh-accent-soft: rgba(92, 199, 178, 0.12);
  --mh-warm: #d7ad55;
  --mh-danger: #ef8c8c;
  --mh-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

body.modern-history-article,
body.modern-history-article *,
body.modern-history-article *::before,
body.modern-history-article *::after {
  box-sizing: border-box;
}

body.modern-history-article {
  /* Keep every Modern History article on the shared World History/Geography palette. */
  --mh-bg: #f7f9f8 !important;
  --mh-surface: #ffffff !important;
  --mh-surface-soft: #edf3f1 !important;
  --mh-text: #17211e !important;
  --mh-muted: #41514c !important;
  --mh-line: rgba(23, 33, 30, 0.16) !important;
  --mh-line-soft: rgba(23, 33, 30, 0.1) !important;
  --mh-accent: #0b7768 !important;
  --mh-accent-strong: #075e53 !important;
  --mh-accent-soft: rgba(11, 119, 104, 0.09) !important;
  --mh-warm: #b5842a !important;
  --mh-danger: #a9443e !important;
  --mh-shadow: 0 10px 28px rgba(23, 33, 30, 0.07) !important;
  --gold: var(--mh-warm);
  --ink-soft: var(--mh-muted);
  --ink-faint: var(--mh-muted);
  --text-faint: var(--mh-muted);
  --line: var(--mh-line);
  --ok: var(--mh-accent);
  --sans: "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  --serif: "Tiro Devanagari Hindi", serif;
  --mono: "JetBrains Mono", monospace;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--mh-text);
  background: var(--mh-bg);
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body.modern-history-article {
  --mh-bg: #111315 !important;
  --mh-surface: #181c1f !important;
  --mh-surface-soft: #20252a !important;
  --mh-text: #f3f6f5 !important;
  --mh-muted: #c3cdca !important;
  --mh-line: rgba(243, 246, 245, 0.17) !important;
  --mh-line-soft: rgba(243, 246, 245, 0.1) !important;
  --mh-accent: #5cc7b2 !important;
  --mh-accent-strong: #7bd8c5 !important;
  --mh-accent-soft: rgba(92, 199, 178, 0.12) !important;
  --mh-warm: #d7ad55 !important;
  --mh-danger: #ef8c8c !important;
  --mh-shadow: 0 14px 36px rgba(0, 0, 0, 0.25) !important;
}

body.modern-history-article ::selection {
  color: #fff;
  background: var(--mh-accent);
}

body.modern-history-article a,
body.modern-history-article button,
body.modern-history-article select {
  font: inherit;
}

body.modern-history-article img,
body.modern-history-article svg {
  max-width: 100%;
}

body.modern-history-article #prog,
body.modern-history-article #bg-canvas,
body.modern-history-article #amb-glow,
body.modern-history-article #waveLayer,
body.modern-history-article .glow-layer,
body.modern-history-article .star-field,
body.modern-history-article #ham,
body.modern-history-article #topbar {
  display: none !important;
}

body.modern-history-article .shell {
  display: block;
  min-height: 100vh;
}

/* Sidebar */
body.modern-history-article #sidebar {
  position: fixed;
  top: var(--mh-topbar-height);
  bottom: 0;
  left: 0;
  z-index: 70;
  width: var(--mh-sidebar-width);
  padding: 18px 16px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--mh-text);
  background: var(--mh-surface-soft);
  border-right: 1px solid var(--mh-line);
  transition: transform 0.2s ease;
  scrollbar-width: thin;
}

body.modern-history-article #sidebar.closed {
  transform: translateX(-100%);
}

body.modern-history-article .sb-head,
body.modern-history-article .modern-sidebar-brand {
  display: block;
  margin: 0 0 14px;
  padding: 18px 16px;
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 7px;
}

body.modern-history-article .sb-head > :not(strong):not(span) {
  display: none !important;
}

body.modern-history-article .modern-sidebar-brand strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mh-text);
  font-size: 1.06rem;
  line-height: 1.35;
}

body.modern-history-article .modern-sidebar-brand > span {
  display: block;
  color: var(--mh-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

body.modern-history-article .modern-sidebar-home {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  color: var(--mh-accent-strong);
  text-decoration: none;
  background: var(--mh-accent-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 750;
}

body.modern-history-article .modern-sidebar-home svg {
  width: 17px;
  height: 17px;
}

body.modern-history-article .modern-sidebar-toc-label,
body.modern-history-article .sb-group-title {
  margin: 18px 8px 7px;
  color: var(--mh-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

body.modern-history-article .sb-nav {
  display: grid;
  gap: 3px;
}

body.modern-history-article .sb-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: var(--mh-text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.35;
}

body.modern-history-article .sb-link svg,
body.modern-history-article .nav-seal {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--mh-muted);
}

body.modern-history-article .nav-seal {
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
}

body.modern-history-article .nav-text,
body.modern-history-article .nav-text .t {
  display: block;
  min-width: 0;
}

body.modern-history-article .nav-text .d {
  display: none;
}

body.modern-history-article .sb-link:hover,
body.modern-history-article .sb-link.active {
  color: var(--mh-accent-strong);
  background: var(--mh-accent-soft);
  border-color: var(--mh-line);
}

body.modern-history-article .sb-link.active::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 3px;
  background: var(--mh-accent);
  border-radius: 3px;
}

body.modern-history-article .sb-link.done::after {
  content: "✓";
  margin-left: auto;
  color: var(--mh-accent-strong);
  font-weight: 900;
}

body.modern-history-article .shared-sidebar-quiz {
  width: 100%;
  min-height: 46px;
  margin: 4px 0 14px;
  color: var(--mh-text);
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
}

body.modern-history-article .backdrop {
  position: fixed;
  inset: var(--mh-topbar-height) 0 0;
  z-index: 60;
  display: none;
  background: rgba(12, 18, 16, 0.48);
}

body.modern-history-article .backdrop.show,
body.modern-history-article.sidebar-open .backdrop {
  display: block;
}

/* Main reading column */
body.modern-history-article #main {
  width: auto;
  min-width: 0;
  margin-left: var(--mh-sidebar-width);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 58px) 48px;
}

body.modern-history-article #main.full,
body.modern-history-article.modern-sidebar-collapsed #main {
  margin-left: 0;
}

body.modern-history-article .hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-left: 5px solid var(--mh-accent);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
}

body.modern-history-article .hero::before,
body.modern-history-article .hero::after {
  display: none !important;
}

body.modern-history-article .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--mh-warm);
  font-size: 0.76rem;
  font-weight: 800;
}

body.modern-history-article .hero h1,
body.modern-history-article .hero h2 {
  max-width: 950px;
  margin: 0 0 14px;
  color: var(--mh-text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

body.modern-history-article .hero h2 em,
body.modern-history-article .hi {
  color: var(--mh-accent-strong);
  font-style: normal;
}

body.modern-history-article .hero .sub,
body.modern-history-article .hero-sub {
  max-width: 72ch;
  margin: 0;
  color: var(--mh-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

body.modern-history-article .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

body.modern-history-article .hstat {
  min-width: 0;
  padding: 12px 14px;
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line-soft);
  border-radius: 6px;
}

body.modern-history-article .hstat .num {
  color: var(--mh-accent-strong);
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

body.modern-history-article .hstat .lbl {
  margin-top: 2px;
  color: var(--mh-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* One framed surface per major topic */
body.modern-history-article section.note,
body.modern-history-bengal .chapter {
  max-width: 1180px;
  margin: 0 auto 22px;
  overflow: hidden;
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
  scroll-margin-top: calc(var(--mh-topbar-height) + 16px);
}

body.modern-history-article .sec-head,
body.modern-history-bengal .chapter-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 20px 24px;
  background: var(--mh-surface-soft);
  border-bottom: 1px solid var(--mh-line);
}

body.modern-history-article .sec-head {
  cursor: default;
  user-select: text;
}

body.modern-history-article .sec-head h3,
body.modern-history-bengal .chapter-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0;
}

body.modern-history-article .sec-num,
body.modern-history-bengal .chapter-seal {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  color: var(--mh-accent-strong);
  background: var(--mh-accent-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

body.modern-history-article .acc-hint,
body.modern-history-article .acc-chevron,
body.modern-history-bengal .acc-header .chev {
  display: none !important;
}

body.modern-history-article .acc-body {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  border: 0 !important;
}

body.modern-history-bengal .acc-panel {
  display: block !important;
}

body.modern-history-bengal .acc-header {
  pointer-events: none;
}

/* Subtopics are rows, not cards inside cards */
body.modern-history-article section.note > .card,
body.modern-history-article section.note > .grid2,
body.modern-history-article section.note > .tl,
body.modern-history-article section.note > .tl-phase,
body.modern-history-article section.note > .recall-toolbar,
body.modern-history-article section.note > .vtable,
body.modern-history-article section.note > .rtable {
  margin-right: 24px;
  margin-left: 24px;
}

body.modern-history-article .card {
  margin-bottom: 0;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--mh-line-soft);
  border-radius: 0;
}

body.modern-history-article section.note > .sec-head + .card,
body.modern-history-article .grid2 > .card:first-child,
body.modern-history-article .grid2 > .card:nth-child(2) {
  border-top: 0;
}

body.modern-history-article .card h4 {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--mh-accent-strong);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  line-height: 1.45;
}

body.modern-history-article .card h4 svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 4px;
}

body.modern-history-article .card p,
body.modern-history-article .card ul,
body.modern-history-article .card ol {
  max-width: 86ch;
  margin-top: 0;
}

body.modern-history-article .card p {
  margin-bottom: 9px;
}

body.modern-history-article .card ul,
body.modern-history-article .card ol,
body.modern-history-article .tl-facts,
body.modern-history-article .tl-phase > ul {
  margin-bottom: 0;
  padding-left: 23px;
}

body.modern-history-article .card li,
body.modern-history-article .tl-facts li,
body.modern-history-article .tl-phase li {
  margin-bottom: 7px;
}

body.modern-history-article li::marker {
  color: var(--mh-warm);
}

body.modern-history-article .grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

body.modern-history-article .grid2 .card:nth-child(n + 3) {
  border-top: 1px solid var(--mh-line-soft);
}

body.modern-history-article .decline-card {
  margin-top: 4px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--mh-surface-soft);
  border: 0;
  border-left: 3px solid var(--mh-warm);
  border-radius: 0 5px 5px 0;
}

body.modern-history-article .pyq-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  color: var(--mh-danger);
  background: color-mix(in srgb, var(--mh-danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--mh-danger) 32%, transparent);
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}

/* Compact fact summaries used by Dutch and French notes. */
body.modern-history-article section.note .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 24px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--mh-line-soft);
}

body.modern-history-article section.note .chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--mh-muted);
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

/* Timeline */
body.modern-history-article .tl {
  position: relative;
  margin-top: 22px;
  margin-bottom: 24px;
  padding: 0 0 0 30px;
  border-left: 2px solid var(--mh-line);
}

body.modern-history-article .tl-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 8px;
}

body.modern-history-article .tl-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -37px;
  width: 13px;
  height: 13px;
  background: var(--mh-accent);
  border: 3px solid var(--mh-surface);
  border-radius: 50%;
}

body.modern-history-article .tl-year {
  color: var(--mh-accent-strong);
  font-size: 0.9rem;
  font-weight: 850;
}

body.modern-history-article .tl-item h5 {
  margin: 3px 0 5px;
  color: var(--mh-text);
  font-size: 1.04rem;
}

body.modern-history-article .tl-item p {
  margin: 0;
}

/* Tables */
body.modern-history-article .table-wrap {
  margin: 18px 24px 24px;
  overflow-x: auto;
  border: 1px solid var(--mh-line);
  border-radius: 6px;
}

body.modern-history-article .vtable,
body.modern-history-article .rtable {
  width: calc(100% - 48px);
  margin-top: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  border-collapse: separate;
  border-spacing: 0;
}

body.modern-history-article table {
  color: var(--mh-text);
  background: var(--mh-surface);
}

body.modern-history-article .table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

body.modern-history-article th,
body.modern-history-article td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mh-line-soft);
}

body.modern-history-article th {
  color: var(--mh-text);
  background: var(--mh-accent-soft);
  font-size: 0.79rem;
  font-weight: 800;
}

body.modern-history-article tr:last-child td {
  border-bottom: 0;
}

body.modern-history-article td.name,
body.modern-history-article .cell-year {
  color: var(--mh-accent-strong);
  font-weight: 800;
}

body.modern-history-article .recall-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

body.modern-history-article .rtbtn {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--mh-text);
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 5px;
  cursor: pointer;
}

body.modern-history-article .blur-cell {
  cursor: pointer;
  filter: blur(5px);
  transition: filter 0.15s ease;
}

body.modern-history-article .blur-cell.show {
  filter: none;
}

/* Completion and page navigation */
body.modern-history-article .modern-complete-row {
  display: flex;
  margin: 20px 24px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mh-line-soft);
}

body.modern-history-article .modern-complete-btn {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--mh-text);
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

body.modern-history-article .modern-complete-btn.is-complete {
  color: #fff;
  background: var(--mh-accent);
  border-color: var(--mh-accent);
}

body.modern-history-article .page-nav {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px auto 0;
  padding: 12px;
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
}

body.modern-history-article .pnav-btn {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: var(--mh-text);
  text-decoration: none;
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
}

body.modern-history-article .pnav-btn.home {
  color: var(--mh-accent-strong);
}

body.modern-history-article .pnav-btn.next {
  justify-content: space-between;
}

body.modern-history-article .pnav-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.modern-history-article .pnav-label,
body.modern-history-article .pnav-title {
  display: block;
}

body.modern-history-article .pnav-label {
  color: var(--mh-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

body.modern-history-article .pnav-title {
  margin-top: 2px;
  font-size: 0.86rem;
  font-weight: 800;
}

/* Governor-General series: one shared continuous-reading layout */
body.modern-history-governor {
  --bg: var(--mh-bg) !important;
  --bg-base: var(--mh-bg) !important;
  --ink: var(--mh-text) !important;
  --ink-soft: var(--mh-muted) !important;
  --ink-faint: var(--mh-muted) !important;
  --text: var(--mh-text) !important;
  --text-muted: var(--mh-muted) !important;
  --text-faint: var(--mh-muted) !important;
  --panel: var(--mh-surface) !important;
  --panel-2: var(--mh-surface-soft) !important;
  --surface: var(--mh-surface) !important;
  --surface2: var(--mh-surface-soft) !important;
  --card-bg: var(--mh-surface) !important;
  --bg-hover: var(--mh-surface-soft) !important;
  --card: var(--mh-surface) !important;
  --cream: var(--mh-surface-soft) !important;
  --line: var(--mh-line) !important;
  --border: var(--mh-line) !important;
  --gold: var(--mh-accent) !important;
  --gold-light: var(--mh-accent-strong) !important;
  --gold-soft: var(--mh-accent-soft) !important;
  --teal: var(--mh-accent) !important;
  --blue: var(--mh-accent) !important;
  --sky: var(--mh-accent) !important;
  --cyan: var(--mh-accent) !important;
  --green: var(--mh-accent) !important;
  --mint: var(--mh-accent) !important;
  --purple: var(--mh-accent) !important;
  --violet: var(--mh-accent) !important;
  --pink: var(--mh-accent) !important;
  --rose: var(--mh-accent) !important;
  --crimson: var(--mh-accent) !important;
  --orange: var(--mh-accent) !important;
  --amber: var(--mh-accent) !important;
  --accent: var(--mh-accent) !important;
  --accent2: var(--mh-accent-strong) !important;
  --red: var(--mh-danger) !important;
  --shadow: var(--mh-shadow) !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.modern-history-governor,
body.modern-history-governor .modern-governor-section,
body.modern-history-governor .modern-governor-section * {
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

body.modern-history-governor[data-modern-history-page="john-shore"] #pyqs,
body.modern-history-governor[data-modern-history-page="wellesley"] #pyqs,
body.modern-history-governor[data-modern-history-page="wellesley"] #mcqs,
body.modern-history-governor[data-modern-history-page="wellesley"] #qref,
body.modern-history-governor[data-modern-history-page="barlow"] #mcq,
body.modern-history-governor[data-modern-history-page="minto-first"] #mcq,
body.modern-history-governor[data-modern-history-page="lord-hastings"] #s4,
body.modern-history-governor[data-modern-history-page="amherst"] #s4,
body.modern-history-governor #examQuizBtn {
  display: none !important;
}

body.modern-history-governor #progressBar,
body.modern-history-governor #pgbar,
body.modern-history-governor .memory-panel,
body.modern-history-governor .mem-panel,
body.modern-history-governor .mt-controls,
body.modern-history-governor .mt-hint,
body.modern-history-governor .recall-toolbar {
  display: none !important;
}

body.modern-history-governor .modern-governor-main {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}

body.modern-history-governor .modern-governor-hero {
  display: block !important;
}

body.modern-history-governor .modern-governor-section {
  display: block !important;
  width: auto !important;
  max-width: 1180px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto 22px !important;
  padding: 0 24px 24px !important;
  overflow: hidden;
  color: var(--mh-text) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: var(--mh-surface) !important;
  border: 1px solid var(--mh-line) !important;
  border-radius: var(--mh-radius) !important;
  box-shadow: var(--mh-shadow) !important;
  scroll-margin-top: calc(var(--mh-topbar-height) + 16px);
}

body.modern-history-governor .modern-governor-section-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  margin: 0 -24px 20px;
  padding: 20px 24px;
  background: var(--mh-surface-soft);
  border-bottom: 1px solid var(--mh-line);
}

body.modern-history-governor .modern-governor-section-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--mh-accent-strong);
  background: var(--mh-accent-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.78rem;
  font-weight: 800;
}

body.modern-history-governor .modern-governor-section-head h2 {
  margin: 0;
  color: var(--mh-text) !important;
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
  line-height: 1.35;
  letter-spacing: 0;
}

body.modern-history-governor .modern-source-heading,
body.modern-history-governor .modern-legacy-hero {
  display: none !important;
}

body.modern-history-governor .folio-eyebrow {
  display: none !important;
}

body.modern-history-governor .mask,
body.modern-history-governor .mask-box {
  color: inherit !important;
  background: transparent !important;
  border-color: transparent !important;
  filter: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.modern-history-governor .modern-governor-section > .card,
body.modern-history-governor .modern-governor-section .card,
body.modern-history-governor .modern-governor-section .box,
body.modern-history-governor .modern-governor-section .sum-card,
body.modern-history-governor .modern-governor-section .mini-card,
body.modern-history-governor .modern-governor-section .ov-card {
  margin: 0 !important;
  padding: 20px 0 !important;
  color: var(--mh-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--mh-line-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.modern-history-governor .modern-governor-section > .card:first-of-type,
body.modern-history-governor .modern-governor-section > .box:first-of-type {
  border-top: 0 !important;
}

body.modern-history-governor .card-title,
body.modern-history-governor .card-head,
body.modern-history-governor .box-head,
body.modern-history-governor .section-label,
body.modern-history-governor .sub-head,
body.modern-history-governor .phase-title,
body.modern-history-governor .tl-title,
body.modern-history-governor .sum-card-title,
body.modern-history-governor .mini-card-title {
  color: var(--mh-accent-strong) !important;
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

body.modern-history-governor .card-head,
body.modern-history-governor .tl-head {
  display: flex !important;
  align-items: baseline !important;
  gap: 9px !important;
}

body.modern-history-governor .card-icon,
body.modern-history-governor .nb-icon,
body.modern-history-governor .tl-dot,
body.modern-history-governor .icon,
body.modern-history-governor [class*="-icon"] {
  display: none !important;
}

body.modern-history-governor .modern-governor-section .card::before,
body.modern-history-governor .modern-governor-section .tl-node::before,
body.modern-history-governor .modern-governor-section .tl-item::before,
body.modern-history-governor .modern-governor-section .tl-body li::before,
body.modern-history-governor .modern-governor-section .deep-fact::before,
body.modern-history-governor .modern-governor-section .quote-box::before,
body.modern-history-governor .modern-governor-section .trap-box h4::before {
  display: none !important;
  content: none !important;
}

body.modern-history-governor .modern-governor-section h3,
body.modern-history-governor .modern-governor-section h4 {
  color: var(--mh-accent-strong) !important;
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

body.modern-history-governor .modern-governor-section p,
body.modern-history-governor .modern-governor-section li,
body.modern-history-governor .modern-governor-section td {
  color: var(--mh-text);
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  line-height: 1.72;
}

body.modern-history-governor .context-bar,
body.modern-history-governor .context-box,
body.modern-history-governor .ctx-bar,
body.modern-history-governor .deep-fact,
body.modern-history-governor .success-box,
body.modern-history-governor .trap-box,
body.modern-history-governor [class*="box-"] {
  margin: 14px 0 !important;
  padding: 14px 16px !important;
  color: var(--mh-text) !important;
  background: var(--mh-surface-soft) !important;
  border: 0 !important;
  border-left: 3px solid var(--mh-accent) !important;
  border-radius: 0 5px 5px 0 !important;
  box-shadow: none !important;
}

body.modern-history-governor .modern-governor-section .quote-box {
  margin: 18px 0 26px !important;
  padding: 18px 22px !important;
  color: var(--mh-text) !important;
  background: var(--mh-surface-soft) !important;
  border: 0 !important;
  border-left: 3px solid var(--mh-accent) !important;
  border-radius: 0 5px 5px 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

body.modern-history-governor .modern-governor-section .quote-box p,
body.modern-history-governor .modern-governor-section .quote-box blockquote {
  margin: 0 !important;
  color: var(--mh-text) !important;
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

body.modern-history-governor .gov-tag,
body.modern-history-governor .folio-eyebrow,
body.modern-history-governor .page-tag,
body.modern-history-governor .badge,
body.modern-history-governor .chip {
  color: var(--mh-accent-strong) !important;
  background: var(--mh-accent-soft) !important;
  border-color: var(--mh-line) !important;
  border-radius: 999px !important;
}

body.modern-history-governor .compare-head,
body.modern-history-governor .compare-head.bad,
body.modern-history-governor .compare-head.good,
body.modern-history-governor .box-head.red,
body.modern-history-governor .box-head.gold,
body.modern-history-governor .box-head.green,
body.modern-history-governor .box-head.orange {
  color: var(--mh-accent-strong) !important;
  background: transparent !important;
  border-color: var(--mh-line) !important;
}

body.modern-history-governor .two-col,
body.modern-history-governor .three-col,
body.modern-history-governor .grid2,
body.modern-history-governor .compare-grid,
body.modern-history-governor .summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 24px !important;
}

body.modern-history-governor .compare-cell,
body.modern-history-governor .compare-box,
body.modern-history-governor .evaluation-cell,
body.modern-history-governor .eval-cell,
body.modern-history-governor .pros,
body.modern-history-governor .cons {
  min-width: 0;
  margin: 0 !important;
  padding: 16px 18px !important;
  color: var(--mh-text) !important;
  background: var(--mh-surface-soft) !important;
  border: 1px solid var(--mh-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.modern-history-governor .compare-cell li,
body.modern-history-governor .compare-cell p,
body.modern-history-governor .compare-box li,
body.modern-history-governor .compare-box p,
body.modern-history-governor .evaluation-cell li,
body.modern-history-governor .evaluation-cell p,
body.modern-history-governor .eval-cell li,
body.modern-history-governor .eval-cell p {
  color: var(--mh-text) !important;
}

body.modern-history-governor .compare-cell ul,
body.modern-history-governor .compare-box ul,
body.modern-history-governor .evaluation-cell ul,
body.modern-history-governor .eval-cell ul {
  padding-left: 1.25rem !important;
  list-style: disc !important;
}

body.modern-history-governor .compare-cell li,
body.modern-history-governor .compare-box li,
body.modern-history-governor .evaluation-cell li,
body.modern-history-governor .eval-cell li {
  padding-left: 0 !important;
}

body.modern-history-governor .compare-cell li::before,
body.modern-history-governor .compare-box li::before,
body.modern-history-governor .evaluation-cell li::before,
body.modern-history-governor .eval-cell li::before {
  display: none !important;
  content: none !important;
}

body.modern-history-governor .timeline,
body.modern-history-governor .tl {
  position: relative;
  margin: 16px 0;
  padding: 0 0 0 24px !important;
  border-left: 2px solid var(--mh-line);
}

body.modern-history-governor .timeline::before,
body.modern-history-governor .tl::before {
  display: none !important;
}

body.modern-history-governor .tl-node,
body.modern-history-governor .tl-item {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--mh-line-soft);
}

body.modern-history-governor .tl-node:last-child,
body.modern-history-governor .tl-item:last-child {
  border-bottom: 0;
}

body.modern-history-governor .tl-body {
  margin: 5px 0 0 !important;
  padding: 0 !important;
  color: var(--mh-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.modern-history-governor .tl-year,
body.modern-history-governor .sum-v,
body.modern-history-governor .hstat-num,
body.modern-history-governor .hstat-val {
  color: var(--mh-accent-strong) !important;
}

body.modern-history-governor .tl-year {
  min-width: 0 !important;
  padding: 0 !important;
  color: var(--mh-accent-strong) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif !important;
  font-weight: 800 !important;
}

body.modern-history-governor .modern-governor-section-number {
  font-family: "JetBrains Mono", monospace !important;
}

body.modern-history-governor .hstat-num,
body.modern-history-governor .hstat-val,
body.modern-history-governor .hstat .num {
  font-family: "Poppins", "Hind", sans-serif !important;
}

body.modern-history-governor .table-wrap.exam-table-wrap {
  max-width: 100%;
  margin: 18px 0 24px !important;
  overflow: auto;
  border: 1px solid var(--mh-line) !important;
  border-radius: 6px !important;
  background: var(--mh-surface) !important;
  box-shadow: none !important;
  scrollbar-width: thin;
  scrollbar-color: var(--mh-line) transparent;
}

body.modern-history-governor .modern-governor-section .exam-table {
  width: 100% !important;
  min-width: 680px;
  color: var(--mh-text) !important;
  background: var(--mh-surface) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  font-size: 0.94rem;
  line-height: 1.65;
}

body.modern-history-governor .modern-governor-section .exam-table th,
body.modern-history-governor .modern-governor-section .exam-table td {
  padding: 13px 15px !important;
  border: 0 !important;
  border-right: 1px solid var(--mh-line-soft) !important;
  border-bottom: 1px solid var(--mh-line-soft) !important;
  text-align: left !important;
  vertical-align: top !important;
}

body.modern-history-governor .modern-governor-section .exam-table th:last-child,
body.modern-history-governor .modern-governor-section .exam-table td:last-child {
  border-right: 0 !important;
}

body.modern-history-governor .modern-governor-section .exam-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.modern-history-governor .modern-governor-section .exam-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--mh-text) !important;
  background: var(--mh-accent-soft) !important;
  font-size: 0.82rem;
  font-weight: 800;
}

body.modern-history-governor .modern-governor-section .exam-table tbody tr:nth-child(even) {
  background: var(--mh-surface-soft) !important;
}

body.modern-history-governor .modern-governor-section .exam-table td {
  background: transparent !important;
}

body.modern-history-governor .modern-governor-section .exam-table td:first-child {
  color: var(--mh-accent-strong) !important;
  font-weight: 800;
  background: color-mix(in srgb, var(--mh-accent-soft) 55%, transparent) !important;
}

@media (max-width: 720px) {
  body.modern-history-governor .table-wrap.exam-table-wrap {
    overflow: visible;
    margin: 16px 0 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.modern-history-governor .modern-governor-section .exam-table,
  body.modern-history-governor .modern-governor-section .exam-table tbody,
  body.modern-history-governor .modern-governor-section .exam-table tr,
  body.modern-history-governor .modern-governor-section .exam-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.modern-history-governor .modern-governor-section .exam-table {
    border: 0 !important;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  body.modern-history-governor .modern-governor-section .exam-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.modern-history-governor .modern-governor-section .exam-table tbody {
    display: grid;
    gap: 12px;
  }

  body.modern-history-governor .modern-governor-section .exam-table tbody tr {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--mh-line) !important;
    border-radius: 6px;
    background: var(--mh-surface) !important;
    box-shadow: none;
  }

  body.modern-history-governor .modern-governor-section .exam-table td {
    padding: 10px 12px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mh-line-soft) !important;
    background: transparent !important;
    color: var(--mh-text) !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body.modern-history-governor .modern-governor-section .exam-table td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 4px;
    color: var(--mh-muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.35;
  }

  body.modern-history-governor .modern-governor-section .exam-table td:first-child {
    width: 100% !important;
    min-width: 0 !important;
    padding: 11px 12px !important;
    color: var(--mh-accent-strong) !important;
    background: var(--mh-accent-soft) !important;
  }

  body.modern-history-governor .modern-governor-section .exam-table td:last-child {
    border-bottom: 0 !important;
  }

  body.modern-history-governor .modern-governor-section .exam-table td:empty {
    display: none;
  }

  body.modern-history-governor .modern-governor-section .exam-table td[colspan]::before {
    display: none;
  }

  body.modern-history-governor .modern-governor-section .exam-table td[colspan] {
    background: var(--mh-accent-soft) !important;
    color: var(--mh-accent-strong) !important;
    font-weight: 800;
  }
}

/* Bengal article normalization */
body.modern-history-bengal .content {
  width: auto;
}

body.modern-history-bengal .chapter-meta {
  margin-top: 4px;
  color: var(--mh-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

body.modern-history-bengal .lede {
  max-width: 82ch;
  margin: 0;
  padding: 20px 24px 14px;
  color: var(--mh-muted);
}

body.modern-history-bengal .modern-history-subsection {
  padding: 20px 24px;
  border-top: 1px solid var(--mh-line-soft);
}

body.modern-history-bengal .modern-history-subsection__heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

body.modern-history-bengal .modern-history-subsection__heading h3 {
  flex: 1;
  margin: 0;
  color: var(--mh-accent-strong);
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  line-height: 1.45;
}

body.modern-history-bengal .modern-history-subsection__period {
  color: var(--mh-muted);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

body.modern-history-bengal .modern-history-subsection h4 {
  margin: 18px 0 8px;
  color: var(--mh-text);
  font-size: 1.03rem;
}

body.modern-history-bengal .modern-history-subsection h4:first-of-type {
  margin-top: 0;
}

body.modern-history-bengal .modern-history-subsection ul,
body.modern-history-bengal .modern-history-subsection ol {
  margin: 0 0 14px;
  padding-left: 23px;
}

body.modern-history-bengal .modern-history-subsection li + li {
  margin-top: 7px;
}

body.modern-history-bengal .callout {
  margin: 15px 0;
  padding: 14px 16px;
  background: var(--mh-surface-soft);
  border-left: 3px solid var(--mh-accent);
  border-radius: 0 5px 5px 0;
}

body.modern-history-bengal .callout .tag {
  display: block;
  margin-bottom: 5px;
  color: var(--mh-accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
}

body.modern-history-bengal .callout p {
  margin: 0;
}

body.modern-history-bengal .callout footer {
  margin-top: 7px;
  color: var(--mh-muted);
  font-size: 0.77rem;
}

/* Bengal quiz remains a framed tool */
body.modern-history-bengal .quiz-section {
  padding-bottom: 26px;
}

body.modern-history-bengal .quiz-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 24px;
  padding: 14px;
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
}

body.modern-history-bengal .quiz-controls label {
  color: var(--mh-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body.modern-history-bengal .quiz-controls select {
  min-width: 220px;
  min-height: 42px;
  flex: 1;
  padding: 8px 11px;
  color: var(--mh-text);
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 5px;
}

body.modern-history-bengal .quiz-stats {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

body.modern-history-bengal .quiz-stats .stat {
  display: grid;
  min-width: 58px;
  text-align: center;
}

body.modern-history-bengal .quiz-stats .n {
  color: var(--mh-accent-strong);
  font-weight: 800;
}

body.modern-history-bengal .quiz-stats .l {
  color: var(--mh-muted);
  font-size: 0.68rem;
}

body.modern-history-bengal .quiz-progress-wrap,
body.modern-history-bengal #quizHost {
  margin-right: 24px;
  margin-left: 24px;
}

body.modern-history-bengal .quiz-progress-bar {
  height: 8px;
  overflow: hidden;
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 99px;
}

body.modern-history-bengal .quiz-progress-fill {
  height: 100%;
  background: var(--mh-accent);
}

body.modern-history-bengal .quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 14px;
  color: var(--mh-muted);
  font-size: 0.75rem;
}

body.modern-history-bengal .quiz-card,
body.modern-history-bengal .quiz-result {
  padding: clamp(18px, 3vw, 28px);
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 7px;
}

body.modern-history-bengal .q-topic {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  color: var(--mh-accent-strong);
  background: var(--mh-accent-soft);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 750;
}

body.modern-history-bengal .q-number {
  margin-bottom: 7px;
  color: var(--mh-muted);
  font-size: 0.75rem;
}

body.modern-history-bengal .q-text {
  margin-bottom: 18px;
  color: var(--mh-text);
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  font-weight: 750;
}

body.modern-history-bengal .q-options {
  display: grid;
  gap: 9px;
}

body.modern-history-bengal .q-options button,
body.modern-history-bengal .q-options .opt {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--mh-text);
  text-align: left;
  background: var(--mh-surface-soft);
  border: 1px solid var(--mh-line);
  border-radius: 6px;
}

body.modern-history-bengal .q-feedback {
  margin-top: 14px;
  padding: 13px;
  background: var(--mh-surface-soft);
  border-left: 3px solid var(--mh-accent);
}

body.modern-history-bengal .quiz-nav,
body.modern-history-bengal .btn {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--mh-text);
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 5px;
}

body.modern-history-bengal .quiz-nav.primary,
body.modern-history-bengal .btn.primary {
  color: #fff;
  background: var(--mh-accent);
  border-color: var(--mh-accent);
}

body.modern-history-bengal .quiz-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

body.modern-history-bengal .score-big {
  color: var(--mh-accent-strong);
  font-size: 2rem;
  font-weight: 850;
}

body.modern-history-bengal .score-sub,
body.modern-history-bengal .review-item {
  color: var(--mh-muted);
}

/* Footer always clears the sidebar */
body.modern-history-article .unified-site-footer.modern-history-footer {
  position: relative;
  z-index: 20;
  width: calc(100% - var(--mh-sidebar-width));
  margin: 0 0 0 var(--mh-sidebar-width);
  color: var(--mh-text);
  background: var(--mh-surface-soft);
  border-top: 1px solid var(--mh-line);
}

body.modern-history-article.modern-sidebar-collapsed .unified-site-footer.modern-history-footer {
  width: 100%;
  margin-left: 0;
}

body.modern-history-article .modern-history-footer .unified-site-footer-inner {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(145px, 1fr));
  gap: 30px;
  margin: 0 auto;
  padding: 38px clamp(22px, 4vw, 48px) 22px;
}

body.modern-history-article .modern-history-footer section {
  min-width: 0;
}

body.modern-history-article .modern-history-footer strong,
body.modern-history-article .modern-history-footer h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--mh-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

body.modern-history-article .modern-history-footer p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

body.modern-history-article .modern-history-footer nav {
  display: grid;
  gap: 5px;
}

body.modern-history-article .modern-history-footer a {
  color: var(--mh-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
}

body.modern-history-article .modern-history-footer a:hover,
body.modern-history-article .modern-history-footer a[aria-current="page"] {
  color: var(--mh-accent-strong);
}

body.modern-history-article .modern-history-footer .unified-site-footer-copy {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--mh-line);
  font-size: 0.7rem;
}

@media (min-width: 760px) {
  body.modern-history-article .card p,
  body.modern-history-bengal .lede,
  body.modern-history-bengal .modern-history-subsection > p,
  body.modern-history-bengal .callout p {
    text-align: justify;
    text-justify: inter-word;
  }
}

@media (max-width: 879px) {
  :root {
    --mh-topbar-height: var(--shared-topbar-height, 60px);
  }

  body.modern-history-article #sidebar {
    width: min(86vw, 330px);
    transform: translateX(-100%);
  }

  body.modern-history-article #sidebar.open,
  body.modern-history-article #sidebar.active,
  body.modern-history-article.sidebar-open #sidebar {
    transform: translateX(0);
  }

  body.modern-history-article #main,
  body.modern-history-article #main.full {
    margin-left: 0;
    padding: calc(var(--mh-topbar-height) + 18px) 14px 34px;
  }

  body.modern-history-article .hero {
    padding: 25px 20px;
  }

  body.modern-history-article .hero h1,
  body.modern-history-article .hero h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.45rem);
    line-height: 1.2;
  }

  body.modern-history-governor .modern-governor-section {
    padding: 0 18px 20px !important;
  }

  body.modern-history-governor .modern-governor-section-head {
    min-height: 68px;
    align-items: flex-start;
    margin-right: -18px;
    margin-left: -18px;
    padding: 17px 18px;
  }

  body.modern-history-governor .modern-governor-section-head h2 {
    font-size: clamp(1.25rem, 6vw, 1.62rem) !important;
  }

  body.modern-history-governor .two-col,
  body.modern-history-governor .three-col,
  body.modern-history-governor .grid2,
  body.modern-history-governor .compare-grid,
  body.modern-history-governor .summary-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body.modern-history-article .sec-head,
  body.modern-history-bengal .chapter-head {
    min-height: 68px;
    align-items: flex-start;
    padding: 17px 18px;
  }

  body.modern-history-article .sec-head h3,
  body.modern-history-bengal .chapter-head h2 {
    font-size: clamp(1.25rem, 6vw, 1.62rem);
  }

  body.modern-history-article section.note > .card,
  body.modern-history-article section.note > .grid2,
  body.modern-history-article section.note > .tl,
  body.modern-history-article section.note > .tl-phase,
  body.modern-history-article section.note > .recall-toolbar,
  body.modern-history-article section.note > .vtable,
  body.modern-history-article section.note > .rtable {
    margin-right: 18px;
    margin-left: 18px;
  }

  body.modern-history-article section.note .chip-row {
    margin-right: 18px;
    margin-left: 18px;
  }

  body.modern-history-article .grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.modern-history-article .grid2 > .card:nth-child(2) {
    border-top: 1px solid var(--mh-line-soft);
  }

  body.modern-history-article .table-wrap {
    margin-right: 18px;
    margin-left: 18px;
  }

  body.modern-history-article .vtable,
  body.modern-history-article .rtable {
    display: block;
    width: calc(100% - 36px);
    min-width: 0;
    overflow-x: auto;
    white-space: normal;
  }

  body.modern-history-article .modern-complete-row {
    margin-right: 18px;
    margin-left: 18px;
  }

  body.modern-history-article .page-nav {
    grid-template-columns: 1fr;
  }

  body.modern-history-article .pnav-spacer {
    display: none;
  }

  body.modern-history-bengal .lede,
  body.modern-history-bengal .modern-history-subsection {
    padding-right: 18px;
    padding-left: 18px;
  }

  body.modern-history-bengal .modern-history-subsection__heading {
    display: block;
  }

  body.modern-history-bengal .modern-history-subsection__period {
    display: block;
    margin-top: 3px;
  }

  body.modern-history-bengal .quiz-controls,
  body.modern-history-bengal .quiz-progress-wrap,
  body.modern-history-bengal #quizHost {
    margin-right: 18px;
    margin-left: 18px;
  }

  body.modern-history-article .unified-site-footer.modern-history-footer {
    width: 100%;
    margin-left: 0;
  }

  body.modern-history-article .modern-history-footer .unified-site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.modern-history-article .modern-history-footer .unified-site-footer-brand,
  body.modern-history-article .modern-history-footer .unified-site-footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body.modern-history-article {
    font-size: 16px;
  }

  body.modern-history-article .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.modern-history-article .sec-num,
  body.modern-history-bengal .chapter-seal {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  body.modern-history-bengal .quiz-controls select {
    width: 100%;
    min-width: 0;
  }

  body.modern-history-bengal .quiz-stats {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  body.modern-history-article .modern-history-footer .unified-site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.modern-history-article .modern-history-footer .unified-site-footer-brand,
  body.modern-history-article .modern-history-footer .unified-site-footer-copy {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.modern-history-article *,
  body.modern-history-article *::before,
  body.modern-history-article *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

body.modern-history-article .tooltip,
body.modern-history-article [data-info] {
  border-bottom: 0 !important;
  cursor: inherit !important;
}

body.modern-history-article .tooltip::before,
body.modern-history-article .tooltip::after,
body.modern-history-article [data-info]::before,
body.modern-history-article [data-info]::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

@media print {
  body.modern-history-article #sidebar,
  body.modern-history-article .shared-study-topbar,
  body.modern-history-article .modern-complete-row,
  body.modern-history-article .page-nav {
    display: none !important;
  }

  body.modern-history-article #main,
  body.modern-history-article .unified-site-footer.modern-history-footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.modern-history-article section.note,
  body.modern-history-bengal .chapter {
    break-inside: avoid;
    box-shadow: none;
  }
}
