/* Modern Indian History article content
 * Shared content skin for the first five Modern Indian History chapters.
 * Outer shell: governor-profile.css
 * Inner note structures: preserved from the supplied original HTML files.
 */

.gg-section > .card,
.gg-section .grid2 > .card,
.gg-section .acc-body > .card,
.gg-section .acc-body-inner > .card {
  margin: 14px 0;
  padding: 18px 20px;
  background: var(--gg-surface);
  border: 1px solid var(--gg-line);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(25, 55, 46, 0.05);
}

.gg-section {
  --gg-accent: var(--gg-green);
  --gg-accent-deep: var(--gg-green-dark);
  --gg-accent-soft: var(--gg-green-soft);
  --gg-copper: var(--gg-saffron);
  --gg-copper-soft: var(--gg-saffron-soft);
  --gold: var(--gg-copper);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --text-faint: var(--gg-faint);
}

.gg-section .grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.gg-section .grid2 > .card {
  height: 100%;
  margin: 0;
}

.gg-section .card h4,
.gg-section .acc-body h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--gg-accent-deep);
  font-family: "Poppins", "Hind", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.gg-section .card h4 svg,
.gg-section .card h4 i,
.gg-section .acc-body h4 svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--gg-copper);
  stroke-width: 2;
}

.gg-section .card p,
.gg-section .card ul,
.gg-section .card ol,
.gg-section .acc-body p,
.gg-section .acc-body ul,
.gg-section .acc-body ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.gg-section .card li,
.gg-section .acc-body li {
  margin: 7px 0;
}

.gg-section .hi {
  color: var(--gg-copper);
}

.gg-section .chip,
.gg-section .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-left: 7px;
  padding: 3px 8px;
  color: #9f3b2e;
  background: #fff0eb;
  border: 1px solid #f0b9aa;
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

[data-theme="dark"] .gg-section .chip,
[data-theme="dark"] .gg-section .tag {
  color: #ffc1b3;
  background: rgba(169, 63, 43, 0.18);
  border-color: rgba(255, 171, 151, 0.38);
}

.gg-section .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.gg-section .chip {
  margin: 0;
  color: var(--gg-accent-deep);
  background: var(--gg-accent-soft);
  border-color: var(--gg-line);
}

.gg-section .note,
.gg-section .callout {
  margin: 15px 0;
  padding: 16px 18px;
  color: var(--gg-muted);
  background: var(--gg-accent-soft);
  border: 1px solid var(--gg-line);
  border-left: 4px solid var(--gg-accent);
  border-radius: 12px;
}

.gg-section .decline-card,
.gg-section .callout.fact {
  background: color-mix(in srgb, var(--gg-copper-soft) 78%, var(--gg-surface));
  border-color: color-mix(in srgb, var(--gg-copper) 34%, var(--gg-line));
  border-left: 4px solid var(--gg-copper);
}

.gg-section .callout.quote {
  color: var(--gg-ink);
  background: color-mix(in srgb, #f5e6bc 64%, var(--gg-surface));
  border-left-color: #a97720;
}

.gg-section .callout .tag {
  margin: 0 0 6px;
}

.gg-section .callout p,
.gg-section .callout footer {
  margin: 5px 0 0;
}

.gg-section .callout footer {
  color: var(--gg-faint);
  font-size: 0.83rem;
  font-weight: 700;
}

.gg-section .tl {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 15px 0;
  padding-left: 32px;
}

.gg-section .tl::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 7px;
  width: 2px;
  content: "";
  background: var(--gg-line);
}

.gg-section .tl-item {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  background: var(--gg-surface);
  border: 1px solid var(--gg-line);
  border-radius: 13px;
}

.gg-section .tl-item::before {
  position: absolute;
  top: 18px;
  left: -33px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--gg-surface);
  border: 4px solid var(--gg-copper);
  border-radius: 50%;
}

[data-theme="dark"] .gg-section h2,
[data-theme="dark"] .gg-section h3,
[data-theme="dark"] .gg-section .tl-item h5 {
  color: #f5f8f6;
}

[data-theme="dark"] .gg-section .card h4,
[data-theme="dark"] .gg-section .acc-body h4 {
  color: #9be0ca;
}

.gg-section .tl-year,
.gg-section .tl-phase .cell-year {
  display: block;
  margin-bottom: 5px;
  color: var(--gg-copper);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.gg-section .tl-item h5 {
  margin: 0 0 4px;
  color: var(--gg-ink);
  font-size: 0.95rem;
}

.gg-section .tl-item p {
  margin: 0;
}

.gg-section .tl-phase {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.gg-section .tl-phase > div,
.gg-section .tl-phase > li {
  padding: 13px 15px;
  list-style: none;
  background: var(--gg-surface);
  border: 1px solid var(--gg-line);
  border-radius: 12px;
}

.gg-section .cell-event,
.gg-section .cell-fact {
  display: block;
}

.gg-section .cell-event {
  color: var(--gg-ink);
  font-weight: 800;
}

.gg-section .vtable,
.gg-section .rtable,
.gg-section .table-wrap table {
  width: 100%;
  margin: 14px 0;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--gg-surface);
  border: 1px solid var(--gg-line);
  border-radius: 13px;
}

.gg-section .table-scroll,
.gg-section .table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 14px 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 13px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gg-section .table-scroll:focus-visible,
.gg-section .table-wrap:focus-within {
  outline: 2px solid var(--gg-accent);
  outline-offset: 3px;
}

.gg-section .table-scroll > .vtable,
.gg-section .table-scroll > .rtable,
.gg-section .table-wrap > table {
  margin: 0;
}

.gg-section .vtable th,
.gg-section .vtable td,
.gg-section .rtable th,
.gg-section .rtable td,
.gg-section .table-wrap th,
.gg-section .table-wrap td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--gg-line-soft);
  border-bottom: 1px solid var(--gg-line-soft);
}

.gg-section .vtable thead th,
.gg-section .rtable thead th,
.gg-section .table-wrap thead th {
  color: #fff;
  background: var(--gg-accent-deep);
  font-family: "Poppins", "Hind", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.gg-section .vtable tr:last-child td,
.gg-section .vtable tr:last-child th,
.gg-section .rtable tr:last-child td,
.gg-section .rtable tr:last-child th,
.gg-section .table-wrap tr:last-child td,
.gg-section .table-wrap tr:last-child th {
  border-bottom: 0;
}

.gg-section .vtable th:last-child,
.gg-section .vtable td:last-child,
.gg-section .rtable th:last-child,
.gg-section .rtable td:last-child,
.gg-section .table-wrap th:last-child,
.gg-section .table-wrap td:last-child {
  border-right: 0;
}

.gg-section .name,
.gg-section .num {
  color: var(--gg-accent-deep);
  font-weight: 800;
}

.gg-section .blur-cell {
  filter: none !important;
  user-select: text !important;
}

.gg-section .recall-toolbar,
.gg-section .rtbtn,
.gg-section .col-toggle {
  display: none !important;
}

.gg-section .lede {
  margin: 0 0 15px;
  padding: 13px 15px;
  color: var(--gg-muted);
  background: var(--gg-accent-soft);
  border-left: 4px solid var(--gg-accent);
  border-radius: 0 11px 11px 0;
}

.gg-section .acc {
  margin: 13px 0;
  overflow: hidden;
  background: var(--gg-surface);
  border: 1px solid var(--gg-line);
  border-radius: 13px;
}

.gg-section .acc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  color: var(--gg-ink);
  text-align: left;
  background: color-mix(in srgb, var(--gg-accent-soft) 72%, var(--gg-surface));
  border: 0;
  cursor: pointer;
}

.gg-section .acc-header:hover,
.gg-section .acc-header:focus-visible {
  background: var(--gg-accent-soft);
}

.gg-section .acc-header .h3 {
  font-size: 0.98rem;
  font-weight: 800;
}

.gg-section .acc-header .range {
  color: var(--gg-copper);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.gg-section .acc-header .chev {
  display: none;
}

.gg-section .acc-panel {
  display: block;
}

.gg-section .acc-panel[hidden] {
  display: none;
}

.gg-section .acc-panel-inner,
.gg-section .acc-body {
  padding: 0;
}

.gg-section .acc-body {
  padding: 15px 17px;
  border-top: 1px solid var(--gg-line);
}

.gg-section .quote {
  font-family: "Tiro Devanagari Hindi", serif;
}

.gg-section .story,
.gg-section .fact {
  border-left-color: var(--gg-copper);
}

.gg-section .chapter-meta {
  color: var(--gg-faint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.gg-section .acc-body > :first-child,
.gg-section > .card:first-of-type {
  margin-top: 0;
}

.gg-section .acc-body > :last-child,
.gg-section > .card:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .gg-reader {
    padding-right: 8px;
    padding-left: 8px;
  }

  .gg-section {
    margin: 16px 0;
    padding: 16px 12px;
  }

  .gg-section__head {
    margin-bottom: 14px;
    padding-bottom: 13px;
  }

  .gg-section .grid2 {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .gg-section > .card:not(.decline-card):not(.callout),
  .gg-section .grid2 > .card:not(.decline-card):not(.callout),
  .gg-section .acc-body > .card:not(.decline-card):not(.callout),
  .gg-section .acc-body-inner > .card:not(.decline-card):not(.callout) {
    height: auto;
    margin: 0;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--gg-line-soft);
    border-radius: 0;
    box-shadow: none;
  }

  .gg-section > .card:not(.decline-card):not(.callout):first-of-type,
  .gg-section .grid2 > .card:not(.decline-card):not(.callout):first-child,
  .gg-section .acc-body > .card:not(.decline-card):not(.callout):first-child,
  .gg-section .acc-body-inner > .card:not(.decline-card):not(.callout):first-child {
    padding-top: 2px;
  }

  .gg-section > .card:not(.decline-card):not(.callout):last-of-type,
  .gg-section .grid2 > .card:not(.decline-card):not(.callout):last-child,
  .gg-section .acc-body > .card:not(.decline-card):not(.callout):last-child,
  .gg-section .acc-body-inner > .card:not(.decline-card):not(.callout):last-child {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .gg-section .decline-card,
  .gg-section .callout,
  .gg-section .note {
    margin: 12px 0;
    padding: 13px 14px;
  }

  .gg-section .tl {
    margin: 10px 0;
    padding-left: 0;
  }

  .gg-section .tl::before,
  .gg-section .tl-item::before {
    display: none;
  }

  .gg-section .tl-item {
    margin-bottom: 10px;
    padding: 12px 13px;
    border-radius: 11px;
    box-shadow: none;
  }

  .gg-section .acc {
    margin: 10px 0;
    border-radius: 11px;
  }

  .gg-section .acc-header {
    padding: 12px 13px;
  }

  .gg-section .acc-body {
    padding: 13px;
  }

  .gg-section .modern-exam-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 16px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .gg-section .modern-exam-table {
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.91rem;
    line-height: 1.58;
  }

  .gg-section .modern-exam-table thead,
  .gg-section .modern-exam-table .modern-table-header-row {
    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;
  }

  .gg-section .modern-exam-table .modern-table-header-row {
    display: none !important;
  }

  .gg-section .modern-exam-table tbody {
    display: grid;
    gap: 10px;
  }

  .gg-section .modern-exam-table tbody tr {
    margin: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--gg-surface-2) 58%, var(--gg-surface));
    border: 1px solid var(--gg-line);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(25, 55, 46, 0.045);
  }

  .gg-section .modern-exam-table tbody tr > td,
  .gg-section .modern-exam-table tbody tr > th {
    padding: 10px 12px 11px;
    color: var(--gg-muted);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--gg-line-soft);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .gg-section .modern-exam-table tbody tr > :first-child {
    padding: 11px 12px;
    color: var(--gg-accent-deep);
    background: color-mix(in srgb, var(--gg-accent-soft) 76%, var(--gg-surface));
    font-weight: 800;
  }

  .gg-section .modern-exam-table tbody tr > :last-child {
    border-bottom: 0;
  }

  .gg-section .modern-exam-table tbody tr > :empty {
    display: none;
  }

  .gg-section .modern-exam-table tbody tr > td::before,
  .gg-section .modern-exam-table tbody tr > th::before {
    display: block;
    margin: 0 0 4px;
    color: var(--gg-faint);
    content: attr(data-label);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.35;
  }

  .gg-section .modern-exam-table tbody tr > :first-child::before {
    color: color-mix(in srgb, var(--gg-accent-deep) 58%, var(--gg-faint));
  }

  .gg-section .modern-exam-table ul,
  .gg-section .modern-exam-table ol {
    margin: 4px 0 2px;
    padding-left: 1.05rem;
  }

  .gg-section .modern-exam-table li {
    margin: 4px 0;
  }
}

@media (max-width: 430px) {
  .gg-section {
    padding-right: 11px;
    padding-left: 11px;
  }

  .gg-section .modern-exam-table {
    font-size: 0.87rem;
  }

  .gg-section .modern-exam-table tbody tr > td,
  .gg-section .modern-exam-table tbody tr > th {
    padding: 9px 11px 10px;
  }
}

@media print {
  .gg-section .acc-panel {
    display: block !important;
  }

  .gg-section > .card,
  .gg-section .acc,
  .gg-section .tl-item {
    break-inside: avoid;
    box-shadow: none;
  }
}
