/* Bible infographics: hub (/bible-infographics) and one page per infographic (/bible-infographics/{slug}).
   Uses the colour variables header.php defines (--primary, --text-dark, ...). */
.ig-page { position: relative; }
.ig-crumbs { font-size: .85rem; color: var(--text-muted, #4b5563); margin-bottom: 1rem; }
.ig-crumbs a { color: var(--primary-dark, #9a3412); font-weight: 600; }
.ig-crumbs a:hover { text-decoration: underline; }
.ig-crumbs span[aria-hidden] { margin: 0 .4rem; color: var(--primary-light, #fed7aa); }

.ig-page .chapter-header { text-align: center; margin-bottom: 1.25rem; }
.ig-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary, #f97316); margin-bottom: .4rem; }
.ig-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--text-dark, #111827); }

.ig-answer {
    max-width: 860px; margin: 0 auto 1.75rem; padding: 1.1rem 1.4rem;
    background: var(--primary-tint, #fff7ed); border: 1px solid var(--primary-light, #fed7aa);
    border-left: 5px solid var(--primary, #f97316); border-radius: 14px;
    font-size: 1.08rem; line-height: 1.7; color: #1f2937;
}
.ig-answer strong { color: var(--primary-dark, #9a3412); }

.ig-figure { margin: 0 0 1rem; }
.ig-figure a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(249,115,22,.18)); }
.ig-figure img { width: 100%; height: auto; display: block; }
.ig-figure figcaption { margin-top: .6rem; font-size: .88rem; color: var(--text-muted, #4b5563); text-align: center; }

.ig-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 2.5rem; }
.ig-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.15rem; border-radius: 999px;
    font-weight: 700; font-size: .9rem; border: 1px solid var(--primary-light, #fed7aa); background: #fff;
    color: var(--text-dark, #111827); cursor: pointer; font-family: inherit; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.ig-btn:hover { background: var(--primary, #f97316); color: #fff; border-color: var(--primary, #f97316); transform: translateY(-2px); }
.ig-btn.ig-btn-main { background: var(--primary, #f97316); color: #fff; border-color: var(--primary, #f97316); }
.ig-btn.ig-btn-main:hover { background: var(--primary-hover, #ea580c); }

.ig-section { max-width: 900px; margin: 0 auto 2.25rem; }
.ig-section > h2 { font-size: 1.45rem; font-weight: 800; color: var(--text-dark, #111827); margin-bottom: .9rem; padding-bottom: .45rem; border-bottom: 3px solid var(--primary-light, #fed7aa); }
.ig-section h3 { font-size: 1.12rem; font-weight: 700; margin: 1.3rem 0 .5rem; color: var(--primary-dark, #9a3412); }
.ig-section p { margin: 0 0 .9rem; line-height: 1.75; color: #1f2937; }
.ig-section ul, .ig-section ol { margin: 0 0 1rem 1.3rem; line-height: 1.7; }
.ig-section li { margin-bottom: .35rem; }
.ig-section blockquote { margin: 1rem 0; padding: .8rem 1.1rem; border-left: 4px solid var(--primary, #f97316); background: var(--surface-color, #f9fafb); border-radius: 0 12px 12px 0; font-style: italic; }
.ig-ref { font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--primary-dark, #9a3412); white-space: nowrap; }

.ig-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; }
.ig-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.ig-table th { background: var(--primary-tint, #fff7ed); color: var(--primary-dark, #9a3412); text-align: left; font-weight: 800; padding: .6rem .8rem; border-bottom: 1px solid var(--primary-light, #fed7aa); white-space: nowrap; }
.ig-table td { padding: .55rem .8rem; border-top: 1px solid var(--border-color, #e5e7eb); vertical-align: top; }
.ig-table tr:first-child td { border-top: none; }
.ig-table td:first-child { font-weight: 700; color: var(--text-dark, #111827); }
.ig-table .ig-orig { font-family: 'Noto Serif Hebrew', 'Noto Serif', 'Times New Roman', serif; font-size: 1.1rem; white-space: nowrap; }

.ig-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 !important; }
.ig-links li { margin: 0; }
.ig-links a { display: inline-block; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--primary-light, #fed7aa); background: #fff; font-weight: 600; font-size: .9rem; }
.ig-links a:hover { background: var(--primary, #f97316); color: #fff; border-color: var(--primary, #f97316); }

.ig-share { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; padding: 1.25rem; background: var(--band-alt, #fffaf5); border: 1px solid var(--primary-light, #fed7aa); border-radius: 16px; }
.ig-share img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-color, #e5e7eb); }
.ig-share textarea { width: 100%; min-height: 110px; font-family: Consolas, monospace; font-size: .8rem; padding: .7rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; resize: vertical; margin: .3rem 0 .6rem; }
@media (max-width: 640px) { .ig-share { grid-template-columns: 1fr; } .ig-share img { max-width: 220px; margin: 0 auto; } }

.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.ig-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color, #e5e7eb); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow, 0 4px 6px -1px rgba(249,115,22,.08)); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ig-card:hover { transform: translateY(-4px); border-color: var(--primary-light, #fed7aa); box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(249,115,22,.18)); }
.ig-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.ig-card-body { padding: .9rem 1rem 1.1rem; }
.ig-card-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary, #f97316); }
.ig-card-title { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--text-dark, #111827); margin: .25rem 0 .35rem; }
.ig-card-desc { font-size: .88rem; line-height: 1.5; color: var(--text-muted, #4b5563); }

/* The numbered list of events on the Life of Christ page */
.ig-section h4.ig-period { font-size: 1.08rem; font-weight: 800; color: var(--text-dark, #111827); margin: 1.6rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--primary-light, #fed7aa); }
.ig-section h4.ig-period span { font-weight: 500; font-style: italic; color: var(--text-muted, #4b5563); margin-left: .35rem; }
.ig-section ol.ig-events { margin-left: 2.2rem; }
.ig-section ol.ig-events li { margin-bottom: .7rem; line-height: 1.6; scroll-margin-top: 90px; }
.ig-section ol.ig-events li::marker { font-weight: 800; color: var(--primary-dark, #9a3412); }
.ig-section ol.ig-events li.ig-off > strong { font-style: italic; }
.ig-section ol.ig-events li:target { background: var(--primary-tint, #fff7ed); border-radius: 8px; }
.ig-place { display: inline-block; margin-left: .35rem; font-size: .88rem; color: var(--text-muted, #4b5563); }
.ig-place a { color: var(--primary-dark, #9a3412); font-weight: 600; }
.ig-place a:hover { text-decoration: underline; }
.ig-note { font-size: .9rem; font-style: italic; color: var(--text-muted, #4b5563); }

/* Bible references in the text: they look like the text around them, and are underlined on hover */
.ig-page a.ig-vref { color: inherit; font: inherit; text-decoration: none; }
.ig-page a.ig-vref:hover, .ig-page a.ig-vref:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Keep wide tables inside the page on phones: the table scrolls in its own box instead of widening the page */
.ig-page, .ig-section, .ig-table-wrap { min-width: 0; max-width: 100%; }
.ig-page { overflow-wrap: break-word; }
@media (max-width: 640px) {
    .ig-table { font-size: .86rem; }
    .ig-table th, .ig-table td { padding: .45rem .55rem; }
    .ig-table th, .ig-ref, .ig-table .ig-orig { white-space: normal; }
    .ig-answer { font-size: 1rem; padding: .9rem 1rem; }
}

@media print { .ig-actions, .ig-share, .ig-more { display: none !important; } }
