/*
 * Itihaaskar — page-bound styles (conditionally loaded).
 * Account / Contact / 404 / Search, Subject Hub, Product Assurance,
 * Learning Dashboard, and the Homepage Free-Resources band.
 * Enqueued only on the pages that render these sections.
 */

/* ===== 67) Account, Contact, 404 & Search (production pages) ===== */
.ih-acct { max-width: 560px; margin: 0 auto; }
.ih-acct-sub { color: #64748B; margin: 0 0 16px; }
.ih-acct-help { margin-top: 18px; color: #475569; }

.ih-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 14px; }
.ih-contact-card { display: flex; flex-direction: column; gap: 3px; background: #F8F4ED; border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px; text-decoration: none; transition: transform .2s, border-color .2s; }
.ih-contact-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,0.55); }
.ih-contact-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: var(--c, #B45309); margin-bottom: 6px; }
.ih-contact-card strong { color: #0F172A; }
.ih-contact-card small { color: #64748B; font-size: 0.85rem; }
.ih-contact-sub { color: #64748B; margin: 0 0 14px; }
.ih-contact-fallback { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 20px; }
.ih-contact-fallback .ih-btn { display: inline-block; margin: 6px 0 12px; }
.ih-contact-tip { color: #94A3B8; font-size: 0.84rem; }
.ih-contact-tip code { background: #F1ECE2; padding: 1px 6px; border-radius: 5px; }

.ih-404 { text-align: center; }
.ih-404-code { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 5rem; font-weight: 800; color: #D4AF37; line-height: 1; }
.ih-404 h1 { margin: 6px 0 8px; }
.ih-404 p { color: #475569; max-width: 560px; margin: 0 auto 18px; }
.ih-404-search { max-width: 460px; margin: 0 auto 26px; }

.ih-search-top { max-width: 540px; margin: 0 0 20px; }
.ih-search-results { display: grid; gap: 12px; }
.ih-search-card { display: block; background: #F8F4ED; border: 1px solid #E2E8F0; border-radius: 12px; padding: 15px 18px; text-decoration: none; transition: transform .2s, border-color .2s; }
.ih-search-card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,0.55); }
.ih-search-card strong { display: block; color: #0F172A; font-size: 1.02rem; }
.ih-search-card small { display: block; color: #64748B; margin-top: 3px; }
.ih-search-nav { margin-top: 22px; }
.ih-search-nav .page-numbers { display: inline-block; padding: 7px 12px; margin: 0 3px; border: 1px solid #E2E8F0; border-radius: 8px; text-decoration: none; color: #B45309; }
.ih-search-nav .page-numbers.current { background: #B45309; color: #fff; border-color: #B45309; }
.ih-search-empty p { color: #475569; margin: 0 0 16px; }

/* ===== 68) Subject Hub (Stage 4 — "your complete [subject] toolkit") ===== */
.ih-hub-sec { background: #ffffff; }
.ih-hub-sub { color: #64748B; margin: 0 0 20px; max-width: 640px; }
.ih-hub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ih-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ih-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.ih-hub-card {
  position: relative;
  display: block;
  background: #F8F4ED;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--acc, #B45309);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ih-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.55);
  border-left-color: var(--acc, #B45309);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.ih-hub-card strong { display: block; color: #0F172A; font-size: 1.04rem; }
.ih-hub-card small { display: block; color: #64748B; margin-top: 3px; font-size: 0.86rem; }
.ih-hub-cta { margin: 22px 0 0; }
.ih-hub-cta .ih-btn { display: inline-block; }

/* ===== 69) Product assurance: metadata, reassurance, comparison (Stage 6) ===== */
.ih-assure-sec { background: #F8F4ED; }
.ih-meta-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.ih-meta-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E2E8F0; border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; color: #334155; font-weight: 600; }
.ih-meta-pill i { font-style: normal; }
.ih-assure-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 26px; }
@media (min-width: 560px) { .ih-assure-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ih-assure-grid { grid-template-columns: repeat(4, 1fr); } }
.ih-assure-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px; }
.ih-assure-item strong { display: block; color: #0F172A; font-size: 0.98rem; }
.ih-assure-item small { display: block; color: #64748B; margin-top: 3px; font-size: 0.84rem; }
.ih-assure-item a { color: #B45309; }
.ih-compare { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px; }
.ih-compare-h { margin: 0 0 12px; font-size: 1.08rem; color: #0F172A; }
.ih-compare-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ih-compare-tbl th, .ih-compare-tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #EEF2F7; vertical-align: top; }
.ih-compare-tbl thead th { color: #0F172A; font-weight: 700; border-bottom: 2px solid #E2E8F0; }
.ih-compare-tbl thead th:nth-child(2) { color: #B45309; }
.ih-compare-tbl td:first-child { color: #64748B; font-weight: 600; width: 90px; }
.ih-compare-tip { margin: 12px 0 0; color: #475569; font-size: 0.88rem; }
.ih-changelog { margin-top: 14px; }
.ih-changelog summary { cursor: pointer; color: #B45309; font-weight: 600; font-size: 0.9rem; }
.ih-changelog ul { margin: 10px 0 0; padding-left: 18px; color: #475569; font-size: 0.88rem; }
.ih-changelog li { margin: 4px 0; }

/* ===== 70) Learning dashboard (Stage 7 — My Account study space) ===== */
.ih-dash-head h2 { margin: 0 0 4px; }
.ih-dash-head p { color: #64748B; margin: 0 0 8px; }
.ih-dash-h { font-size: 1.05rem; color: #0F172A; margin: 24px 0 12px; }
.ih-dash-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ih-dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ih-dash-grid { grid-template-columns: repeat(4, 1fr); } }
.ih-dash-card {
  display: block;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-top: 3px solid var(--acc, #B45309);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ih-dash-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); border-color: rgba(212,175,55,0.5); }
.ih-dash-card strong { display: block; color: #0F172A; font-size: 1.02rem; }
.ih-dash-card small { display: block; color: #64748B; margin-top: 3px; font-size: 0.85rem; }
.ih-dash-empty { background: #fff; border: 1px dashed #D6CDBB; border-radius: 12px; padding: 18px; color: #475569; }
.ih-dash-empty a { color: #B45309; font-weight: 600; }

/* ===== 72) Homepage Free-Resources band (value-first) ===== */
.ih-free-sub { color: var(--clr-muted); margin: 0 0 20px; max-width: 640px; }
.ih-free-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ih-free-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ih-free-grid { grid-template-columns: repeat(4, 1fr); } }
.ih-free-grid .ih-card { text-decoration: none; }
.ih-free-grid .ih-card strong { display: block; color: var(--clr-ink); font-size: 1.02rem; }
.ih-free-grid .ih-card small { display: block; color: var(--clr-muted); margin-top: 3px; font-size: 0.85rem; }
