/* Immig-US 2.3 central design system. Content remains native WordPress content. */
.imuh-unified-typography .entry-content,
.imuh-resource-post .entry-content,
.imuh-g-hub,
.imuh-forms-hub{font-family:var(--imuh-font,inherit);font-size:var(--imuh-body-size,16px);line-height:var(--imuh-line-height,1.95);color:var(--imuh-ink,#1f2937)}
.imuh-unified-typography .entry-content p,.imuh-unified-typography .entry-content li,.imuh-resource-post .entry-content p,.imuh-resource-post .entry-content li{line-height:var(--imuh-line-height,1.95)}
.imuh-unified-typography .entry-content h2,.imuh-resource-post .entry-content h2{font-family:var(--imuh-font,inherit);font-weight:850;line-height:1.5;margin-block:var(--imuh-section-spacing,30px) 12px;color:var(--imuh-forms-primary,#081852)}
.imuh-unified-typography .entry-content h3,.imuh-resource-post .entry-content h3{font-family:var(--imuh-font,inherit);font-weight:800;line-height:1.55;margin-block:24px 10px;color:var(--imuh-ink,#1f2937)}
.imuh-resource-post .entry-content{max-width:var(--imuh-content-width,920px);margin-inline:auto}

/* Native Gutenberg style variations. No fixed article colors: every accent comes from settings. */
.is-style-imuh-hero{background:linear-gradient(135deg,var(--imuh-forms-primary,#081852),color-mix(in srgb,var(--imuh-forms-primary,#081852) 76%,var(--imuh-forms-accent,#D4A514)));color:#fff;border-radius:22px;padding:clamp(28px,5vw,50px);margin-block:24px 34px;border:0;box-shadow:none}
.is-style-imuh-hero h2,.is-style-imuh-hero h3,.is-style-imuh-hero p{color:#fff!important;margin-top:0}.is-style-imuh-lead{font-size:1.12em;line-height:2}
.is-style-imuh-card{background:#fff;border:1px solid var(--imuh-border,#dce6ed);border-top:3px solid var(--imuh-forms-accent,#D4A514);border-radius:var(--imuh-radius,16px);padding:22px;box-shadow:none;height:100%}
.is-style-imuh-soft-section{background:var(--imuh-surface,#f5f8fb);border:1px solid var(--imuh-border,#dce6ed);border-radius:var(--imuh-radius,16px);padding:24px}
.is-style-imuh-callout,.imuh-resource-note{background:color-mix(in srgb,var(--imuh-forms-accent,#D4A514) 5%,#fff);border:1px solid color-mix(in srgb,var(--imuh-forms-accent,#D4A514) 24%,var(--imuh-border,#dce6ed));border-inline-start:5px solid var(--imuh-forms-accent,#D4A514);border-radius:var(--imuh-radius,16px);padding:20px 22px}
.is-style-imuh-download,.imuh-resource-download-static{background:color-mix(in srgb,var(--imuh-forms-accent,#D4A514) 5%,#fff);border:1px solid color-mix(in srgb,var(--imuh-forms-accent,#D4A514) 26%,var(--imuh-border,#dce6ed));border-top:4px solid var(--imuh-forms-accent,#D4A514);border-radius:var(--imuh-radius,16px);padding:22px}
.is-style-imuh-source,.imuh-resource-source-static{background:var(--imuh-surface,#f5f8fb);border:1px solid var(--imuh-border,#dce6ed);border-radius:var(--imuh-radius,16px);padding:18px 20px;font-size:.94em}
.is-style-imuh-card-grid,.is-style-imuh-steps{gap:18px!important;align-items:stretch}.is-style-imuh-note{background:var(--imuh-surface,#f5f8fb);border-inline-start:4px solid var(--imuh-forms-accent,#D4A514);padding:12px 15px;border-radius:9px}
.wp-block-button.is-style-imuh-primary .wp-block-button__link,.imuh-resource-download-static .wp-block-button:first-child .wp-block-button__link{background:var(--imuh-forms-primary,#081852);color:#fff;border:1px solid var(--imuh-forms-primary,#081852);border-radius:10px;font-weight:800}
.wp-block-button.is-style-imuh-secondary .wp-block-button__link,.imuh-resource-download-static .wp-block-button:nth-child(2) .wp-block-button__link{background:#fff;color:var(--imuh-forms-primary,#081852);border:1px solid var(--imuh-forms-primary,#081852);border-radius:10px;font-weight:800}

.imuh-resource-summary{background:linear-gradient(135deg,var(--imuh-forms-primary,#081852),color-mix(in srgb,var(--imuh-forms-primary,#081852) 76%,var(--imuh-forms-accent,#D4A514)));color:#fff;border:0;border-radius:22px;padding:clamp(28px,5vw,48px);margin-block:20px}.imuh-resource-summary p,.imuh-resource-summary h2,.imuh-resource-summary h3{color:#fff!important}
.imuh-resource-download-static,.imuh-resource-source-static,.imuh-resource-note{margin-block:20px}
.imuh-resource-download-static .wp-block-buttons{gap:10px}.imuh-resource-download-static .wp-block-button__link{padding:.75em 1.25em}
.imuh-resource-source-static p{margin-block:6px}
.imuh-resource-related{max-width:var(--imuh-content-width,920px);margin:28px auto;border:1px solid var(--imuh-border,#dce6ed);border-radius:var(--imuh-radius,16px);padding:20px;background:var(--imuh-surface,#f5f8fb)}
.imuh-resource-related h2{font-size:1.2rem;margin:0 0 12px}.imuh-resource-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.imuh-resource-related a{display:block;padding:13px;border:1px solid var(--imuh-border,#dce6ed);border-radius:12px;background:#fff;text-decoration:none;font-weight:800;color:var(--imuh-ink,#1f2937)}

/* Old articles keep their stored content; only their visual rhythm is normalized. */
.imuh-unified-typography .entry-content blockquote{border-inline-start:4px solid var(--imuh-forms-accent,#D4A514);padding:14px 18px;background:var(--imuh-surface,#f5f8fb);border-radius:10px}
.imuh-unified-typography .entry-content table{border-collapse:separate;border-spacing:0;width:100%;border:1px solid var(--imuh-border,#dce6ed);border-radius:12px;overflow:hidden}.imuh-unified-typography .entry-content table th{background:var(--imuh-surface,#f5f8fb);font-weight:800}.imuh-unified-typography .entry-content table th,.imuh-unified-typography .entry-content table td{padding:12px;border-bottom:1px solid var(--imuh-border,#dce6ed)}
.imuh-normalize-legacy-headings .entry-content>h2,.imuh-normalize-legacy-headings .entry-content>h3,.imuh-normalize-legacy-headings .entry-content>.wp-block-heading{background:transparent!important;color:var(--imuh-ink,#1f2937)!important;border:none!important;box-shadow:none!important;text-align:start!important;height:auto!important;min-height:0!important}
.imuh-normalize-legacy-headings .entry-content>h2,.imuh-normalize-legacy-headings .entry-content>h2.wp-block-heading,.imuh-normalize-legacy-headings .entry-content>h3,.imuh-normalize-legacy-headings .entry-content>h3.wp-block-heading{padding:0!important;border:0!important}
@media(max-width:680px){.imuh-resource-related-grid{grid-template-columns:1fr}}

/* v2.4 — Immig-US brand palette: navy + restrained gold. */
.is-style-imuh-hero,.imuh-resource-summary{
  background:linear-gradient(135deg,var(--imuh-forms-primary,#081852),#0d1f5d)!important;
  color:#fff!important;
}
.is-style-imuh-card{border-top-color:var(--imuh-forms-accent,#D4A514)!important}
.is-style-imuh-callout,.imuh-resource-note{
  background:#f8fafc!important;
  border-color:var(--imuh-border,#e3e8f1)!important;
  border-inline-start-color:var(--imuh-forms-accent,#D4A514)!important;
}
.is-style-imuh-download,.imuh-resource-download-static{
  background:#f8fafc!important;
  border-color:var(--imuh-border,#e3e8f1)!important;
  border-top-color:var(--imuh-forms-accent,#D4A514)!important;
}
.is-style-imuh-source,.imuh-resource-source-static{background:#f8fafc!important}
.imuh-unified-typography .entry-content h2,.imuh-resource-post .entry-content h2{
  color:var(--imuh-forms-primary,#081852)!important;
  border:0!important;
  padding-bottom:0!important;
}
.wp-block-button.is-style-imuh-primary .wp-block-button__link,
.imuh-resource-download-static .wp-block-button.is-style-imuh-primary .wp-block-button__link{
  background:var(--imuh-forms-primary,#081852)!important;
  border-color:var(--imuh-forms-primary,#081852)!important;
  color:#fff!important;
}
.wp-block-button.is-style-imuh-secondary .wp-block-button__link,
.imuh-resource-download-static .wp-block-button.is-style-imuh-secondary .wp-block-button__link{
  background:#fff!important;
  color:var(--imuh-forms-primary,#081852)!important;
  border-color:var(--imuh-forms-primary,#081852)!important;
}
.wp-block-button.is-style-imuh-primary .wp-block-button__link:hover,
.imuh-resource-download-static .wp-block-button.is-style-imuh-primary .wp-block-button__link:hover{
  background:#0d1f5d!important;
}
.imuh-resource-files-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.imuh-resource-file-row{border:1px solid var(--imuh-border,#e3e8f1);border-radius:14px;padding:16px;background:#fff}
.imuh-resource-file-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;color:var(--imuh-forms-primary,#081852)}
.imuh-file-size{font-size:.82em;color:var(--imuh-muted,#64748b);font-weight:600}
.imuh-single-format-note{margin-top:12px;padding:10px 12px;border-inline-start:3px solid var(--imuh-forms-accent,#D4A514);background:#fff;color:var(--imuh-muted,#64748b)}
.imuh-resource-source-static a{color:var(--imuh-forms-primary,#081852);text-decoration:underline;text-decoration-color:var(--imuh-forms-accent,#D4A514);text-underline-offset:3px}
@media(max-width:700px){.imuh-resource-files-grid{grid-template-columns:1fr}}

/* v2.5 — restrained brand accents; no decorative gold bars on resource cards. */
.is-style-imuh-card{border-top:1px solid var(--imuh-border,#e3e8f1)!important}
.is-style-imuh-download,.imuh-resource-download-static{border:2px solid var(--imuh-forms-primary,#081852)!important;border-top:2px solid var(--imuh-forms-primary,#081852)!important;background:#fff!important}
.imuh-single-format-note{border-inline-start-color:var(--imuh-forms-primary,#081852)!important;background:#f8fafc!important}

/* v2.8 — site-wide visual containment for Ad Inserter wrappers.
 * Placement is still controlled by Ad Inserter itself. These rules only prevent
 * floated/sticky wrappers from visually overlapping article text or Gutenberg blocks. */
.code-block{
  clear:both!important;
  float:none!important;
  position:relative!important;
  inset:auto!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin-block:28px!important;
  margin-inline:auto!important;
  z-index:auto!important;
}
.code-block iframe,.code-block ins,.code-block img{max-width:100%!important}

/* v3.0 typography isolation: Jannah may ship stronger selectors. */
.imuh-resource-reader,.imuh-resource-reader button,.imuh-resource-reader input,.imuh-resource-reader select,.imuh-resource-reader textarea,.imuh-resource-reader-content,.imuh-forms-hub,.imuh-g-hub{font-family:var(--imuh-font,Tahoma,Arial,sans-serif)!important}
.imuh-unified-typography .entry-content,.imuh-unified-typography .entry-content p,.imuh-unified-typography .entry-content li,.imuh-unified-typography .entry-content h2,.imuh-unified-typography .entry-content h3,.imuh-unified-typography .entry-content h4{font-family:var(--imuh-font,Tahoma,Arial,sans-serif)!important}

/* v3.0 — cooperate with Easy Table of Contents; Immig-US does not create a TOC. */
.imuh-resource-reader-content #ez-toc-container,
.imuh-resource-reader-content .ez-toc-container{float:none!important;clear:both!important;width:100%!important;max-width:100%!important;margin:28px 0!important;box-sizing:border-box!important;font-family:var(--imuh-font,inherit)!important}
.imuh-resource-reader-content #ez-toc-container *,
.imuh-resource-reader-content .ez-toc-container *{font-family:var(--imuh-font,inherit)!important}

/* v3.1 — article structure upgrade. The number/order of sections comes from the
 * article's existing H2 headings; this class only gives those native Group blocks
 * consistent spacing without imposing a fixed article template. */
.imuh-article-section{margin-block:0 var(--imuh-section-spacing,30px);padding:0;clear:both}
.imuh-article-section>.wp-block-heading:first-child{margin-top:0}
.imuh-article-section::after{content:"";display:block;clear:both}

/* v3.2 — unmistakable text links inside editorial content. Internal and external
 * links share one accessible visual language; external links may get a small ↗ marker. */
.imuh-content-link-system .entry-content p a,
.imuh-content-link-system .entry-content li a,
.imuh-content-link-system .entry-content blockquote a,
.imuh-content-link-system .entry-content td a,
.imuh-content-link-system .entry-content th a,
.imuh-content-link-system .entry-content figcaption a,
.imuh-content-link-system .wp-block-post-content p a,
.imuh-content-link-system .wp-block-post-content li a,
.imuh-content-link-system .wp-block-post-content blockquote a,
.imuh-content-link-system .wp-block-post-content td a,
.imuh-content-link-system .wp-block-post-content th a,
.imuh-content-link-system .wp-block-post-content figcaption a,
.imuh-resource-reader-content p a,
.imuh-resource-reader-content li a,
.imuh-resource-reader-content blockquote a,
.imuh-resource-reader-content td a,
.imuh-resource-reader-content th a,
.imuh-resource-reader-content figcaption a{
  color:var(--imuh-content-link,#0969C3)!important;
  font-weight:650;
  text-decoration-line:underline!important;
  text-decoration-thickness:.08em;
  text-underline-offset:.18em;
  text-decoration-color:color-mix(in srgb,var(--imuh-content-link,#0969C3) 78%,transparent)!important;
  transition:color .15s ease,text-decoration-color .15s ease;
}
.imuh-content-link-system .entry-content p a:hover,
.imuh-content-link-system .entry-content li a:hover,
.imuh-content-link-system .entry-content blockquote a:hover,
.imuh-content-link-system .entry-content td a:hover,
.imuh-content-link-system .entry-content th a:hover,
.imuh-content-link-system .entry-content figcaption a:hover,
.imuh-content-link-system .wp-block-post-content p a:hover,
.imuh-content-link-system .wp-block-post-content li a:hover,
.imuh-content-link-system .wp-block-post-content blockquote a:hover,
.imuh-content-link-system .wp-block-post-content td a:hover,
.imuh-content-link-system .wp-block-post-content th a:hover,
.imuh-content-link-system .wp-block-post-content figcaption a:hover,
.imuh-resource-reader-content p a:hover,
.imuh-resource-reader-content li a:hover,
.imuh-resource-reader-content blockquote a:hover,
.imuh-resource-reader-content td a:hover,
.imuh-resource-reader-content th a:hover,
.imuh-resource-reader-content figcaption a:hover{
  color:var(--imuh-content-link-hover,#081852)!important;
  text-decoration-color:var(--imuh-forms-accent,#D4A514)!important;
}
.imuh-content-text-link:visited{color:var(--imuh-content-link,#0969C3)!important}
.imuh-content-external-link .imuh-external-link-icon{display:inline-block;margin-inline-start:.28em;font-size:.78em;font-weight:900;line-height:1;vertical-align:.12em;color:currentColor;text-decoration:none}
.imuh-content-link-no-underline .entry-content p a,.imuh-content-link-no-underline .entry-content li a,.imuh-content-link-no-underline .entry-content blockquote a,.imuh-content-link-no-underline .entry-content td a,.imuh-content-link-no-underline .entry-content th a,.imuh-content-link-no-underline .entry-content figcaption a,.imuh-content-link-no-underline .wp-block-post-content p a,.imuh-content-link-no-underline .wp-block-post-content li a,.imuh-content-link-no-underline .wp-block-post-content blockquote a,.imuh-content-link-no-underline .wp-block-post-content td a,.imuh-content-link-no-underline .wp-block-post-content th a,.imuh-content-link-no-underline .wp-block-post-content figcaption a{text-decoration:none!important}
