/* Itihaaskar Glossary — base styles.
   Deliberately generic/theme-agnostic defaults (not tied to any one
   theme's brand colours) so this plugin looks reasonable on any site.
   A theme can override any of this with its own more specific CSS. */

.ihg-wrap { max-width: 820px; margin: 0 auto; padding: 24px 20px 60px; }

.ihg-crumb { font-size: 0.85rem; color: #64748b; margin-bottom: 18px; }
.ihg-crumb a { color: #475569; text-decoration: none; }
.ihg-crumb a:hover { text-decoration: underline; }
.ihg-crumb span { margin: 0 6px; }

/* 2026-08-15 (owner-driven systematic consistency pass): the header
   band every other real page type on the site already has — see
   single-ih_glossary.php's own comment for the full reasoning. Same
   established light gradient as every other hero (not a new one
   invented for this), tinted by the term's own real era accent color
   via --accent, matching the same identity system the archive hub's
   subject tiles/sections already use. Deliberately thin/compact
   compared to a full marketing hero — a term page's job is the
   definition, not a sales pitch, so this just orients (breadcrumb)
   without competing for attention the way a full hero with an H1/lead
   would; the REAL heading stays where it already was, in the white
   content area right below, at its own natural size. */
.ihg-termhero {
  background: linear-gradient(150deg, #FAF7F0 0%, #F1E7D4 100%);
  border-bottom: 3px solid var(--accent, #C5A059);
}
.ihg-termhero-in { max-width: 820px; margin: 0 auto; padding: 16px 20px; }
.ihg-termhero .ihg-crumb { margin-bottom: 0; }
.ihg-termhero .ihg-crumb a { color: var(--accent, #800020); }

.ihg-term-era {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--accent, #7c2d12); background: color-mix(in srgb, var(--accent, #7c2d12) 12%, #fff);
  border-radius: 999px;
  padding: 4px 12px; margin-bottom: 10px;
}
.ihg-term-title { font-size: 1.9rem; line-height: 1.2; margin: 0 0 18px; }
.ihg-term-hindi { font-weight: 400; color: #475569; font-size: 1.2rem; }
.ihg-term-pyq {
  margin: 24px 0; padding: 16px 18px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 12px;
}
.ihg-term-pyq strong { display: block; margin-bottom: 6px; }
.ihg-term-back { margin-top: 28px; }
.ihg-term-back a { color: #7c2d12; font-weight: 600; text-decoration: none; }
.ihg-term-back a:hover { text-decoration: underline; }

/* 2026-07-29: two self-contained language sections (owner request) —
   each with its own heading, definition, and background together. */
.ihg-term-lang { margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid #e2e8f0; }
.ihg-term-lang:last-of-type { border-bottom: none; padding-bottom: 0; }
.ihg-term-lang-head {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: #7c2d12; margin: 0 0 14px;
}
.ihg-term-lang--hi {
  padding: 20px 22px; border-radius: 14px; background: #fef9f0;
  border: 1px solid #f3e4c8; border-bottom: 1px solid #f3e4c8;
}
.ihg-term-def { font-size: 1.05rem; line-height: 1.75; color: #1f2937; }
.ihg-term-def-hi p { font-size: 1.08rem; line-height: 1.9; color: #292524; margin: 0; }

/* 2026-08-05 (owner correction: "just definition and one historical
   background context, not the Notes structure" — real, structural
   fix, not more prose). Period and Exam importance were already saved
   on every term (seed.php) but never once displayed anywhere on this
   page before now — this strip surfaces them, plus the background
   text now renders as two distinctly HEADED subsections ("Understand
   it like this" / "Why it matters for your exam") instead of one
   generic "Historical background" blob, which is what actually makes
   this read as structured notes rather than just longer prose. */
.ihg-term-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 16px; }
.ihg-term-fact {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; border-radius: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 0.92rem; color: #1f2937;
}
.ihg-term-fact strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: #64748b; }
.ihg-term-lang--hi .ihg-term-fact { background: #fffaf0; border-color: #f3e4c8; }
.ihg-term-fact--imp-high { border-color: #fca5a5; background: #fef2f2; }
.ihg-term-fact--imp-high strong { color: #b91c1c; }
.ihg-term-fact--imp-medium { border-color: #fde68a; background: #fffbeb; }
.ihg-term-fact--imp-medium strong { color: #92400e; }
.ihg-term-bg--exam {
  margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  background: #fef3e2; border-left: 3px solid #7c2d12;
}
.ihg-term-lang--hi .ihg-term-bg--exam { background: #fff3e0; border-left-color: #92400e; }
.ihg-term-bg--exam .ihg-term-bg-head { margin-top: 0; }

.ihg-related { margin: 24px 0; }
.ihg-related-head { font-size: 0.95rem; color: #64748b; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.ihg-related p { margin: 0; line-height: 1.8; }
.ihg-related a { color: #7c2d12; text-decoration: none; font-weight: 600; }
.ihg-related a:hover { text-decoration: underline; }
.ihg-related-plain { color: #64748b; }

/* 2026-08-25 (owner: "these Q&A must not be generic fillers" — real,
   term-specific exam-context Q&A, present only on terms that actually
   have one written — see cpt.php/schema.php for the full reasoning).
   Deliberately distinct from .ihg-term-def (plain definition text) —
   framed as a real insight box, not another definition paragraph. */
.ihg-examqa {
  background: #FBF3E7; border-left: 3px solid #D4AF37;
  border-radius: 8px; padding: 18px 20px; margin: 24px 0;
}
.ihg-examqa-h { font-size: 1.02rem; color: #800020; margin: 0 0 8px; line-height: 1.4; }
.ihg-examqa p { margin: 0; font-size: 0.96rem; line-height: 1.65; color: #292524; }

.ihg-term-bg { margin: 18px 0 0; }
.ihg-term-bg-head { font-size: 1.05rem; margin: 0 0 8px; color: #1f2937; }
.ihg-term-lang--hi .ihg-term-bg-head { color: #78350f; }
.ihg-term-bg p { font-size: 1.0rem; line-height: 1.8; color: #374151; margin: 0; }
.ihg-term-lang--hi .ihg-term-bg p { font-size: 1.05rem; line-height: 1.9; color: #292524; }

.ihg-index-head { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.ihg-index-head h1 { font-size: 2.1rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.ihg-index-head p { color: #64748b; font-size: 1.02rem; }

/* 2026-08-14 (owner: "individual subject tiles are also styled bad" —
   real, valid feedback: the old tiles reused .ih-res-item, a thin-
   left-border-strip component built for the Free Resources page's
   plain link list, not a rich subject identity card). Genuinely
   redesigned: a real tinted surface in the subject's own accent color
   (using this codebase's own established color-mix-with-fallback
   pattern for browsers that don't support it), a large icon in a
   solid accent badge, and real card presence — shadow, hover lift —
   instead of a flat strip. */
.ihg-subjecttile-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 28px 0 40px;
}
@media (max-width: 900px) { .ihg-subjecttile-grid { grid-template-columns: repeat(2, 1fr); } }
/* 2026-08-14 (owner report, screenshot-implied: "subject cards look
   disproportionately big, almost empty" on mobile). Real cause: below
   480px the grid dropped to a single column, stretching a card
   DESIGNED for a narrower 2-up slot (vertical stack: icon, then name,
   then count, then a link, each on its own line) to the full screen
   width — the content never grew to fill that width, just sat there
   surrounded by empty space. Real fix, not just smaller padding: the
   card itself becomes a compact HORIZONTAL row at this width (icon
   left, text stacked tight beside it, "Explore" folded into the name
   line) — information-dense instead of stretched-and-empty, and stays
   2-per-row instead of collapsing to 1 (5 subjects in 2 columns reads
   fine: 2/2/1, no card is ever forced to be lonely-and-huge on its
   own full-width row). */
@media (max-width: 480px) {
  .ihg-subjecttile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ihg-subjecttile { flex-direction: row; align-items: center; gap: 10px; padding: 12px 12px; }
  .ihg-subjecttile-ic { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 0; flex-shrink: 0; }
  .ihg-subjecttile-ic svg { width: 18px; height: 18px; }
  .ihg-subjecttile-text { display: flex; flex-direction: column; min-width: 0; }
  .ihg-subjecttile-name { font-size: 0.86rem; line-height: 1.2; }
  .ihg-subjecttile-count { font-size: 0.72rem; }
  .ihg-subjecttile-go { display: none; } /* the whole card is the tap target already; a redundant "Explore" line is exactly the extra empty-feeling clutter being fixed here */
}
.ihg-subjecttile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 22px 20px; border-radius: 16px;
  background: #fdfaf6; background: color-mix(in srgb, var(--accent) 7%, #fff);
  border: 1.5px solid #e2e8f0; border: 1.5px solid color-mix(in srgb, var(--accent) 28%, transparent);
  text-decoration: none; color: #1f2937;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ihg-subjecttile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.1);
  border-color: var(--accent);
}
.ihg-subjecttile-ic {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 4px;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ihg-subjecttile-ic svg { width: 24px; height: 24px; }
.ihg-subjecttile-text { display: contents; } /* transparent on desktop/tablet — name and count lay out exactly as before; only becomes a real stacked column at the mobile row-layout breakpoint below */
.ihg-subjecttile-name { font-size: 1.08rem; font-weight: 800; color: #1a1310; }
.ihg-subjecttile-count { font-size: 0.82rem; color: #64748b; }
.ihg-subjecttile-go {
  margin-top: 8px; font-size: 0.86rem; font-weight: 700; color: var(--accent);
}
.ihg-subjecttile:hover .ihg-subjecttile-go { text-decoration: underline; }

/* 2026-08-14 (owner: "list the terms subject wise, style them
   beautiful in subject wise themes" — replaces the old flat A-Z-only
   list). Each subject's block gets its own themed header (icon badge
   + accent border, same colors as the tiles above and the 5 Sectional
   Silo pages — one consistent identity, not a new palette) and its
   own term list beneath it. Terms stay alphabetical WITHIN each
   subject — real, useful ordering kept, just organised by subject
   first. */
.ihg-bysubject { display: flex; flex-direction: column; gap: 12px; }
.ihg-subjectsec {
  border-radius: 16px; padding: 24px 26px 22px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid var(--accent);
}
.ihg-subjectsec-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid #f1f5f9;
}
.ihg-subjectsec-ic {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
}
.ihg-subjectsec-ic svg { width: 20px; height: 20px; }
.ihg-subjectsec-title { font-size: 1.25rem; margin: 0; color: var(--accent); flex: 1 1 auto; }
.ihg-subjectsec-count {
  flex: 0 0 auto; font-size: 0.78rem; font-weight: 700; color: var(--accent);
  background: #fdfaf6; background: color-mix(in srgb, var(--accent) 12%, #fff);
  padding: 4px 12px; border-radius: 999px;
}
.ihg-index-list--grid a:hover { color: var(--accent, #7c2d12); }

/* 2026-08-14 (owner: "write all 05 subjects in 05 tabs instead of one
   long scrolling"). Radio-driven tabs, same JS-free mechanism as the
   Mock Test hub's own tabs — the checked radio (positioned as a
   sibling before both the tabbar and the panels) drives visibility via
   the ~ general-sibling combinator; only the matching panel shows. */
.ihg-subject-tab-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.ihg-subject-tabbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ihg-subject-tabbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; color: #475569;
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ihg-subject-tabbtn:hover { border-color: var(--accent); color: var(--accent); }
.ihg-subject-tabbtn-ic {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.ihg-subject-tabbtn-ic svg { width: 16px; height: 16px; }
.ihg-subjectsec { display: none; } /* every panel hidden by default; the matching :checked rule below reveals exactly one */

/* One explicit :checked -> panel + matching tab-button rule per real
   subject key (ITIHAASKAR_GLOSS_SECTIONS), rather than a generic
   nth-child pattern — explicit is more maintainable if a 6th section
   is ever added, and avoids any fragile ordering assumption.
   2026-08-15 (owner report, real confirmed bug: "world history has a
   tile and page but terms aren't populating on subject-wise tabs,
   just the title is there"). Exactly what that comment above warned
   about actually happened: World History WAS added as a genuine 6th
   section (cpt.php's ITIHAASKAR_GLOSS_SECTIONS) after this CSS was
   written, but this hardcoded 5-key list was never updated to match —
   the tab BUTTON still rendered correctly (that part of the template
   loops over the real section list dynamically) and got :checked
   correctly on click, but with no matching display:block rule here,
   .ihg-subjectsec's own default (display:none) just... stayed hidden.
   Not a reseed/content issue at all — a real, confirmed CSS gap. */
#ihg-tab-ancient:checked ~ .ihg-subject-tabbar label[for="ihg-tab-ancient"],
#ihg-tab-medieval:checked ~ .ihg-subject-tabbar label[for="ihg-tab-medieval"],
#ihg-tab-modern:checked ~ .ihg-subject-tabbar label[for="ihg-tab-modern"],
#ihg-tab-art_culture:checked ~ .ihg-subject-tabbar label[for="ihg-tab-art_culture"],
#ihg-tab-historio:checked ~ .ihg-subject-tabbar label[for="ihg-tab-historio"],
#ihg-tab-world_history:checked ~ .ihg-subject-tabbar label[for="ihg-tab-world_history"] {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
#ihg-tab-ancient:checked ~ .ihg-subjectsec--ancient,
#ihg-tab-medieval:checked ~ .ihg-subjectsec--medieval,
#ihg-tab-modern:checked ~ .ihg-subjectsec--modern,
#ihg-tab-art_culture:checked ~ .ihg-subjectsec--art_culture,
#ihg-tab-historio:checked ~ .ihg-subjectsec--historio,
#ihg-tab-world_history:checked ~ .ihg-subjectsec--world_history { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ihg-subjectsec { animation: ihgFadeIn .2s ease; }
}
@keyframes ihgFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ihg-index-group { margin-bottom: 28px; }
.ihg-index-letter {
  font-size: 1.2rem; border-bottom: 2px solid #7c2d12; display: inline-block;
  padding-bottom: 4px; margin-bottom: 12px; color: #7c2d12;
}
.ihg-index-list { list-style: none; margin: 0; padding: 0; columns: 3; gap: 20px; }
.ihg-index-list li { break-inside: avoid; margin-bottom: 8px; }
.ihg-index-list a { color: #1f2937; text-decoration: none; transition: color 0.15s; }
.ihg-index-list a:hover { color: #7c2d12; text-decoration: underline; }
@media (max-width: 780px) {
  .ihg-index-list { columns: 2; }
}
@media (max-width: 560px) {
  .ihg-index-list { columns: 1; }
}

/* 2026-07-29: sectional silo pages + hub section-grid nav */
.ihg-section-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 24px 0 36px;
}
/* 2026-07-29 (owner request): explicit 4-column desktop / 2-column
   mobile grid for the 5 subject cards (Ancient/Medieval/Modern/Art &
   Culture/Historiography), replacing the previous auto-fit layout —
   4 cards fill the first row, the 5th wraps to its own row on desktop,
   and 2 columns keep cards a comfortable tap-target size on mobile. */
@media (max-width: 700px) {
  .ihg-section-grid { grid-template-columns: repeat(2, 1fr); }
}
.ihg-section-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  text-decoration: none; color: #1f2937;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ihg-section-card:hover {
  border-color: #7c2d12; background: #fef3e2;
  box-shadow: 0 6px 16px rgba(124,45,18,0.1); transform: translateY(-1px);
}
.ihg-section-card strong { font-size: 1.08rem; }
.ihg-section-card span { font-size: 0.85rem; color: #64748b; }
.ihg-atoz-head { margin: 40px 0 18px; font-size: 1.35rem; border-top: 1px solid #e2e8f0; padding-top: 28px; }

.ihg-wrap--section { max-width: 1080px; }
.ihg-table-wrap {
  overflow-x: auto; margin: 24px 0; border: 1px solid #e2e8f0;
  border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.ihg-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.ihg-table th, .ihg-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.ihg-table th { background: #f8fafc; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; color: #64748b; }
.ihg-table tbody tr:last-child td { border-bottom: none; }
.ihg-table tbody tr:hover { background: #fefaf5; }
.ihg-table tr:target { background: #fef3e2; }
.ihg-table-hindi { color: #64748b; font-size: 0.88rem; }
/* 2026-07-29 (owner report: mobile tables look "compressed") — a plain
   horizontal-scroll table squeezes 3 text-heavy columns (Term,
   Definition, Period) into a cramped, hard-to-read strip on a phone
   screen. Below 700px the table restructures into stacked cards
   instead: each row becomes its own block, each cell its own labelled
   line (label comes from the cell's own data-label attribute, set in
   section-table.php — no JS needed, pure CSS). Far more readable on a
   narrow screen than scrolling a shrunk table sideways. */
@media (max-width: 700px) {
  .ihg-table-wrap { overflow-x: visible; border: none; box-shadow: none; }
  .ihg-table thead { display: none; }
  .ihg-table, .ihg-table tbody, .ihg-table tr, .ihg-table td { display: block; width: 100%; }
  .ihg-table tr {
    margin-bottom: 14px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  }
  .ihg-table tbody tr:hover { background: #fff; }
  .ihg-table td { padding: 6px 0; border-bottom: none; }
  .ihg-table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em; color: #92400e;
    margin-bottom: 2px;
  }
  .ihg-table td[data-label="Period / Context"]:empty { display: none; }
}
.ihg-section-back { margin-top: 20px; }
.ihg-section-back a { color: #7c2d12; font-weight: 600; text-decoration: none; }
.ihg-section-back a:hover { text-decoration: underline; }

/* 2026-07-29: EN/HI display toggle for the sectional table */
.ihg-table-langtoggle { display: inline-flex; gap: 6px; margin: 4px 0 18px; }
.ihg-table-langbtn {
  font: inherit; cursor: pointer;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ihg-table-langbtn:hover { border-color: #7c2d12; color: #7c2d12; }
.ihg-table-langbtn.is-active { background: #7c2d12; border-color: #7c2d12; color: #fff; }
.ihg-lang-hi { direction: ltr; }

/* 2026-08-06 (owner-approved audit finding: real search box for the
   glossary index, previously deferred). Sits above the tabs, its own
   distinct control rather than styled to look like part of them, since
   it's a genuinely different interaction (typing vs. clicking). */
.ihg-search-wrap { margin: 4px 0 18px; }
.ihg-search-input {
  width: 100%; max-width: 420px;
  padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid #e2e8f0; font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ihg-search-input:focus {
  outline: none; border-color: #7c2d12;
  box-shadow: 0 0 0 3px rgba(124,45,18,0.12);
}

/* 2026-08-14 (owner: "remove filtering" — the tab-toggle buttons are
   gone from the template (archive-ih_glossary.php), replaced by
   subject-wise grouped sections with their own themed headers instead.
   This CSS is genuinely dead now — nothing renders .ihg-tabs/.ihg-tab
   anywhere — removed rather than left as unused bytes, matching this
   project's own established "don't leave dead CSS behind" discipline.
   If tab-style filtering is ever wanted again elsewhere, don't
   resurrect this block blind — the grouped-by-subject layout it used
   to filter no longer exists in the same shape. */
.ihg-atoz-empty { color: #64748b; padding: 24px 0; }

/* 2026-07-29: Hindi hub — small secondary English label next to the
   primary Hindi term name in the A-Z list.
   2026-08-13 (owner report: "deep dive sections has so bad contrast
   issues that texts are not readable" — real, measured failure, not
   a style opinion: computed the actual WCAG contrast ratio before
   changing anything, matching this codebase's own established
   discipline for exactly this class of bug (see the mock-test button
   contrast fix in style.css for the precedent). #94a3b8 on white
   measured 2.56:1 — well below the 4.5:1 minimum for readable text,
   genuinely the worst offender found across every deep-dive/glossary
   text/background pair checked. Darkened to #64748b, which measures
   4.76:1 (passes) — not a new colour, the exact same muted gray
   already used and already verified-passing elsewhere in this same
   file (.ihg-crumb, .ihg-section-card span, .ihg-atoz-empty), so this
   stays visually "secondary/muted" relative to the primary Hindi
   term, just no longer illegible. */
.ihg-index-en { color: #64748b; font-size: 0.86rem; }

/* 2026-07-30: Deep-Dive Guides (single article) — only the handful of
   classes genuinely new to this feature; the hub/section pages reuse
   .ihg-wrap/.ihg-section-grid/.ihg-section-card/.ihg-crumb as-is. */
.ihgd-kicker {
  color: #7c2d12; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 6px;
}
.ihgd-body {
  max-width: var(--ih-wide, 1100px); margin: 24px auto 0;
  font-size: 1.08rem; line-height: 1.8; color: #2B2B2B;
}
.ihgd-body p { margin: 0 0 1.3em; }
.ihgd-body h2, .ihgd-body h3 { color: #1E3A5F; line-height: 1.3; margin: 1.7em 0 0.5em; }
.ihgd-body blockquote {
  margin: 1.5em 0; padding: 14px 20px; background: #F7F3EC;
  border-left: 4px solid #C5A059; border-radius: 0 8px 8px 0;
  font-style: normal; color: #3d3d3d; font-size: 1.02rem;
}

/* 2026-07-30 (owner: tables "congested, bad looking" — the raw <table>
   markup in article content had zero custom styling before this).
   Targeted addition, not a redesign: real borders, a coloured header
   row matching the site's terracotta accent, comfortable padding,
   zebra striping for scanability, rounded container to match the
   card-like treatment used elsewhere on the site. */
.ihgd-body table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 1.6em 0; font-size: 0.98rem;
  border: 1px solid #E7DFCF; border-radius: 10px; overflow: hidden;
}
.ihgd-body th, .ihgd-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #EFE7D8; }
.ihgd-body thead th { background: #6B1E3B; color: #fff; font-weight: 700; }
.ihgd-body tbody tr:nth-child(even) { background: #FBF7EF; }
.ihgd-body tbody tr:last-child td { border-bottom: none; }

/* The subtle, in-flow note-promotion aside — [itihaaskar_deepdive_promo]
   — styled to read as a related aside, not a banner ad, since "subtle"
   was the explicit ask. */
.ihgd-promo {
  max-width: var(--ih-wide, 1100px); margin: 1.8em auto; padding: 16px 18px;
  background: #FBF3EC; border-left: 3px solid #C5A059; border-radius: 8px;
  font-size: 0.98rem; color: #3d3d3d;
}
.ihgd-promo p { margin: 0; }
.ihgd-promo a { color: #7c2d12; font-weight: 700; text-decoration: none; }
.ihgd-promo a:hover { text-decoration: underline; }

/* The Final CTA — deliberately NOT subtle, appended by the template to
   every guide so it can never be skipped by accident. */
.ihgd-finalcta {
  max-width: var(--ih-wide, 1100px); margin: 2.4em auto 0; padding: 32px 30px;
  background: #6B1E3B; border-radius: 12px; color: #fff; text-align: center;
}
.ihgd-finalcta h2 { color: #fff; margin: 0 0 10px; font-size: 1.3rem; }
.ihgd-finalcta p { margin: 0 auto 20px; max-width: 640px; color: #F1E4D8; line-height: 1.6; }
/* 2026-07-30 (owner: CTA "looks ugly") — real bug, not a style
   preference: .ih-btn's default background (--clr-terracotta, a dark
   maroon) sits almost directly on top of .ihgd-finalcta's own dark
   maroon (#6B1E3B) background — the button was nearly blending into
   the box it's supposed to stand out on. Overridden here with the
   site's gold accent on a light background specifically for the
   contrast a button on a dark box needs — same colour language as
   .ihgd-promo's own gold border, so it still reads as "this site",
   not an unrelated colour choice. */
.ihgd-finalcta-btn {
  display: inline-block; background: #E8C07D; color: #4a1428;
  padding: 13px 28px; font-size: 1.02rem; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.ihgd-finalcta-btn:hover, .ihgd-finalcta-btn:focus-visible { background: #fff; color: #4a1428; }

/* ============================================================================
   AUTO-LINK HOVER TOOLTIP (.ihg-tip) — 2026-08-13 (owner report: "tooltip
   is very slow and looks generic"). Real cause: the only tooltip that
   existed before this was the browser's own native title="..." attribute
   (autolink.php), which is slow by design (a fixed browser-enforced hover
   delay, not something CSS could ever fix) and completely unstylable
   (native OS chrome). This is the real, custom-built replacement — one
   shared element (glossary.js creates and repositions a single instance,
   not one per link), same on-brand colours as the rest of this file
   (#C5A059 gold accent, the cream/parchment card background already used
   for .ihgd-promo above), and a genuinely fast ~120ms fade — no artificial
   delay at all beyond the JS's own small grace period for moving the
   mouse from the link onto the tooltip itself.
   ========================================================================== */
.ihg-tip {
  position: absolute; top: 0; left: 0; z-index: 9999;
  max-width: 300px; padding: 12px 16px;
  background: #FFFDF8; border: 1.5px solid #C5A059; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(31,20,10,0.18);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  pointer-events: none; /* re-enabled only while visible, see .is-visible below — never intercepts clicks on whatever's underneath while hidden */
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.ihg-tip.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.ihg-tip-term {
  display: block; font-size: 0.88rem; font-weight: 800; color: #800020;
  margin-bottom: 4px; font-family: 'Gotu', Georgia, 'Times New Roman', serif; font-weight: 400;
}
.ihg-tip-def { display: block; font-size: 0.82rem; line-height: 1.55; color: #4B3A2A; }
/* Small triangular pointer, positioned dynamically via a CSS custom
   property glossary.js sets per-hover (--ihg-tip-arrow-x) so it always
   points at the actual hovered word, even when the tooltip card itself
   has been shifted sideways to stay fully on-screen near a viewport
   edge. Two pseudo-elements (border + fill) so the pointer gets the
   same gold outline as the card, not just a flat fill. */
.ihg-tip::before, .ihg-tip::after {
  content: ""; position: absolute; left: var(--ihg-tip-arrow-x, 50%);
  transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
}
.ihg-tip::before { bottom: -8px; border-top: 8px solid #C5A059; }
.ihg-tip::after  { bottom: -6px; border-top: 7px solid #FFFDF8; }
/* Flipped below the word instead (near the top of the viewport, where
   there's no room to show it above) — pointer flips to the top edge
   and points upward instead. */
.ihg-tip.ihg-tip--below::before { top: -8px; bottom: auto; border-top: none; border-bottom: 8px solid #C5A059; }
.ihg-tip.ihg-tip--below::after  { top: -6px; bottom: auto; border-top: none; border-bottom: 7px solid #FFFDF8; }
@media (prefers-reduced-motion: reduce) {
  .ihg-tip { transition: opacity 0.12s ease; transform: none; }
}

/* ============================================================================
   2026-09-29 — DEEP-DIVE ARTICLE TYPOGRAPHY (owner: "deep dive sections visually
   look off, fonts look off, doesn't feel good to look at"). Found by rendering a
   real article and reading the computed styles, not by guessing:
     - every heading was Gotu at weight 700, but Gotu ships only one weight (400),
       so the browser faked the bold, which smears the letterforms;
     - three unrelated heading colours on one page: black (h1), the Modern-era navy
       #1E3A5F (h2/h3, for EVERY article), and charcoal (h4);
     - .ihgd-kicker was silently overridden by ".ihg-index-head p" (higher
       specificity): grey 16px instead of the intended terracotta 13.6px;
     - the header was centred while the body and contents list are left-aligned;
     - h4 was the same size as the body text, so it read as no heading at all.
   One rule now: headings are ink, Gotu at its real weight; the era colour (set per
   section by the template as --accent) appears once, on the kicker and a thin rule.
   ========================================================================== */
.ihgd-article .ihg-index-head { text-align: left !important; border-bottom: 1px solid #E7DFCF; padding-bottom: 18px; margin-bottom: 8px; }
.ihgd-article .ihg-index-head .ihgd-kicker {
  color: var(--accent, #7c2d12) !important; font-size: 0.8rem !important; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 10px;
}
.ihgd-article h1 {
  font-family: 'Gotu', Georgia, 'Times New Roman', serif !important; font-weight: 400 !important;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem) !important; line-height: 1.25 !important; color: #0D1B2A !important;
  margin: 0 0 6px !important; text-align: left !important; letter-spacing: 0;
}
.ihgd-article .ihgd-body { color: #26211D; font-size: 1.06rem; line-height: 1.8; }
.ihgd-article .ihgd-body h2, .ihgd-article .ihgd-body h3, .ihgd-article .ihgd-body h4 {
  font-family: 'Gotu', Georgia, 'Times New Roman', serif !important; font-weight: 400 !important; color: #0D1B2A !important; text-align: left;
}
.ihgd-article .ihgd-body h2 {
  font-size: 1.6rem !important; line-height: 1.3 !important; margin: 2em 0 0.6em !important;
  padding-bottom: 0.3em; border-bottom: 2px solid var(--accent, #800020);
}
.ihgd-article .ihgd-body h3 { font-size: 1.28rem !important; line-height: 1.35 !important; margin: 1.7em 0 0.45em !important; }
.ihgd-article .ihgd-body h4 {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important; font-weight: 600 !important; font-size: 0.86rem !important;
  letter-spacing: 0.05em; text-transform: uppercase; color: #6E5E52 !important; margin: 1.6em 0 0.4em !important;
}
.ihgd-article .ihgd-body strong, .ihgd-article .ihgd-body b { font-weight: 600; color: #0D1B2A; }
.ihgd-article .ihgd-body ul, .ihgd-article .ihgd-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.ihgd-article .ihgd-body li { margin: 0 0 0.4em; }
.ihgd-article .ihgd-body a:not(.ihg-autolink):not(.ih-btn):not([href^="#"]) { color: #800020; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ihgd-article .ihgd-body .ihg-autolink { color: inherit; text-decoration: underline dotted #B08A4A; text-underline-offset: 3px; }
.ihgd-article .ihgd-body thead th { background: #6B1022; }
.ihgd-article .ihgd-body th, .ihgd-article .ihgd-body td { vertical-align: top; line-height: 1.55; } /* comparison tables: every cell starts at the same height */
.ihgd-article .ihgd-finalcta { background: #6B1022; }
.ihgd-article .ihgd-finalcta h2 { font-family: 'Gotu', Georgia, serif !important; font-weight: 400 !important; font-size: 1.45rem !important; color: #fff !important; text-align: center; border: 0; }
.ihgd-article .ihgd-finalcta p { color: #F1E4D8 !important; }
@media (max-width: 560px) {
  .ihgd-article .ihgd-body { font-size: 1.02rem; }
  .ihgd-article .ihgd-body h2 { font-size: 1.38rem !important; }
  .ihgd-article .ihgd-body h3 { font-size: 1.16rem !important; }
  .ihgd-finalcta { padding: 26px 18px; }
}

/* 2026-09-29 — STUDENT-NOTES look for the books articles (owner: "concise, scannable student notes rather than essay prose"). */
.ihgd-article .ihgd-body .ihgd-for { margin: 0 0 6px; font-size: .86rem; line-height: 1.4; color: #6E5E52; }
.ihgd-article .ihgd-body .ihgd-for strong { color: #7A1226; }
.ihgd-article .ihgd-body ul:has(.ihgd-pro), .ihgd-article .ihgd-body ul:has(.ihgd-con) { list-style: none; padding-left: 0; margin: 0 0 8px; }
.ihgd-article .ihgd-body li.ihgd-pro, .ihgd-article .ihgd-body li.ihgd-con { position: relative; padding-left: 22px; margin: 0 0 5px; font-size: .95rem; line-height: 1.5; }
.ihgd-article .ihgd-body li.ihgd-pro::before { content: "+"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #166534; }
.ihgd-article .ihgd-body li.ihgd-con::before { content: "\2013"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #B32D2E; }
.ihgd-article .ihgd-body .ihgd-verdict { margin: 4px 0 6px; padding: 8px 12px; border-left: 3px solid var(--accent, #800020); background: #F8F4ED; border-radius: 0 8px 8px 0; font-size: .93rem; line-height: 1.5; }
.ihgd-article .ihgd-body .ihgd-why { margin: 6px 0 0; font-size: .9rem; color: #6E5E52; }
.ihgd-article .ihgd-body h3 { margin-top: 1.3em !important; }

/* 2026-09-30 — "Where you will study this": the unit notes that mention a term (glossary term page), a subject's unit list (glossary section pages, pillar pages) */
.ihg-study { margin: 18px 0; padding: 14px 16px; border: 1px solid #EAE2D3; border-radius: 14px; background: #FFFDF9; }
.ihg-study-h { margin: 0 0 4px; font: 400 1.15rem/1.3 "Gotu", Georgia, serif; color: #0D1B2A; text-align: left; font-synthesis-weight: none; }
.ihg-study-lead { margin: 0 0 6px; font-size: .86rem; color: #6E5E52; }
.ihg-study-list { margin: 0 0 8px; padding-left: 18px; line-height: 1.7; } .ihg-study-list a, .ihg-study-section a, .ihg-study-more a { color: #7A1226; font-weight: 600; text-decoration: none; } .ihg-study-list a:hover, .ihg-study-section a:hover, .ihg-study-more a:hover { text-decoration: underline; }
.ihg-study-more { margin: 0; font-size: .86rem; } .ihg-study-section { margin: 10px 0 16px; padding: 10px 14px; border-radius: 10px; background: #F6F2EA; font-size: .92rem; line-height: 1.6; }
.ihg-study-list--pillar { margin-bottom: 18px; }

/* 2026-10-01 — the "What this page is" line on a unit OVERVIEW page */
.ihgd-article .ihgd-body .ihgd-scope { margin: 10px 0 16px; padding: 10px 14px; border-left: 3px solid #C8A24A; border-radius: 0 8px 8px 0; background: #FBF6EA; font-size: .92rem; line-height: 1.6; color: #475569; } .ihgd-article .ihgd-body .ihgd-scope a { color: #7A1226; font-weight: 600; }

/* 2026-10-01 — unit-page tables scroll sideways on a phone instead of being clipped (see itihaaskar_unit_notes_wrap_tables()) */
.ihgd-body .ihgd-tw { margin: 1.6em 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ihgd-body .ihgd-tw table { margin: 0; min-width: 540px; }
@media (min-width: 761px) { .ihgd-body .ihgd-tw table { min-width: 0; } }

/* 2026-10-03 (owner): purchase prompts at the start and the end of every unit page, and the "free supplement" wording. */
.ihgd-article .ihgd-body .ihgd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.ihgd-article .ihgd-body .ihgd-buy .ihgd-buy-btn { display: inline-block; padding: 12px 20px; border-radius: 12px; background: #7A1226; color: #fff !important; font-weight: 800; font-size: .95rem; line-height: 1.25; text-decoration: none !important; box-shadow: 0 8px 18px rgba(122,18,38,.24); transition: transform .18s, box-shadow .18s; }
.ihgd-article .ihgd-body .ihgd-buy .ihgd-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(122,18,38,.3); }
.ihgd-article .ihgd-body .ihgd-buy .ihgd-buy-alt { font-weight: 700; font-size: .9rem; color: #7A1226; text-decoration: underline; text-underline-offset: 3px; }
.ihgd-article .ihgd-body .ihgd-buybox { margin: 26px 0 8px; padding: 18px 20px 6px; border: 1px solid #E3D2A8; border-radius: 16px; background: linear-gradient(135deg, #FBF4E6, #F3E6C8); }
.ihgd-article .ihgd-body .ihgd-buybox > p:first-child { margin: 0 0 12px; line-height: 1.55; color: #2B1810; } .ihgd-article .ihgd-body .ihgd-buybox > p:first-child strong { color: #7A1226; }
@media (max-width: 480px) { .ihgd-article .ihgd-body .ihgd-buy .ihgd-buy-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; } }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   2026-10-03 — UNIT-WISE NOTES: a richer look (owner: "dull: style the headings, tables, bullet points etc., on each unit-wise note").
   Scoped to .ihgd-unit (set on the twenty unit pages only; see itihaaskar_unit_notes_is_unit_page), so no other guide changes.
   Pure CSS. The only markup it relies on is what the notes already contain (.ihgd-lead, .ihgd-why, .ihgd-tw, lists, h2) plus the heading-number badge .ihgd-hn added at display time.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
.ihgd-article.ihgd-unit { --u-burg: #7A1226; --u-burg2: #5B0E1D; --u-gold: #B08A4A; --u-cream: #FBF4E6; --u-cream2: #F6EBD6; --u-line: #E8DBBE; --u-green: #166534; --u-ink: #2B1810; }

/* ── the opening: the "Unit N / 10 · subject" paragraph becomes a banner, its list two quiet info rows ── */
.ihgd-unit .ihgd-body > p:first-of-type { margin: 0 0 14px; padding: 18px 22px; border-radius: 16px; color: #fff; font-size: 1.04rem; line-height: 1.65;
  background: linear-gradient(135deg, var(--u-burg) 0%, var(--u-burg2) 100%); box-shadow: 0 10px 26px rgba(122,18,38,.22); }
.ihgd-unit .ihgd-body > p:first-of-type strong { color: #F6DDA8; font-weight: 700; }
.ihgd-unit .ihgd-body > p:first-of-type em { color: #fff; font-style: italic; }
.ihgd-unit .ihgd-body > ul:first-of-type { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ihgd-unit .ihgd-body > ul:first-of-type li { margin: 0; padding: 10px 14px 10px 16px; border: 1px solid var(--u-line); border-left: 4px solid var(--u-gold); border-radius: 10px; background: var(--u-cream); font-size: .95rem; line-height: 1.55; }
.ihgd-unit .ihgd-body > ul:first-of-type li strong { color: var(--u-burg); }

/* ── topic headings: a card header with a numbered badge ── */
.ihgd-unit .ihgd-body h2 { display: flex !important; align-items: center; gap: 12px; margin: 2.3em 0 .7em !important; padding: 12px 16px !important; border: 1px solid var(--u-line) !important; border-left: 5px solid var(--u-burg) !important; border-radius: 12px;
  background: linear-gradient(90deg, var(--u-cream2) 0%, #FFFDF9 70%); font-size: 1.32rem !important; line-height: 1.3 !important; color: var(--u-ink) !important; box-shadow: 0 3px 10px rgba(43,24,16,.05); scroll-margin-top: 84px; }
.ihgd-unit .ihgd-body h2 .ihgd-hn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 2.15rem; height: 2.15rem; padding: 0 .35rem; border-radius: 99px; background: linear-gradient(135deg, var(--u-burg), var(--u-burg2));
  color: #fff; font: 700 1rem/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: 0 3px 8px rgba(122,18,38,.3); }
.ihgd-unit .ihgd-body h2:first-of-type { margin-top: 1.6em !important; }

/* ── the one-line "core idea" under each heading: a callout ── */
.ihgd-unit .ihgd-body .ihgd-lead { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--u-cream); border: 1px solid var(--u-line); border-left: 4px solid var(--u-gold); font-size: 1.02rem; line-height: 1.7; color: var(--u-ink); }
.ihgd-unit .ihgd-body .ihgd-lead > strong:first-child { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 99px; background: var(--u-burg); color: #fff; font: 700 .72rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }

/* ── bullets: gold diamonds, burgundy lead-in terms ── */
.ihgd-unit .ihgd-body ul:not(.ihgd-pro-list) { list-style: none; padding-left: 0; }
.ihgd-unit .ihgd-body > ul:not(:first-of-type) > li, .ihgd-unit .ihgd-body li > ul > li { position: relative; margin: 0 0 .55em; padding-left: 1.55em; }
.ihgd-unit .ihgd-body > ul:not(:first-of-type) > li::before, .ihgd-unit .ihgd-body li > ul > li::before { content: ""; position: absolute; left: .25em; top: .62em; width: .5em; height: .5em; background: var(--u-gold); transform: rotate(45deg); border-radius: 1px; }
.ihgd-unit .ihgd-body > ul:not(:first-of-type) > li > strong:first-child { color: var(--u-burg); }
.ihgd-unit .ihgd-body ol { padding-left: 1.5em; } .ihgd-unit .ihgd-body ol li::marker { color: var(--u-burg); font-weight: 700; }

/* ── tables: a framed card, a burgundy header, soft zebra, a tinted first column ── */
.ihgd-unit .ihgd-body .ihgd-tw { margin: 1.4em 0; border: 1px solid var(--u-line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(43,24,16,.07); }
.ihgd-unit .ihgd-body .ihgd-tw table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.ihgd-unit .ihgd-body thead th { background: linear-gradient(135deg, var(--u-burg), var(--u-burg2)) !important; color: #fff; font: 700 .78rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 12px 14px; border: 0; }
.ihgd-unit .ihgd-body tbody td { padding: 11px 14px; border-bottom: 1px solid #F1E8D4; }
.ihgd-unit .ihgd-body tbody tr:nth-child(even) td { background: #FFFBF3; }
.ihgd-unit .ihgd-body tbody tr:hover td { background: #FBF0D6; }
.ihgd-unit .ihgd-body tbody td:first-child { font-weight: 700; color: var(--u-burg); background-color: rgba(246,235,214,.55); }
.ihgd-unit .ihgd-body tbody tr:last-child td { border-bottom: 0; }

/* ── the exam angle: a green callout with a target icon; the trap is called out in red ── */
.ihgd-unit .ihgd-body .ihgd-why { position: relative; margin: 12px 0 8px; padding: 12px 16px 12px 52px; border-radius: 12px; background: #EEF7F1; border: 1px solid #CFE6D7; border-left: 4px solid var(--u-green); font-size: .94rem; line-height: 1.65; color: #1F3A2A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23166534'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 15px 14px; background-size: 24px; }
.ihgd-unit .ihgd-body .ihgd-why strong:first-child { color: var(--u-green); }
.ihgd-unit .ihgd-body .ihgd-why strong:nth-of-type(2) { color: #B32D2E; }

/* ── the closing revision checklist (the last heading and the list after it): tick marks, a green header ── */
.ihgd-unit .ihgd-body h2:last-of-type { border-left-color: var(--u-green) !important; background: linear-gradient(90deg, #E6F4EA 0%, #FFFDF9 70%); }
.ihgd-unit .ihgd-body h2:last-of-type::before { content: "\2713"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border-radius: 99px; background: var(--u-green); color: #fff; font: 700 1.05rem/1 system-ui, sans-serif; }
.ihgd-unit .ihgd-body h2:last-of-type + ul { padding: 14px 18px; border: 1px solid #CFE6D7; border-radius: 14px; background: #F7FCF8; }
.ihgd-unit .ihgd-body h2:last-of-type + ul > li { padding-left: 1.9em; } .ihgd-unit .ihgd-body h2:last-of-type + ul > li::before { content: "\2713"; left: 0; top: .05em; width: auto; height: auto; background: none; transform: none; color: var(--u-green); font-weight: 700; }

@media (max-width: 560px) {
  .ihgd-unit .ihgd-body > p:first-of-type { padding: 15px 16px; border-radius: 14px; }
  .ihgd-unit .ihgd-body h2 { gap: 10px; padding: 10px 12px !important; font-size: 1.12rem !important; }
  .ihgd-unit .ihgd-body h2 .ihgd-hn { min-width: 1.9rem; height: 1.9rem; font-size: .9rem; }
  .ihgd-unit .ihgd-body .ihgd-why { padding: 12px 14px 12px 14px; background-image: none; }
}
@media (prefers-reduced-motion: no-preference) { .ihgd-unit .ihgd-body tbody tr td { transition: background .15s; } }

