/* 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: var(--ih-read, 820px); margin: 0 auto; padding: var(--ih-y, 28px) var(--ih-gut, 16px); box-sizing: border-box; } /* same gutter / reading width as the theme's layout system (fallbacks keep it sane without the theme) */

.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; }

.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; }

.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; }

.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; }

.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; }

.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); } }
@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; }

.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); }

.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 */

#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-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; }
}

.ihg-section-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 24px 0 36px;
}
@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: var(--ih-w, 1100px); }
.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; }
@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; }

.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; }

.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);
}

.ihg-atoz-empty { color: #64748b; padding: 24px 0; }

.ihg-index-en { color: #64748b; font-size: 0.86rem; }

.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; }
/* Typography, tables and links for .ihgd-body live in the theme's "ARTICLE BODY" block (style.css) — the single reading style for every page and blog. */

/* 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; }
.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; }

/* ===== */
.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; }
}

/* ===== */
.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-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-finalcta { padding: 26px 18px; }
}

.ihgd-body .ihgd-for { margin: 0 0 6px; font-size: .86rem; line-height: 1.4; color: #6E5E52; }
.ihgd-body .ihgd-for strong { color: #7A1226; }
.ihgd-body ul:has(.ihgd-pro), .ihgd-body ul:has(.ihgd-con) { list-style: none; padding-left: 0; margin: 0 0 8px; }
.ihgd-body li.ihgd-pro, .ihgd-body li.ihgd-con { position: relative; padding-left: 22px; margin: 0 0 5px; font-size: .95rem; line-height: 1.5; }
.ihgd-body li.ihgd-pro::before { content: "+"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #166534; }
.ihgd-body li.ihgd-con::before { content: "\2013"; position: absolute; left: 4px; top: 0; font-weight: 700; color: #B32D2E; }
.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-body .ihgd-why { margin: 6px 0 0; font-size: .9rem; color: #6E5E52; }
.ihgd-body h3 { margin-top: 1.3em !important; }

.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; }

.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-body .ihgd-scope a { color: #7A1226; font-weight: 600; }

.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; } }

.ihgd-body .ihgd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.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-body .ihgd-buy .ihgd-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(122,18,38,.3); }
.ihgd-body .ihgd-buy .ihgd-buy-alt { font-weight: 700; font-size: .9rem; color: #7A1226; text-decoration: underline; text-underline-offset: 3px; }
.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-body .ihgd-buybox > p:first-child { margin: 0 0 12px; line-height: 1.55; color: #2B1810; } .ihgd-body .ihgd-buybox > p:first-child strong { color: #7A1226; }
@media (max-width: 480px) { .ihgd-body .ihgd-buy .ihgd-buy-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; } }

.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); }
.ihgd-unit .ihgd-body > ul:first-of-type > li::before { content: none; }

/* ── topic headings: a card header with a numbered badge ── */
.ihgd-unit .ihgd-body h2 { display: flex !important; align-items: center; gap: 12px; }
.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; }



/* ── 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; }
  .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; }
}


/* 2026-10-13 Deep-dive polish (consistency sweep). (1) A wide comparison table used width:100% + overflow:hidden, so on a phone the extra columns were silently CUT OFF rather than scrollable; it now scrolls sideways inside the article. (2) Headings used #1E3A5F, a blue that appears nowhere else on the site: now the site's ink colour. (3) The table header and final CTA used #6B1E3B, a third maroon next to the brand's #7A1226 and #800020: unified. Judgment calls, no owner sign-off. */
.ihgd-finalcta { background: #7A1226; }
@media (max-width: 782px) {
  .ihgd-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: 10px; }
  .ihgd-body th, .ihgd-body td { min-width: 110px; padding: 10px 12px; }
  .ihgd-finalcta { padding: 24px 18px; }
  .ihgd-finalcta-btn { display: block; text-align: center; }
}
